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()) { |