-------------------------------------------------------------------------------------- Description: Returns D3D declaration usage type for this particle element. Return Value: D3D declaration usage type for this particle element. --------------------------------------------------------------------------------------
| 84 | // D3D declaration usage type for this particle element. |
| 85 | // -------------------------------------------------------------------------------------- |
| 86 | Tr2VertexDefinition::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 | // -------------------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected