From e77e2dcf262f271743f84761b013b1e4b3209ba5 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 8 May 2007 18:55:38 +0000 Subject: [PATCH] glTriangle added --- wrap/gl/space.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wrap/gl/space.h b/wrap/gl/space.h index 8d059ac3..7fa82867 100644 --- a/wrap/gl/space.h +++ b/wrap/gl/space.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2007/01/18 01:26:23 cignoni +Added cast for mac compiling + Revision 1.7 2005/10/13 08:32:26 cignoni Added glscale(scalar) and corrected bug in glscale(point2) @@ -54,6 +57,7 @@ First working version! // Please note that this file assume that you have already included your // gl-extension wrapping utility, and that therefore all the extension symbol are already defined. +#include #include #include #include @@ -250,5 +254,14 @@ inline void glBoxClip(const Box3 & b) } +template + inline void glTriangle3( TriangleType & c ) { + glBegin(GL_TRIANGLES); + glVertex(c.P(0)); + glVertex(c.P(1)); + glVertex(c.P(2)); + glEnd(); + } + }//namespace #endif