/[libvob]/libvob/include/vob/vobs/Pixel.hxx
ViewVC logotype

Diff of /libvob/include/vob/vobs/Pixel.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Sun Jun 29 08:13:15 2003 UTC revision 1.4 by jvk, Mon Jun 30 07:22:52 2003 UTC
# Line 100  struct ReadPixels { Line 100  struct ReadPixels {
100  };  };
101  VOB_DEFINED(ReadPixels);  VOB_DEFINED(ReadPixels);
102    
103    struct CopyPixels {
104        enum { NTrans = 2 };
105    
106        int w, h;
107        Token type;
108    
109        template<class F> void params(F &f) {
110            f(w, h, type);
111        }
112    
113        template<class T> void render(const T &t1, const T &t2) const {
114            ZPt p = t1.transform(ZPt(0,0,0));
115            glRasterPos3f(p.x, p.y, p.z);
116            float ras[4];
117            glGetFloatv(GL_CURRENT_RASTER_POSITION, ras);
118    
119            p = t2.transform(ZPt(0,0,0));
120            glRasterPos3f(p.x, p.y, p.z);
121    
122            glCopyPixels((int)ras[0], (int)ras[1]-h, w, h, type);
123            GLERR
124        }
125    };
126    VOB_DEFINED(CopyPixels);
127    
128    
129  }  }
130  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26