GameTools gameSky
From Wikiid
Revision as of 20:43, 23 October 2007 by SteveBaker (Talk | contribs) (New page: On startup, you must call ''initSky'' with the names of textures to use for sun, moon and clouds: void initSky ( const char *sunTex = NULL, const char *moonTe...)
On startup, you must call initSky with the names of textures to use for sun, moon and clouds:
void initSky ( const char *sunTex = NULL, const char *moonTex = NULL, const char *cloudTex = NULL ) ;
Each frame call updateSky to have the sun track across the sky, etc. After clearing the screen - but before drawing your 3D world, call preDrawSky() with the time elapsed since last frame and the position of the camera. After drawing the 3D world, but before swapping buffers, you must call postDrawSky():
void updateSky () ; void preDrawSky ( double dt, const sgCoord *cameraPosition ) ; void postDrawSky () ;
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 : |