| 76 | } |
| 77 | |
| 78 | void 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 | |
| 99 | void Tr2AtlasTexture::GetTextureWindow( Vector4& tw ) |
| 100 | { |
no test coverage detected