[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 Dec 2009 13:01:26 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Gerhard Reitmayr <gerhard> 09/12/21 13:01:26
Modified files:
cvd : gl_helpers.h
Log message:
moved function definition so that the right overloads are picked up (at
least an issue on win32)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/gl_helpers.h?cvsroot=libcvd&r1=1.44&r2=1.45
Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- gl_helpers.h 16 Dec 2009 14:45:57 -0000 1.44
+++ gl_helpers.h 21 Dec 2009 13:01:26 -0000 1.45
@@ -84,16 +84,6 @@
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();
- }
-
/// Draws a rectangle by specifing two opposing vertices
/// @param p the first vertex
/// @param q the second vertex
@@ -459,6 +449,16 @@
}
#endif
+ /// 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();
+ }
+
/// sets a whole list of vertices stored in a std::vector. It uses the
various
/// glVertex helpers defined in this header file.
/// @param list the list of vertices