Class GLGE.Camera
Extends
GLGE.Animatable, GLGE.Placeable.
Creates a new camera object
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
Method gets the current projection matrix of this camera
|
|
Method generates the cameras view matrix
|
|
setProjectionMatrix(projection)
Method generates the projection matrix based on the
camera paramaters
|
|
Method generates the cameras view matrix
|
- Methods borrowed from class GLGE.Animatable:
- animate, getAnimation, getFrameRate, setAnimation, setFrameRate
- Methods borrowed from class GLGE.Placeable:
- getDLocX, getDLocY, getDLocZ, getDRotX, getDRotY, getDRotZ, getDScaleX, getDScaleY, getDScaleZ, getLocX, getLocY, getLocZ, getModelMatrix, getPosition, getRotation, getRotMatrix, getRotX, getRotY, getRotZ, getSacleY, getScale, getScaleX, getScaleZ, setDLoc, setDLocX, setDLocY, setDLocZ, setDRot, setDRotX, setDRotY, setDRotZ, setDScale, setDScaleX, setDScaleY, setDScaleZ, setLoc, setLocX, setLocY, setLocZ, setRot, setRotX, setRotY, setRotZ, setScale, setScaleX, setScaleY, setScaleZ
Method Detail
{Matrix}
getProjectionMatrix()
Method gets the current projection matrix of this camera
- Returns:
- {Matrix} Returns the camera projection matrix
{Matrix}
getViewMatrix()
Method generates the cameras view matrix
- Returns:
- Returns the view matrix based on this camera
setProjectionMatrix(projection)
Method generates the projection matrix based on the
camera paramaters
- Parameters:
- {Matrix} projection
- The new projection matrix
{Matrix}
updateMatrix()
Method generates the cameras view matrix
- Returns:
- Returns the view matrix based on this camera