added templated glLoadMatrix that automatically choose the right OpenGL call according the matrix type
This commit is contained in:
parent
b06ff095a1
commit
9b6833e521
|
@ -74,6 +74,11 @@ Revision 1.1 2004/03/31 15:27:17 ponchio
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
inline void glLoadMatrix(const vcg::Matrix44<T> &m) { assert(0); }
|
||||||
|
template<> inline void glLoadMatrix(const vcg::Matrix44f &m) {glLoadMatrixf(m.V()); }
|
||||||
|
template<> inline void glLoadMatrix(const vcg::Matrix44d &m) {glLoadMatrixd(m.V()); }
|
||||||
|
|
||||||
template<typename T,int StorageOrder>
|
template<typename T,int StorageOrder>
|
||||||
inline void glLoadMatrix(const Eigen::Matrix<T,4,4,StorageOrder>& matrix) { assert(0); }
|
inline void glLoadMatrix(const Eigen::Matrix<T,4,4,StorageOrder>& matrix) { assert(0); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue