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

Method GetTexture

trinity/Resources/TriTextureRes.cpp:394–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394Tr2TextureAL* TriTextureRes::GetTexture()
395{
396 if( m_wrappedRenderTarget )
397 {
398 if( ( !m_texture || !m_texture->IsValid() ) && m_wrappedRenderTarget->GetRenderTarget().IsValid() )
399 {
400 SetTexture( m_wrappedRenderTarget->GetRenderTarget() );
401 }
402 }
403
404 return ( m_texture && m_texture->IsValid() ) ? m_texture : nullptr;
405}
406
407const Tr2TextureAL* TriTextureRes::GetTexture() const
408{

Callers 6

DrawToTextureMethod · 0.45
PrepareSpritesMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
CreateFromTextureMethod · 0.45
RenderDebugInfoMethod · 0.45

Calls 2

GetRenderTargetMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected