|
Tutorials :: Engine inside
AST_engine is based on 5 systems with classes depending from this system:
- SDLSystem (main window, timer and input system)
- GLSystem (main graphics system)
- GLTexture
- GLVBO
- GLShader
- GLDisplayList
- ALSystem (main audio system)
- ILSystem (main image loading system)
- PhysSystem (main physics simulation system)
Each system is created one time by the ASTEngine class.
The pointer to existing System can be recieved by calling:
GLSystem::get();
GLSystem::get()->clearColor(Vec4(0, 1, 0, 0));
|
ASTEngine class creates Scene and Config instances.
Scene and Config are created one time and can be got like Systems by calling ::get().
When everything is initialized, the scene can be filled with objects, players and effects using:
- Lights:
- LightOmni
- LightSpot
- LightAmbient
- Cameras:
- Objects:
...and other classes.
|