| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- // CodeGear C++Builder
- // Copyright (c) 1995, 2024 by Embarcadero Technologies, Inc.
- // All rights reserved
- // (DO NOT EDIT: machine generated header) 'Formats.DXTC.pas' rev: 36.00 (Windows)
- #ifndef Formats_DXTCHPP
- #define Formats_DXTCHPP
- #pragma delphiheader begin
- #pragma option push
- #if defined(__BORLANDC__) && !defined(__clang__)
- #pragma option -w- // All warnings off
- #pragma option -Vx // Zero-length empty class member
- #endif
- #pragma pack(push,8)
- #include <System.hpp>
- #include <SysInit.hpp>
- #include <Winapi.OpenGL.hpp>
- #include <Winapi.OpenGLext.hpp>
- #include <System.SysUtils.hpp>
- #include <Stage.TextureFormat.hpp>
- //-- user supplied -----------------------------------------------------------
- namespace Formats
- {
- namespace Dxtc
- {
- //-- forward type declarations -----------------------------------------------
- struct TDDPIXELFORMAT;
- struct TDDSURFACEDESC2;
- struct TDDSHeader;
- struct DXTColBlock;
- struct DXT3AlphaBlock;
- struct DXT5AlphaBlock;
- struct TDDS_HEADER_DXT10;
- struct TGLImageDataFormat;
- //-- type declarations -------------------------------------------------------
- struct DECLSPEC_DRECORD TDDPIXELFORMAT
- {
- public:
- unsigned dwSize;
- unsigned dwFlags;
- unsigned dwFourCC;
- unsigned dwRGBBitCount;
- unsigned dwRBitMask;
- unsigned dwGBitMask;
- unsigned dwBBitMask;
- unsigned dwRGBAlphaBitMask;
- };
- struct DECLSPEC_DRECORD TDDSURFACEDESC2
- {
- public:
- unsigned dwSize;
- unsigned dwFlags;
- unsigned dwHeight;
- unsigned dwWidth;
- unsigned dwPitchOrLinearSize;
- unsigned dwDepth;
- unsigned dwMipMapCount;
- System::StaticArray<unsigned, 11> dwReserved1;
- TDDPIXELFORMAT ddpf;
- unsigned dwCaps;
- unsigned dwCaps2;
- unsigned dwCaps3;
- unsigned dwCaps4;
- unsigned dwReserved2;
- };
- struct DECLSPEC_DRECORD TDDSHeader
- {
- public:
- unsigned Magic;
- TDDSURFACEDESC2 SurfaceFormat;
- };
- struct DECLSPEC_DRECORD DXTColBlock
- {
- public:
- System::Word col0;
- System::Word col1;
- System::StaticArray<System::Byte, 4> row;
- };
- typedef DXTColBlock *PDXTColBlock;
- struct DECLSPEC_DRECORD DXT3AlphaBlock
- {
- public:
- System::StaticArray<System::Word, 4> row;
- };
- typedef DXT3AlphaBlock *PDXT3AlphaBlock;
- struct DECLSPEC_DRECORD DXT5AlphaBlock
- {
- public:
- System::Byte alpha0;
- System::Byte alpha1;
- System::StaticArray<System::Byte, 6> row;
- };
- typedef DXT5AlphaBlock *PDXT5AlphaBlock;
- struct DECLSPEC_DRECORD TDDS_HEADER_DXT10
- {
- public:
- int dxgiFormat;
- int resourceDimension;
- unsigned miscFlag;
- unsigned arraySize;
- unsigned reserved;
- };
- typedef System::StaticArray<char, 4> TFOURCC;
- struct DECLSPEC_DRECORD TGLImageDataFormat
- {
- public:
- unsigned ColorFlag;
- unsigned RBits;
- unsigned GBits;
- unsigned BBits;
- unsigned ABits;
- unsigned colorFormat;
- Stage::Textureformat::TglInternalFormat TexFormat;
- unsigned dType;
- };
- //-- var, const, procedure ---------------------------------------------------
- static _DELPHI_CONST System::Int8 DDSD_CAPS = System::Int8(0x1);
- static _DELPHI_CONST System::Int8 DDSD_HEIGHT = System::Int8(0x2);
- static _DELPHI_CONST System::Int8 DDSD_WIDTH = System::Int8(0x4);
- static _DELPHI_CONST System::Int8 DDSD_PITCH = System::Int8(0x8);
- static _DELPHI_CONST System::Word DDSD_PIXELFORMAT = System::Word(0x1000);
- static _DELPHI_CONST int DDSD_MIPMAPCOUNT = int(0x20000);
- static _DELPHI_CONST int DDSD_LINEARSIZE = int(0x80000);
- static _DELPHI_CONST int DDSD_DEPTH = int(0x800000);
- static _DELPHI_CONST System::Int8 DDPF_ALPHAPIXELS = System::Int8(0x1);
- static _DELPHI_CONST System::Int8 DDPF_A = System::Int8(0x2);
- static _DELPHI_CONST System::Int8 DDPF_FOURCC = System::Int8(0x4);
- static _DELPHI_CONST System::Int8 DDPF_RGB = System::Int8(0x40);
- static _DELPHI_CONST System::Int8 DDPF_RGBA = System::Int8(0x41);
- static _DELPHI_CONST int DDPF_L = int(0x20000);
- static _DELPHI_CONST int DDPF_LA = int(0x20001);
- static _DELPHI_CONST System::Int8 DDSCAPS_COMPLEX = System::Int8(0x8);
- static _DELPHI_CONST System::Word DDSCAPS_TEXTURE = System::Word(0x1000);
- static _DELPHI_CONST int DDSCAPS_MIPMAP = int(0x400000);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP = System::Word(0x200);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEX = System::Word(0x400);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEX = System::Word(0x800);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEY = System::Word(0x1000);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEY = System::Word(0x2000);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_POSITIVEZ = System::Word(0x4000);
- static _DELPHI_CONST System::Word DDSCAPS2_CUBEMAP_NEGATIVEZ = System::Word(0x8000);
- static _DELPHI_CONST int DDSCAPS2_VOLUME = int(0x200000);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_FORCE_UINT = System::Int8(-1);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_UNKNOWN = System::Int8(0x0);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_TYPELESS = System::Int8(0x1);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_FLOAT = System::Int8(0x2);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_UINT = System::Int8(0x3);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32A32_SINT = System::Int8(0x4);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_TYPELESS = System::Int8(0x5);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_FLOAT = System::Int8(0x6);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_UINT = System::Int8(0x7);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32B32_SINT = System::Int8(0x8);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_TYPELESS = System::Int8(0x9);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_FLOAT = System::Int8(0xa);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_UNORM = System::Int8(0xb);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_UINT = System::Int8(0xc);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_SNORM = System::Int8(0xd);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16B16A16_SINT = System::Int8(0xe);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_TYPELESS = System::Int8(0xf);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_FLOAT = System::Int8(0x10);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_UINT = System::Int8(0x11);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G32_SINT = System::Int8(0x12);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32G8X24_TYPELESS = System::Int8(0x13);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_D32_FLOAT_S8X24_UINT = System::Int8(0x14);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = System::Int8(0x15);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = System::Int8(0x16);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_TYPELESS = System::Int8(0x17);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_UNORM = System::Int8(0x18);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10A2_UINT = System::Int8(0x19);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R11G11B10_FLOAT = System::Int8(0x1a);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_TYPELESS = System::Int8(0x1b);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UNORM = System::Int8(0x1c);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = System::Int8(0x1d);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_UINT = System::Int8(0x1e);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_SNORM = System::Int8(0x1f);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8B8A8_SINT = System::Int8(0x20);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_TYPELESS = System::Int8(0x21);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_FLOAT = System::Int8(0x22);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_UNORM = System::Int8(0x23);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_UINT = System::Int8(0x24);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_SNORM = System::Int8(0x25);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16G16_SINT = System::Int8(0x26);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_TYPELESS = System::Int8(0x27);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_D32_FLOAT = System::Int8(0x28);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_FLOAT = System::Int8(0x29);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_UINT = System::Int8(0x2a);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R32_SINT = System::Int8(0x2b);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R24G8_TYPELESS = System::Int8(0x2c);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_D24_UNORM_S8_UINT = System::Int8(0x2d);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R24_UNORM_X8_TYPELESS = System::Int8(0x2e);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_X24_TYPELESS_G8_UINT = System::Int8(0x2f);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_TYPELESS = System::Int8(0x30);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_UNORM = System::Int8(0x31);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_UINT = System::Int8(0x32);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_SNORM = System::Int8(0x33);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_SINT = System::Int8(0x34);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_TYPELESS = System::Int8(0x35);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_FLOAT = System::Int8(0x36);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_D16_UNORM = System::Int8(0x37);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_UNORM = System::Int8(0x38);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_UINT = System::Int8(0x39);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_SNORM = System::Int8(0x3a);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R16_SINT = System::Int8(0x3b);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_TYPELESS = System::Int8(0x3c);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_UNORM = System::Int8(0x3d);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_UINT = System::Int8(0x3e);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_SNORM = System::Int8(0x3f);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8_SINT = System::Int8(0x40);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_A8_UNORM = System::Int8(0x41);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R1_UNORM = System::Int8(0x42);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R9G9B9E5_SHAREDEXP = System::Int8(0x43);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R8G8_B8G8_UNORM = System::Int8(0x44);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_G8R8_G8B8_UNORM = System::Int8(0x45);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_TYPELESS = System::Int8(0x46);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_UNORM = System::Int8(0x47);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC1_UNORM_SRGB = System::Int8(0x48);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_TYPELESS = System::Int8(0x49);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_UNORM = System::Int8(0x4a);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC2_UNORM_SRGB = System::Int8(0x4b);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_TYPELESS = System::Int8(0x4c);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_UNORM = System::Int8(0x4d);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC3_UNORM_SRGB = System::Int8(0x4e);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_TYPELESS = System::Int8(0x4f);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_UNORM = System::Int8(0x50);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC4_SNORM = System::Int8(0x51);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_TYPELESS = System::Int8(0x52);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_UNORM = System::Int8(0x53);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC5_SNORM = System::Int8(0x54);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B5G6R5_UNORM = System::Int8(0x55);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B5G5R5A1_UNORM = System::Int8(0x56);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_UNORM = System::Int8(0x57);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_UNORM = System::Int8(0x58);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = System::Int8(0x59);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_TYPELESS = System::Int8(0x5a);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = System::Int8(0x5b);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_TYPELESS = System::Int8(0x5c);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = System::Int8(0x5d);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_TYPELESS = System::Int8(0x5e);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_UF16 = System::Int8(0x5f);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC6H_SF16 = System::Int8(0x60);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_TYPELESS = System::Int8(0x61);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_UNORM = System::Int8(0x62);
- static _DELPHI_CONST System::Int8 DXGI_FORMAT_BC7_UNORM_SRGB = System::Int8(0x63);
- static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_UNKNOWN = System::Int8(0x0);
- static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_BUFFER = System::Int8(0x1);
- static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE1D = System::Int8(0x2);
- static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE2D = System::Int8(0x3);
- static _DELPHI_CONST System::Int8 D3D11_RESOURCE_DIMENSION_TEXTURE3D = System::Int8(0x4);
- static _DELPHI_CONST System::Int8 FOURCC_UNKNOWN = System::Int8(0x0);
- static _DELPHI_CONST System::Int8 FOURCC_R8G8B8 = System::Int8(0x14);
- static _DELPHI_CONST System::Int8 FOURCC_A8R8G8B8 = System::Int8(0x15);
- static _DELPHI_CONST System::Int8 FOURCC_X8R8G8B8 = System::Int8(0x16);
- static _DELPHI_CONST System::Int8 FOURCC_R5G6B5 = System::Int8(0x17);
- static _DELPHI_CONST System::Int8 FOURCC_X1R5G5B5 = System::Int8(0x18);
- static _DELPHI_CONST System::Int8 FOURCC_A1R5G5B5 = System::Int8(0x19);
- static _DELPHI_CONST System::Int8 FOURCC_A4R4G4B4 = System::Int8(0x1a);
- static _DELPHI_CONST System::Int8 FOURCC_R3G3B2 = System::Int8(0x1b);
- static _DELPHI_CONST System::Int8 FOURCC_A8 = System::Int8(0x1c);
- static _DELPHI_CONST System::Int8 FOURCC_A8R3G3B2 = System::Int8(0x1d);
- static _DELPHI_CONST System::Int8 FOURCC_X4R4G4B4 = System::Int8(0x1e);
- static _DELPHI_CONST System::Int8 FOURCC_A2B10G10R10 = System::Int8(0x1f);
- static _DELPHI_CONST System::Int8 FOURCC_A8B8G8R8 = System::Int8(0x20);
- static _DELPHI_CONST System::Int8 FOURCC_X8B8G8R8 = System::Int8(0x21);
- static _DELPHI_CONST System::Int8 FOURCC_G16R16 = System::Int8(0x22);
- static _DELPHI_CONST System::Int8 FOURCC_A2R10G10B10 = System::Int8(0x23);
- static _DELPHI_CONST System::Int8 FOURCC_A16B16G16R16 = System::Int8(0x24);
- static _DELPHI_CONST System::Int8 FOURCC_L8 = System::Int8(0x32);
- static _DELPHI_CONST System::Int8 FOURCC_A8L8 = System::Int8(0x33);
- static _DELPHI_CONST System::Int8 FOURCC_A4L4 = System::Int8(0x34);
- static _DELPHI_CONST int FOURCC_DXT1 = int(0x31545844);
- static _DELPHI_CONST int FOURCC_DXT2 = int(0x32545844);
- static _DELPHI_CONST int FOURCC_DXT3 = int(0x33545844);
- static _DELPHI_CONST int FOURCC_DXT4 = int(0x34545844);
- static _DELPHI_CONST int FOURCC_DXT5 = int(0x35545844);
- static _DELPHI_CONST int FOURCC_ATI1 = int(0x31495441);
- static _DELPHI_CONST int FOURCC_ATI2 = int(0x32495441);
- static _DELPHI_CONST System::Int8 FOURCC_D16_LOCKABLE = System::Int8(0x46);
- static _DELPHI_CONST System::Int8 FOURCC_D32 = System::Int8(0x47);
- static _DELPHI_CONST System::Int8 FOURCC_D24X8 = System::Int8(0x4d);
- static _DELPHI_CONST System::Int8 FOURCC_D16 = System::Int8(0x50);
- static _DELPHI_CONST System::Int8 FOURCC_D32F_LOCKABLE = System::Int8(0x52);
- static _DELPHI_CONST System::Int8 FOURCC_L16 = System::Int8(0x51);
- static _DELPHI_CONST System::Int8 FOURCC_R16F = System::Int8(0x6f);
- static _DELPHI_CONST System::Int8 FOURCC_G16R16F = System::Int8(0x70);
- static _DELPHI_CONST System::Int8 FOURCC_A16B16G16R16F = System::Int8(0x71);
- static _DELPHI_CONST System::Int8 FOURCC_R32F = System::Int8(0x72);
- static _DELPHI_CONST System::Int8 FOURCC_G32R32F = System::Int8(0x73);
- static _DELPHI_CONST System::Int8 FOURCC_A32B32G32R32F = System::Int8(0x74);
- static _DELPHI_CONST int FOURCC_DX10 = int(0x47495844);
- extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 4> cImageDataFormat8bits;
- extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 5> cImageDataFormat16bits;
- extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 1> cImageDataFormat24bits;
- extern DELPHI_PACKAGE System::StaticArray<TGLImageDataFormat, 7> cImageDataFormat32bits;
- extern DELPHI_PACKAGE void __fastcall DecodeDXT1toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h, bool &trans);
- extern DELPHI_PACKAGE void __fastcall DecodeDXT3toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h);
- extern DELPHI_PACKAGE void __fastcall DecodeDXT5toBitmap32(System::Sysutils::PByteArray encData, System::Sysutils::PByteArray decData, int w, int h);
- extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc1(Winapi::Opengl::PGLubyte data, int numBlocks);
- extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc3(Winapi::Opengl::PGLubyte data, int numBlocks);
- extern DELPHI_PACKAGE void __fastcall flip_dxt5_alpha(PDXT5AlphaBlock block);
- extern DELPHI_PACKAGE void __fastcall flip_blocks_dxtc5(Winapi::Opengl::PGLubyte data, int numBlocks);
- 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);
- 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);
- extern DELPHI_PACKAGE bool __fastcall FindDDSCompatibleDataFormat(const Stage::Textureformat::TglInternalFormat iFormat, /* out */ unsigned &colorFormat, /* out */ unsigned &dataType);
- } /* namespace Dxtc */
- } /* namespace Formats */
- #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATS_DXTC)
- using namespace Formats::Dxtc;
- #endif
- #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FORMATS)
- using namespace Formats;
- #endif
- #pragma pack(pop)
- #pragma option pop
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // Formats_DXTCHPP
|