class GLRenderTarget
An off-screen render target.
Can be used as an extra parameter to GLRenderer.render().
class GLRenderTarget
Name | Description |
---|---|
Constructors | |
GLRenderTarget() | Creates a new GLRenderTarget. |
Methods | |
dispose | Dispose the unmanaged resource. |
getImage | Get the rendering result as an Image |
setSize | Update the size of the render target. |
Constructors
GLRenderTarget()
GLRenderTarget
(width
: Number, height
: Number, msaa
= true: Boolean)
Create a new GLRenderTarget.
Parameters
width
: width of the image data
height
: height of the image data
msaa
: should MSAA be used
Methods
dispose()
.dispose
(): undefined
Dispose the unmanaged resource.
getImage()
.getImage
(): Image
Returns the rendering result as an Image object.
setSize()
.setSize
(width
: Number, height
: Number): undefined
Update the size of the render target.