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

Method OnPrepareResources

trinity/TriDebugResourceHelper.cpp:23–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool TriDebugResourceHelper::OnPrepareResources()
24{
25 {
26 Tr2VertexDefinition vd;
27 vd.Add( vd.FLOAT32_3, vd.POSITION );
28 m_vertexPosDecl = Tr2EffectStateManager::GetVertexDeclarationHandle( vd );
29 }
30
31 {
32 Tr2VertexDefinition vd;
33 vd.Add( vd.FLOAT32_3, vd.POSITION );
34 vd.Add( vd.UBYTE_4_NORM, vd.COLOR );
35 m_vertexPosColorDecl = Tr2EffectStateManager::GetVertexDeclarationHandle( vd );
36 }
37
38 return true;
39}
40
41void TriDebugResourceHelper::ReleaseResources( TriStorage s )
42{

Callers

nothing calls this directly

Calls 2

AddMethod · 0.45

Tested by

no test coverage detected