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

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

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

revision 1.10 by tjl, Tue Mar 11 11:24:28 2003 UTC revision 1.11 by humppake, Wed Mar 26 13:36:35 2003 UTC
# Line 45  namespace Vobs { Line 45  namespace Vobs {
45  struct LineConnector {  struct LineConnector {
46      enum { NTrans = 2 };      enum { NTrans = 2 };
47    
48        float px0, py0, px1, py1;
49    
50      template<class F> void params(F &f) {      template<class F> void params(F &f) {
51            f(px0, py0, px1, py1);
52      }      }
53    
54      template<class T> void render(const T &t0, const T &t1) const {      template<class T> void render(const T &t0, const T &t1) const {
55            Pt box0 = t0.getSqSize();
56            Pt box1 = t1.getSqSize();
57    
58          glBegin(GL_LINES);          glBegin(GL_LINES);
59              t0.vertex(ZPt(0,0,0));              t0.vertex(ZPt(box0.x*px0,box0.y*py0,0));
60              t1.vertex(ZPt(0,0,0));              t1.vertex(ZPt(box1.x*px1,box1.y*py1,0));
61          glEnd();          glEnd();
62      }      }
63  };  };

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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