GLFrameBuffer

Constructors

this
this()

Members

Enums

Attachment
enum Attachment

Functions

bind
void bind()

glBindFramebuffer add id to stack

check
void check()

glCheckFramebufferStatus

drawBuffers
void drawBuffers(in int[] bufs...)
setColor
void setColor(GLRenderBuffer rbo, uint no)

set render buffer as color attachment

setColor
void setColor(GLTexture tex, uint no = 0)

set texture as color attachment

setDepth
void setDepth(GLRenderBuffer rbo)

set render buffer as depth attachment

setDepth
void setDepth(GLTexture tex)

set texture as depth attachment

setRBO
void setRBO(GLRenderBuffer rbo, GLenum attachment)

warning: no bind

setTex
void setTex(GLTexture tex, GLenum attachment)

warning: no bind

texture
void texture(GLTexture tex, GLenum attachment, uint level = 0)

warning: no bind

texture1D
void texture1D(GLTexture tex, GLenum attachment, uint level = 0)

warning: no bind

texture2D
void texture2D(GLTexture tex, GLenum attachment, uint level = 0)

warning: no bind

texture3D
void texture3D(GLTexture tex, GLenum attachment, uint level = 0, int layer = 0)

warning: no bind

textureLayer
void textureLayer(GLTexture tex, GLenum attachment, uint layer, uint level = 0)

warning: no bind

unbind
void unbind()

pop from stack old frame buffer id and glBindFramebuffer with it

Meta