mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Progress towards modern gl made
This commit is contained in:
@@ -13,7 +13,7 @@ class IMICFPS
|
||||
@lights = []
|
||||
|
||||
@collision_manager = CollisionManager.new(map: self)
|
||||
@renderer = Renderer.new(map: self)
|
||||
@renderer = Renderer.new
|
||||
Publisher.new
|
||||
end
|
||||
|
||||
@@ -55,12 +55,7 @@ class IMICFPS
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) # clear the screen and the depth buffer
|
||||
glError?
|
||||
|
||||
@lights.each(&:draw)
|
||||
|
||||
camera.draw
|
||||
glEnable(GL_DEPTH_TEST)
|
||||
|
||||
@renderer.draw
|
||||
@renderer.draw(camera, @lights, @entities)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user