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));
436 const int tmu = c->arrays.activeTexture;
439 case GL_COLOR_ARRAY: a = &c->arrays.color; break;
440 case GL_NORMAL_ARRAY: a = &c->arrays.normal; break;
441 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break;
442 case GL_VERTEX_ARRAY: a = &c->arrays.vertex; break;
475 c->arrays.compileElement(c, v, index);
545 c->arrays.cull = vertex_t::CLIP_ALL;
546 c->arrays.compileElements(c, v, first, num);
549 if (!c->arrays.cull) {
570 c->arrays.cull = vertex_t::CLIP_ALL;
571 c->arrays.compileElement(c, c->vc.vBuffer, first);
583 c->arrays.compileElements(c, v, first, num);
586 if (!c->arrays.cull) {
599 c->arrays.cull = v0->flags & vertex_t::CLIP_ALL;
611 c->arrays.compileElement(c, v1, first);
630 c->arrays.cull = vertex_t::CLIP_ALL;
631 c->arrays.compileElements(c, v, first, num);
634 if (!c->arrays.cull) {
660 c->arrays.cull = vertex_t::CLIP_ALL;
661 c->arrays.compileElements(c, c->vc.vBuffer, first, 2);
677 c->arrays.compileElements(c, v, first, num);
680 if (!c->arrays.cull) {
699 c->arrays.cull = v0->flags & v1->flags & vertex_t::CLIP_ALL;
726 c->arrays.cull = vertex_t::CLIP_ALL;
727 c->arrays.compileElements(c, v, first, num);
730 if (!c->arrays.cull) {
769 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
791 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
792 c->arrays.compileElement(c, v0, read_index(type, indices));
818 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
819 c->arrays.compileElement(c, v0, read_index(type, indices));
845 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
874 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE);
875 c->arrays.compileElement(c, v0, read_index(type, indices));
876 c->arrays.compileElement(c, v1, read_index(type, indices));
880 // where it duplicates the loop below based on c->arrays.indicesType
913 if (ggl_likely(c->arrays.indicesType == GL_UNSIGNED_SHORT)) {
957 const GLubyte* vp = c->arrays.vertex.element(first);
960 c->arrays.vertex.fetch(c, v->obj.v, vp);
961 c->arrays.mvp_transform(&c->transforms.mvp, &v->clip, &v->obj);
962 c->arrays.perspective(c, v);
968 const GLubyte* vp = c->arrays.vertex.element(
970 const size_t stride = c->arrays.vertex.stride;
977 c->arrays.vertex.fetch(c, v->obj.v, vp);
978 c->arrays.mvp_transform(mvp, &v->clip, &v->obj);
979 c->arrays.perspective(c, v);
989 const GLfixed* vp = (const GLfixed*)c->arrays.vertex.element(first);
990 const size_t stride = c->arrays.vertex.stride / 4;
1016 c->arrays.cull &= clip;
1018 //c->arrays.perspective(c, v);
1075 c->arrays.clipVertex(c, nv, t, p, s);
1137 c->arrays.compileElement = compileElement__generic;
1138 c->arrays.compileElements = compileElements__generic;
1141 c->arrays.mvp_transform =
1142 c->transforms.mvp.pointv[c->arrays.vertex.size - 2];
1144 c->arrays.mv_transform =
1145 c->transforms.modelview.transform.pointv[c->arrays.vertex.size - 2];
1153 array_machine_t& am = c->arrays;
1199 const int index = c->arrays.texture[i].size - 2;
1200 c->arrays.tex_transform[i] =
1217 case 0: c->arrays.clipVertex = clipVertex; break;
1218 case 1: c->arrays.clipVertex = clipVertexC; break;
1219 case 2: c->arrays.clipVertex = clipVertexT; break;
1220 case 3: c->arrays.clipVertex = clipVertexAll; break;
1222 c->arrays.clipEye = clipEye;
1257 c->arrays.vertex.init(size, type, stride, pointer, c->arrays.array_buffer, 0);
1277 c->arrays.color.init(size, type, stride, pointer, c->arrays.array_buffer, 0);
1298 c->arrays.normal.init(3, type, stride, pointer, c->arrays.array_buffer, 0);
1319 const int tmu = c->arrays.activeTexture;
1320 c->arrays.texture[tmu].init(size, type, stride, pointer,
1321 c->arrays.array_buffer, 0);
1342 c->arrays.activeTexture = texture - GL_TEXTURE0;
1366 if (count == 0 || !c->arrays.vertex.enable)
1413 c->arrays.indicesType = type;
1419 if (count == 0 || !c->arrays.vertex.enable)
1430 if (c->arrays.element_array_buffer) {
1431 indices = c->arrays.element_array_buffer->data + uintptr_t(indices);
1471 c->arrays.array_buffer : c->arrays.element_array_buffer) = bo;
1490 c->arrays.array_buffer : c->arrays.element_array_buffer);
1520 c->arrays.array_buffer : c->arrays.element_array_buffer);
1546 if (c->arrays.element_array_buffer) {
1547 if (c->arrays.element_array_buffer->name == name) {
1548 c->arrays.element_array_buffer = 0;
1551 if (c->arrays.array_buffer) {
1552 if (c->arrays.array_buffer->name == name) {
1553 c->arrays.array_buffer = 0;
1556 if (c->arrays.vertex.bo) {
1557 if (c->arrays.vertex.bo->name == name) {
1558 c->arrays.vertex.bo = 0;
1561 if (c->arrays.normal.bo) {
1562 if (c->arrays.normal.bo->name == name) {
1563 c->arrays.normal.bo = 0;
1566 if (c->arrays.color.bo) {
1567 if (c->arrays.color.bo->name == name) {
1568 c->arrays.color.bo = 0;
1572 if (c->arrays.texture[t].bo) {
1573 if (c->arrays.texture[t].bo->name == name) {
1574 c->arrays.texture[t].bo = 0;