MCPcopy Create free account
hub / github.com/assaultcube/AC / renderstrips

Function renderstrips

source/src/rendercubes.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void 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
76void addstrip(int type, int tex, int start, int n)
77{

Callers 3

drawreflectionFunction · 0.85
drawminimapFunction · 0.85
gl_drawframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected