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

Method Tr2PrimitiveScene

trinity/Tr2PrimitiveScene.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25};
26
27Tr2PrimitiveScene::Tr2PrimitiveScene( IRoot* lockobj ) :
28 PARENTLOCK( m_primitives ),
29 PARENTLOCK( m_textLabels ),
30 m_pickBuffer( NULL, Tr2RenderContextEnum::PIXEL_FORMAT_R32G32B32A32_FLOAT, 1 )
31{
32 m_pickBuffer.PrepareResources();
33 m_allocator = CCP_NEW( "Tr2PrimitiveScene/m_allocator" ) TriPoolAllocator();
34 m_opaqueBatches = CCP_NEW( "Tr2PrimitiveScene/m_opaqueBatches" ) TriRenderBatchAccumulator<>( m_allocator );
35 m_pickingBatches = CCP_NEW( "Tr2PrimitiveScene/m_pickingBatches" ) TriRenderBatchAccumulator<>( m_allocator );
36}
37
38Tr2PrimitiveScene::~Tr2PrimitiveScene()
39{

Callers

nothing calls this directly

Calls 2

PrepareResourcesMethod · 0.80
TriPoolAllocatorClass · 0.70

Tested by

no test coverage detected