72 |
(!extra_args && v.size()-1 > numargs)) { |
(!extra_args && v.size()-1 > numargs)) { |
73 |
cerr << "Illegal number of arguments to " << v[0] << ": expected " |
cerr << "Illegal number of arguments to " << v[0] << ": expected " |
74 |
<< numargs << ", got " << v.size()-1 << "\n"; |
<< numargs << ", got " << v.size()-1 << "\n"; |
75 |
|
for(unsigned i=0; i<v.size(); i++) |
76 |
|
cerr << v[i] << " "; |
77 |
|
cerr <<"\n"; |
78 |
return false; |
return false; |
79 |
} |
} |
80 |
return true; |
return true; |
129 |
} else if (checkfunc(v, "BlendColor", 4)) { |
} else if (checkfunc(v, "BlendColor", 4)) { |
130 |
glBlendColor(atof(v[1].c_str()), atof(v[2].c_str()), |
glBlendColor(atof(v[1].c_str()), atof(v[2].c_str()), |
131 |
atof(v[3].c_str()), atof(v[4].c_str())); |
atof(v[3].c_str()), atof(v[4].c_str())); |
132 |
|
} else if (checkfunc(v, "SecondaryColorEXT", 3)) { |
133 |
|
#ifdef GL_EXT_secondary_color |
134 |
|
glSecondaryColor3dEXT(atof(v[1].c_str()), atof(v[2].c_str()), |
135 |
|
atof(v[3].c_str())); |
136 |
|
#else |
137 |
|
cerr << "Warning: SecondaryColorEXT attempted but support\n" |
138 |
|
"was not compiled in because GL_EXT_secondary_color\n" |
139 |
|
"was not defined!!!\n"; |
140 |
|
#endif |
141 |
} else if (checkfunc(v, "Fog", 2, true)) { |
} else if (checkfunc(v, "Fog", 2, true)) { |
142 |
if (v.size() > 3) { |
if (v.size() > 3) { |
143 |
vector<GLfloat> params = getfv(v, 2, 4); |
vector<GLfloat> params = getfv(v, 2, 4); |