now you can set optional ogl version through the first 2 parameters
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user