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

Function GetPspTextureFormat

Source/SysPSP/Graphics/NativeTexturePSP.cpp:64–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62//
63//*****************************************************************************
64EPspTextureFormat GetPspTextureFormat( ETextureFormat texture_format )
65{
66 switch( texture_format )
67 {
68 case TexFmt_5650: return PspTexFmt_5650;
69 case TexFmt_5551: return PspTexFmt_5551;
70 case TexFmt_4444: return PspTexFmt_4444;
71 case TexFmt_8888: return PspTexFmt_8888;
72
73 case TexFmt_CI4_8888: return PspTexFmt_T4;
74 case TexFmt_CI8_8888: return PspTexFmt_T8;
75 }
76
77#ifdef DAEDALUS_DEBUG_CONSOLE
78 DAEDALUS_ERROR( "Unhandled texture format" );
79 #endif
80 return PspTexFmt_8888;
81}
82
83//*****************************************************************************
84// This is slower, but necessary because it deals with heights of < 8

Callers 1

InstallTextureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected