now you can set optional ogl version through the first 2 parameters

This commit is contained in:
Anakin
2016-11-01 14:16:18 +01:00
parent 9d35634c0c
commit bc518f58ee
4 changed files with 45 additions and 65 deletions

View File

@@ -9,6 +9,18 @@
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();
goto openGL;
try {
@@ -26,8 +38,6 @@ int main(int argc, char** argv)
openGL:
OpenGLController *scene = OpenGLController::getInstance();
scene->loadMsh("..\\Release\\Msh\\cubeTrans.msh");
do {