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

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

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

revision 1.3 by tjl, Wed Jun 11 17:41:55 2003 UTC revision 1.4 by mudyc, Mon Aug 4 13:47:50 2003 UTC
# Line 53  namespace Lines { Line 53  namespace Lines {
53          GLuint textureId;          GLuint textureId;
54          float linewidth;          float linewidth;
55      public:      public:
56          SimpleLine(GLuint textId, float l, float * points, int size):          SimpleLine(GLuint textId, float l, vector<float> points):
57              textureId(textId), linewidth(l)              textureId(textId), linewidth(l)
58          {          {
59            if (textId <= 0) {            if (textId <= 0) {
60              cout << "Error in SimpleLine - TextId under or zero!"<< textId <<"\n";              cout << "Error in SimpleLine - TextId under or zero!"<< textId <<"\n";
61              return;              return;
62            }            }
63            if (size != 6) {            if (points.size() != 6) {
64              cout << "Errorr in SimpleLine - not enough points!"<< size <<"\n";              cout << "Errorr in SimpleLine - not enough points!"<< points.size() <<"\n";
65              return;              return;
66            } else {            } else {
67    
# Line 113  namespace Lines { Line 113  namespace Lines {
113           * @param joinStyle "Bevel", "Miter" or "Round"           * @param joinStyle "Bevel", "Miter" or "Round"
114           * @param lineWidth line's width           * @param lineWidth line's width
115           * @param chain join first and last point           * @param chain join first and last point
116           * @param points float array of points a,b,c etc.           * @param points float vector of points a,b,c etc.
117           *          { ax,ay,az, bx,by,bz, cx,cy,cz, etc.. }           *          { ax,ay,az, bx,by,bz, cx,cy,cz, etc.. }
          * @param size size of points array  
118           */           */
119          ContinuousLine(GLuint textId, float lineWidth,          ContinuousLine(GLuint textId, float lineWidth,
120                         int joinStyle, bool chain,                         int joinStyle, bool chain,
121                         float * points, int size);                         vector<float> points);
122    
123    
124          /** ContinuousLine is line constructed from various points.          /** ContinuousLine is line constructed from various points.

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