GLRender

Render to FBO

Constructors

this
this()

Members

Functions

bind
void bind()
defaultColor
GLTexture2D defaultColor(uint unit)
defaultDepth
GLTexture2D defaultDepth(uint unit)
drawBuffers
void drawBuffers(in int[] bufs...)

GLFrameBuffer.drawBuffers

getColor
GLTexture2D getColor(uint N)

get buffer setted to color attachment N

getColors
GLTexture2D[uint] getColors()
getDepth
GLTexture2D getDepth()
resize
void resize(uivec2 sz)
resize
void resize(uint w, uint h)
setColor
void setColor(GLTexture2D buf, uint N)

set buf to color attachment N

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

Variables

color_bufs
GLTexture2D[uint] color_bufs;
depth_buf
GLTexture2D depth_buf;
fbo
GLFrameBuffer fbo;

Meta