Class: Fox::FXLight

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXGLViewer.rb

Overview

OpenGL Light Source

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFXLight

Returns an initialized FXLight instance



65
# File 'rdoc-sources/FXGLViewer.rb', line 65

def initialize; end

Instance Attribute Details

#ambientObject

Ambient light color Fox::FXVec4f



35
36
37
# File 'rdoc-sources/FXGLViewer.rb', line 35

def ambient
  @ambient
end

#c_attnObject

Constant attenuation factor [Float]



56
57
58
# File 'rdoc-sources/FXGLViewer.rb', line 56

def c_attn
  @c_attn
end

#cutoffObject

Spotlight cutoff angle [Float]



53
54
55
# File 'rdoc-sources/FXGLViewer.rb', line 53

def cutoff
  @cutoff
end

#diffuseObject

Diffuse light color Fox::FXVec4f



38
39
40
# File 'rdoc-sources/FXGLViewer.rb', line 38

def diffuse
  @diffuse
end

#directionObject

Spot direction Fox::FXVec3f



47
48
49
# File 'rdoc-sources/FXGLViewer.rb', line 47

def direction
  @direction
end

#exponentObject

Spotlight exponent [Float]



50
51
52
# File 'rdoc-sources/FXGLViewer.rb', line 50

def exponent
  @exponent
end

#l_attnObject

Linear attenuation factor [Float]



59
60
61
# File 'rdoc-sources/FXGLViewer.rb', line 59

def l_attn
  @l_attn
end

#positionObject

Light position Fox::FXVec4f



44
45
46
# File 'rdoc-sources/FXGLViewer.rb', line 44

def position
  @position
end

#q_attnObject

Quadratic attenuation factor [Float]



62
63
64
# File 'rdoc-sources/FXGLViewer.rb', line 62

def q_attn
  @q_attn
end

#specularObject

Specular light color Fox::FXVec4f



41
42
43
# File 'rdoc-sources/FXGLViewer.rb', line 41

def specular
  @specular
end