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

Method addElement

Engine/source/gfx/gfxVertexFormat.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void GFXVertexFormat::addElement( const String& semantic, GFXDeclType type, U32 index, U32 stream )
124{
125 mDirty = true;
126 mElements.increment();
127 GFXVertexElement& lastElement = mElements.last();
128 lastElement.mStreamIndex = stream;
129 lastElement.mSemantic = semantic.intern();
130 lastElement.mSemanticIndex = index;
131 lastElement.mType = type;
132}
133
134const String& GFXVertexFormat::getDescription() const
135{

Callers 7

getFormatMethod · 0.45
processVertMethod · 0.45
processVertMethod · 0.45
getObjTransMethod · 0.45
processVertMethod · 0.45
getObjTransMethod · 0.45
processVertMethod · 0.45

Calls 3

incrementMethod · 0.80
internMethod · 0.80
lastMethod · 0.45

Tested by

no test coverage detected