Elements.pyGLV.GL.Scene.Scene¶
- class Elements.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
Methods
__init__()Initialize self.
init([sdl2, imgui, windowWidth, …])call the init() of all systems attached to this Scene based on the Visitor pattern
processInput()process the user input per frame based on Strategy and Decorator patterns
render()call the render() of all systems attached to this Scene based on the Visitor pattern
render_post()run()main loop Scene method based on the “gameloop” game programming pattern
shutdown()main shutdown Scene method based on the “gameloop” game programming pattern
update()call the update() of all systems attached to this Scene based on the Visitor pattern
Attributes
gContextrenderWindowworld