MQScene manages a camera and so on.
| get | set | Type | Name | Description | ||||
|---|---|---|---|---|---|---|---|---|
| x | x | float | head | head angle | ||||
| x | x | float | pitch | pitch angle | ||||
| x | x | float | bank | bank angle | ||||
| x | x | float | fov | field of view | ||||
| x | int | ortho | ortho
|
|||||
| x | x | MQPoint | globalDirectionalLight | direction of light | ||||
| x | x | MQColor | globalAmbientColor | color of global ambient |
| Member | Description |
|---|---|
| getCameraPos | Get a position of the camera. |
| setCameraPos | Set a position of the camera. |
| getCameraAngle | Get an angle of the camera. |
| setCameraAngle | Set an angle of the camera. |
| getLookAtPos | Get a position that the camera looks at. |
| setLookAtPos | Set a position that the camera looks at. |
| getRotationCenter | Get a position of the rotation center of the camera. |
| setRotationCenter | Set a position of the rotation center of the camera. |
| getBackgroundImage | Get a filename of a background image. |
| setBackgroundImage | Set a filename of a background image. |
| getBackgroundImagePosition | Get a placement of a background image. |
| setBackgroundImagePosition | Get a placement of a background image. |
| getCameraPos | |||
Get a position of the camera. | |||
|
| setCameraPos(pos) | ||||
Set a position of the camera. | ||||
|
| getCameraAngle | |||
Get an angle of the camera. | |||
|
| setCameraAngle(angle) | ||||
Set an angle of the camera. | ||||
|
| getLookAtPos | |||
Get a position that the camera looks at. | |||
|
| setLookAtPos(pos) | ||||
Set a position that the camera looks at. | ||||
|
| getRotationCenter | |||
Get a position of the rotation center of the camera. | |||
|
| setRotationCenter(center) | ||||
Set a position of the rotation center of the camera. | ||||
|
| getBackgroundImage | |||
Get a filename of a background image. | |||
|
| setBackgroundImage(filename) | ||||
Set a filename of a background image. | ||||
| ||||
|
| getBackgroundImagePosition | |||
Get a placement of a background image. | |||
|
| setBackgroundImagePosition(list) | ||||
Get a placement of a background image. | ||||
| ||||
|