GLRender

Render to FBO

Constructors

this
this()

Members

Functions

bind
void bind()
createDefaultTexture
auto createDefaultTexture(uint unit)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultColor
GLTexture2D defaultColor(uint unit)
defaultDepth
GLTexture2D defaultDepth(uint unit)
drawBuffers
void drawBuffers(int[] bufs)

GLFrameBuffer.drawBuffers

getColor
GLTexture2D getColor(uint N)

get buffer setted to color attachment N

getColors
GLTexture2D[uint] getColors()
getDepth
GLTexture2D getDepth()
removeIfChild
void removeIfChild(GLTexture2D t)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(uivec2 sz)
resize
void resize(uint w, uint h)
selfDestroy
void selfDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.
setColor
void setColor(GLTexture2D buf, uint N)

set buf to color attachment N

setDepth
void setDepth(GLTexture2D buf)
unbind
void unbind()

Mixins

__anonymous
mixin DES
Undocumented in source.
__anonymous
mixin ClassLogger
Undocumented in source.

Variables

buf_size
uivec2 buf_size;
Undocumented in source.
color_bufs
GLTexture2D[uint] color_bufs;
depth_buf
GLTexture2D depth_buf;
fbo
GLFrameBuffer fbo;
last_vp
int[4] last_vp;
Undocumented in source.

Meta