dmech v0.3.1 (2017-11-12T11:54:41Z)
Home
Dub
Repo
Light
dgl
graphics
light
Undocumented in source.
class
Light :
Drawable3D
{
Vector4f
position
;
Color4f
diffuseColor
;
Color4f
ambientColor
;
float
constantAttenuation
;
float
linearAttenuation
;
float
quadraticAttenuation
;
float
brightness
;
bool
enabled
;
bool
debugDraw
;
bool
forceOn
;
this
(Vector4f position, Color4f diffuseColor, Color4f ambientColor, float constantAttenuation, float linearAttenuation, float quadraticAttenuation);
void
draw
(double dt);
void
draw
(Object3D obj, double dt);
void
free
();
}
Constructors
this
this
(Vector4f position, Color4f diffuseColor, Color4f ambientColor, float constantAttenuation, float linearAttenuation, float quadraticAttenuation)
Undocumented in source.
Members
Functions
draw
void
draw
(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void
draw
(Object3D obj, double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void
free
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
ambientColor
Color4f
ambientColor
;
Undocumented in source.
brightness
float
brightness
;
Undocumented in source.
constantAttenuation
float
constantAttenuation
;
Undocumented in source.
debugDraw
bool
debugDraw
;
Undocumented in source.
diffuseColor
Color4f
diffuseColor
;
Undocumented in source.
enabled
bool
enabled
;
Undocumented in source.
forceOn
bool
forceOn
;
Undocumented in source.
linearAttenuation
float
linearAttenuation
;
Undocumented in source.
position
Vector4f
position
;
Undocumented in source.
quadraticAttenuation
float
quadraticAttenuation
;
Undocumented in source.
Inherited Members
From Drawable3D
draw
void
draw
(Object3D obj, double dt)
Undocumented in source.
Meta
Source
See Implementation
dgl
graphics
light
classes
Light
functions
pointLight