glGet added
This commit is contained in:
parent
4d1485e8da
commit
331db0410f
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.6 2004/05/26 15:12:39 cignoni
|
||||||
Removed inclusion of gl extension stuff
|
Removed inclusion of gl extension stuff
|
||||||
|
|
||||||
|
@ -53,6 +56,7 @@ Revision 1.1 2004/03/31 15:27:17 ponchio
|
||||||
|
|
||||||
#include <vcg/math/matrix44.h>
|
#include <vcg/math/matrix44.h>
|
||||||
#include <vcg/math/similarity.h>
|
#include <vcg/math/similarity.h>
|
||||||
|
#include <gl/glew.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
|
@ -95,5 +99,14 @@ inline void glMultMatrix(const Similarityd &s) {
|
||||||
glScaled(s.sca, s.sca, s.sca);
|
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
|
}//namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue