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, 02 Oct 2007 18:24:22 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Georg Klein <georgklein>        07/10/02 18:24:22

Modified files:
        cvd            : gl_helpers.h 

Log message:
        Added glMultiTexCoord funcs. They are currently gated on
        GL_GLEXT_PROTOTYPES, which is what the nvidia GL headers seem to use.

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

Patches:
Index: gl_helpers.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/gl_helpers.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- gl_helpers.h        22 Aug 2007 14:20:02 -0000      1.31
+++ gl_helpers.h        2 Oct 2007 18:24:22 -0000       1.32
@@ -63,6 +63,16 @@
                glTexCoord2i(i.x, i.y);
        }
 
+#ifdef GL_GLEXT_PROTOTYPES
+       /// Specify the (s,t) texture co-ordinates for a specific texture unit
+       /// @param i The texture coordinates
+       /// @param enum The texture unit
+       ///@ingroup gGL
+       inline void glMultiTexCoord(GLenum unit, const ImageRef& i)
+       {
+               glMultiTexCoord2i(unit,  i.x, i.y);
+       }
+#endif
        /// Specify the (x,y) co-ordinates of the current raster position
        /// @param i The raster position
        ///@ingroup gGL
@@ -121,6 +131,34 @@
                glTexCoord4d(v[0], v[1], v[2], v[3]);
        }
 
+#ifdef GL_GLEXT_PROTOTYPES
+       /// Specify the (s,t) texture coordinates for a specific texture unit
+       /// @param v The texture coordinates
+       /// @param unit The texture unit
+       ///@ingroup gGL
+       inline void glMultiTexCoord(GLenum unit, const TooN::Vector<2>& v)
+       {
+               glMultiTexCoord2d(unit, v[0], v[1]);
+       }
+
+       /// Specify the (s,t,r) texture coordinates for a specific texture unit
+       /// @param v The texture coordinates
+       /// @param unit The texture unit
+       ///@ingroup gGL
+       inline void glMutliTexCoord(GLenum unit, const TooN::Vector<3>& v)
+       {
+               glMultiTexCoord3d(unit, v[0], v[1], v[2]);
+       }
+
+       /// Specify the (s,t,r,q) texture coordinates for a specific texture 
unit
+       /// @param v The texture coordinates
+       /// @param unit The texture unit
+       ///@ingroup gGL
+       inline void glMultiTexCoord(GLenum unit, const TooN::Vector<4>& v)
+       {
+               glMultiTexCoord4d(unit, v[0], v[1], v[2], v[3]);
+       }
+#endif
 
        /// Specify the (x,y) co-ordinates of the current raster position
        /// @param v The raster position




reply via email to

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