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