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

Method onAdd

Engine/source/gfx/sim/gfxStateBlockData.cpp:239–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool GFXStateBlockData::onAdd()
240{
241 if (!Parent::onAdd())
242 return false;
243
244 for (U32 i = 0; i < GFX_TEXTURE_STAGE_COUNT; i++)
245 {
246 if (mSamplerStates[i])
247 mSamplerStates[i]->setSamplerState(mState.samplers[i]);
248 }
249 return true;
250}
251
252
253IMPLEMENT_CONOBJECT( GFXSamplerStateData );

Callers

nothing calls this directly

Calls 1

setSamplerStateMethod · 0.45

Tested by

no test coverage detected