[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd gl_helpers.h
From: |
Gerhard Reitmayr |
Subject: |
[libcvd-members] libcvd/cvd gl_helpers.h |
Date: |
Mon, 21 Jul 2008 12:56:21 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Gerhard Reitmayr <gerhard> 08/07/21 12:56:21
Modified files:
cvd : gl_helpers.h
Log message:
allow all fixed matrix variants in glMultMatrix, for example result of
.T()
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/gl_helpers.h?cvsroot=libcvd&r1=1.38&r2=1.39
Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- gl_helpers.h 19 Jun 2008 17:34:52 -0000 1.38
+++ gl_helpers.h 21 Jul 2008 12:56:21 -0000 1.39
@@ -243,7 +243,7 @@
/// transposed to account for GL's column major format.
/// @param m the transformation matrix
/// @ingroup gGL
- template <int N> inline void glMultMatrix( const TooN::Matrix<N> & m )
+ template <int N, class A> inline void glMultMatrix( const
TooN::FixedMatrix<N,N,A> & m )
{
GLdouble glm[16];
glm[0] = m[0][0]; glm[1] = m[1][0]; glm[2] = m[2][0]; glm[3] =
m[3][0];
@@ -258,7 +258,7 @@
/// The matrix is also transposed to account for GL's column major
format.
/// @param m the transformation matrix
/// @ingroup gGL
- template <> inline void glMultMatrix( const TooN::Matrix<3> & m )
+ template <class A> inline void glMultMatrix( const
TooN::FixedMatrix<3,3,A> & m )
{
GLdouble glm[16];
glm[0] = m[0][0]; glm[1] = m[1][0]; glm[2] = m[2][0]; glm[3] =
0;
@@ -273,7 +273,7 @@
/// identity matrix. The matrix is also transposed to account for GL's
column major format.
/// @param m the transformation matrix
/// @ingroup gGL
- template <> inline void glMultMatrix( const TooN::Matrix<2> & m )
+ template <class A> inline void glMultMatrix( const
TooN::FixedMatrix<2,2,A> & m )
{
GLdouble glm[16];
glm[0] = m[0][0]; glm[1] = m[1][0]; glm[2] = 0; glm[3] = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/cvd gl_helpers.h,
Gerhard Reitmayr <=