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

Method Tr2Blitter

trinity/Tr2Blitter.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace Tr2RenderContextEnum;
16
17Tr2Blitter::Tr2Blitter() :
18 m_screenVertexDecl( -1 ), m_mipLevelVar( "mipLevel", 0.f )
19{
20 GlobalStore().RegisterVariable( "BlitSource", static_cast<ITr2TextureProvider*>( nullptr ) );
21
22 // create all shaders needed in the blitter
23 m_blitEffect.CreateInstance();
24 m_blitEffect->SetEffectPathName( BLIT_EFFECT_PATH );
25 m_blitFilteredEffect.CreateInstance();
26 m_blitFilteredEffect->SetEffectPathName( BLIT_FILTERED_EFFECT_PATH );
27
28 Tr2Blitter::PrepareResources();
29}
30
31Tr2Blitter::~Tr2Blitter()
32{

Callers

nothing calls this directly

Calls 3

RegisterVariableMethod · 0.80
CreateInstanceMethod · 0.80
SetEffectPathNameMethod · 0.80

Tested by

no test coverage detected