set return code from GUI::run()

This commit is contained in:
Josh Holtrop 2014-06-18 18:39:30 -04:00
parent b7e66e3031
commit c23ff6c0ac
3 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ namespace jes
glClearColor (0.0, 0.0, 0.0, 0.0);
}
void GUI::run()
int GUI::run()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
SDL_GL_SwapWindow(m_window);
@ -65,5 +65,7 @@ namespace jes
break;
}
}
return 0;
}
}

View File

@ -10,7 +10,7 @@ namespace jes
{
public:
GUI();
void run();
int run();
protected:
SDL_Window * m_window;
};

View File

@ -6,5 +6,5 @@ using namespace std;
int main(int argc, char *argv[])
{
jes::GUIRef gui = new jes::GUI();
gui->run();
return gui->run();
}