| @@ -140,16 +140,16 @@ void Debug::DrawGrid(vec3 pos, vec3 x, vec3 y, vec3 z, float size, bool draw_3d) | |||||
| if (i != 0) | if (i != 0) | ||||
| { | { | ||||
| float iter = seg_sz * ((float)i); | float iter = seg_sz * ((float)i); | ||||
| Debug::DrawLine(vec3(-size, 0, iter), vec3(size, 0, iter), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(iter, 0, -size), vec3(iter, 0, size), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(-size, 0, iter), vec3(size, 0, iter), Color::dark_gray); | |||||
| Debug::DrawLine(vec3(iter, 0, -size), vec3(iter, 0, size), Color::dark_gray); | |||||
| if (draw_3d) | if (draw_3d) | ||||
| { | { | ||||
| Debug::DrawLine(vec3(0, -size, iter), vec3(0, size, iter), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(0, iter, -size), vec3(0, iter, size), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(0, -size, iter), vec3(0, size, iter), Color::dark_gray); | |||||
| Debug::DrawLine(vec3(0, iter, -size), vec3(0, iter, size), Color::dark_gray); | |||||
| Debug::DrawLine(vec3(-size, iter, 0), vec3(size, iter, 0), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(iter, -size, 0), vec3(iter, size, 0), Color::gray_dark); | |||||
| Debug::DrawLine(vec3(-size, iter, 0), vec3(size, iter, 0), Color::dark_gray); | |||||
| Debug::DrawLine(vec3(iter, -size, 0), vec3(iter, size, 0), Color::dark_gray); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -16,17 +16,17 @@ namespace lol | |||||
| /* | /* | ||||
| * Hardcoded constants for colours | * Hardcoded constants for colours | ||||
| */ | */ | ||||
| vec4 const Color::black = vec4(0, 0, 0, 1); | |||||
| vec4 const Color::red = vec4(1, 0, 0, 1); | |||||
| vec4 const Color::green = vec4(0, 1, 0, 1); | |||||
| vec4 const Color::yellow = vec4(1, 1, 0, 1); | |||||
| vec4 const Color::blue = vec4(0, 0, 1, 1); | |||||
| vec4 const Color::magenta = vec4(1, 0, 1, 1); | |||||
| vec4 const Color::cyan = vec4(0, 1, 1, 1); | |||||
| vec4 const Color::white = vec4(1, 1, 1, 1); | |||||
| vec4 const Color::gray_dark = vec4(.25f, .25f, .25f, 1); | |||||
| vec4 const Color::gray = vec4(.5f, .5f, .5f, 1); | |||||
| vec4 const Color::gray_light= vec4(.75f, .75f, .75f, 1); | |||||
| vec4 const Color::black = vec4(0, 0, 0, 1); | |||||
| vec4 const Color::red = vec4(1, 0, 0, 1); | |||||
| vec4 const Color::green = vec4(0, 1, 0, 1); | |||||
| vec4 const Color::yellow = vec4(1, 1, 0, 1); | |||||
| vec4 const Color::blue = vec4(0, 0, 1, 1); | |||||
| vec4 const Color::magenta = vec4(1, 0, 1, 1); | |||||
| vec4 const Color::cyan = vec4(0, 1, 1, 1); | |||||
| vec4 const Color::white = vec4(1, 1, 1, 1); | |||||
| vec4 const Color::dark_gray = vec4(.25f, .25f, .25f, 1); | |||||
| vec4 const Color::gray = vec4(.5f, .5f, .5f, 1); | |||||
| vec4 const Color::light_gray = vec4(.75f, .75f, .75f, 1); | |||||
| /* | /* | ||||
| * Conversion from colours to hexadecimal | * Conversion from colours to hexadecimal | ||||
| @@ -92,13 +92,6 @@ _T(dualquat_t<, >, dualquat) | |||||
| #undef _C | #undef _C | ||||
| #undef _T | #undef _T | ||||
| /* | |||||
| * Practical useage typedefs | |||||
| */ | |||||
| typedef vec4 color; | |||||
| typedef vec2 spheric2; | |||||
| typedef vec3 spheric3; | |||||
| /* | /* | ||||
| * HLSL/Cg-compliant type names | * HLSL/Cg-compliant type names | ||||
| */ | */ | ||||
| @@ -348,7 +348,8 @@ public: | |||||
| /* | /* | ||||
| * Some predefined colours | * Some predefined colours | ||||
| */ | */ | ||||
| static const vec4 black, red, green, yellow, blue, magenta, cyan, white, gray_dark, gray, gray_light; | |||||
| static const vec4 black, red, green, yellow, blue, magenta, | |||||
| cyan, white, dark_gray, gray, light_gray; | |||||
| }; | }; | ||||
| } /* namespace lol */ | } /* namespace lol */ | ||||