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

Method hasAccumulation

Engine/source/ts/tsShapeInstance.cpp:890–900  ·  view source on GitHub ↗

Returns true is the shape contains any materials with accumulation enabled.

Source from the content-addressed store, hash-verified

888
889// Returns true is the shape contains any materials with accumulation enabled.
890bool TSShapeInstance::hasAccumulation()
891{
892 bool result = false;
893 for ( U32 i = 0; i < mMaterialList->size(); ++i )
894 {
895 BaseMatInstance* mat = mMaterialList->getMaterialInst(i);
896 if ( mat->hasAccumulation() )
897 result = true;
898 }
899 return result;
900}
901
902void TSShapeInstance::setUseOwnBuffer()
903{

Callers 4

onRemoveMethod · 0.45
setTransformMethod · 0.45
onRemoveMethod · 0.45
setTransformMethod · 0.45

Calls 2

getMaterialInstMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected