Exemplo n.º 1
0
int main(void){
    MyApplication app;
    app.startUp();
    while( app.keepRunning() ){
        app.renderOneFrame();
    }
    return 0;
}
Exemplo n.º 2
0
int main(void) {
	MyApplication app;
	// Load up the application resources and stuff :)
	app.startUp();

	//  Start the rendering loop
	while (app.keepRunning()) {
		app.renderOneFrame();
	}

	return 0;
}
Exemplo n.º 3
0
int main(void)
{
	MyApplication* app = new MyApplication();
	app->startup();

	MyFrameListener* listener = new MyFrameListener( app->mWindow, app->mLeftCamera, app->mRightCamera, app->mLeftViewport, app->mRightViewport, app->_SinbadNode, app->_SinbadEnt );
	listener->setParent( app );
	app->_root->addFrameListener( listener );

	while( app->keepRunning() )
	{
		app->renderOneFrame();
	}

	delete app;
	delete listener;

	return 0;
}