Beispiel #1
0
 def getModeFlags(self):
     return PygameViewport.getModeFlags(self) | pygame.OPENGL
Beispiel #2
0
 def onResize(self):
     """Before setting our display mode, set up any OpenGL attributes we need"""
     PygameViewport.onResize(self)
     if not self.parent:
         self.setGLAttributes()
Beispiel #3
0
 def onFinishFrame(self):
     self.mode.finishFrame()
     PygameViewport.onFinishFrame(self)