Class: Mittsu::SpotLight::Cache
- Inherits:
-
Struct
- Object
- Struct
- Mittsu::SpotLight::Cache
- Defined in:
- lib/mittsu/renderers/opengl/lights/spot_light.rb
Instance Attribute Summary collapse
-
#angles_cos ⇒ Object
Returns the value of attribute angles_cos.
-
#colors ⇒ Object
Returns the value of attribute colors.
-
#count ⇒ Object
Returns the value of attribute count.
-
#decays ⇒ Object
Returns the value of attribute decays.
-
#directions ⇒ Object
Returns the value of attribute directions.
-
#distances ⇒ Object
Returns the value of attribute distances.
-
#exponents ⇒ Object
Returns the value of attribute exponents.
-
#length ⇒ Object
Returns the value of attribute length.
-
#positions ⇒ Object
Returns the value of attribute positions.
Instance Method Summary collapse
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Cache
Returns a new instance of Cache.
6 7 8 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 6 def initialize super(0, 0, [], [], [], [], [], [], []) end |
Instance Attribute Details
#angles_cos ⇒ Object
Returns the value of attribute angles_cos
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def angles_cos @angles_cos end |
#colors ⇒ Object
Returns the value of attribute colors
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def colors @colors end |
#count ⇒ Object
Returns the value of attribute count
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def count @count end |
#decays ⇒ Object
Returns the value of attribute decays
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def decays @decays end |
#directions ⇒ Object
Returns the value of attribute directions
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def directions @directions end |
#distances ⇒ Object
Returns the value of attribute distances
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def distances @distances end |
#exponents ⇒ Object
Returns the value of attribute exponents
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def exponents @exponents end |
#length ⇒ Object
Returns the value of attribute length
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def length @length end |
#positions ⇒ Object
Returns the value of attribute positions
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5 def positions @positions end |
Instance Method Details
#reset ⇒ Object
10 11 12 |
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 10 def reset self.length = 0 end |