lib/cyberarm_engine/opengl/renderer/renderer.rb in cyberarm_engine-0.20.0 vs lib/cyberarm_engine/opengl/renderer/renderer.rb in cyberarm_engine-0.21.0

- old
+ new

@@ -2,10 +2,10 @@ class Renderer attr_reader :opengl_renderer, :bounding_box_renderer 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) @opengl_renderer.render(camera, lights, entities) @bounding_box_renderer.render(entities) if @show_bounding_boxes