remove include of gl and added glextgension exploiting,

This commit is contained in:
Paolo Cignoni 2004-05-04 23:36:23 +00:00
parent b1415f5484
commit 7e8e197d57
1 changed files with 9 additions and 5 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.2 2004/04/07 10:47:03 cignoni
inlined functions for avoid multiple linking errors
Revision 1.1 2004/03/31 15:27:17 ponchio Revision 1.1 2004/03/31 15:27:17 ponchio
*** empty log message *** *** empty log message ***
@ -35,17 +38,18 @@ 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 <windows.h> /// Note that this file assume that you have already included your
#include <GL/GL.h> /// GLextesnion managing system
namespace vcg { namespace vcg {
inline void glMultMatrix(const Matrix44f &matrix) { inline void glMultMatrix(const Matrix44f &matrix) {
glMultMatrixf((const GLfloat *)(matrix[0])); //glMultMatrixf((const GLfloat *)(matrix[0]));
glMultTransposeMatrixf((const GLfloat *)(matrix[0]));
} }
inline void glMultMatrix(const Matrix44d &matrix) { inline void glMultMatrix(const Matrix44d &matrix) {
glMultMatrixd((const GLdouble *)(matrix[0])); // glMultMatrixd((const GLdouble *)(matrix[0]));
glMultTransposeMatrixd((const GLdouble *)(matrix[0]));
} }
inline void glMultMatrix(const Similarityf &s) { inline void glMultMatrix(const Similarityf &s) {