From 53f49b478487389ba5578189e5cd815808f4332d Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 13 Oct 2005 08:32:26 +0000 Subject: [PATCH] Added glscale(scalar) and corrected bug in glscale(point2) --- wrap/gl/space.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wrap/gl/space.h b/wrap/gl/space.h index 5d229152..62448362 100644 --- a/wrap/gl/space.h +++ b/wrap/gl/space.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/06/30 10:17:04 ganovelli +added draw plane + Revision 1.5 2005/05/05 12:28:13 cignoni added glboxwire @@ -57,6 +60,9 @@ First working version! namespace vcg { + inline void glScale(float const & p){ glScalef(p,p,p);} + inline void glScale(double const & p){ glScaled(p,p,p);} + inline void glVertex(Point2 const & p) { glVertex2iv(p.V());} inline void glVertex(Point2 const & p) { glVertex2sv(p.V());} inline void glVertex(Point2 const & p) { glVertex2fv(p.V());} @@ -67,8 +73,8 @@ namespace vcg { inline void glTexCoord(Point2 const & p){ glTexCoord2dv(p.V());} inline void glTranslate(Point2 const & p) { glTranslatef(p[0],p[1],0);} inline void glTranslate(Point2 const & p){ glTranslated(p[0],p[1],0);} - inline void glScale(Point2 const & p) { glScalef(p[0],p[1],0);} - inline void glScale(Point2 const & p){ glScaled(p[0],p[1],0);} + inline void glScale(Point2 const & p) { glScalef(p[0],p[1],1.0);} + inline void glScale(Point2 const & p){ glScaled(p[0],p[1],1.0);} inline void glVertex(Point3 const & p) { glVertex3iv(p.V());} inline void glVertex(Point3 const & p) { glVertex3sv(p.V());}