Camera Class Reference

#import <Camera.h>

List of all members.

Public Member Functions

(void) - restore
(void) - locate
(void) - setEyeX:eyeY:eyeZ:
(void) - setCenterX:centerY:centerZ:
(void) - setUpX:upY:upZ:
(void) - eyeX:eyeY:eyeZ:
(void) - centerX:centerY:centerZ:
(void) - upX:upY:upZ:

Static Public Member Functions

(float) + getZEye


Detailed Description

A Camera is 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.


Member Function Documentation

- (void) centerX: (float *)  x
centerY: (float *)  y
centerZ: (float *)  z 

get the center vector values

- (void) eyeX: (float *)  x
eyeY: (float *)  y
eyeZ: (float *)  z 

get the eye vector values

+ (float) getZEye  

returns the Z eye

- (void) locate  

Sets the camera using gluLookAt using its eye, center and up_vector

- (void) restore  

sets the camera in the defaul position

- (void) setCenterX: (float)  x
centerY: (float)  y
centerZ: (float)  z 

sets the center values

- (void) setEyeX: (float)  x
eyeY: (float)  y
eyeZ: (float)  z 

sets the eye values

- (void) setUpX: (float)  x
upY: (float)  y
upZ: (float)  z 

sets the up values

- (void) upX: (float *)  x
upY: (float *)  y
upZ: (float *)  z 

get the up vector values


The documentation for this class was generated from the following file:

Generated on Tue Jun 9 10:39:30 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8