Class: Fox::FXLight
- Inherits:
-
Object
- Object
- Fox::FXLight
- Defined in:
- rdoc-sources/FXGLViewer.rb
Overview
OpenGL Light Source
Instance Attribute Summary collapse
-
#ambient ⇒ Object
Ambient light color FXVec4f.
-
#c_attn ⇒ Object
Constant attenuation factor [Float].
-
#cutoff ⇒ Object
Spotlight cutoff angle [Float].
-
#diffuse ⇒ Object
Diffuse light color FXVec4f.
-
#direction ⇒ Object
Spot direction FXVec3f.
-
#exponent ⇒ Object
Spotlight exponent [Float].
-
#l_attn ⇒ Object
Linear attenuation factor [Float].
-
#position ⇒ Object
Light position FXVec4f.
-
#q_attn ⇒ Object
Quadratic attenuation factor [Float].
-
#specular ⇒ Object
Specular light color FXVec4f.
Instance Method Summary collapse
-
#initialize ⇒ FXLight
constructor
Returns an initialized FXLight instance.
Constructor Details
#initialize ⇒ FXLight
Returns an initialized FXLight instance
65 |
# File 'rdoc-sources/FXGLViewer.rb', line 65 def initialize; end |
Instance Attribute Details
#ambient ⇒ Object
Ambient light color Fox::FXVec4f
35 36 37 |
# File 'rdoc-sources/FXGLViewer.rb', line 35 def ambient @ambient end |
#c_attn ⇒ Object
Constant attenuation factor [Float]
56 57 58 |
# File 'rdoc-sources/FXGLViewer.rb', line 56 def c_attn @c_attn end |
#cutoff ⇒ Object
Spotlight cutoff angle [Float]
53 54 55 |
# File 'rdoc-sources/FXGLViewer.rb', line 53 def cutoff @cutoff end |
#diffuse ⇒ Object
Diffuse light color Fox::FXVec4f
38 39 40 |
# File 'rdoc-sources/FXGLViewer.rb', line 38 def diffuse @diffuse end |
#direction ⇒ Object
Spot direction Fox::FXVec3f
47 48 49 |
# File 'rdoc-sources/FXGLViewer.rb', line 47 def direction @direction end |
#exponent ⇒ Object
Spotlight exponent [Float]
50 51 52 |
# File 'rdoc-sources/FXGLViewer.rb', line 50 def exponent @exponent end |
#l_attn ⇒ Object
Linear attenuation factor [Float]
59 60 61 |
# File 'rdoc-sources/FXGLViewer.rb', line 59 def l_attn @l_attn end |
#position ⇒ Object
Light position Fox::FXVec4f
44 45 46 |
# File 'rdoc-sources/FXGLViewer.rb', line 44 def position @position end |
#q_attn ⇒ Object
Quadratic attenuation factor [Float]
62 63 64 |
# File 'rdoc-sources/FXGLViewer.rb', line 62 def q_attn @q_attn end |
#specular ⇒ Object
Specular light color Fox::FXVec4f
41 42 43 |
# File 'rdoc-sources/FXGLViewer.rb', line 41 def specular @specular end |