#ifndef MSP_GL_RENDERBUFFER_H_
#define MSP_GL_RENDERBUFFER_H_
-#include "bindable.h"
#include "pixelformat.h"
namespace Msp {
Requires the GL_EXT_framebuffer_object extension. Multisample renderbuffers
additionally require the GL_EXT_framebuffer_multisample extension.
*/
-class Renderbuffer: public Bindable<Renderbuffer>
+class Renderbuffer
{
private:
unsigned id;
/** Returns the maximum supported sample count for multisampling. If
multisampling is not supported, returns 0. */
- static unsigned get_max_samples();
+ DEPRECATED static unsigned get_max_samples();
/** Allocates multisample storage for the renderbuffer. All attachments in
a framebuffer must have the same number of samples. To transfer the
functions.*/
void storage_multisample(unsigned samples, PixelFormat fmt, unsigned wd, unsigned ht);
- void bind() const;
-
- static void unbind();
-
void set_debug_name(const std::string &);
};