Elements.pyGLV.GUI.Viewer.SDL2Window¶
- class Elements.pyGLV.GUI.Viewer.SDL2Window(windowWidth=None, windowHeight=None, windowTitle=None, scene=None, eventManager=None, openGLversion=4)[source]¶
The concrete subclass of RenderWindow for the SDL2 GUI API
- Parameters
RenderWindow ([type]) – [description]
- __init__(windowWidth=None, windowHeight=None, windowTitle=None, scene=None, eventManager=None, openGLversion=4)[source]¶
Constructor SDL2Window for basic SDL2 parameters
- Parameters
windowWidth ([type], optional) – [description], defaults to None
windowHeight ([type], optional) – [description], defaults to None
windowTitle ([type], optional) – [description], defaults to None
Methods
__init__([windowWidth, windowHeight, …])Constructor SDL2Window for basic SDL2 parameters
accept(system[, event])Accepts a class object to operate on the RenderWindow, based on the Visitor pattern.
display()Main display window method to be called standalone or from within a concrete Decorator
display_post()To be called at the end of each drawn frame to swap double buffers
event_input_process([running])process SDL2 basic events and input
getClassName()init()Initialise an SDL2 RenderWindow, not directly but via the SDL2Decorator
init_post()Post init method for SDL2 this should be ctypiically alled AFTER all other GL contexts have been created
shutdown()Shutdown and cleanup SDL2 operations
Attributes
eventManagerGet RenderWindow’s eventManager
gContextgWindowsceneGet RenderWindow’s Scene reference