Browse Source

Added template Debug::Draw for custom complicated debug object

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
7aaa456f0d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/lol/debug/lines.h

+ 6
- 0
src/lol/debug/lines.h View File

@@ -24,6 +24,12 @@ namespace lol
namespace Debug
{

//This func MUST be specialized
template<typename T> void Draw(T& x, vec4 color)
{
ASSERT(0);
}

void DrawLine(vec3 a, vec3 b, vec4 color);
void DrawBox(vec3 a, vec3 b, vec4 color);
void DrawViewProj(mat4 view_proj, vec4 color);


Loading…
Cancel
Save