pyGLV.GL.Scene

Scene classes

Singleton class to assemble pyECSS::ECSSManager and pyGLV::Viewer objects

class pyGLV.GL.Scene.Scene[source]

Singleton Scene that assembles ECSSManager and Viewer classes together for Scene authoring in pyglGA. It also brings together the new extensions to pyglGA: Shader, VertexArray and RenderMeshDecorators

init(sdl2=True, imgui=False, windowWidth=None, windowHeight=None, windowTitle=None, customImGUIdecorator=None, openGLversion=4)[source]

call the init() of all systems attached to this Scene based on the Visitor pattern

update()[source]

call the update() of all systems attached to this Scene based on the Visitor pattern

processInput()[source]

process the user input per frame based on Strategy and Decorator patterns

render(running: bool = True)bool[source]

call the render() of all systems attached to this Scene based on the Visitor pattern

run()[source]

main loop Scene method based on the “gameloop” game programming pattern

shutdown()[source]

main shutdown Scene method based on the “gameloop” game programming pattern