|
| | Camera () |
| | ctor () |
| | Camera () |
| | ~Camera () |
| void | init () |
| var | init () |
| local | init () |
| const char * | description () const |
| void | setDirty (bool value) |
| | sets the dirty value More...
|
| |
| var | setDirty ( var value) |
| | sets the dirty value More...
|
| |
| local | setDirty ( local value) |
| | sets the dirty value More...
|
| |
| bool | isDirty () const |
| | get the dirty value More...
|
| |
| void | restore () |
| | sets the camera in the default position More...
|
| |
| var | restore () |
| | sets the camera in the default position More...
|
| |
| local | restore () |
| | sets the camera in the default position More...
|
| |
| void | locate () |
| | Sets the camera using gluLookAt using its eye, center and up_vector. More...
|
| |
| void | setEye (float eyeX, float eyeY, float eyeZ) |
| | sets the eye values in points More...
|
| |
| var | setEye ( var eyeX, var eyeY, var eyeZ) |
| | sets the eye values in points More...
|
| |
| local | setEye ( local eyeX, local eyeY, local eyeZ) |
| | sets the eye values in points More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | setEyeXYZ (float eyeX, float eyeY, float eyeZ) |
| void | setCenter (float centerX, float centerY, float centerZ) |
| | sets the center values in points More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | setCenterXYZ (float centerX, float centerY, float centerZ) |
| void | setUp (float upX, float upY, float upZ) |
| | sets the up values More...
|
| |
| var | setUp ( var upX, var upY, var upZ) |
| | sets the up values More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | setUpXYZ (float upX, float upY, float upZ) |
| void | getEye (float *eyeX, float *eyeY, float *eyeZ) const |
| | get the eye vector values in points More...
|
| |
| var | getEye ( var eyeX, var eyeY, var eyeZ) |
| | get the eye vector values in points More...
|
| |
| local | getEye ( local eyeX, local eyeY, local eyeZ) |
| | get the eye vector values in points More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | getEyeXYZ (float *eyeX, float *eyeY, float *eyeZ) const |
| void | getCenter (float *centerX, float *centerY, float *centerZ) const |
| | get the center vector values int points when this function bound to js or lua,the input params are changed in js: var getCenter() in lua:local getCenter() More...
|
| |
| var | getCenter ( var centerX, var centerY, var centerZ) |
| | get the center vector values int points when this function bound to js or lua,the input params are changed in js: var getCenter() in lua:local getCenter() More...
|
| |
| local | getCenter ( local centerX, local centerY, local centerZ) |
| | get the center vector values int points when this function bound to js or lua,the input params are changed in js: var getCenter() in lua:local getCenter() More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | getCenterXYZ (float *centerX, float *centerY, float *centerZ) const |
| void | getUp (float *upX, float *upY, float *upZ) const |
| | get the up vector values when this function bound to js or lua,the input params are changed in js: var getUp() in lua:local getUp() More...
|
| |
| var | getUp ( var upX, var upY, var upZ) |
| | get the up vector values when this function bound to js or lua,the input params are changed in js: var getUp() in lua:local getUp() More...
|
| |
| local | getUp ( local upX, local upY, local upZ) |
| | get the up vector values when this function bound to js or lua,the input params are changed in js: var getUp() in lua:local getUp() More...
|
| |
| CC_DEPRECATED_ATTRIBUTE void | getUpXYZ (float *upX, float *upY, float *upZ) const |
| | Object () |
| | Constructor. More...
|
| |
| virtual | ~Object () |
| void | release () |
| | Release the ownership immediately. More...
|
| |
| void | retain () |
| | Retains the ownership. More...
|
| |
| Object * | autorelease () |
| | Release the ownership sometime soon automatically. More...
|
| |
| bool | isSingleReference () const |
| | Returns a boolean value that indicates whether there is only one reference to the object. More...
|
| |
| unsigned int | retainCount () const |
| | Returns the object's current reference count. More...
|
| |
| virtual bool | isEqual (const Object *object) |
| | Returns a boolean value that indicates whether this object and a given object are equal. More...
|
| |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
A Camera is used in every Node.
Useful to look at the object from different views. The OpenGL gluLookAt() function is used to locate the camera.
If the object is transformed by any of the scale, rotation or position attributes, then they will override the camera.
IMPORTANT: Either your use the camera or the rotation/scale/position properties. You can't use both. World coordinates won't work if you use the camera.
Limitations:
- Some nodes, like ParallaxNode, Particle uses world node coordinates, and they won't work properly if you move them (or any of their ancestors) using the camera.
- It doesn't work on batched nodes like Sprite objects when they are parented to a SpriteBatchNode object.
- It is recommended to use it ONLY if you are going to create 3D effects. For 2D effects, use the action Follow or position/scale/rotate.