| 57 | } |
| 58 | |
| 59 | void renderstrips() |
| 60 | { |
| 61 | loopj(renderedtexs) |
| 62 | { |
| 63 | stripbatch &sb = stripbatches[j]; |
| 64 | glBindTexture(GL_TEXTURE_2D, lookupworldtexture(sb.tex)->id); |
| 65 | RENDERSTRIPS(sb.tris, GL_TRIANGLES); |
| 66 | RENDERSTRIPS(sb.tristrips, GL_TRIANGLE_STRIP); |
| 67 | RENDERSTRIPS(sb.quads, GL_QUADS); |
| 68 | } |
| 69 | renderedtexs = 0; |
| 70 | |
| 71 | glDisableClientState(GL_VERTEX_ARRAY); |
| 72 | glDisableClientState(GL_COLOR_ARRAY); |
| 73 | glDisableClientState(GL_TEXTURE_COORD_ARRAY); |
| 74 | } |
| 75 | |
| 76 | void addstrip(int type, int tex, int start, int n) |
| 77 | { |
no outgoing calls
no test coverage detected