131 |
glEnable(getToken(v[1])); |
glEnable(getToken(v[1])); |
132 |
} else if (checkfunc(v, "Disable", 1)) { |
} else if (checkfunc(v, "Disable", 1)) { |
133 |
glDisable(getToken(v[1])); |
glDisable(getToken(v[1])); |
134 |
|
} else if (checkfunc(v, "EnableVertexAttribArray", 1)) { |
135 |
|
glEnableVertexAttribArrayARB(getToken(v[1])); |
136 |
|
} else if (checkfunc(v, "DisableVertexAttribArray", 1)) { |
137 |
|
glDisableVertexAttribArrayARB(getToken(v[1])); |
138 |
} else if (checkfunc(v, "Hint", 2)) { |
} else if (checkfunc(v, "Hint", 2)) { |
139 |
glHint(getToken(v[1]), getToken(v[2])); |
glHint(getToken(v[1]), getToken(v[2])); |
140 |
} else if (checkfunc(v, "ReadBuffer", 1)) { |
} else if (checkfunc(v, "ReadBuffer", 1)) { |
306 |
glPushAttrib(mask); |
glPushAttrib(mask); |
307 |
} else if (checkfunc(v, "PopAttrib", 0)) { |
} else if (checkfunc(v, "PopAttrib", 0)) { |
308 |
glPopAttrib(); |
glPopAttrib(); |
309 |
|
} else if (checkfunc(v, "PushClientAttrib", 0, true)) { |
310 |
|
GLbitfield mask = 0; |
311 |
|
for (unsigned i = 1; i < v.size(); i++) |
312 |
|
mask |= getToken(v[i]); |
313 |
|
glPushClientAttrib(mask); |
314 |
|
} else if (checkfunc(v, "PopClientAttrib", 0)) { |
315 |
|
glPopClientAttrib(); |
316 |
} else if (checkfunc(v, "Clear", 0, true)) { |
} else if (checkfunc(v, "Clear", 0, true)) { |
317 |
GLbitfield mask = 0; |
GLbitfield mask = 0; |
318 |
for (unsigned i = 1; i < v.size(); i++) |
for (unsigned i = 1; i < v.size(); i++) |