| 62 | // |
| 63 | //***************************************************************************** |
| 64 | EPspTextureFormat 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 |