Class: LightData

Inherits:
Struct
  • Object
show all
Defined in:
lib/belts_opengl/components/light_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#light_typeObject

Returns the value of attribute light_type

Returns:

  • (Object)

    the current value of light_type



1
2
3
# File 'lib/belts_opengl/components/light_data.rb', line 1

def light_type
  @light_type
end

Instance Method Details

#ambient?Boolean

Returns:

  • (Boolean)


4
# File 'lib/belts_opengl/components/light_data.rb', line 4

def ambient? = light_type == :ambient

#directional?Boolean

Returns:

  • (Boolean)


2
# File 'lib/belts_opengl/components/light_data.rb', line 2

def directional? = light_type == :directional

#point?Boolean

Returns:

  • (Boolean)


3
# File 'lib/belts_opengl/components/light_data.rb', line 3

def point? = light_type == :point