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: Ethan Eade
Subject: [libcvd-members] libcvd/cvd gl_helpers.h
Date: Wed, 24 Oct 2007 00:05:05 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Ethan Eade <ethaneade>  07/10/24 00:05:05

Modified files:
        cvd            : gl_helpers.h 

Log message:
        Added glLine, which takes two points of any type acceptable by 
glVertex, and
        draws the line between them.

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

Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- gl_helpers.h        2 Oct 2007 18:24:22 -0000       1.32
+++ gl_helpers.h        24 Oct 2007 00:05:04 -0000      1.33
@@ -107,6 +107,15 @@
                glVertex4d(v[0], v[1], v[2], v[3]);
        }
 
+    
+    template <class P1, class P2> inline void glLine(const P1& x1, const P2& 
x2) {
+       glBegin(GL_LINES);
+       glVertex(x1);
+       glVertex(x2);
+       glEnd();
+    }
+
+
        /// Specify the (s,t) texture coordinates
        /// @param v The texture coordinates
        ///@ingroup gGL




reply via email to

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