Constructor
new RenderTargetBack(view)
Parameters:
Name | Type | Description |
---|---|---|
view | HTMLCanvasElement | The canvas element which the Render Target rendered to. |
Extends
Members
height :Number
The height of the render target.
Type:
- Number
- Overrides
(readonly) isRenderTarget :Boolean
Type:
- Boolean
- Overrides
- Default Value
- true
(readonly) isRenderTargetBack :Boolean
Type:
- Boolean
- Default Value
- true
view :HTMLCanvasElement
The canvas element which the Render Target rendered to.
Type:
- HTMLCanvasElement
width :Number
The width of the render target.
Type:
- Number
- Overrides
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. |
dispatchEvent(event)
Fire an event.
Parameters:
Name | Type | Description |
---|---|---|
event | Object | The event that gets fired. |
- Overrides
dispose()
Dispatches a dispose event.
- Overrides
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. |
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
Returns:
- If size changed.
- Type:
- Boolean