ASTGL
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)
    • ALSound
    • ALSoundSource
  • ILSystem (main image loading system)
    • ILImage
  • PhysSystem (main physics simulation system)
    • PhysBody
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:
    • CameraFPS
  • Objects:
    • ObjectMesh
...and other classes.
Hosted by uCoz