예제 #1
0
파일: main.cpp 프로젝트: tanzfisch/Igor
int main(int argc, char* argv[])
{

    Igor::startup();

    ModelViewer* example = new ModelViewer();
    if (argc >= 2)
    {
        example->run(argv[1]);
    }
    else
    {
        example->run("");
    }

    delete example;

    Igor::shutdown();

	return 0;
}
예제 #2
0
int main(int argc, char** argv)
{
    GLUTBackendInit(argc, argv);

    if (!GLUTBackendCreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, 32, false, "Model Viewer")) {
        return 1;
    }
    
    ModelViewer* app = new ModelViewer();

    if (!app->init()) {
        return 1;
    }
    srand((unsigned)time(NULL));
    
    app->run();
    delete app;
    return 0;
}