int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR test, int) { App app; app.MainLoop(); return 0; }
int main (int argc, char *argv[]) { App app; if (!app.InitApp()) { ShowError (GetError ()); return 1; } app.MainLoop(); app.Cleanup(); return 0; }
int main(int argc, char *argv[]) { App app; app.Initialize(argc, argv); Controller *controller = new Controller(); app.SetController(controller); Scene *scene = new Scene(); controller->SetScene(scene); Layer *layer = new Layer(); scene->AddLayer(layer); GameObject *go = new GameObject(); go->LoadTexture("../helloworld/helloworld.png"); AddComponent<TestComp>(go); layer->AddChild(go); return app.MainLoop(); }