I couldn't find the ability to do it, so I added it in myself...
Within my app class, I added private var 'running' and the methods: 'Terminate' and 'IsRunning',
class app {
public:
unsigned int m_DeviceWidth;
unsigned int m_DeviceHeight;
private:
int running;
public:
app() {
memset(this, 0, sizeof(app));
running = 1;
}
void Begin(void);
void Loop(void);
void End(void);
void Terminate(void) { running = 0; }
int IsRunning(void) { return running; }
};
Within Core.mm I modified the loop condition...
From:
while (!done && glfwGetWindowParam(GLFW_OPENED))
To:
while (!done && glfwGetWindowParam(GLFW_OPENED) == GL_TRUE && App.IsRunning())
Then when I wish to exit, I just call Terminate on my App
Hope this helps,
Liam Goodacre