/[gzz]/gzz/gfx/libutil/Irregu.hxx
ViewVC logotype

Diff of /gzz/gfx/libutil/Irregu.hxx

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

revision 1.5 by jvk, Mon Nov 11 14:51:09 2002 UTC revision 1.6 by jvk, Mon Nov 11 17:40:23 2002 UTC
# Line 72  namespace Irregu { Line 72  namespace Irregu {
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            
# Line 106  namespace Irregu { Line 106  namespace Irregu {
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              }              }
# Line 165  namespace Irregu { Line 165  namespace Irregu {
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++) {
# Line 175  namespace Irregu { Line 175  namespace Irregu {
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++) {
# Line 191  namespace Irregu { Line 191  namespace Irregu {
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++) {
# Line 201  namespace Irregu { Line 201  namespace Irregu {
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++) {

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