/[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.6 by jvk, Mon Aug 26 09:38:31 2002 UTC revision 1.7 by tjl, Tue Sep 3 10:14:47 2002 UTC
# Line 72  namespace CallGL { Line 72  namespace CallGL {
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;
# Line 126  namespace CallGL { Line 129  namespace CallGL {
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);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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