enrike wrote:
I don't really have any *simple* wxPython examples, my simplest example is dozens of times more complex than the one in the wxPython demo, as it uses OpenGLContext's wxContext (which does *far* more than the demo).hi all sorry this is a bit off topic i guess. i am trying out the glcanvas from wxPython to display openGL graphics but i cannot find some simple example or some tutorial about this especific issue. I tried out the example from wxpython demo but i am totally unable to extract the code from there and run it outside the demo application.
It's fairly similar, just event-driven instead of callback-driven. GLUT is a simpler environment all in all, with that being both a strength and a weakness.I have been learning opengl using a GLUT window and events and this seems to be different.
From OpenGLContext.wxcontext:So far I manage to create a frame with a ogl canvas inside and i can change the backg color but i cannot get much further .... also i dont understand how to init the glcanvas class as there is a parameter called 'attribList' but its not explained either on the wxWidgets help. Obviously once again i am doing sthg wrong :-)
I already asked in the wxpython list but they dont seem to be very interested on this.As a fraction of total users, OpenGL is a pretty small subset of the wxPython userbase. The PyOpenGL-users list is probably the correct venue for questions about wxPython's wxGLCanvas that aren't specifically related to the GUI library itself. I'm on the wxPython list, but I don't really have a "simple" wxPython demo available, so didn't post a response to your original message, hoping someone else would have one.