libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd gl_helpers.h


From: Georg Klein
Subject: [libcvd-members] libcvd/cvd gl_helpers.h
Date: Tue, 04 Jul 2006 13:35:39 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Georg Klein <georgklein>        06/07/04 13:35:39

Modified files:
        cvd            : gl_helpers.h 

Log message:
        Added glNormal(Vector<3>)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/gl_helpers.h?cvsroot=libcvd&r1=1.24&r2=1.25

Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- gl_helpers.h        16 May 2006 13:30:20 -0000      1.24
+++ gl_helpers.h        4 Jul 2006 13:35:39 -0000       1.25
@@ -142,6 +142,14 @@
                glRasterPos4d(v[0], v[1], v[2], v[3]);
        }
 
+       /// Specify the current vertex normal
+       /// @param n The normal vector
+       ///@ingroup gGL
+       inline void glNormal(const TooN::Vector<3>& n)
+       {
+               glNormal3d(n[0], n[1], n[2]);
+       }
+
     /// add a translation specified by an ImageRef
     /// @param v the translation ImageRef
     /// @ingroup gGL




reply via email to

[Prev in Thread] Current Thread [Next in Thread]