>2011/4/8 Diederick C. Niehorster <dcnieho@...>
>2. set options
>3. open first window
>4. use, optionally opening and closes some extra windows
>5. last window was closed. As part of the return from the main loop,
>glut is deinitialized
>So now, if you want to interact with FreeGLUT again, you'll have to
>initialize through calling glutInit again, before you call any other
>glut function, as John said.
That's what I am doing. I do call glutInit the second time, as I am calling
example.main() after closing my first window. Why doesn't python call it
when I ask him to do so ?
>I frankly don't see how the close callback is relevant here, i believe
>it is used to catch the close event and thus abort actually closing
>the window--when you don't want people to be able to close your window
>with the X.
Or perhaps if you want something special to happen when you close the window
(write to a file, open another window ...) ? I thought I could destroy the
window by myself manually in there but I never managed to get it to work ...
>2011/4/8 Chris Marshall <chm@...>
>Does it make a difference if you set up the Display
>and Close callbacks before you call glutCreateWindow?
You can't do that, because there is no context :
OpenGL.error.Error: Attempt to retrieve context when no valid context
Get latest updates about Open Source Projects, Conferences and News.