From 7aaa456f0dab4d0f14c9a1b0814a60659a145f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Wed, 19 Feb 2014 02:36:10 +0000 Subject: [PATCH] Added template Debug::Draw for custom complicated debug object --- src/lol/debug/lines.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lol/debug/lines.h b/src/lol/debug/lines.h index cb182e76..e160d767 100644 --- a/src/lol/debug/lines.h +++ b/src/lol/debug/lines.h @@ -24,6 +24,12 @@ namespace lol namespace Debug { +//This func MUST be specialized +template 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);