source: GTP/trunk/App/Demos/Illum/pathmap/Constants.cpp @ 2197

Revision 2197, 1.7 KB checked in by szirmay, 18 years ago (diff)
Line 
1#include "dxStdAfx.h"
2#include "Vector.hpp"
3#include "Material.hpp"
4
5std::istream& operator>>(std::istream& cin, Vector& v)
6{
7        cin >> v.x >> v.y >> v.z;
8        return cin;
9}
10
11const Vector Vector::RGBBLACK(0.0f, 0.0f, 0.0f);
12const Vector Vector::RGBWHITE(0.999f, 0.999f, 0.999f);
13const Vector Vector::RGBRED(0.9f, 0.0f, 0.0f);
14const Vector Vector::RGBGREEN(0.0f, 0.9f, 0.0f);
15const Vector Vector::RGBBLUE(0.0f, 0.0f, 0.9f);
16const Vector Vector::RGBLIGHTBLUE(0.5f, 0.5f, 0.9f);
17const Vector Vector::RGBYELLOW(0.9f, 0.9f, 0.0f);
18const Vector Vector::RGBORANGE(0.9f, 0.45f, 0.0f);
19
20const Vector Vector::RGBLIGHTYELLOW(0.6f, 0.6f, 0.0f);
21const Vector Vector::RGBDARKGRAY(0.5f, 0.5f, 0.5f);
22
23const Material Material::DIFFUSEWHITE(Vector::RGBWHITE, Vector::RGBBLACK, 0.0f);
24const Material Material::DIFFUSEGRAY(Vector::RGBDARKGRAY, Vector::RGBBLACK, 0.0f);
25const Material Material::SHINYBLACK(Vector::RGBDARKGRAY, Vector::RGBDARKGRAY, 6.0f);
26const Material Material::STEEL(Vector(0.8f, 0.8f, 0.8f), Vector(0.5f, 0.5f, 0.8f), 10.0f);
27
28const Material Material::DIFFUSERED(Vector::RGBRED, Vector::RGBBLACK, 0.0f);
29const Material Material::DIFFUSEBLUE(Vector::RGBBLUE, Vector::RGBBLACK, 0.0f);
30const Material Material::DIFFUSELIGHTBLUE(Vector::RGBLIGHTBLUE, Vector::RGBBLACK, 0.0f);
31const Material Material::DIFFUSEGREEN(Vector::RGBGREEN, Vector::RGBBLACK, 0.0f);
32const Material Material::DIFFUSEYELLOW(Vector::RGBYELLOW, Vector::RGBBLACK, 0.0f);
33const Material Material::DIFFUSEORANGE(Vector::RGBORANGE, Vector::RGBBLACK, 0.0f);
34
35const Material Material::YELLOWPLASTIC(Vector::RGBLIGHTYELLOW, Vector::RGBDARKGRAY, 30.0f);
36
37const Material Material::LAMP(Vector::RGBWHITE, Vector::RGBBLACK, 0.0f,
38                                                          Vector::RGBWHITE, Vector::RGBBLACK, 0.0f);
39
40const double Vector::PI = 3.14159265358979323846;
Note: See TracBrowser for help on using the repository browser.