libcvd-members
[Top][All Lists]
Advanced

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

[libcvd-members] libcvd/cvd/internal gl_types.h


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd/internal gl_types.h
Date: Wed, 16 Jul 2008 02:38:24 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        08/07/16 02:38:24

Modified files:
        cvd/internal   : gl_types.h 

Log message:
        Added double types.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/internal/gl_types.h?cvsroot=libcvd&r1=1.3&r2=1.4

Patches:
Index: gl_types.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/internal/gl_types.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- gl_types.h  9 May 2005 11:54:59 -0000       1.3
+++ gl_types.h  16 Jul 2008 02:38:24 -0000      1.4
@@ -81,6 +81,13 @@
                        static const int type  =GL_FLOAT;
                };
        
+               template<> struct data<double>
+               {
+                       static const int format=GL_LUMINANCE;
+                       static const int type  =GL_DOUBLE;
+               };
+       
+       
 
                //Rgb<*> types
        
@@ -126,6 +133,13 @@
                        static const int type  =GL_FLOAT;
                };
                
+               template<> struct data<Rgb<double> >
+               {
+                       static const int format=GL_RGB;
+                       static const int type  =GL_DOUBLE;
+               };
+               
+               
                //Rgba<*> types
        
                template<> struct data<Rgba<unsigned char> >
@@ -169,6 +183,12 @@
                        static const int format=GL_RGBA;
                        static const int type  =GL_FLOAT;
                };
+
+               template<> struct data<Rgba<double> >
+               {
+                       static const int format=GL_RGBA;
+                       static const int type  =GL_DOUBLE;
+               };
                //Rgb8 type
 
                template<> struct data<Rgb8>




reply via email to

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