mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added overlay for future fps and stats display
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user