Lines Matching refs:arrays
107 c->arrays.vertex.size = 4;
108 c->arrays.vertex.type = GL_FLOAT;
109 c->arrays.color.size = 4;
110 c->arrays.color.type = GL_FLOAT;
111 c->arrays.normal.size = 4;
112 c->arrays.normal.type = GL_FLOAT;
114 c->arrays.texture[i].size = 4;
115 c->arrays.texture[i].type = GL_FLOAT;
146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t));
432 const int tmu = c->arrays.activeTexture;
435 case GL_COLOR_ARRAY: a = &c->arrays.color; break;
436 case GL_NORMAL_ARRAY: a = &c->arrays.normal; break;
437 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break;
438 case GL_VERTEX_ARRAY: a = &c->arrays.vertex; break;
471 c->arrays.compileElement(c, v, index);
541 c->arrays.cull = vertex_t::CLIP_ALL;
542 c->arrays.compileElements(c, v, first, num);
545 if (!c->arrays.cull) {
566 c->arrays.cull = vertex_t::CLIP_ALL;
567 c->arrays.compileElement(c, c->vc.vBuffer, first);
579 c->arrays.compileElements(c, v, first, num);
582 if (!c->arrays.cull) {
595 c->arrays.cull = v0->flags & vertex_t::CLIP_ALL;
607 c->arrays.compileElement(c, v1, first);
626 c->arrays.cull = vertex_t::CLIP_ALL;
627 c->arrays.compileElements(c, v, first, num);
630 if (!c->arrays.cull) {
656 c->arrays.cull = vertex_t::CLIP_ALL;
657 c->arrays.compileElements(c, c->vc.vBuffer, first, 2);
673 c->arrays.compileElements(c, v, first, num);
676 if (!c->arrays.cull) {
695 c->arrays.cull = v0->flags & v1->flags & vertex_t::CLIP_ALL;
722 c->arrays.cull = vertex_t::CLIP_ALL;
723 c->arrays.compileElements(c, v, first, num);
726 if (!c->arrays.cull) {
765 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
787 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
788 c->arrays.compileElement(c, v0, read_index(type, indices));
814 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
815 c->arrays.compileElement(c, v0, read_index(type, indices));
841 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
870 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
871 c->arrays.compileElement(c, v0, read_index(type, indices));
872 c->arrays.compileElement(c, v1, read_index(type, indices));
876 // where it duplicates the loop below based on c->arrays.indicesType
909 if (ggl_likely(c->arrays.indicesType == GL_UNSIGNED_SHORT)) {
953 const GLubyte* vp = c->arrays.vertex.element(first);
956 c->arrays.vertex.fetch(c, v->obj.v, vp);
957 c->arrays.mvp_transform(&c->transforms.mvp, &v->clip, &v->obj);
958 c->arrays.perspective(c, v);
964 const GLubyte* vp = c->arrays.vertex.element(
966 const size_t stride = c->arrays.vertex.stride;
973 c->arrays.vertex.fetch(c, v->obj.v, vp);
974 c->arrays.mvp_transform(mvp, &v->clip, &v->obj);
975 c->arrays.perspective(c, v);
985 const GLfixed* vp = (const GLfixed*)c->arrays.vertex.element(first);
986 const size_t stride = c->arrays.vertex.stride / 4;
1012 c->arrays.cull &= clip;
1014 //c->arrays.perspective(c, v);
1071 c->arrays.clipVertex(c, nv, t, p, s);
1133 c->arrays.compileElement = compileElement__generic;
1134 c->arrays.compileElements = compileElements__generic;
1137 c->arrays.mvp_transform =
1138 c->transforms.mvp.pointv[c->arrays.vertex.size - 2];
1140 c->arrays.mv_transform =
1141 c->transforms.modelview.transform.pointv[c->arrays.vertex.size - 2];
1149 array_machine_t& am = c->arrays;
1195 const int index = c->arrays.texture[i].size - 2;
1196 c->arrays.tex_transform[i] =
1213 case 0: c->arrays.clipVertex = clipVertex; break;
1214 case 1: c->arrays.clipVertex = clipVertexC; break;
1215 case 2: c->arrays.clipVertex = clipVertexT; break;
1216 case 3: c->arrays.clipVertex = clipVertexAll; break;
1218 c->arrays.clipEye = clipEye;
1253 c->arrays.vertex.init(size, type, stride, pointer, c->arrays.array_buffer, 0);
1273 c->arrays.color.init(size, type, stride, pointer, c->arrays.array_buffer, 0);
1294 c->arrays.normal.init(3, type, stride, pointer, c->arrays.array_buffer, 0);
1315 const int tmu = c->arrays.activeTexture;
1316 c->arrays.texture[tmu].init(size, type, stride, pointer,
1317 c->arrays.array_buffer, 0);
1338 c->arrays.activeTexture = texture - GL_TEXTURE0;
1362 if (count == 0 || !c->arrays.vertex.enable)
1409 c->arrays.indicesType = type;
1415 if (count == 0 || !c->arrays.vertex.enable)
1426 if (c->arrays.element_array_buffer) {
1427 indices = c->arrays.element_array_buffer->data + uintptr_t(indices);
1467 c->arrays.array_buffer : c->arrays.element_array_buffer) = bo;
1486 c->arrays.array_buffer : c->arrays.element_array_buffer);
1516 c->arrays.array_buffer : c->arrays.element_array_buffer);
1542 if (c->arrays.element_array_buffer) {
1543 if (c->arrays.element_array_buffer->name == name) {
1544 c->arrays.element_array_buffer = 0;
1547 if (c->arrays.array_buffer) {
1548 if (c->arrays.array_buffer->name == name) {
1549 c->arrays.array_buffer = 0;
1552 if (c->arrays.vertex.bo) {
1553 if (c->arrays.vertex.bo->name == name) {
1554 c->arrays.vertex.bo = 0;
1557 if (c->arrays.normal.bo) {
1558 if (c->arrays.normal.bo->name == name) {
1559 c->arrays.normal.bo = 0;
1562 if (c->arrays.color.bo) {
1563 if (c->arrays.color.bo->name == name) {
1564 c->arrays.color.bo = 0;
1568 if (c->arrays.texture[t].bo) {
1569 if (c->arrays.texture[t].bo->name == name) {
1570 c->arrays.texture[t].bo = 0;