Lines Matching defs:index
233 /* color index array */
605 /* Calculate the bytes per index for address calculation */
914 void STATE_APIENTRY crStateVertexAttribPointerNV(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *p)
924 crStateVertexAttribPointerARB(index, size, type, normalized, stride, p);
928 void STATE_APIENTRY crStateVertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *p)
937 if (index >= CR_MAX_VERTEX_ATTRIBS)
939 crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, "glVertexAttribPointerARB: invalid index: %d", (int) index);
961 crStateClientSetPointer(&(c->array.a[index]), size, type, normalized, stride, p);
964 DIRTY(cb->a[index], g->neg_bitid);
968 void STATE_APIENTRY crStateGetVertexAttribPointervNV(GLuint index, GLenum pname, GLvoid **pointer)
978 if (index >= CR_MAX_VERTEX_ATTRIBS) {
980 "glGetVertexAttribPointervNV(index)");
990 *pointer = g->client.array.a[index].p;
994 void STATE_APIENTRY crStateGetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer)
996 crStateGetVertexAttribPointervNV(index, pname, pointer);
1789 /* index */
2080 /* index */
2396 CRClientPointer* crStateGetClientPointerByIndex(int index, CRVertexArrays *array)
2398 CRASSERT(array && index>=0 && index<CRSTATECLIENT_MAX_VERTEXARRAYS);
2400 if (index<7)
2402 switch (index)
2413 else if (index<(7+CR_MAX_TEXTURE_UNITS))
2415 return &array->t[index-7];
2419 return &array->a[index-7-CR_MAX_TEXTURE_UNITS];