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

Method reset

Engine/source/materials/processedMaterial.cpp:41–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void RenderPassData::reset()
42{
43 for( U32 i = 0; i < Material::MAX_TEX_PER_PASS; ++ i )
44 {
45 destructInPlace( &mTexSlot[ i ] );
46 mSamplerNames[ i ].clear();
47 }
48
49 dMemset( &mTexSlot, 0, sizeof(mTexSlot) );
50 dMemset( &mTexType, 0, sizeof(mTexType) );
51
52 mCubeMap = NULL;
53 mNumTex = mNumTexReg = mStageNum = 0;
54 mGlow = false;
55 mBlendOp = Material::None;
56
57 mFeatureData.clear();
58
59 for (U32 i = 0; i < STATE_MAX; i++)
60 mRenderStates[i] = NULL;
61}
62
63String RenderPassData::describeSelf() const
64{

Callers

nothing calls this directly

Calls 3

destructInPlaceFunction · 0.85
dMemsetFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected