GameTools gameCamera
From Wikiid
Revision as of 20:31, 23 October 2007 by SteveBaker (Talk | contribs) (New page: Makes driving the PLIB camera a little less painful. The camera supports two modes: ; CAMERA_FOLLOW_MODE : The camera follows along behind the object. ; CAMERA_TRACK_MODE : The camer...)
Makes driving the PLIB camera a little less painful.
The camera supports two modes:
- CAMERA_FOLLOW_MODE
- The camera follows along behind the object.
- CAMERA_TRACK_MODE
- The camera stays in one position and tracks the object.
After creating a gameCamera object, one may call gameCamera::getMode() to get the current camera mode, gameCamera::setMode(mode) to set it or gameCamera::toggleMode() to cycle through the availabel modes.
class Camera { Camera ( int pos = 0 ) ; int getMode () ; void toggleMode () ; void setClipRanges( float near, float far ) ; void setHeight ( float _height ) ; void setRange ( float _range ) ; void setDirection ( float _direction ) ; void setTarget ( sgCoord *pos ) ; void setTarget ( ssgTransform *_trackTarget ) ; const sgCoord *getPosition () { return & final ; } void update () ; void apply () ; } ;
At the start of the run, you must call initCamera() and updateCamera() must be called every frame.
void initCamera () ; void updateCamera () ; Camera *getCamera ( int which = 0 ) ; void setNumScreenSplits ( int numSplits ) ;
Wikiid Pages relating to gameTools (edit) |
gameTools - Main page |
gameTools - Support Tools : |
gameTools - File Formats : |
gameTools - Source Code :
|
Wikiid Pages relating to Lemur of Lima (edit) |
Lemur of Lima - Main page |
Lemur of Lima - Controls |
Lemur of Lima - Levels : |
Lemur of Lima - Java Plugins : |
Lemur of Lima - Source Code Documentation : |