Class: LightData
- Inherits:
-
Struct
- Object
- Struct
- LightData
- Defined in:
- lib/belts_opengl/components/light_data.rb
Instance Attribute Summary collapse
-
#light_type ⇒ Object
Returns the value of attribute light_type.
Instance Method Summary collapse
Instance Attribute Details
#light_type ⇒ Object
Returns the value of attribute light_type
1 2 3 |
# File 'lib/belts_opengl/components/light_data.rb', line 1 def light_type @light_type end |
Instance Method Details
#ambient? ⇒ Boolean
4 |
# File 'lib/belts_opengl/components/light_data.rb', line 4 def ambient? = light_type == :ambient |
#directional? ⇒ Boolean
2 |
# File 'lib/belts_opengl/components/light_data.rb', line 2 def directional? = light_type == :directional |
#point? ⇒ Boolean
3 |
# File 'lib/belts_opengl/components/light_data.rb', line 3 def point? = light_type == :point |