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: Gerhard Reitmayr
Subject: [libcvd-members] libcvd/cvd gl_helpers.h
Date: Wed, 24 Oct 2007 10:44:53 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Gerhard Reitmayr <gerhard>      07/10/24 10:44:53

Modified files:
        cvd            : gl_helpers.h 

Log message:
        no TooN guards necessary for new glLine

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

Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- gl_helpers.h        24 Oct 2007 00:05:04 -0000      1.33
+++ gl_helpers.h        24 Oct 2007 10:44:52 -0000      1.34
@@ -81,6 +81,15 @@
                glRasterPos2i(i.x, i.y);
        }
 
+    /// draws a line from x1 to x2
+    /// any type that is accepted by glVertex is possible
+    /// @ingroup gGL
+    template <class P1, class P2> inline void glLine(const P1& x1, const P2& 
x2) {
+       glBegin(GL_LINES);
+       glVertex(x1);
+       glVertex(x2);
+       glEnd();
+    }
 
        #ifdef CVD_HAVE_TOON
        /// Specify the (x,y) co-ordinates of a vertex
@@ -107,15 +116,6 @@
                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]