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

Function render_tris

source/src/rendercubes.cpp:325–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void render_tris(int x, int y, int size, bool topleft,
326 sqr *h1, sqr *h2, sqr *s, sqr *t, sqr *u, sqr *v)
327{
328 if(topleft)
329 {
330 if(h1) render_2tris(h1, s, x+size, y+size, x, y+size, x, y, u, v, s);
331 if(h2) render_2tris(h2, s, x, y, x+size, y, x+size, y+size, s, t, v);
332 }
333 else
334 {
335 if(h1) render_2tris(h1, s, x, y, x+size, y, x, y+size, s, t, u);
336 if(h2) render_2tris(h2, s, x+size, y, x+size, y+size, x, y+size, t, u, v);
337 }
338}
339
340void render_square(int wtex, float floor1, float floor2, float ceil1, float ceil2, int x1, int y1, int x2, int y2, int size, sqr *l1, sqr *l2, bool flip, int dir) // wall quads
341{

Callers 1

worldrender.cppFile · 0.85

Calls 1

render_2trisFunction · 0.85

Tested by

no test coverage detected