From 331db0410f494c09ff30a9c5ec09d7835de1a23b Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 28 Sep 2004 14:04:36 +0000 Subject: [PATCH] glGet added --- wrap/gl/math.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wrap/gl/math.h b/wrap/gl/math.h index 232232ac..6e6e8552 100644 --- a/wrap/gl/math.h +++ b/wrap/gl/math.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2004/07/13 15:55:57 cignoni +Added test on presence of glTranspose extension (for old hw support) + Revision 1.6 2004/05/26 15:12:39 cignoni Removed inclusion of gl extension stuff @@ -53,6 +56,7 @@ Revision 1.1 2004/03/31 15:27:17 ponchio #include #include +#include namespace vcg { @@ -95,5 +99,14 @@ inline void glMultMatrix(const Similarityd &s) { glScaled(s.sca, s.sca, s.sca); } +inline void glGetv(const GLenum pname, Matrix44f & m){ + glGetFloatv(pname,&m[0][0]); +} + +inline void glGetv(const GLenum pname, Matrix44d & m){ + glGetDoublev(pname,&m[0][0]); +} + + }//namespace #endif