| Trees | Indices | Toggle frames |
|---|
object --+
|
Camera
Camera used in every CocosNode. 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.
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
|
|
get_z_eye(cls)
Returns the best distance for the camera for the current window size
|
|
|
restore(self)
Restore the camera to the initial position
and sets it's dirty attribute in False and once in true.
|
|
|
locate(self,
force=False)
Sets the camera using gluLookAt using its eye, center and up_vector
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
Inherited from object:
__class__
|
|
dirty
whether or not the camera is 'dirty'
It is dirty if it is not in the original position
|
|
|
once
optimization.
|
eye = property(_get_eye, _set_eye, doc= '''Eye of the camera i
|
|
center = property(_get_center, _set_center, doc= '''Center of
|
|
up_vector = property(_get_up_vector, _set_up_vector, doc= '''U
|
Returns the best distance for the camera for the current window size
cocos2d uses a Filed Of View (fov) of 60
Restore the camera to the initial position and sets it's dirty attribute in False and once in true.
If you use the camera, for a while and you want to stop using it call this method.
property(_get_eye, _set_eye, doc= '''Eye of the camera in x,y,z coordi |
property(_get_center, _set_center, doc= '''Center of the camera in x,y |
property(_get_up_vector, _set_up_vector, doc= '''Up vector of the came |
| Trees | Indices | Toggle frames |
|---|
| Generated by Epydoc 3.0beta1 on Sat Sep 6 13:21:11 2008 | http://epydoc.sourceforge.net |