tweak demo a bit and add 'exit' to X11 window
This commit is contained in:
@@ -49,7 +49,8 @@ struct InternalData2
|
||||
|
||||
|
||||
X11OpenGLWindow::X11OpenGLWindow()
|
||||
:m_OpenGLInitialized(false)
|
||||
:m_OpenGLInitialized(false),
|
||||
m_requestedExit(false)
|
||||
{
|
||||
m_data = new InternalData2;
|
||||
}
|
||||
@@ -371,12 +372,12 @@ float X11OpenGLWindow::getTimeInSeconds()
|
||||
|
||||
bool X11OpenGLWindow::requestedExit() const
|
||||
{
|
||||
return false;
|
||||
return m_requestedExit;
|
||||
}
|
||||
|
||||
void X11OpenGLWindow::setRequestExit()
|
||||
{
|
||||
|
||||
m_requestedExit=true;
|
||||
}
|
||||
|
||||
void X11OpenGLWindow::setRenderCallback( b3RenderCallback renderCallback)
|
||||
|
||||
@@ -10,6 +10,7 @@ class X11OpenGLWindow : public b3gWindowInterface
|
||||
|
||||
struct InternalData2* m_data;
|
||||
bool m_OpenGLInitialized;
|
||||
bool m_requestedExit;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user