Formats.DXTC.hpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2024 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'Formats.DXTC.pas' rev: 36.00 (Windows)
  5. #ifndef Formats_DXTCHPP
  6. #define Formats_DXTCHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #if defined(__BORLANDC__) && !defined(__clang__)
  10. #pragma option -w- // All warnings off
  11. #pragma option -Vx // Zero-length empty class member
  12. #endif
  13. #pragma pack(push,8)
  14. #include <System.hpp>
  15. #include <SysInit.hpp>
  16. #include <Winapi.OpenGL.hpp>
  17. #include <Winapi.OpenGLext.hpp>
  18. #include <System.SysUtils.hpp>
  19. #include <Stage.TextureFormat.hpp>
  20. //-- user supplied -----------------------------------------------------------
  21. namespace Formats
  22. {
  23. namespace Dxtc
  24. {
  25. //-- forward type declarations -----------------------------------------------
  26. struct TDDPIXELFORMAT;
  27. struct TDDSURFACEDESC2;
  28. struct TDDSHeader;
  29. struct DXTColBlock;
  30. struct DXT3AlphaBlock;
  31. struct DXT5AlphaBlock;
  32. struct TDDS_HEADER_DXT10;
  33. struct TGLImageDataFormat;
  34. //-- type declarations -------------------------------------------------------
  35. struct DECLSPEC_DRECORD TDDPIXELFORMAT
  36. {
  37. public:
  38. unsigned dwSize;
  39. unsigned dwFlags;
  40. unsigned dwFourCC;
  41. unsigned dwRGBBitCount;
  42. unsigned dwRBitMask;
  43. unsigned dwGBitMask;
  44. unsigned dwBBitMask;
  45. unsigned dwRGBAlphaBitMask;
  46. };
  47. struct DECLSPEC_DRECORD TDDSURFACEDESC2
  48. {
  49. public:
  50. unsigned dwSize;
  51. unsigned dwFlags;
  52. unsigned dwHeight;
  53. unsigned dwWidth;
  54. unsigned dwPitchOrLinearSize;
  55. unsigned dwDepth;
  56. unsigned dwMipMapCount;
  57. System::StaticArray<unsigned, 11> dwReserved1;
  58. TDDPIXELFORMAT ddpf;
  59. unsigned dwCaps;
  60. unsigned dwCaps2;
  61. unsigned dwCaps3;
  62. unsigned dwCaps4;
  63. unsigned dwReserved2;
  64. };
  65. struct DECLSPEC_DRECORD TDDSHeader
  66. {
  67. public:
  68. unsigned Magic;
  69. TDDSURFACEDESC2 SurfaceFormat;
  70. };
  71. struct DECLSPEC_DRECORD DXTColBlock
  72. {
  73. public:
  74. System::Word col0;
  75. System::Word col1;
  76. System::StaticArray<System::Byte, 4> row;
  77. };
  78. typedef DXTColBlock *PDXTColBlock;
  79. struct DECLSPEC_DRECORD DXT3AlphaBlock
  80. {
  81. public:
  82. System::StaticArray<System::Word, 4> row;
  83. };
  84. typedef DXT3AlphaBlock *PDXT3AlphaBlock;
  85. struct DECLSPEC_DRECORD DXT5AlphaBlock
  86. {
  87. public:
  88. System::Byte alpha0;
  89. System::Byte alpha1;
  90. System::StaticArray<System::Byte, 6> row;
  91. };
  92. typedef DXT5AlphaBlock *PDXT5AlphaBlock;
  93. struct DECLSPEC_DRECORD TDDS_HEADER_DXT10
  94. {
  95. public:
  96. int dxgiFormat;
  97. int resourceDimension;
  98. unsigned miscFlag;
  99. unsigned arraySize;
  100. unsigned reserved;
  101. };
  102. typedef System::StaticArray<char, 4> TFOURCC;
  103. struct DECLSPEC_DRECORD TGLImageDataFormat
  104. {
  105. public:
  106. unsigned ColorFlag;
  107. unsigned RBits;
  108. unsigned GBits;
  109. unsigned BBits;
  110. unsigned ABits;
  111. unsigned colorFormat;
  112. Stage::Textureformat::TglInternalFormat TexFormat;
  113. unsigned dType;
  114. };
  115. //-- var, const, procedure ---------------------------------------------------
  116. static _DELPHI_CONST System::Int8 DDSD_CAPS = System::Int8(0x1);
  117. static _DELPHI_CONST System::Int8 DDSD_HEIGHT = System::Int8(0x2);
  118. static _DELPHI_CONST System::Int8 DDSD_WIDTH = System::Int8(0x4);
  119. static _DELPHI_CONST System::Int8 DDSD_PITCH = System::Int8(0x8);
  120. static _DELPHI_CONST System::Word DDSD_PIXELFORMAT = System::Word(0x1000);
  121. static _DELPHI_CONST int DDSD_MIPMAPCOUNT = int(0x20000);
  122. static _DELPHI_CONST int DDSD_LINEARSIZE = int(0x80000);
  123. static _DELPHI_CONST int DDSD_DEPTH = int(0x800000);
  124. static _DELPHI_CONST System::Int8 DDPF_ALPHAPIXELS = System::Int8(0x1);
  125. static _DELPHI_CONST System::Int8 DDPF_A = System::Int8(0x2);
  126. static _DELPHI_CONST System::Int8 DDPF_FOURCC = System::Int8(0x4);
  127. static _DELPHI_CONST System::Int8 DDPF_RGB = System::Int8(0x40);
  128. static _DELPHI_CONST System::Int8 DDPF_RGBA = System::Int8(0x41);
  129. static _DELPHI_CONST int DDPF_L = int(0x20000);
  130. static _DELPHI_CONST int DDPF_LA = int(0x20001);
  131. static _DELPHI_CONST System::Int8 DDSCAPS_COMPLEX = System::Int8(0x8);
  132. static _DELPHI_CONST System::Word DDSCAPS_TEXTURE = System::Word(0x1000);
  133. static _DELPHI_CONST int DDSCAPS_MIPMAP = int(0x400000);
  134. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP = System::Word(0x200);
  135. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEX = System::Word(0x400);
  136. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEX = System::Word(0x800);
  137. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEY = System::Word(0x1000);
  138. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEY = System::Word(0x2000);
  139. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEZ = System::Word(0x4000);
  140. static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEZ = System::Word(0x8000);
  141. static _DELPHI_CONST int DDSCAPS2_VOLUME = int(0x200000);
  142. static _DELPHI_CONST System::Int8 DXGI_FORMAT_FORCE_UINT = System::Int8(-1);
  143. static _DELPHI_CONST System::Int8 DXGI_FORMAT_UNKNOWN = System::Int8(0x0);
  144. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_TYPELESS = System::Int8(0x1);
  145. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_FLOAT = System::Int8(0x2);
  146. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_UINT = System::Int8(0x3);
  147. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_SINT = System::Int8(0x4);
  148. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_TYPELESS = System::Int8(0x5);
  149. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_FLOAT = System::Int8(0x6);
  150. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_UINT = System::Int8(0x7);
  151. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_SINT = System::Int8(0x8);
  152. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_TYPELESS = System::Int8(0x9);
  153. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_FLOAT = System::Int8(0xa);
  154. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_UNORM = System::Int8(0xb);
  155. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_UINT = System::Int8(0xc);
  156. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_SNORM = System::Int8(0xd);
  157. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_SINT = System::Int8(0xe);
  158. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_TYPELESS = System::Int8(0xf);
  159. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_FLOAT = System::Int8(0x10);
  160. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_UINT = System::Int8(0x11);
  161. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_SINT = System::Int8(0x12);
  162. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G8X24_TYPELESS = System::Int8(0x13);
  163. static _DELPHI_CONST System::Int8 DXGI_FORMAT_D32_FLOAT_S8X24_UINT = System::Int8(0x14);
  164. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = System::Int8(0x15);
  165. static _DELPHI_CONST System::Int8 DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = System::Int8(0x16);
  166. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_TYPELESS = System::Int8(0x17);
  167. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_UNORM = System::Int8(0x18);
  168. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_UINT = System::Int8(0x19);
  169. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R11G11B10_FLOAT = System::Int8(0x1a);
  170. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_TYPELESS = System::Int8(0x1b);
  171. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UNORM = System::Int8(0x1c);
  172. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = System::Int8(0x1d);
  173. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UINT = System::Int8(0x1e);
  174. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_SNORM = System::Int8(0x1f);
  175. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_SINT = System::Int8(0x20);
  176. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_TYPELESS = System::Int8(0x21);
  177. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_FLOAT = System::Int8(0x22);
  178. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_UNORM = System::Int8(0x23);
  179. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_UINT = System::Int8(0x24);
  180. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_SNORM = System::Int8(0x25);
  181. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_SINT = System::Int8(0x26);
  182. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_TYPELESS = System::Int8(0x27);
  183. static _DELPHI_CONST System::Int8 DXGI_FORMAT_D32_FLOAT = System::Int8(0x28);
  184. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_FLOAT = System::Int8(0x29);
  185. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_UINT = System::Int8(0x2a);
  186. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_SINT = System::Int8(0x2b);
  187. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R24G8_TYPELESS = System::Int8(0x2c);
  188. static _DELPHI_CONST System::Int8 DXGI_FORMAT_D24_UNORM_S8_UINT = System::Int8(0x2d);
  189. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R24_UNORM_X8_TYPELESS = System::Int8(0x2e);
  190. static _DELPHI_CONST System::Int8 DXGI_FORMAT_X24_TYPELESS_G8_UINT = System::Int8(0x2f);
  191. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_TYPELESS = System::Int8(0x30);
  192. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_UNORM = System::Int8(0x31);
  193. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_UINT = System::Int8(0x32);
  194. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_SNORM = System::Int8(0x33);
  195. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_SINT = System::Int8(0x34);
  196. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_TYPELESS = System::Int8(0x35);
  197. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_FLOAT = System::Int8(0x36);
  198. static _DELPHI_CONST System::Int8 DXGI_FORMAT_D16_UNORM = System::Int8(0x37);
  199. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_UNORM = System::Int8(0x38);
  200. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_UINT = System::Int8(0x39);
  201. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_SNORM = System::Int8(0x3a);
  202. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_SINT = System::Int8(0x3b);
  203. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_TYPELESS = System::Int8(0x3c);
  204. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_UNORM = System::Int8(0x3d);
  205. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_UINT = System::Int8(0x3e);
  206. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_SNORM = System::Int8(0x3f);
  207. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_SINT = System::Int8(0x40);
  208. static _DELPHI_CONST System::Int8 DXGI_FORMAT_A8_UNORM = System::Int8(0x41);
  209. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R1_UNORM = System::Int8(0x42);
  210. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R9G9B9E5_SHAREDEXP = System::Int8(0x43);
  211. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_B8G8_UNORM = System::Int8(0x44);
  212. static _DELPHI_CONST System::Int8 DXGI_FORMAT_G8R8_G8B8_UNORM = System::Int8(0x45);
  213. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_TYPELESS = System::Int8(0x46);
  214. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_UNORM = System::Int8(0x47);
  215. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_UNORM_SRGB = System::Int8(0x48);
  216. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_TYPELESS = System::Int8(0x49);
  217. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_UNORM = System::Int8(0x4a);
  218. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_UNORM_SRGB = System::Int8(0x4b);
  219. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_TYPELESS = System::Int8(0x4c);
  220. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_UNORM = System::Int8(0x4d);
  221. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_UNORM_SRGB = System::Int8(0x4e);
  222. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_TYPELESS = System::Int8(0x4f);
  223. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_UNORM = System::Int8(0x50);
  224. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_SNORM = System::Int8(0x51);
  225. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_TYPELESS = System::Int8(0x52);
  226. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_UNORM = System::Int8(0x53);
  227. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_SNORM = System::Int8(0x54);
  228. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B5G6R5_UNORM = System::Int8(0x55);
  229. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B5G5R5A1_UNORM = System::Int8(0x56);
  230. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_UNORM = System::Int8(0x57);
  231. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_UNORM = System::Int8(0x58);
  232. static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = System::Int8(0x59);
  233. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_TYPELESS = System::Int8(0x5a);
  234. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = System::Int8(0x5b);
  235. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_TYPELESS = System::Int8(0x5c);
  236. static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = System::Int8(0x5d);
  237. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_TYPELESS = System::Int8(0x5e);
  238. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_UF16 = System::Int8(0x5f);
  239. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_SF16 = System::Int8(0x60);
  240. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_TYPELESS = System::Int8(0x61);
  241. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_UNORM = System::Int8(0x62);
  242. static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_UNORM_SRGB = System::Int8(0x63);
  243. static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_UNKNOWN = System::Int8(0x0);
  244. static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_BUFFER = System::Int8(0x1);
  245. static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE1D = System::Int8(0x2);
  246. static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE2D = System::Int8(0x3);
  247. static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE3D = System::Int8(0x4);
  248. static _DELPHI_CONST System::Int8 FOURCC_UNKNOWN = System::Int8(0x0);
  249. static _DELPHI_CONST System::Int8 FOURCC_R8G8B8 = System::Int8(0x14);
  250. static _DELPHI_CONST System::Int8 FOURCC_A8R8G8B8 = System::Int8(0x15);
  251. static _DELPHI_CONST System::Int8 FOURCC_X8R8G8B8 = System::Int8(0x16);
  252. static _DELPHI_CONST System::Int8 FOURCC_R5G6B5 = System::Int8(0x17);
  253. static _DELPHI_CONST System::Int8 FOURCC_X1R5G5B5 = System::Int8(0x18);
  254. static _DELPHI_CONST System::Int8 FOURCC_A1R5G5B5 = System::Int8(0x19);
  255. static _DELPHI_CONST System::Int8 FOURCC_A4R4G4B4 = System::Int8(0x1a);
  256. static _DELPHI_CONST System::Int8 FOURCC_R3G3B2 = System::Int8(0x1b);
  257. static _DELPHI_CONST System::Int8 FOURCC_A8 = System::Int8(0x1c);
  258. static _DELPHI_CONST System::Int8 FOURCC_A8R3G3B2 = System::Int8(0x1d);
  259. static _DELPHI_CONST System::Int8 FOURCC_X4R4G4B4 = System::Int8(0x1e);
  260. static _DELPHI_CONST System::Int8 FOURCC_A2B10G10R10 = System::Int8(0x1f);
  261. static _DELPHI_CONST System::Int8 FOURCC_A8B8G8R8 = System::Int8(0x20);
  262. static _DELPHI_CONST System::Int8 FOURCC_X8B8G8R8 = System::Int8(0x21);
  263. static _DELPHI_CONST System::Int8 FOURCC_G16R16 = System::Int8(0x22);
  264. static _DELPHI_CONST System::Int8 FOURCC_A2R10G10B10 = System::Int8(0x23);
  265. static _DELPHI_CONST System::Int8 FOURCC_A16B16G16R16 = System::Int8(0x24);
  266. static _DELPHI_CONST System::Int8 FOURCC_L8 = System::Int8(0x32);
  267. static _DELPHI_CONST System::Int8 FOURCC_A8L8 = System::Int8(0x33);
  268. static _DELPHI_CONST System::Int8 FOURCC_A4L4 = System::Int8(0x34);
  269. static _DELPHI_CONST int FOURCC_DXT1 = int(0x31545844);
  270. static _DELPHI_CONST int FOURCC_DXT2 = int(0x32545844);
  271. static _DELPHI_CONST int FOURCC_DXT3 = int(0x33545844);
  272. static _DELPHI_CONST int FOURCC_DXT4 = int(0x34545844);
  273. static _DELPHI_CONST int FOURCC_DXT5 = int(0x35545844);
  274. static _DELPHI_CONST int FOURCC_ATI1 = int(0x31495441);
  275. static _DELPHI_CONST int FOURCC_ATI2 = int(0x32495441);
  276. static _DELPHI_CONST System::Int8 FOURCC_D16_LOCKABLE = System::Int8(0x46);
  277. static _DELPHI_CONST System::Int8 FOURCC_D32 = System::Int8(0x47);
  278. static _DELPHI_CONST System::Int8 FOURCC_D24X8 = System::Int8(0x4d);
  279. static _DELPHI_CONST System::Int8 FOURCC_D16 = System::Int8(0x50);
  280. static _DELPHI_CONST System::Int8 FOURCC_D32F_LOCKABLE = System::Int8(0x52);
  281. static _DELPHI_CONST System::Int8 FOURCC_L16 = System::Int8(0x51);
  282. static _DELPHI_CONST System::Int8 FOURCC_R16F = System::Int8(0x6f);
  283. static _DELPHI_CONST System::Int8 FOURCC_G16R16F = System::Int8(0x70);
  284. static _DELPHI_CONST System::Int8 FOURCC_A16B16G16R16F = System::Int8(0x71);
  285. static _DELPHI_CONST System::Int8 FOURCC_R32F = System::Int8(0x72);
  286. static _DELPHI_CONST System::Int8 FOURCC_G32R32F = System::Int8(0x73);
  287. static _DELPHI_CONST System::Int8 FOURCC_A32B32G32R32F = System::Int8(0x74);
  288. static _DELPHI_CONST int FOURCC_DX10 = int(0x47495844);
  289. extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 4> cImageDataFormat8bits;
  290. extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 5> cImageDataFormat16bits;
  291. extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 1> cImageDataFormat24bits;
  292. extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 7> cImageDataFormat32bits;
  293. extern DELPHI_PACKAGE void __fastcall DecodeDXT1toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h, bool &trans);
  294. extern DELPHI_PACKAGE void __fastcall DecodeDXT3toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h);
  295. extern DELPHI_PACKAGE void __fastcall DecodeDXT5toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h);
  296. extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc1(Winapi::Opengl::PGLubyte data, int numBlocks);
  297. extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc3(Winapi::Opengl::PGLubyte data, int numBlocks);
  298. extern DELPHI_PACKAGE void __fastcall flip_dxt5_alpha(PDXT5AlphaBlock block);
  299. extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc5(Winapi::Opengl::PGLubyte data, int numBlocks);
  300. extern DELPHI_PACKAGE bool __fastcall DDSHeaderToGLEnum(const TDDSHeader &DX9header, const TDDS_HEADER_DXT10 &DX11header, const bool useDX11, /* out */ Stage::Textureformat::TglInternalFormat &iFormat, /* out */ unsigned &colorFormat, /* out */ unsigned &dataType, /* out */ int &bpe);
  301. extern DELPHI_PACKAGE bool __fastcall GLEnumToDDSHeader(TDDSHeader &DX9header, TDDS_HEADER_DXT10 &DX11header, const bool useDX11, const Stage::Textureformat::TglInternalFormat iFormat, const unsigned colorFormat, const unsigned dataType, const int bpe);
  302. extern DELPHI_PACKAGE bool __fastcall FindDDSCompatibleDataFormat(const Stage::Textureformat::TglInternalFormat iFormat, /* out */ unsigned &colorFormat, /* out */ unsigned &dataType);
  303. } /* namespace Dxtc */
  304. } /* namespace Formats */
  305. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATS_DXTC)
  306. using namespace Formats::Dxtc;
  307. #endif
  308. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATS)
  309. using namespace Formats;
  310. #endif
  311. #pragma pack(pop)
  312. #pragma option pop
  313. #pragma delphiheader end.
  314. //-- end unit ----------------------------------------------------------------
  315. #endif // Formats_DXTCHPP