SWBF2-Classic-Msh-Viewer/MshViewer/main.cpp

31 lines
593 B
C++
Raw Normal View History

#ifndef _DEBUG
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
#endif // DEBUG
#include "OpenGLController.h"
int main(int argc, char** argv)
{
OpenGLController* scene = NULL;
if (argc == 3)
{
int major = atoi(argv[1]);
int minor = atoi(argv[2]);
scene = OpenGLController::getInstance(major, minor);
}
else
scene = OpenGLController::getInstance();
2016-12-02 12:00:38 +00:00
#ifdef _DEBUG
2016-12-03 12:39:57 +00:00
scene->loadMsh("..\\Release\\Msh\\triClothMan.msh");
2016-12-02 12:00:38 +00:00
#endif // DEBUG
do {
2016-09-08 09:36:57 +00:00
scene->updateScene();
} while (!glfwWindowShouldClose(scene->getWindow()));
delete scene;
return 0;
}