ASTGL
Tutorials :: ASTEngine init

When starting develop an application based on AST_engine, you`ll need to init ASTEngine first:

int main(int argc, char **argv)
{
ASTEngine *engine = ASTEngine::create();

Then you can load any resource.
We need to register 1 callback (like in GLUT or DXUT):

engine->eventsCallback(events);

eventsCallback - process input and other updates here
Now, when the engine is initialized, launch the main loop:

engine->mainLoop();

Dont forget to destroy the Engine:

delete engine;
}

Hosted by uCoz