Debian Codegraph @

src/base/gl_texture_compression_constants.inc

raw
1 { Constants that specify texture compression for OpenGL.
2 Internal for both CastleInternalCompositeImage (used by KTX reader)
3 and for CastleGLImage (used to load images to OpenGL / OpenGLES).
4 }
5
6 const
7 { From https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc.txt }
8 GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG = $8C00;
9 GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG = $8C01;
10 GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = $8C02;
11 GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = $8C03;
12
13 { https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc2.txt }
14 GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG = $9138;
15 GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG = $9137;
16
17 { https://www.khronos.org/registry/gles/extensions/AMD/AMD_compressed_ATC_texture.txt }
18 GL_ATC_RGB_AMD = $8C92;
19 GL_ATC_RGBA_EXPLICIT_ALPHA_AMD = $8C93;
20 GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD = $87EE;
21
22 { https://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt }
23 GL_ETC1_RGB8_OES = $8D64;
24
25 { Copied from desktop OpenGL.
26 Matching
27 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_compression_s3tc.txt }
28 GL_COMPRESSED_RGB_S3TC_DXT1_EXT = $83F0;
29 GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = $83F1;
30 GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = $83F2;
31 GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = $83F3;
32
33 { Copied from /usr/include/GL/glcorearb.h, under GL_VERSION_4_3 1. }
34 { Unused for now:
35 GL_COMPRESSED_RGB8_ETC2 = $9274;
36 GL_COMPRESSED_SRGB8_ETC2 = $9275;
37 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = $9276;
38 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = $9277;
39 GL_COMPRESSED_RGBA8_ETC2_EAC = $9278;
40 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = $9279;
41 GL_COMPRESSED_R11_EAC = $9270;
42 GL_COMPRESSED_SIGNED_R11_EAC = $9271;
43 GL_COMPRESSED_RG11_EAC = $9272;
44 GL_COMPRESSED_SIGNED_RG11_EAC = $9273;
45 }
46
47 { https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_texture_compression_astc_hdr.txt }
48 GL_COMPRESSED_RGBA_ASTC_4x4_KHR = $93B0;
49 GL_COMPRESSED_RGBA_ASTC_5x4_KHR = $93B1;
50 GL_COMPRESSED_RGBA_ASTC_5x5_KHR = $93B2;
51 GL_COMPRESSED_RGBA_ASTC_6x5_KHR = $93B3;
52 GL_COMPRESSED_RGBA_ASTC_6x6_KHR = $93B4;
53 GL_COMPRESSED_RGBA_ASTC_8x5_KHR = $93B5;
54 GL_COMPRESSED_RGBA_ASTC_8x6_KHR = $93B6;
55 GL_COMPRESSED_RGBA_ASTC_8x8_KHR = $93B7;
56 GL_COMPRESSED_RGBA_ASTC_10x5_KHR = $93B8;
57 GL_COMPRESSED_RGBA_ASTC_10x6_KHR = $93B9;
58 GL_COMPRESSED_RGBA_ASTC_10x8_KHR = $93BA;
59 GL_COMPRESSED_RGBA_ASTC_10x10_KHR = $93BB;
60 GL_COMPRESSED_RGBA_ASTC_12x10_KHR = $93BC;
61 GL_COMPRESSED_RGBA_ASTC_12x12_KHR = $93BD;
62
63 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = $93D0;
64 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = $93D1;
65 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = $93D2;
66 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = $93D3;
67 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = $93D4;
68 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = $93D5;
69 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = $93D6;
70 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = $93D7;
71 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = $93D8;
72 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = $93D9;
73 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = $93DA;
74 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = $93DB;
75 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = $93DC;
76 GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = $93DD;