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

Method Create

trinityal/stub/Tr2VertexLayoutALStub.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17ALResult Tr2VertexLayoutAL::Create( const Tr2VertexDefinition& definition, Tr2RenderContextAL& renderContext )
18{
19 if( !renderContext.IsValid() )
20 {
21 return E_FAIL;
22 }
23
24 m_definition = std::unique_ptr<Tr2VertexDefinition>( new Tr2VertexDefinition( definition ) );
25 if( definition.m_items.empty() )
26 {
27 return E_FAIL;
28 }
29 return S_OK;
30}
31
32void Tr2VertexLayoutAL::Destroy()
33{

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected