gfm



class  GLRenderBuffer;

OpenGL Renderbuffer wrapper.


this(OpenGL gl, GLenum internalFormat, int width, int height, int samples = 0);

Creates an OpenGL renderbuffer.

If asking for a multisampled render buffer fails,

a non multisampled buffer will be created instead.

Throws
OpenGLException if creation failed.

void  use();

Binds this renderbuffer.

Throws
OpenGLException on error.

void  unuse();

Unbinds this renderbuffer.

Throws
OpenGLException on error.

const pure nothrow GLuint  handle();

Returns
Wrapped OpenGL resource  handle.