Constructor
Members
Methods
clear(colornullable)
Clear the rendering target
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
color |
Color |
<nullable> |
A Color instance |
createTask() → {number}
Create a new task
RenderTask's index
number
getHeight() → (non-null) {number}
Get height
Height in pixels
number
getSize() → {Array.<number>}
Get size
A array with size on x and y
Array.<number>
getWidth() → (non-null) {number}
Get width
Width in pixels
number
render(scene, camera)
Render the given scene
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene | A Scene instance |
camera |
Camera | A Camera instance |
setActiveTask(index)
Set the task with the given index active
Parameters:
Name | Type | Description |
---|---|---|
index |
number | An integer representing task's index |