home
wiki
classes/clusters list
class information
+
Point of view
ANY
ANY
INTERNALS_HANDLER
All features
class LIGHT
Summary
top
Direct parents
insert list:
OPENGL
Overview
top
creation features
make
(id:
INTEGER_32
)
make_with_colors
(id:
INTEGER_32
, a:
GL_COLOR
, d:
GL_COLOR
, s:
GL_COLOR
)
exported features
make
(id:
INTEGER_32
)
make_with_colors
(id:
INTEGER_32
, a:
GL_COLOR
, d:
GL_COLOR
, s:
GL_COLOR
)
set_ambient
(a:
GL_COLOR
)
set_diffuse
(d:
GL_COLOR
)
set_specular
(s:
GL_COLOR
)
light_id
:
INTEGER_32
select_light
(id:
INTEGER_32
)
ambient
:
GL_COLOR
diffuse
:
GL_COLOR
specular
:
GL_COLOR
set_directional
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
set_spot_position
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
set_spot_direction
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
is_directional
:
BOOLEAN
is_spot
:
BOOLEAN
render
cutoff
:
REAL_64
set_cutoff
(co:
REAL_64
)
exponent
:
REAL_64
set_exponent
(exp:
REAL_64
)
constant_attenuation
:
REAL_64
set_constant_attenuation
(att:
REAL_64
)
linear_attenuation
:
REAL_64
set_linear_attenuation
(att:
REAL_64
)
quadratic_attenuation
:
REAL_64
set_quadratic_attenuation
(att:
REAL_64
)
make
(id:
INTEGER_32
)
effective procedure
top
make_with_colors
(id:
INTEGER_32
, a:
GL_COLOR
, d:
GL_COLOR
, s:
GL_COLOR
)
effective procedure
top
set_ambient
(a:
GL_COLOR
)
effective procedure
top
require
a /= Void
ensure
ambient
= a
set_diffuse
(d:
GL_COLOR
)
effective procedure
top
require
d /= Void
ensure
diffuse
= d
set_specular
(s:
GL_COLOR
)
effective procedure
top
require
s /= Void
ensure
specular
= s
light_id
:
INTEGER_32
writable attribute
top
select_light
(id:
INTEGER_32
)
effective procedure
top
ensure
light_id
= id
ambient
:
GL_COLOR
writable attribute
top
diffuse
:
GL_COLOR
writable attribute
top
specular
:
GL_COLOR
writable attribute
top
set_directional
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
effective procedure
top
ensure
is_directional
set_spot_position
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
effective procedure
top
ensure
is_spot
set_spot_direction
(x:
REAL_64
, y:
REAL_64
, z:
REAL_64
)
effective procedure
top
require
is_spot
is_directional
:
BOOLEAN
effective function
top
is_spot
:
BOOLEAN
effective function
top
render
effective procedure
top
cutoff
:
REAL_64
effective function
top
require
is_spot
ensure
Result.in_range(0, 180)
set_cutoff
(co:
REAL_64
)
effective procedure
top
require
is_spot
co.in_range(0, 180)
exponent
:
REAL_64
effective function
top
require
is_spot
set_exponent
(exp:
REAL_64
)
effective procedure
top
require
is_spot
constant_attenuation
:
REAL_64
effective function
top
require
is_spot
set_constant_attenuation
(att:
REAL_64
)
effective procedure
top
require
is_spot
linear_attenuation
:
REAL_64
effective function
top
require
is_spot
set_linear_attenuation
(att:
REAL_64
)
effective procedure
top
require
is_spot
quadratic_attenuation
:
REAL_64
effective function
top
require
is_spot
set_quadratic_attenuation
(att:
REAL_64
)
effective procedure
top
require
is_spot