Framebuffer
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
options: FramebufferOptions
Returns Framebuffer
Properties
framebuffer
graphicsContext
height
texelSize
width
Accessors
texture
Returns WebGLTexture
Methods
bind
Returns void
blitToScreen
Returns void
copyToTexture
Parameters
texture: WebGLTexture
Returns void
resize
Parameters
width: number
height: number
Returns void
unbind
Unbinds the framebuffer and returns drawing to the screen WARNING you shoud use graphicsContext.popFramebuffer() unless you know what you're doing
Returns void
Binds the framebuffer and redirects drawing, WARNING you should use graphicsContext.pushFramebuffer(...) unless you know what you're doing*