new FrameBuffer(gl, width, height, optionsopt)
Constructs a new FrameBuffer
Parameters
| Name | Type | Attributes | Default | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gl |
object | webgl context | ||||||||||||
width |
number | width | ||||||||||||
height |
number | height | ||||||||||||
options |
object |
<optional> |
{} | options
Properties
|
Methods
setSize(width, height)
Set the size of the framebuffer
Parameters
| Name | Type | Description |
|---|---|---|
width |
number | width |
height |
number | height |