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

Method ~Tr2Sprite2dDisplayList

trinity/Sprite2d/Tr2Sprite2dDisplayList.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21Tr2Sprite2dDisplayList::~Tr2Sprite2dDisplayList()
22{
23 TriDevice::UnregisterResource( this );
24 CCP_STATS_DEC( displayListCount );
25
26 if( vertexBuffer.IsValid() )
27 {
28 CCP_STATS_ADD( displayListVertexBufferSize, -double( vertexBuffer.GetSize() ) );
29 vertexBuffer = Tr2BufferAL();
30 }
31 if( indexBuffer.IsValid() )
32 {
33 CCP_STATS_ADD( displayListIndexBufferSize, -double( indexBuffer.GetSize() ) );
34 indexBuffer = Tr2BufferAL();
35 }
36}
37
38void Tr2Sprite2dDisplayList::ReleaseResources( TriStorage s )
39{

Callers

nothing calls this directly

Calls 3

Tr2BufferALClass · 0.50
IsValidMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected