MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Recolour

Function Recolour

Source/Graphics/TextureTransform.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Recolour( void * data, void * palette, u32 width, u32 height, u32 stride, ETextureFormat texture_format, c32 colour )
61{
62 switch( texture_format )
63 {
64 case TexFmt_5650: RecolourTexture< NativePf5650 >( data, width, height, stride, colour ); return;
65 case TexFmt_5551: RecolourTexture< NativePf5551 >( data, width, height, stride, colour ); return;
66 case TexFmt_4444: RecolourTexture< NativePf4444 >( data, width, height, stride, colour ); return;
67 case TexFmt_8888: RecolourTexture< NativePf8888 >( data, width, height, stride, colour ); return;
68 case TexFmt_CI4_8888: RecolourPalette< NativePf8888 >( palette, 16, colour ); return;
69 case TexFmt_CI8_8888: RecolourPalette< NativePf8888 >( palette, 256, colour ); return;
70 }
71 #ifdef DAEDALUS_DEBUG_CONSOLE
72 DAEDALUS_ERROR( "Unhandled texture format" );
73 #endif
74}
75
76
77template< typename T >

Callers 1

UpdateTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected