the class that manages what it is rendered the HTML5 canvas on the web page
Parameters:
| String |
canvasID
|
id of the canvas in the DOM tree. That's all we need to setup a vxlView for you |
| vxlScene |
scene
|
if this view is sharing a scene, this parameter corresponds to the scene being shared. |
| Boolean |
handleLayout
|
if true or absent, the canvas will be resized dynamically |
Parameters:
| Type | Name | Description |
|---|---|---|
| Boolean |
flag
|
set flag to true if fullscreen is wanted. Set it to false to exit fullscreen. |
Parameters:
| Type | Name | Description |
|---|---|---|
| String |
event
|
the name of the event |
| Object |
source
|
the origin of the event. Useful to do callbacks if necessary |
Parameters:
| Type | Name | Description |
|---|---|---|
flag
|
enbles automatic resizing if true, disables it if false |
Parameters:
| Type | Name | Description |
|---|---|---|
| Number|Array|vec3 |
r
|
it can be the red component, a 3-dimensional Array or a vec3 (glMatrix) |
| Number |
g
|
if r is a number, then this parameter corresponds to the green component |
| Number |
b
|
if r is a number, then this parameter corresponds to the blue component |
See:
vxlRenderer#clearColorParameters:
| Type | Name | Description |
|---|---|---|
| Number |
d
|
the new depth |
See:
vxlRenderer#clearDepthParameters:
| Type | Name | Description |
|---|---|---|
| vxlViewInteractor |
interactor
|
an instance of a vxlViewInteractor |