Class: Mittsu::SpotLight::Cache

Inherits:
Struct
  • Object
show all
Defined in:
lib/mittsu/renderers/opengl/lights/spot_light.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCache

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_cosObject

Returns the value of attribute angles_cos

Returns:

  • (Object)

    the current value of angles_cos



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def angles_cos
  @angles_cos
end

#colorsObject

Returns the value of attribute colors

Returns:

  • (Object)

    the current value of colors



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def colors
  @colors
end

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def count
  @count
end

#decaysObject

Returns the value of attribute decays

Returns:

  • (Object)

    the current value of decays



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def decays
  @decays
end

#directionsObject

Returns the value of attribute directions

Returns:

  • (Object)

    the current value of directions



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def directions
  @directions
end

#distancesObject

Returns the value of attribute distances

Returns:

  • (Object)

    the current value of distances



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def distances
  @distances
end

#exponentsObject

Returns the value of attribute exponents

Returns:

  • (Object)

    the current value of exponents



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def exponents
  @exponents
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def length
  @length
end

#positionsObject

Returns the value of attribute positions

Returns:

  • (Object)

    the current value of positions



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 5

def positions
  @positions
end

Instance Method Details

#resetObject



10
11
12
# File 'lib/mittsu/renderers/opengl/lights/spot_light.rb', line 10

def reset
  self.length = 0
end