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 |
|
|
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. |