[896] | 1 | #include "dxStdAfx.h" |
---|
| 2 | #include "Vector.hpp" |
---|
| 3 | #include "Material.hpp" |
---|
| 4 | |
---|
| 5 | std::istream& operator>>(std::istream& cin, Vector& v)
|
---|
| 6 | {
|
---|
| 7 | cin >> v.x >> v.y >> v.z;
|
---|
| 8 | return cin;
|
---|
| 9 | } |
---|
| 10 | |
---|
| 11 | const Vector Vector::RGBBLACK(0.0f, 0.0f, 0.0f); |
---|
| 12 | const Vector Vector::RGBWHITE(0.999f, 0.999f, 0.999f); |
---|
| 13 | const Vector Vector::RGBRED(0.9f, 0.0f, 0.0f); |
---|
| 14 | const Vector Vector::RGBGREEN(0.0f, 0.9f, 0.0f); |
---|
| 15 | const Vector Vector::RGBBLUE(0.0f, 0.0f, 0.9f); |
---|
| 16 | const Vector Vector::RGBLIGHTBLUE(0.5f, 0.5f, 0.9f); |
---|
| 17 | const Vector Vector::RGBYELLOW(0.9f, 0.9f, 0.0f); |
---|
| 18 | const Vector Vector::RGBORANGE(0.9f, 0.45f, 0.0f); |
---|
| 19 | |
---|
| 20 | const Vector Vector::RGBLIGHTYELLOW(0.6f, 0.6f, 0.0f); |
---|
| 21 | const Vector Vector::RGBDARKGRAY(0.5f, 0.5f, 0.5f); |
---|
| 22 | |
---|
| 23 | const Material Material::DIFFUSEWHITE(Vector::RGBWHITE, Vector::RGBBLACK, 0.0f); |
---|
| 24 | const Material Material::DIFFUSEGRAY(Vector::RGBDARKGRAY, Vector::RGBBLACK, 0.0f); |
---|
| 25 | const Material Material::SHINYBLACK(Vector::RGBDARKGRAY, Vector::RGBDARKGRAY, 6.0f); |
---|
| 26 | const Material Material::STEEL(Vector(0.8f, 0.8f, 0.8f), Vector(0.5f, 0.5f, 0.8f), 10.0f); |
---|
| 27 | |
---|
| 28 | const Material Material::DIFFUSERED(Vector::RGBRED, Vector::RGBBLACK, 0.0f); |
---|
| 29 | const Material Material::DIFFUSEBLUE(Vector::RGBBLUE, Vector::RGBBLACK, 0.0f); |
---|
| 30 | const Material Material::DIFFUSELIGHTBLUE(Vector::RGBLIGHTBLUE, Vector::RGBBLACK, 0.0f); |
---|
| 31 | const Material Material::DIFFUSEGREEN(Vector::RGBGREEN, Vector::RGBBLACK, 0.0f); |
---|
| 32 | const Material Material::DIFFUSEYELLOW(Vector::RGBYELLOW, Vector::RGBBLACK, 0.0f); |
---|
| 33 | const Material Material::DIFFUSEORANGE(Vector::RGBORANGE, Vector::RGBBLACK, 0.0f); |
---|
| 34 | |
---|
| 35 | const Material Material::YELLOWPLASTIC(Vector::RGBLIGHTYELLOW, Vector::RGBDARKGRAY, 30.0f); |
---|
| 36 | |
---|
| 37 | const Material Material::LAMP(Vector::RGBWHITE, Vector::RGBBLACK, 0.0f, |
---|
| 38 | Vector::RGBWHITE, Vector::RGBBLACK, 0.0f); |
---|
| 39 | |
---|
| 40 | const double Vector::PI = 3.14159265358979323846; |
---|