Added all the callbacks to Window and GameState, removed all but one usage of global variables ().

This commit is contained in:
2022-06-05 09:19:30 -05:00
parent 0a62e5180a
commit ca73a2d8e8
11 changed files with 178 additions and 97 deletions

View File

@@ -4,7 +4,7 @@ module CyberarmEngine
def initialize
@bounding_box_renderer = BoundingBoxRenderer.new
@opengl_renderer = OpenGLRenderer.new(width: $window.width, height: $window.height)
@opengl_renderer = OpenGLRenderer.new(width: CyberarmEngine::Window.instance.width, height: CyberarmEngine::Window.instance.height)
end
def draw(camera, lights, entities)