set return code from GUI::run()
This commit is contained in:
parent
b7e66e3031
commit
c23ff6c0ac
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace jes
|
||||
{
|
||||
public:
|
||||
GUI();
|
||||
void run();
|
||||
int run();
|
||||
protected:
|
||||
SDL_Window * m_window;
|
||||
};
|
||||
|
@ -6,5 +6,5 @@ using namespace std;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
jes::GUIRef gui = new jes::GUI();
|
||||
gui->run();
|
||||
return gui->run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user