new RenderTargetBack(view)
Render Target that render to canvas element.
Parameters:
Name | Type | Description |
---|---|---|
view |
HTMLCanvasElement | The canvas element which the Render Target rendered to. |
- Source:
Extends
Members
height :number
The height of the render target.
Type:
- number
- Overrides:
- Source:
view :HTMLCanvasElement
The canvas element which the Render Target rendered to.
Type:
- HTMLCanvasElement
- Source:
width :number
The width of the render target.
Type:
- number
- Overrides:
- Source:
Methods
addEventListener(type, listener, thisObjectopt)
Adds a listener to an event type.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
type |
string | The type of event to listen to. | ||
listener |
function | The function that gets called when the event is fired. | ||
thisObject |
Object |
<optional> |
this | The Object of calling listener method. |
- Inherited From:
- Source:
dispatchEvent(event)
Fire an event type.
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | The event that gets fired. |
- Inherited From:
- Source:
dispose()
Dispatches a dispose event.
- Overrides:
- Source:
removeEventListener(type, listener, thisObjectopt)
Removes a listener from an event type.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
type |
string | The type of the listener that gets removed. | ||
listener |
function | The listener function that gets removed. | ||
thisObject |
Object |
<optional> |
this | thisObject - The Object of calling listener method. |
- Inherited From:
- Source:
resize(width, height) → {boolean}
Resize the render target.
Parameters:
Name | Type | Description |
---|---|---|
width |
number | The width of the render target. |
height |
number | The height of the render target. |
- Overrides:
- Source:
Returns:
- If size changed.
- Type
- boolean