FrameBuffer

Represents an Opengl FBO (FrameBufferObject)

Constructors

this
this()

Creates an OpenGL FBO

Destructor

~this
~this()
Undocumented in source.

Alias This

fbo

Alias this to fbo

Members

Functions

attach
void attach(Texture1D texture, GLenum attachment_point, GLint level)

Attaches a 1D-texture to the FrameBuffer Calls validate

attach
void attach(RenderBuffer rbuffer, GLenum attachment_point)

Attaches a RenderBuffer to the FrameBuffer Calls validate

attach
void attach(Texture2D texture, GLenum attachment_point, GLint level)

Attaches a 2D-texture to the FrameBuffer Calls validate

attach_new_renderbuffer
RenderBuffer attach_new_renderbuffer(GLenum attachment_point, GLenum internal_format, int width, int height)

Attaches a new renderbuffer to the FrameBuffer Calls validate, also binds the returned RenderBuffer

attach_new_texture
Texture1D attach_new_texture(GLenum attachment_point, GLint internal_format, int width, GLenum format, GLenum type)

Attaches a new and empty 2D texture to the FrameBuffer Calls validate, and binds the returned texture

attach_new_texture
Texture2D attach_new_texture(GLenum attachment_point, GLint internal_format, int width, int height, GLenum format, GLenum type)

Attaches a new and empty 2D texture to the FrameBuffer Calls validate, and binds the returned texture

bind
void bind()

Binds the FrameBuffer

remove
void remove()

Deletes the FrameBuffer

unbind
void unbind()

Unbinds the FrameBuffer

Static functions

validate
void validate()

Calls glCheckFramebufferStatus and throws a FrameBufferException if the return value is not GL_FRAMEBUFFER_COMPLETE

Static variables

target
GLenum target;
Undocumented in source.

Variables

fbo
GLuint fbo;

The OpenGL FBO name

Meta