Class: Mittsu::PointLight::Cache

Inherits:
Struct
  • Object
show all
Defined in:
lib/mittsu/renderers/opengl/lights/point_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/point_light.rb', line 6

def initialize
  super(0, 0, [], [], [], [])
end

Instance Attribute Details

#colorsObject

Returns the value of attribute colors

Returns:

  • (Object)

    the current value of colors



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/point_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/point_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/point_light.rb', line 5

def decays
  @decays
end

#distancesObject

Returns the value of attribute distances

Returns:

  • (Object)

    the current value of distances



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

def distances
  @distances
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/point_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/point_light.rb', line 5

def positions
  @positions
end

Instance Method Details

#resetObject



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

def reset
  self.length = 0
end