| 850 | |
| 851 | |
| 852 | long TriTextureRes::UpdateSubresource( unsigned left, unsigned top, unsigned right, unsigned bottom, const void* source, unsigned sourcePitch ) |
| 853 | { |
| 854 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 855 | if( Tr2TextureAL* texture = GetTexture() ) |
| 856 | { |
| 857 | uint32_t slicePitch = 0; |
| 858 | return (HRESULT)texture->UpdateSubresource( Tr2TextureSubresource( 0 ).SetRect( left, top, right, bottom ), source, sourcePitch, slicePitch, renderContext ); |
| 859 | } |
| 860 | return E_FAIL; |
| 861 | } |
| 862 | |
| 863 | void TriTextureRes::SetAverageColor( float red, float green, float blue, float alpha ) |
| 864 | { |
nothing calls this directly
no test coverage detected