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

Method ConvertTexture

Source/HLEGraphics/ConvertImage.cpp:417–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415 }
416
417 static void ConvertTexture( const TextureDestInfo & dsti, const TextureInfo & ti )
418 {
419 switch( dsti.Format )
420 {
421 case TexFmt_5650: ConvertTextureT< NativePf5650 >( dsti, ti ); return;
422 case TexFmt_5551: ConvertTextureT< NativePf5551 >( dsti, ti ); return;
423 case TexFmt_4444: ConvertTextureT< NativePf4444 >( dsti, ti ); return;
424 case TexFmt_8888: ConvertTextureT< NativePf8888 >( dsti, ti ); return;
425
426 case TexFmt_CI4_8888: break;
427 case TexFmt_CI8_8888: break;
428
429 }
430 #ifdef DAEDALUS_DEBUG_CONSOLE
431 DAEDALUS_DL_ERROR( "Unhandled format" );
432 #endif
433 }
434};
435
436static void ConvertPalette(ETLutFmt tlut_format, NativePf8888 * dst, const void * src, u32 count)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected