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