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

Method AllocateRenderTarget

trinity/Sprite2d/Tr2Sprite2dLayer.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void Tr2Sprite2dLayer::AllocateRenderTarget()
118{
119 if( m_renderTarget.IsValid() && ( (uint32_t)m_displayWidth == m_renderTarget.GetWidth() ) && ( (uint32_t)m_displayHeight == m_renderTarget.GetHeight() ) )
120 {
121 return;
122 }
123
124 m_isDirty = true;
125
126 FreeRenderTarget();
127
128 PrepareResources();
129}
130
131void Tr2Sprite2dLayer::FreeRenderTarget()
132{

Callers

nothing calls this directly

Calls 3

IsValidMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected