include color3d Color3D Color3D GLfloat GLfloat GLfloat GLfloat this-

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "color3d.h"
Color3D::Color3D(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
{
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}
const Color3D Color3D::RED = Color3D(1.0f, 0.0f, 0.0f, 1.0f);
const Color3D Color3D::GREEN = Color3D(0.0f, 1.0f, 0.0f, 1.0f);
const Color3D Color3D::BLUE = Color3D(0.0f, 0.0f, 1.0f, 1.0f);
const Color3D Color3D::DEFAULT_AMBIENT = Color3D(0.2f, 0.2f, 0.2f, 1.0f);
const Color3D Color3D::DEFAULT_DIFFUSE = Color3D(0.8f, 0.8f, 0.8f, 1.0f);
const Color3D Color3D::DEFAULT_EMISSION = Color3D(0.0f, 0.0f, 0.0f, 1.0f);
const Color3D Color3D::DEFAULT_SPECULAR = Color3D(0.0f, 0.0f, 0.0f, 1.0f);
const Color3D Color3D::OPTIMAL_DIFFUSE = Color3D(0.8f, 0.8f, 0.8f, 1.0f);
const Color3D Color3D::OPTIMAL_SPECULAR = Color3D(0.6f, 0.6f, 0.6f, 1.0f);