mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Ran rubocop autocorrect
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class IMICFPS
|
||||
module LightManager
|
||||
MAX_LIGHTS = OpenGL::GL_MAX_LIGHTS
|
||||
@@ -7,7 +8,7 @@ class IMICFPS
|
||||
@lights << model
|
||||
end
|
||||
|
||||
def find_light()
|
||||
def find_light
|
||||
end
|
||||
|
||||
def lights
|
||||
@@ -15,7 +16,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def light_count
|
||||
@lights.count+1
|
||||
@lights.count + 1
|
||||
end
|
||||
|
||||
def clear_lights
|
||||
@@ -24,6 +25,7 @@ class IMICFPS
|
||||
|
||||
def available_light
|
||||
raise "Using to many lights, #{light_count}/#{LightManager::MAX_LIGHTS}" if light_count > LightManager::MAX_LIGHTS
|
||||
|
||||
puts "OpenGL::GL_LIGHT#{light_count}" if $window.config.get(:debug_options, :stats)
|
||||
Object.const_get "OpenGL::GL_LIGHT#{light_count}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user