MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetD3DUsage

Method GetD3DUsage

trinity/Particle/Tr2ParticleElementDeclaration.cpp:86–96  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Returns D3D declaration usage type for this particle element. Return Value: D3D declaration usage type for this particle element. --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

84// D3D declaration usage type for this particle element.
85// --------------------------------------------------------------------------------------
86Tr2VertexDefinition::UsageCode Tr2ParticleElementDeclarationName::GetD3DUsage() const
87{
88 static const Tr2VertexDefinition::UsageCode usages[CUSTOM + 1] = {
89 Tr2VertexDefinition::TANGENT,
90 Tr2VertexDefinition::POSITION,
91 Tr2VertexDefinition::NORMAL,
92 Tr2VertexDefinition::BITANGENT,
93 Tr2VertexDefinition::TEXCOORD,
94 };
95 return usages[m_type];
96}
97
98
99// --------------------------------------------------------------------------------------

Callers 6

SpawnMethod · 0.80
PySetElementLayoutFunction · 0.80
RebuildDeclarationMethod · 0.80
SaveToCMFMethod · 0.80
SaveToGrannyMethod · 0.80
DoSpawnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected