OpenGLContext.pygamecontext
index
p:\openglcontext\pygamecontext.py

Context functionality within the PyGame environment

 
Modules
            
OpenGLContext.events.pygameevents

 
Classes
            
Context
PygameContext(EventHandlerMixin, Context)
EventHandlerMixin(EventHandlerMixin)
PygameContext(EventHandlerMixin, Context)

 
class PygameContext(EventHandlerMixin, Context)
      Context sub-class providing basic API support under PyGame
 
Unlike most of the windowing APIs, PyGame requires you to write
an explicit event handler loop, we provide a default loop method
called MainLoop.
 
  
Background(self, mode=1) from Context
CallVirtual(self, name, *args, **namedarguments)
call a potentiall nondefined method
DoEventCascade(self) from EventHandlerMixin
Lights(self, mode=1) from Context
MainLoop(self)
Run indefinitely until program is quit
OnDraw(self, *arguments) from Context
OnInit(self) from Context
OnResize(self, *arguments) from Context
ProcessEvent(self, event) from EventHandlerMixin
PygameKeyDown(self, event) from EventHandlerMixin
PygameKeyUp(self, event) from EventHandlerMixin
PygameMouseButtonDown(self, event) from EventHandlerMixin
PygameMouseButtonUp(self, event) from EventHandlerMixin
PygameMouseMotion(self, event) from EventHandlerMixin
PygameQuit(self, event)
Return a value indicating that the MainLoop should exit
PygameVideoResize(self, event)
Handle the resize of the window
Render(self, mode=1) from Context
SwapBuffers(self)
flip opengl doublebuffers
ViewPort(self, width, height) from Context
Viewpoint(self, mode=1) from Context
__init__(self, title='Pygame Render Context', size=(300, 300))
addEventHandler(self, eventType, *arguments, **namedarguments) from EventHandlerMixin
addEventManager(self, eventType, manager=None) from EventHandlerMixin
addPickEvent(self, event) from Context
addTransparentObject(self, object) from Context
captureEvents(self, eventType, manager=None) from EventHandlerMixin
getEventManager(self, eventType) from EventHandlerMixin
getTimeManager(self) from EventHandlerMixin
getViewPort(self) from Context
initializeEventManagers(self) from EventHandlerMixin
setCurrent(self) from Context
setupCallbacks(self) from Context
setupDefaultEventCallbacks(self) from Context
shouldRedraw(self) from Context
suppressRedraw(self) from Context
triggerPick(self) from Context
triggerRedraw(self, force=0) from Context
unProject(self, x, y, z) from Context
unsetCurrent(self) from Context

 
Data
             __file__ = r'p:\OpenGLContext\pygamecontext.pyc'
__name__ = 'OpenGLContext.pygamecontext'