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

Method SetRenderTarget

trinity/Tr2AtlasTexture.cpp:78–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Tr2AtlasTexture::SetRenderTarget( Tr2TextureAL* rt )
79{
80 m_renderTarget = rt;
81 m_isGood = 1;
82 m_isPrepared = 1;
83 if( m_renderTarget )
84 {
85 m_width = rt->GetWidth();
86 m_textureWidth = m_width;
87 m_height = rt->GetHeight();
88 m_textureHeight = m_height;
89
90 CalcReciprocals();
91
92 m_textureWindow.x = 0.0f;
93 m_textureWindow.y = 0.0f;
94 m_textureWindow.z = 1.0f;
95 m_textureWindow.w = 1.0f;
96 }
97}
98
99void Tr2AtlasTexture::GetTextureWindow( Vector4& tw )
100{

Callers 6

RenderVolumetricsMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
InitRenderPassMethod · 0.45
StartRenderFaceMethod · 0.45
ApplyMethod · 0.45

Calls 2

GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected