/[gzz]/gzz/gfx/libcallgl/callgl.cxx
ViewVC logotype

Diff of /gzz/gfx/libcallgl/callgl.cxx

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

revision 1.26 by jvk, Sun Oct 20 15:20:29 2002 UTC revision 1.27 by jvk, Sat Oct 26 14:09:53 2002 UTC
# Line 308  namespace CallGL { Line 308  namespace CallGL {
308                               atof(v[3].c_str()),                               atof(v[3].c_str()),
309                               atof(v[4].c_str())); break;                               atof(v[4].c_str())); break;
310            }            }
311          } else if (checkfunc(v, "TexCoord", 2, true)) {          } else if (checkfunc(v, "TexCoord", 1, true)) {
312            switch (v.size()) {            switch (v.size()) {
313              case 2: glTexCoord1d(atof(v[1].c_str())); break;
314            case 3: glTexCoord2d(atof(v[1].c_str()),            case 3: glTexCoord2d(atof(v[1].c_str()),
315                               atof(v[2].c_str())); break;                                 atof(v[2].c_str())); break;
316            case 4: glTexCoord3d(atof(v[1].c_str()),            case 4: glTexCoord3d(atof(v[1].c_str()),
317                               atof(v[2].c_str()),                                 atof(v[2].c_str()),
318                               atof(v[3].c_str())); break;                                 atof(v[3].c_str())); break;
319            default:            default:
320              cerr << "Ignoring extra arguments to TexCoord\n";              cerr << "Ignoring extra arguments to TexCoord\n";
321            case 5: glTexCoord4d(atof(v[1].c_str()),            case 5: glTexCoord4d(atof(v[1].c_str()),
322                               atof(v[2].c_str()),                                 atof(v[2].c_str()),
323                               atof(v[3].c_str()),                                 atof(v[3].c_str()),
324                               atof(v[4].c_str())); break;                                 atof(v[4].c_str())); break;
325              }
326            } else if (checkfunc(v, "MultiTexCoord", 2, true)) {
327              GLenum tex = getToken(v[1]);
328              switch (v.size()) {
329              case 3: glMultiTexCoord1d(tex, atof(v[2].c_str())); break;
330              case 4: glMultiTexCoord2d(tex,
331                                        atof(v[2].c_str()),
332                                        atof(v[3].c_str())); break;
333              case 5: glMultiTexCoord3d(tex,
334                                        atof(v[2].c_str()),
335                                        atof(v[3].c_str()),
336                                        atof(v[4].c_str())); break;
337              default:
338                cerr << "Ignoring extra arguments to MultiTexCoord\n";
339              case 6: glMultiTexCoord4d(tex,
340                                        atof(v[2].c_str()),
341                                        atof(v[3].c_str()),
342                                        atof(v[4].c_str()),
343                                        atof(v[5].c_str())); break;
344            }            }
345          } else if (checkfunc(v, "Color", 3, true)) {          } else if (checkfunc(v, "Color", 3, true)) {
346            switch (v.size()) {            switch (v.size()) {

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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