MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getTriDraw

Function getTriDraw

TheForceEngine/TFE_RenderShared/triDraw3d.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 Tri3dDraw* getTriDraw(DrawMode pass)
181 {
182 if (s_triDrawCount[pass] >= s_triDrawCapacity[pass])
183 {
184 if (!triDraw3d_expand(pass)) { return nullptr; }
185 }
186 Tri3dDraw* draw = &s_triDraw[pass][s_triDrawCount[pass]];
187 s_triDrawCount[pass]++;
188 return draw;
189 }
190
191 bool canMergeDraws(DrawMode mode, TextureGpu* texture, u32 drawFlags)
192 {

Callers 6

triDraw3d_addTexturedFunction · 0.85
triDraw3d_addQuadColoredFunction · 0.85
triDraw3d_addColoredFunction · 0.85

Calls 1

triDraw3d_expandFunction · 0.85

Tested by

no test coverage detected