Lines Matching refs:cap
136 static void enable_disable(ogles_context_t* c, GLenum cap, int enabled) in enable_disable() argument
138 if ((cap >= GL_LIGHT0) && (cap<GL_LIGHT0+OGLES_MAX_LIGHTS)) { in enable_disable()
139 c->lighting.lights[cap-GL_LIGHT0].enable = enabled; in enable_disable()
140 c->lighting.enabledLights &= ~(1<<(cap-GL_LIGHT0)); in enable_disable()
141 c->lighting.enabledLights |= (enabled<<(cap-GL_LIGHT0)); in enable_disable()
145 switch (cap) { in enable_disable()
166 c->transforms.rescaleNormals = enabled ? cap : 0; in enable_disable()
176 c->clipPlanes.enable &= ~(1<<(cap-GL_CLIP_PLANE0)); in enable_disable()
177 c->clipPlanes.enable |= (enabled<<(cap-GL_CLIP_PLANE0)); in enable_disable()
193 c->rasterizer.procs.enableDisable(c, cap, enabled); in enable_disable()
302 void glEnable(GLenum cap) { in glEnable() argument
304 enable_disable(c, cap, 1); in glEnable()
306 void glDisable(GLenum cap) { in glDisable() argument
308 enable_disable(c, cap, 0); in glDisable()