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

Method getNumBlendIndices

Engine/source/gfx/gfxVertexFormat.cpp:190–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190U32 GFXVertexFormat::getNumBlendIndices() const
191{
192 if ( mDirty )
193 const_cast<GFXVertexFormat*>(this)->_updateDirty();
194
195 if ( !mHasBlendIndices )
196 return 0;
197
198 U32 numIndices = 0;
199
200 for ( U32 i=0; i < mElements.size(); i++ )
201 {
202 const GFXVertexElement &element = mElements[i];
203
204 if ( element.isSemantic( GFXSemantic::BLENDINDICES ) )
205 numIndices++;
206 }
207
208 return numIndices;
209}
210
211U32 GFXVertexFormat::getTexCoordCount() const
212{

Callers 2

processVertMethod · 0.80
processVertMethod · 0.80

Calls 3

_updateDirtyMethod · 0.80
isSemanticMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected