Added overlay for future fps and stats display

This commit is contained in:
2020-05-02 17:34:19 -05:00
parent 27de5667be
commit 9593d341bf
7 changed files with 68 additions and 9 deletions

View File

@@ -14,7 +14,6 @@ class IMICFPS
@lights = []
@collision_manager = CollisionManager.new(map: self)
@renderer = window.renderer
Publisher.new
end
@@ -54,7 +53,7 @@ class IMICFPS
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) # clear the screen and the depth buffer
gl_error?
@renderer.draw(camera, @lights, @entities)
window.renderer.draw(camera, @lights, @entities)
end
end