Browse Source

Workbench QuadTree/OcTree build is OK

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

+ 8
- 2
src/lol/debug/lines.h View File

@@ -24,11 +24,17 @@ namespace lol
namespace Debug namespace Debug
{ {


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


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


Loading…
Cancel
Save