gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] libvob ./TODO include/vob/irregu/Irregu.hxx src...


From: Tuomas J. Lukka
Subject: [Gzz-commits] libvob ./TODO include/vob/irregu/Irregu.hxx src...
Date: Sun, 20 Apr 2003 06:49:12 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Tuomas J. Lukka <address@hidden>        03/04/20 06:49:10

Modified files:
        .              : TODO 
        include/vob/irregu: Irregu.hxx 
        src/util       : Debug.cxx 

Log message:
        More dbg

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/TODO.diff?tr1=1.19&tr2=1.20&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/irregu/Irregu.hxx.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/src/util/Debug.cxx.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: libvob/TODO
diff -u libvob/TODO:1.19 libvob/TODO:1.20
--- libvob/TODO:1.19    Wed Mar 26 15:28:52 2003
+++ libvob/TODO Sun Apr 20 06:49:10 2003
@@ -19,6 +19,8 @@
        ALPH:
            - start porting code.
 
+    - error for setting
+
 0.1alpha1: First separate release
     vegai:
        - .cvsignores
Index: libvob/include/vob/irregu/Irregu.hxx
diff -u libvob/include/vob/irregu/Irregu.hxx:1.5 
libvob/include/vob/irregu/Irregu.hxx:1.6
--- libvob/include/vob/irregu/Irregu.hxx:1.5    Sun Apr 20 06:21:11 2003
+++ libvob/include/vob/irregu/Irregu.hxx        Sun Apr 20 06:49:10 2003
@@ -192,9 +192,20 @@
        void (*colorfv)(const GLfloat *v) = nop;
        void (*colorfv2)(const GLfloat *v) = nop;
 
-       if (flags & Y_COLOR) colorfv = glColor4fv;
-       if (flags & Y_SECCOLOR) 
-           (flags & Y_COLOR ? colorfv2 : colorfv) = glSecondaryColor3fvEXT;
+       
+       if (flags & Y_COLOR) {
+           DBG(dbg_irregu) << "COLOR1 SET\n";
+           colorfv = glColor4fv;
+       }
+       if (flags & Y_SECCOLOR) {
+           if(flags & Y_COLOR) {
+               colorfv2 = glSecondaryColor3fvEXT;
+               DBG(dbg_irregu) << "COLOR2 SET\n";
+           } else {
+               colorfv =  glSecondaryColor3fvEXT;
+               DBG(dbg_irregu) << "COLOR1 SET2\n";
+           }
+       }
        
 
        ZPt vert[pt.size()][2];
Index: libvob/src/util/Debug.cxx
diff -u libvob/src/util/Debug.cxx:1.3 libvob/src/util/Debug.cxx:1.4
--- libvob/src/util/Debug.cxx:1.3       Sun Apr 20 06:24:04 2003
+++ libvob/src/util/Debug.cxx   Sun Apr 20 06:49:10 2003
@@ -30,12 +30,19 @@
 #include <iostream>
 #include <string>
 #include "vob/Debug.hxx"
+#include <cstdlib>
 
 namespace Vob {
 
 namespace Debug {
     
     std::ostream *debugStream() {
+       const char *str = std::getEnv("VOBLOG");
+       static std::ostream *dbgstream = 
+           (str ? new ofstream(str) : std::cout);
+       if(str) {
+           dbgstream->rdbuf()->pubsetbuf(0,0);
+       }
        return &std::cout;
     }
 




reply via email to

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