v_sim.GlLight¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
ambient  | 
[  | 
r/w  | 
the ambient color of the light ;  | 
diffuse  | 
[  | 
r/w  | 
the diffuse color of the light ;  | 
enabled  | 
r/w  | 
if the light is used or not ;  | 
|
multiplier  | 
r/w  | 
a value that multiply all color values (should be in [0;1]).  | 
|
position  | 
[  | 
r/w  | 
the position in space of the light ;  | 
specular  | 
[  | 
r/w  | 
the specular color of the light ;  | 
Methods¶
class  | 
  | 
Details¶
- class v_sim.GlLight¶
 This structure is convenient to store lights as defined by OpenGL.
- classmethod newDefault()¶
 - Returns:
 the newly created
v_sim.GlLight. UseGLib.free() to deallocate this light.- Return type:
 
Create a new light with default value (white color and position in the front, right, top position of the screen).