Code: Select all
int main(int argc, char *argv[]) {
int fps, lastfps = 0, lasttick = 0;
engine = CAnarkhiaEngine::CreateInstance();
engine->Initialise(&Draw);
engine->GetConsole()->AddConsoleCommand(cmds[0]);
engine->GetConsole()->AddConsoleCommand(cmds[1]);
while (engine->Run()) {
fps = engine->GetFPS();
if (fps != lastfps) {
str = fps;
str += " FPS";
lastfps = fps;
}
if (engine->GetTime() > lasttick + 10)
lasttick = engine->GetTime();
}
CAnarkhiaEngine::DestroyInstance();
return 0;
}