Class

RenderTarget

RenderTarget()

A rendering target

Constructor

new RenderTarget()

Constructor

View Source Renderers/RenderTarget.js, line 10

Members

null | RenderTask

protected activeTask

A reference to the active task

View Source Renderers/RenderTarget.js, line 21

Context

protected context

Context instance

View Source Renderers/RenderTarget.js, line 29

RenderAPI

protected renderApi

The render API to use

View Source Renderers/RenderTarget.js, line 45

Array.<RenderTask>

protected tasks

Tasks to execute

View Source Renderers/RenderTarget.js, line 37

Methods

clear(colornullable)

Clear the rendering target
Parameters:
Name Type Attributes Description
color Color <nullable>
A Color instance

View Source Renderers/RenderTarget.js, line 53

createTask() → {number}

Create a new task

View Source Renderers/RenderTarget.js, line 60

RenderTask's index
number

getActiveTask() → (nullable) {RenderTask}

Get the active task

View Source Renderers/RenderTarget.js, line 112

A RenderTask or null
RenderTask

getHeight() → (non-null) {number}

Get height

View Source Renderers/RenderTarget.js, line 156

Height in pixels
number

getRenderAPI() → {RenderAPI}

Get the render API

View Source Renderers/RenderTarget.js, line 129

A Render API instance
RenderAPI

getSize() → {Array.<number>}

Get size

View Source Renderers/RenderTarget.js, line 138

A array with size on x and y
Array.<number>

getWidth() → (non-null) {number}

Get width

View Source Renderers/RenderTarget.js, line 147

Width in pixels
number

removeTasks()

Remove all the tasks in memory

View Source Renderers/RenderTarget.js, line 119

render(scene, camera)

Render the given scene
Parameters:
Name Type Description
scene Scene A Scene instance
camera Camera A Camera instance

View Source Renderers/RenderTarget.js, line 80

setActiveTask(index)

Set the task with the given index active
Parameters:
Name Type Description
index number An integer representing task's index

View Source Renderers/RenderTarget.js, line 101