MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / renderGroup

Method renderGroup

Engine/source/navigation/duDebugDrawTorque.cpp:226–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void duDebugDrawTorque::renderGroup(U32 group)
227{
228 GFXStateBlockRef sb = GFX->createStateBlock(mDesc);
229 GFX->setStateBlock(sb);
230 // Use override color for all rendering.
231 if(mOverride)
232 {
233 U8 r, g, b, a;
234 rcCol(mOverrideColor, r, g, b, a);
235 PrimBuild::color4i(r, g, b, a);
236 }
237 for(U32 b = 0; b < mBuffers.size(); b++)
238 {
239 if(mBuffers[b].group == group)
240 renderBuffer(mBuffers[b]);
241 }
242}
243
244void duDebugDrawTorque::clear()
245{

Callers 2

renderMethod · 0.80
renderSceneMethod · 0.80

Calls 5

rcColFunction · 0.85
color4iFunction · 0.85
createStateBlockMethod · 0.80
setStateBlockMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected