set return code from GUI::run()

This commit is contained in:
josh committed 2014-06-18 18:39:30 -04:00
1 parent b7e66e3031
commit c23ff6c0ac
3 files changed
+5 -3

No files matched your search

+3 -1
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;
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace jes
{
public:
GUI();
void run();
int run();
protected:
SDL_Window * m_window;
};
+1 -1
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();
}