v_sim.GlLight

Fields

Name

Type

Access

Description

ambient

[float]

r/w

the ambient color of the light ;

diffuse

[float]

r/w

the diffuse color of the light ;

enabled

bool

r/w

if the light is used or not ;

multiplier

float

r/w

a value that multiply all color values (should be in [0;1]).

position

[float]

r/w

the position in space of the light ;

specular

[float]

r/w

the specular color of the light ;

Methods

class

newDefault ()

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. Use GLib.free() to deallocate this light.

Return type:

v_sim.GlLight

Create a new light with default value (white color and position in the front, right, top position of the screen).