/[libvob]/libvob/src/lines/Lines.cxx
ViewVC logotype

Diff of /libvob/src/lines/Lines.cxx

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

revision 1.5 by tjl, Wed Jun 11 17:41:56 2003 UTC revision 1.6 by mudyc, Mon Aug 4 13:45:14 2003 UTC
# Line 117  namespace Lines { Line 117  namespace Lines {
117       */       */
118      ContinuousLine::ContinuousLine(GLuint textId, float lineWidth,      ContinuousLine::ContinuousLine(GLuint textId, float lineWidth,
119                                     int joinStyle,  bool chain,                                     int joinStyle,  bool chain,
120                                     float * points, int size) {                                     vector<float> points) {
121          ContinuousLine(textId, lineWidth, joinStyle, chain);          ContinuousLine(textId, lineWidth, joinStyle, chain);
122    
123          if ( (size % 3) != 0) {          if ( (points.size() % 3) != 0) {
124              cerr << "Lines error:: Size not divisible by three (x,y,z)!\n";              cerr << "Lines error:: Size not divisible by three (x,y,z)!\n";
125              return;              return;
126          }          }
127          for (int i=0; i+2<size; i+=3){          for (unsigned int i=0; i+2<points.size(); i+=3){
128              add(points[i], points[i+1], points[i+2]);              add(points[i], points[i+1], points[i+2]);
129          }          }
130      }      }

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