FrameBufferObject

A FrameBufferObject is usefull if you want to blit Drawables on a Texture. You create an FBO, set an Image/Texture to it and draw what you want. After drawing it is on your Texture.

Constructors

this
this(Texture tex, bool depthBuffer)

CTor with a Texture and the boolean flag if you want a depthBuffer

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind()

Bind the current FBO. This is mostly done automatically.

clear
void clear()

Clears the content of the FBO.

draw
void draw(Drawable draw)

Draw a Drawable on the current render target

setTexture
void setTexture(Texture tex)

Set a new Texture to the FBO which is now the new render target.

unbind
void unbind()

Unbind the current FBO. This is mostly done automatically.

Meta

Authors

rschuett