mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Refactored lights, use light manager
This commit is contained in:
@@ -1,4 +1,25 @@
|
||||
class IMICFPS
|
||||
class LightManager
|
||||
MAX_LIGHTS = OpenGL::GL_MAX_LIGHTS
|
||||
LIGHTS = []
|
||||
|
||||
def self.add_light(model)
|
||||
LIGHTS << model
|
||||
end
|
||||
|
||||
def self.find_light()
|
||||
end
|
||||
|
||||
def self.lights
|
||||
LIGHTS
|
||||
end
|
||||
|
||||
def self.light_count
|
||||
LIGHTS.count+1
|
||||
end
|
||||
|
||||
def self.clear_lights
|
||||
LIGHTS.clear
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user