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

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

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

revision 1.5 by mudyc, Fri Aug 22 13:19:53 2003 UTC revision 1.6 by mudyc, Fri Aug 22 13:51:35 2003 UTC
# Line 57  public: Line 57  public:
57      template<class T> void render(const T &coords1) const {      template<class T> void render(const T &coords1) const {
58        vector<ZPt> pts;        vector<ZPt> pts;
59        for (unsigned int i=0; i+2<points.size(); i+=3) {        for (unsigned int i=0; i+2<points.size(); i+=3) {
60            std::cout << "render: in: " << points[i] << ", " << points[i+1] << "\n";
61          ZPt p = coords1.transform( ZPt(points[i], points[i+1], points[i+2]) );          ZPt p = coords1.transform( ZPt(points[i], points[i+1], points[i+2]) );
62            std::cout << "render: out: " << p.x << ", " << p.y << "\n";
63          pts.push_back(p);          pts.push_back(p);
64        }        }
65    
66          // XXX constructor in params and call only render...
67        if (pts.size() <= 2) {        if (pts.size() <= 2) {
68          Lines::SimpleLine l = Lines::SimpleLine(texId, width, pts);          Lines::SimpleLine l = Lines::SimpleLine(texId, width, pts);
69          l.draw();          l.draw();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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