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

Method UpdateSubresource

trinity/Resources/TriTextureRes.cpp:852–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850
851
852long 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
863void TriTextureRes::SetAverageColor( float red, float green, float blue, float alpha )
864{

Callers

nothing calls this directly

Calls 2

SetRectMethod · 0.80

Tested by

no test coverage detected