Difference between revisions of "GameTools gameSky"

From Wikiid
Jump to: navigation, search
(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...)
 
(No difference)

Latest revision as of 20:43, 23 October 2007

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 :
plb_to_ac3d, mklevel, mktile, mktree, tiled, autogen_java, mk3dgallery
gameTools - File Formats :
title_screen.rgb, ultimate.xml, material.xml, decoration.xml, physics.xml
tiled.xml, tiled_autotiles.xml, Level files, Tile naming scheme, PLB files
gameTools - Source Code :
Game functions: gameCamera, gameClock, gameChecksum/gameHashTable, gameHTTP,
gameIsect, gameJoystick, gameParticleManager, gameScreen/gameMouse,
gameSky, gameStarter, gameStrokeFont, gameUtils
Material database: MatList/MatEntry
Tile map handling: TileObject/MapFlag/MapEntry/Map
Java Interfacing: JavaLink
Image file loading: liImage/liImageFactory
3D Model file loading: loadPLB, PLB exporter
Physics: Sabot, Bullet, gameTools - Use with Blender, PLB exporter
Object management: Object


Wikiid Pages relating to Lemur of Lima (edit)
Lemur of Lima - Main page
Lemur of Lima - Controls
Lemur of Lima - Levels :
List of Levels, Level design, Screen shots, Models
Lemur of Lima - Java Plugins :
Java plugin API, Event handling, Flags, GameInterface API , Alphabetical Index
Lemur of Lima - Source Code Documentation :
Initialisation, Main Loop, gameTools