/[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.2 by mudyc, Mon Apr 28 20:55:19 2003 UTC revision 1.3 by mudyc, Wed Apr 30 00:33:56 2003 UTC
# Line 91  namespace Lines { Line 91  namespace Lines {
91       * Continuous Line       * Continuous Line
92       * ===============         * ===============  
93       */       */
94      ContinuousLine::ContinuousLine(GLuint textId, int cornerBehaviour,      ContinuousLine::ContinuousLine(GLuint textId, float lineWidth,
95                                     float lineWidth, bool chain,                                     int joinStyle,  bool chain,
96                                     float * points, int size) {                                     float * points, int size) {
97          ContinuousLine(textId, cornerBehaviour, lineWidth, chain);          ContinuousLine(textId, joinStyle, lineWidth, chain);
98    
99          if ( (size % 3) != 0) {          if ( (size % 3) != 0) {
100              cerr << "Lines error:: Size not divisible by three (x,y,z)!\n";              cerr << "Lines error:: Size not divisible by three (x,y,z)!\n";
# Line 108  namespace Lines { Line 108  namespace Lines {
108    
109    
110      ContinuousLine::ContinuousLine(GLuint textId,      ContinuousLine::ContinuousLine(GLuint textId,
                                    int cornerBehaviour,  
111                                     float lineWidth,                                     float lineWidth,
112                                       int joinStyle,
113                                     bool chain):                                     bool chain):
114          drawDone(false), chain(chain)          drawDone(false), chain(chain)
115      {      {
# Line 118  namespace Lines { Line 118  namespace Lines {
118              return;              return;
119          }          }
120    
121          if (cornerBehaviour == BEVEL ||          if (joinStyle == BEVEL ||
122              cornerBehaviour == MITER ||              joinStyle == MITER ||
123              cornerBehaviour == ROUND)              joinStyle == ROUND)
124              this->textureId = textId;              this->textureId = textId;
125          else {          else {
126              cerr << "Lines error:: Not a good cornerBehaviour: "              cerr << "Lines error:: Not a good joinStyle: "
127                   << textId <<"\n";                   << textId <<"\n";
128              return;              return;
129          }          }

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

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