72 |
const vector<ZPt> &pt, const vector<ZVec> &norm, |
const vector<ZPt> &pt, const vector<ZVec> &norm, |
73 |
float texscale, float linewidth, float scale_pow, |
float texscale, float linewidth, float scale_pow, |
74 |
float border0, float border1, |
float border0, float border1, |
75 |
const float col0[], const float col1[], |
const float c0[], const float c1[], |
76 |
int angles, int multi, |
int angles, int multi, |
77 |
unsigned flags) { |
unsigned flags) { |
78 |
|
|
106 |
glColor4fv(dotvec); |
glColor4fv(dotvec); |
107 |
} |
} |
108 |
|
|
109 |
colorfv(col0); |
colorfv(c0); |
110 |
texCoord(vert[i][0], texscale); |
texCoord(vert[i][0], texscale); |
111 |
vertex(vert2[i][0]); |
vertex(vert2[i][0]); |
112 |
|
|
113 |
colorfv(col1); |
colorfv(c0 + 4); |
114 |
texCoord(vert[i][1], texscale); |
texCoord(vert[i][1], texscale); |
115 |
vertex(vert2[i][1]); |
vertex(vert2[i][1]); |
116 |
} |
} |
165 |
GLenum u; |
GLenum u; |
166 |
|
|
167 |
if (multi > 0) glColor4f(0,0,dy1,dy1); |
if (multi > 0) glColor4f(0,0,dy1,dy1); |
168 |
colorfv(col1); |
colorfv(c0 + 4); |
169 |
texCoord(a1q, texscale * q1); |
texCoord(a1q, texscale * q1); |
170 |
u = GL_TEXTURE1; |
u = GL_TEXTURE1; |
171 |
for (int d = 1; d <= multi; d++) { |
for (int d = 1; d <= multi; d++) { |
175 |
vertex(vert2[i][1]); |
vertex(vert2[i][1]); |
176 |
|
|
177 |
if (multi > 0) glColor4f(0,0,dy0,dy0); |
if (multi > 0) glColor4f(0,0,dy0,dy0); |
178 |
colorfv(col0); |
colorfv(c0); |
179 |
texCoord(pt[i], texscale); |
texCoord(pt[i], texscale); |
180 |
u = GL_TEXTURE1; |
u = GL_TEXTURE1; |
181 |
for (int d = 1; d <= multi; d++) { |
for (int d = 1; d <= multi; d++) { |
191 |
glColor4fv(dotvec); |
glColor4fv(dotvec); |
192 |
} |
} |
193 |
|
|
194 |
//colorfv(col0); |
//colorfv(c0); |
195 |
texCoord(pt[j], texscale); |
texCoord(pt[j], texscale); |
196 |
u = GL_TEXTURE1; |
u = GL_TEXTURE1; |
197 |
for (int d = 1; d <= multi; d++) { |
for (int d = 1; d <= multi; d++) { |
201 |
vertex(vert2[j][0]); |
vertex(vert2[j][0]); |
202 |
|
|
203 |
if (multi > 0) glColor4f(0,0,dy1,dy1); |
if (multi > 0) glColor4f(0,0,dy1,dy1); |
204 |
colorfv(col1); |
colorfv(c0 + 4); |
205 |
texCoord(b1q, texscale * q1); |
texCoord(b1q, texscale * q1); |
206 |
u = GL_TEXTURE1; |
u = GL_TEXTURE1; |
207 |
for (int d = 1; d <= multi; d++) { |
for (int d = 1; d <= multi; d++) { |