A CCCamera is used in every CCNode. More...
#include <CCCamera.h>
Public Member Functions | |
CCCamera (void) | |
ctor () | |
CCCamera () | |
~CCCamera (void) | |
void | init (void) |
local | init () |
const char * | description (void) |
void | setDirty (bool bValue) |
sets the dirty value More... | |
local | setDirty ( local bValue) |
sets the dirty value More... | |
bool | isDirty (void) |
get the dirty value More... | |
void | restore (void) |
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 (void) |
Sets the camera using gluLookAt using its eye, center and up_vector. More... | |
var | locate () |
Sets the camera using gluLookAt using its eye, center and up_vector. More... | |
local | locate () |
Sets the camera using gluLookAt using its eye, center and up_vector. More... | |
void | setEyeXYZ (float fEyeX, float fEyeY, float fEyeZ) |
sets the eye values in points More... | |
var | setEye ( var fEyeX, var fEyeY, var fEyeZ) |
sets the eye values in points More... | |
local | setEyeXYZ ( local fEyeX, local fEyeY, local fEyeZ) |
sets the eye values in points More... | |
void | setCenterXYZ (float fCenterX, float fCenterY, float fCenterZ) |
sets the center values in points More... | |
var | setCenter ( var fCenterX, var fCenterY, var fCenterZ) |
sets the center values in points More... | |
local | setCenterXYZ ( local fCenterX, local fCenterY, local fCenterZ) |
sets the center values in points More... | |
void | setUpXYZ (float fUpX, float fUpY, float fUpZ) |
sets the up values More... | |
var | setUp ( var fUpX, var fUpY, var fUpZ) |
sets the up values More... | |
local | setUpXYZ ( local fUpX, local fUpY, local fUpZ) |
sets the up values More... | |
void | getEyeXYZ (float *pEyeX, float *pEyeY, float *pEyeZ) |
get the eye vector values in points More... | |
local | getEyeXYZ ( local pEyeX, local pEyeY, local pEyeZ) |
get the eye vector values in points More... | |
void | getCenterXYZ (float *pCenterX, float *pCenterY, float *pCenterZ) |
get the center vector values int points More... | |
local | getCenterXYZ ( local pCenterX, local pCenterY, local pCenterZ) |
get the center vector values int points More... | |
void | getUpXYZ (float *pUpX, float *pUpY, float *pUpZ) |
get the up vector values More... | |
local | getUpXYZ ( local pUpX, local pUpY, local pUpZ) |
get the up vector values More... | |
Public Member Functions inherited from CCObject | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
Public Member Functions inherited from CCCopying | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static float | getZEye () |
returns the Z eye More... | |
Protected Attributes | |
float | m_fEyeX |
var | m_fEyeX |
local | m_fEyeX |
float | m_fEyeY |
var | m_fEyeY |
local | m_fEyeY |
float | m_fEyeZ |
var | m_fEyeZ |
local | m_fEyeZ |
float | m_fCenterX |
var | m_fCenterX |
local | m_fCenterX |
float | m_fCenterY |
var | m_fCenterY |
local | m_fCenterY |
float | m_fCenterZ |
var | m_fCenterZ |
local | m_fCenterZ |
float | m_fUpX |
var | m_fUpX |
local | m_fUpX |
float | m_fUpY |
var | m_fUpY |
local | m_fUpY |
float | m_fUpZ |
var | m_fUpZ |
local | m_fUpZ |
bool | m_bDirty |
var | m_bDirty |
local | m_bDirty |
kmMat4 | m_lookupMatrix |
var | m_lookupMatrix |
local | m_lookupMatrix |
Protected Attributes inherited from CCObject | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
unsigned int | m_uID |
int | m_nLuaID |
A CCCamera is used in every CCNode.
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:
CCCamera | ( | void | ) |
var ctor | ( | ) |
local CCCamera | ( | ) |
~CCCamera | ( | void | ) |
const char* description | ( | void | ) |
local description | ( | ) |
void getCenterXYZ | ( | float * | pCenterX, |
float * | pCenterY, | ||
float * | pCenterZ | ||
) |
get the center vector values int points
local getCenterXYZ | ( | local | pCenterX, |
local | pCenterY, | ||
local | pCenterZ | ||
) |
get the center vector values int points
void getEyeXYZ | ( | float * | pEyeX, |
float * | pEyeY, | ||
float * | pEyeZ | ||
) |
get the eye vector values in points
local getEyeXYZ | ( | local | pEyeX, |
local | pEyeY, | ||
local | pEyeZ | ||
) |
get the eye vector values in points
void getUpXYZ | ( | float * | pUpX, |
float * | pUpY, | ||
float * | pUpZ | ||
) |
get the up vector values
local getUpXYZ | ( | local | pUpX, |
local | pUpY, | ||
local | pUpZ | ||
) |
get the up vector values
|
static |
returns the Z eye
|
static |
returns the Z eye
|
static |
returns the Z eye
void init | ( | void | ) |
var init | ( | ) |
local init | ( | ) |
|
inline |
get the dirty value
|
inline |
get the dirty value
|
inline |
get the dirty value
void locate | ( | void | ) |
Sets the camera using gluLookAt using its eye, center and up_vector.
var locate | ( | ) |
Sets the camera using gluLookAt using its eye, center and up_vector.
local locate | ( | ) |
Sets the camera using gluLookAt using its eye, center and up_vector.
void restore | ( | void | ) |
sets the camera in the default position
var restore | ( | ) |
sets the camera in the default position
local restore | ( | ) |
sets the camera in the default position
void setCenterXYZ | ( | float | fCenterX, |
float | fCenterY, | ||
float | fCenterZ | ||
) |
sets the center values in points
var setCenter | ( | var | fCenterX, |
var | fCenterY, | ||
var | fCenterZ | ||
) |
sets the center values in points
local setCenterXYZ | ( | local | fCenterX, |
local | fCenterY, | ||
local | fCenterZ | ||
) |
sets the center values in points
|
inline |
sets the dirty value
|
inline |
sets the dirty value
|
inline |
sets the dirty value
void setEyeXYZ | ( | float | fEyeX, |
float | fEyeY, | ||
float | fEyeZ | ||
) |
sets the eye values in points
var setEye | ( | var | fEyeX, |
var | fEyeY, | ||
var | fEyeZ | ||
) |
sets the eye values in points
local setEyeXYZ | ( | local | fEyeX, |
local | fEyeY, | ||
local | fEyeZ | ||
) |
sets the eye values in points
void setUpXYZ | ( | float | fUpX, |
float | fUpY, | ||
float | fUpZ | ||
) |
sets the up values
var setUp | ( | var | fUpX, |
var | fUpY, | ||
var | fUpZ | ||
) |
sets the up values
local setUpXYZ | ( | local | fUpX, |
local | fUpY, | ||
local | fUpZ | ||
) |
sets the up values
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |