I've been trying to get PyUI2 working with GLUT and I'm not having too much success. I'm not particularly familiar with GLUT, having never really used it, so I was wondering if anyone here has any ideas.
At this stage PyUI2 fires up okay. The window is created and all the graphics render and the main loop appears to be working. The problem is that GLUT is not receiving or processing any system events. The following code initialises GLUT:
def __init__(self, width, height, fullscreen):
self.size = (width, height)
self.fullscreen = fullscreen
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
glutGameModeString("%dx%d:32@70" % self.size )
self.windowID = glutEnterGameMode()
self.windowID = glutCreateWindow("")
self.graphicsDevice = OpenGLGraphics(self.size)
When I click the mouse on the screen I expect to see the onMouse function called, and when I move the mouse over, I expect to see the onMotion function called. This isn't happening.
Anyone have any ideas?
The full code is in CVS under the system folder. Let me know if you need more info.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.