Index: ddraw/glTexture.cpp |
— | — | @@ -74,6 +74,7 @@ |
75 | 75 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0x7C00, 0x3E0, 0x1F, 0}, // 15 bit 555
|
76 | 76 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0xF800, 0x7E0, 0x1F, 0}, // 16 bit 565
|
77 | 77 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 24, 0xFF0000, 0xFF00, 0xFF, 0}, // 24 bit 888
|
| 78 | + {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 24, 0xFF, 0xFF00, 0xFF0000, 0}, // 24 bit 888 RGB
|
78 | 79 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 32, 0xFF0000, 0xFF00, 0xFF, 0}, // 32 bit 888
|
79 | 80 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 32, 0xFF, 0xFF00, 0xFF0000, 0}, // 32 bit 888 RGB
|
80 | 81 | {sizeof(DDPIXELFORMAT), DDPF_RGB|DDPF_ALPHAPIXELS, 0, 16, 0xE0, 0x1C, 0x3, 0xFF00}, // 16-bit 8332
|
— | — | @@ -864,7 +865,22 @@ |
865 | 866 | This->colorbits[2] = 8;
|
866 | 867 | This->colorbits[3] = 0;
|
867 | 868 | break;
|
868 | | - case 5: // 32-bit RGB888
|
| 869 | + case 5: // 24-bit BGR888
|
| 870 | + This->internalformats[0] = GL_RGB8;
|
| 871 | + This->internalformats[1] = GL_RGBA8;
|
| 872 | + This->format = GL_RGB;
|
| 873 | + This->type = GL_UNSIGNED_BYTE;
|
| 874 | + This->colororder = 1;
|
| 875 | + This->colorsizes[0] = 255;
|
| 876 | + This->colorsizes[1] = 255;
|
| 877 | + This->colorsizes[2] = 255;
|
| 878 | + This->colorsizes[3] = 1;
|
| 879 | + This->colorbits[0] = 8;
|
| 880 | + This->colorbits[1] = 8;
|
| 881 | + This->colorbits[2] = 8;
|
| 882 | + This->colorbits[3] = 0;
|
| 883 | + break;
|
| 884 | + case 6: // 32-bit RGB888
|
869 | 885 | This->internalformats[0] = GL_RGBA8;
|
870 | 886 | This->format = GL_BGRA;
|
871 | 887 | This->type = GL_UNSIGNED_INT_8_8_8_8_REV;
|
— | — | @@ -878,7 +894,7 @@ |
879 | 895 | This->colorbits[2] = 8;
|
880 | 896 | This->colorbits[3] = 0;
|
881 | 897 | break;
|
882 | | - case 6: // 32-bit BGR888
|
| 898 | + case 7: // 32-bit BGR888
|
883 | 899 | This->internalformats[0] = GL_RGBA8;
|
884 | 900 | This->format = GL_RGBA;
|
885 | 901 | This->type = GL_UNSIGNED_INT_8_8_8_8_REV;
|
— | — | @@ -892,7 +908,7 @@ |
893 | 909 | This->colorbits[2] = 8;
|
894 | 910 | This->colorbits[3] = 0;
|
895 | 911 | break;
|
896 | | - case 7: // 16-bit RGBA8332
|
| 912 | + case 8: // 16-bit RGBA8332
|
897 | 913 | This->useconv = TRUE;
|
898 | 914 | This->convfunctionupload = 0;
|
899 | 915 | This->convfunctiondownload = 1;
|
— | — | @@ -910,7 +926,7 @@ |
911 | 927 | This->colorbits[2] = 2;
|
912 | 928 | This->colorbits[3] = 8;
|
913 | 929 | break;
|
914 | | - case 8: // 16-bit RGBA4444
|
| 930 | + case 9: // 16-bit RGBA4444
|
915 | 931 | This->internalformats[0] = GL_RGBA4;
|
916 | 932 | This->internalformats[1] = GL_RGBA8;
|
917 | 933 | This->format = GL_BGRA;
|
— | — | @@ -925,7 +941,7 @@ |
926 | 942 | This->colorbits[2] = 4;
|
927 | 943 | This->colorbits[3] = 4;
|
928 | 944 | break;
|
929 | | - case 9: // 16-bit RGBA1555
|
| 945 | + case 10: // 16-bit RGBA1555
|
930 | 946 | This->internalformats[0] = GL_RGB5_A1;
|
931 | 947 | This->internalformats[1] = GL_RGBA8;
|
932 | 948 | This->format = GL_BGRA;
|
— | — | @@ -935,7 +951,7 @@ |
936 | 952 | This->colorbits[2] = 5;
|
937 | 953 | This->colorbits[3] = 1;
|
938 | 954 | break;
|
939 | | - case 10: // 32-bit RGBA8888
|
| 955 | + case 11: // 32-bit RGBA8888
|
940 | 956 | This->internalformats[0] = GL_RGBA8;
|
941 | 957 | This->format = GL_BGRA;
|
942 | 958 | This->type = GL_UNSIGNED_INT_8_8_8_8_REV;
|
— | — | @@ -949,7 +965,7 @@ |
950 | 966 | This->colorbits[2] = 8;
|
951 | 967 | This->colorbits[3] = 8;
|
952 | 968 | break;
|
953 | | - case 11: // 8-bit Luminance
|
| 969 | + case 12: // 8-bit Luminance
|
954 | 970 | This->internalformats[0] = GL_LUMINANCE8;
|
955 | 971 | This->internalformats[1] = GL_RGB8;
|
956 | 972 | This->internalformats[2] = GL_RGBA8;
|
— | — | @@ -965,7 +981,7 @@ |
966 | 982 | This->colorbits[2] = 0;
|
967 | 983 | This->colorbits[3] = 0;
|
968 | 984 | break;
|
969 | | - case 12: // 8-bit Alpha
|
| 985 | + case 13: // 8-bit Alpha
|
970 | 986 | This->internalformats[0] = GL_ALPHA8;
|
971 | 987 | This->format = GL_ALPHA;
|
972 | 988 | This->type = GL_UNSIGNED_BYTE;
|
— | — | @@ -979,7 +995,7 @@ |
980 | 996 | This->colorbits[2] = 0;
|
981 | 997 | This->colorbits[3] = 8;
|
982 | 998 | break;
|
983 | | - case 13: // 16-bit Luminance Alpha
|
| 999 | + case 14: // 16-bit Luminance Alpha
|
984 | 1000 | This->internalformats[0] = GL_LUMINANCE8_ALPHA8;
|
985 | 1001 | This->internalformats[1] = GL_RGBA8;
|
986 | 1002 | This->format = GL_LUMINANCE_ALPHA;
|
— | — | @@ -994,7 +1010,7 @@ |
995 | 1011 | This->colorbits[2] = 0;
|
996 | 1012 | This->colorbits[3] = 8;
|
997 | 1013 | break;
|
998 | | - case 14: // 16-bit Z buffer
|
| 1014 | + case 15: // 16-bit Z buffer
|
999 | 1015 | This->internalformats[0] = GL_DEPTH_COMPONENT16;
|
1000 | 1016 | This->format = GL_DEPTH_COMPONENT;
|
1001 | 1017 | This->type = GL_UNSIGNED_SHORT;
|
— | — | @@ -1008,7 +1024,7 @@ |
1009 | 1025 | This->colorbits[2] = 0;
|
1010 | 1026 | This->colorbits[3] = 0;
|
1011 | 1027 | break;
|
1012 | | - case 15: // 24-bit Z buffer
|
| 1028 | + case 16: // 24-bit Z buffer
|
1013 | 1029 | This->internalformats[0] = GL_DEPTH_COMPONENT24;
|
1014 | 1030 | This->format = GL_DEPTH_COMPONENT;
|
1015 | 1031 | This->type = GL_UNSIGNED_SHORT;
|
— | — | @@ -1022,7 +1038,7 @@ |
1023 | 1039 | This->colorbits[2] = 0;
|
1024 | 1040 | This->colorbits[3] = 0;
|
1025 | 1041 | break;
|
1026 | | - case 16: // 32/24 bit Z buffer
|
| 1042 | + case 17: // 32/24 bit Z buffer
|
1027 | 1043 | This->internalformats[0] = GL_DEPTH_COMPONENT24;
|
1028 | 1044 | This->format = GL_DEPTH_COMPONENT;
|
1029 | 1045 | This->type = GL_UNSIGNED_INT;
|
— | — | @@ -1036,7 +1052,7 @@ |
1037 | 1053 | This->colorbits[2] = 0;
|
1038 | 1054 | This->colorbits[3] = 0;
|
1039 | 1055 | break;
|
1040 | | - case 17: // 32-bit Z buffer
|
| 1056 | + case 18: // 32-bit Z buffer
|
1041 | 1057 | This->internalformats[0] = GL_DEPTH_COMPONENT32;
|
1042 | 1058 | This->format = GL_DEPTH_COMPONENT;
|
1043 | 1059 | This->type = GL_UNSIGNED_INT;
|
— | — | @@ -1050,7 +1066,7 @@ |
1051 | 1067 | This->colorbits[2] = 0;
|
1052 | 1068 | This->colorbits[3] = 0;
|
1053 | 1069 | break;
|
1054 | | - case 18: // 32-bit Z/Stencil buffer, depth LSB
|
| 1070 | + case 19: // 32-bit Z/Stencil buffer, depth LSB
|
1055 | 1071 | This->internalformats[0] = GL_DEPTH24_STENCIL8;
|
1056 | 1072 | This->format = GL_DEPTH_STENCIL;
|
1057 | 1073 | This->type = GL_UNSIGNED_INT_24_8;
|
— | — | @@ -1064,7 +1080,7 @@ |
1065 | 1081 | This->colorbits[2] = 0;
|
1066 | 1082 | This->colorbits[3] = 8;
|
1067 | 1083 | break;
|
1068 | | - case 19: // 32-bit Z/Stencil buffer, depth MSB
|
| 1084 | + case 20: // 32-bit Z/Stencil buffer, depth MSB
|
1069 | 1085 | This->internalformats[0] = GL_DEPTH24_STENCIL8;
|
1070 | 1086 | This->format = GL_DEPTH_STENCIL;
|
1071 | 1087 | This->type = GL_UNSIGNED_INT_24_8;
|
Index: dxglcfg/surfacegen.cpp |
— | — | @@ -1677,6 +1677,7 @@ |
1678 | 1678 | _T("15-bit 555"),
|
1679 | 1679 | _T("16-bit 565"),
|
1680 | 1680 | _T("24-bit 888"),
|
| 1681 | + _T("24-bit 888 RGB"),
|
1681 | 1682 | _T("32-bit 888"),
|
1682 | 1683 | _T("32-bit 888 RGB"),
|
1683 | 1684 | _T("16-bit 8332"),
|
— | — | @@ -1704,6 +1705,7 @@ |
1705 | 1706 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0x7C00, 0x3E0, 0x1F, 0}, // 15 bit 555
|
1706 | 1707 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0xF800, 0x7E0, 0x1F, 0}, // 16 bit 565
|
1707 | 1708 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 24, 0xFF0000, 0xFF00, 0xFF, 0}, // 24 bit 888
|
| 1709 | + {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 24, 0xFF, 0xFF00, 0xFF0000, 0}, // 24 bit 888 RGB
|
1708 | 1710 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 32, 0xFF0000, 0xFF00, 0xFF, 0}, // 32 bit 888
|
1709 | 1711 | {sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 32, 0xFF, 0xFF00, 0xFF0000, 0}, // 32 bit 888 RGB
|
1710 | 1712 | {sizeof(DDPIXELFORMAT), DDPF_RGB|DDPF_ALPHAPIXELS, 0, 16, 0xE0, 0x1C, 0x3, 0xFF00}, // 16-bit 8332
|