Class: Mittsu::DirectionalLight::Cache
- Inherits:
-
Struct
- Object
- Struct
- Mittsu::DirectionalLight::Cache
- Defined in:
- lib/mittsu/renderers/opengl/lights/directional_light.rb
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
-
#count ⇒ Object
Returns the value of attribute count.
-
#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/directional_light.rb', line 6 def initialize super(0, 0, [], []) end |
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/directional_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/directional_light.rb', line 5 def count @count end |
#length ⇒ Object
Returns the value of attribute length
5 6 7 |
# File 'lib/mittsu/renderers/opengl/lights/directional_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/directional_light.rb', line 5 def positions @positions end |
Instance Method Details
#reset ⇒ Object
10 11 12 |
# File 'lib/mittsu/renderers/opengl/lights/directional_light.rb', line 10 def reset self.length = 0 end |