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
GLTexture defaultColor(uint unit)
defaultDepth
GLTexture defaultDepth(uint unit)
getColor
GLTexture getColor(uint N)

get buffer setted to color attachment N

getDepth
GLTexture getDepth()
removeIfChild
void removeIfChild(GLTexture 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(GLTexture buf, uint N)

set buf to color attachment N

setDepth
void setDepth(GLTexture 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
GLTexture[uint] color_bufs;
depth_buf
GLTexture depth_buf;
fbo
GLFrameBuffer fbo;
last_vp
int[4] last_vp;
Undocumented in source.

Meta