Constructor
Members
number
static Type
Type of context
Properties:
| Name | Type | Description |
|---|---|---|
WebGL |
number |
Methods
activate()
Activate the context
The context become the one used by the renderer
getSize() → {Array.<number>}
Get size
A array with size on x and y
Array.<number>
init(type, options, targetID)
Init
Parameters:
| Name | Type | Description |
|---|---|---|
type |
Context.Type | Type of context |
options |
Object | Options |
targetID |
string | Targeted DOM element |
resize(width, height)
Resize context
Parameters:
| Name | Type | Description |
|---|---|---|
width |
number | Width to assign in pixel |
height |
number | Height to assign in pixel |