RenderBuffer

Represents an OpenGL render buffer. A render buffer can be used as a faster alternative to a texture in a frame buffer when its rendering output doesn't need to be read. The storage format, width and height dimensions need to be set with {@link #setStorage(org.spout.renderer.api.gl.Texture.InternalFormat, int, int)}, before the render buffer can be used.

Members

Functions

bind
void bind()

Binds the render buffer to the OpenGL context.

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getFormat
InternalFormat getFormat()

Returns the render buffer format.

getHeight
uint getHeight()

Returns the render buffer height.

getID
uint getID()

Gets the ID for this render buffer as assigned by OpenGL.

getWidth
uint getWidth()

Returns the render buffer width.

setStorage
void setStorage(InternalFormat format, uint width, uint height)

Sets the render buffer storage.

unbind
void unbind()

Unbinds the render buffer from the OpenGL context.

Variables

id
uint id;
Undocumented in source.

Inherited Members

From Creatable

create
void create()

Creates the resources. It can now be used.

destroy
void destroy()

Releases the resource. It can not longer be used.

isCreated
bool isCreated()

Returns true if the resource was created and is ready for use, false if otherwise.

checkCreated
void checkCreated()

Throws an exception if the resource hasn't been created yet.

checkNotCreated
void checkNotCreated()

Throws an exception if the resource has been created already.

From GLVersioned

getGLVersion
GLVersion getGLVersion()

Returns the lowest OpenGL version required by this object's implementation.

Meta