Get an appropriate texture loader for the given type.
| 778 | |
| 779 | // Get an appropriate texture loader for the given type. |
| 780 | static TextureLoader GetTextureLoader( DDSType type ) |
| 781 | { |
| 782 | switch( type ) { |
| 783 | case DDS_A8R8G8B8: |
| 784 | return LoadA8R8G8B8; |
| 785 | case DDS_A1R5G5B5: |
| 786 | return LoadA1R5G5B5; |
| 787 | case DDS_A4R4G4B4: |
| 788 | return LoadA4R4G4B4; |
| 789 | case DDS_R8G8B8: |
| 790 | return LoadR8G8B8; |
| 791 | case DDS_R5G6B5: |
| 792 | return LoadR5G6B5; |
| 793 | case DDS_DXT1: |
| 794 | return LoadDXT1; |
| 795 | case DDS_DXT2: |
| 796 | return LoadDXT2; |
| 797 | case DDS_DXT3: |
| 798 | return LoadDXT3; |
| 799 | case DDS_DXT4: |
| 800 | return LoadDXT4; |
| 801 | case DDS_DXT5: |
| 802 | return LoadDXT5; |
| 803 | case DDS_RXGB: |
| 804 | return LoadRXGB; |
| 805 | case DDS_ATI2: |
| 806 | return LoadATI2; |
| 807 | default: |
| 808 | return NULL; |
| 809 | }; |
| 810 | } |
| 811 | |
| 812 | |
| 813 | // Load a 2d texture. |
no outgoing calls
no test coverage detected