TDME2  1.9.200
SceneLight.cpp
Go to the documentation of this file.
2 
3 #include <tdme/tdme.h>
4 #include <tdme/engine/Color4.h>
5 #include <tdme/math/Vector3.h>
6 #include <tdme/math/Vector4.h>
7 
12 
13 SceneLight::SceneLight(int id)
14 {
15  this->id = id;
16  enabled = false;
17  ambient.set(0.0f, 0.0f, 0.0f, 1.0f);
18  diffuse.set(1.0f, 1.0f, 1.0f, 1.0f);
19  specular.set(1.0f, 1.0f, 1.0f, 1.0f);
20  position.set(0.0f, 0.0f, 0.0f, 0.0f);
21  spotTo.set(0.0f, 0.0f, -1.0f);
22  spotDirection.set(0.0f, 0.0f, -1.0f);
23  spotExponent = 0.0f;
24  spotCutOff = 180.0f;
25  constantAttenuation = 1.0f;
26  linearAttenuation = 0.0f;
27  quadraticAttenuation = 0.0f;
28 }
Color 4 definition class.
Definition: Color4.h:18
void set(float r, float g, float b, float a)
Sets this color by its components.
Definition: Color4.h:66
Scene light definition.
Definition: SceneLight.h:20
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Definition: Vector3.h:20
Vector3 & set(float x, float y, float z)
Sets this vector3 by its components.
Definition: Vector3.h:70
Vector4 class representing vector4 mathematical structure and operations with x, y,...
Definition: Vector4.h:22
Vector4 & set(float x, float y, float z, float w)
Sets this vector4 by its components.
Definition: Vector4.h:97