41 INTERNAL_R8_UNORM = 0x8229,
42 INTERNAL_RG8_UNORM = 0x822B,
43 INTERNAL_RGB8_UNORM = 0x8051,
44 INTERNAL_RGBA8_UNORM = 0x8058,
46 INTERNAL_R16_UNORM = 0x822A,
47 INTERNAL_RG16_UNORM = 0x822C,
48 INTERNAL_RGB16_UNORM = 0x8054,
49 INTERNAL_RGBA16_UNORM = 0x805B,
51 INTERNAL_RGB10A2_UNORM = 0x8059,
54 INTERNAL_R8_SNORM = 0x8F94,
55 INTERNAL_RG8_SNORM = 0x8F95,
56 INTERNAL_RGB8_SNORM = 0x8F96,
57 INTERNAL_RGBA8_SNORM = 0x8F97,
59 INTERNAL_R16_SNORM = 0x8F98,
60 INTERNAL_RG16_SNORM= 0x8F99,
61 INTERNAL_RGB16_SNORM= 0x8F9A,
62 INTERNAL_RGBA16_SNORM = 0x8F9B,
65 INTERNAL_R8U = 0x8232,
66 INTERNAL_RG8U = 0x8238,
67 INTERNAL_RGB8U = 0x8D7D,
68 INTERNAL_RGBA8U = 0x8D7C,
70 INTERNAL_R16U = 0x8234,
71 INTERNAL_RG16U = 0x823A,
72 INTERNAL_RGB16U = 0x8D77,
73 INTERNAL_RGBA16U = 0x8D76,
75 INTERNAL_R32U = 0x8236,
76 INTERNAL_RG32U = 0x823C,
77 INTERNAL_RGB32U = 0x8D71,
78 INTERNAL_RGBA32U = 0x8D70,
80 INTERNAL_RGB10A2U = 0x906F,
83 INTERNAL_R8I = 0x8231,
84 INTERNAL_RG8I = 0x8237,
85 INTERNAL_RGB8I = 0x8D8F,
86 INTERNAL_RGBA8I = 0x8D8E,
88 INTERNAL_R16I = 0x8233,
89 INTERNAL_RG16I = 0x8239,
90 INTERNAL_RGB16I = 0x8D89,
91 INTERNAL_RGBA16I = 0x8D88,
93 INTERNAL_R32I = 0x8235,
94 INTERNAL_RG32I = 0x823B,
95 INTERNAL_RGB32I = 0x8D83,
96 INTERNAL_RGBA32I = 0x8D82,
99 INTERNAL_R16F = 0x822D,
100 INTERNAL_RG16F = 0x822F,
101 INTERNAL_RGB16F = 0x881B,
102 INTERNAL_RGBA16F = 0x881A,
104 INTERNAL_R32F = 0x822E,
105 INTERNAL_RG32F = 0x8230,
106 INTERNAL_RGB32F = 0x8815,
107 INTERNAL_RGBA32F = 0x8814,
110 INTERNAL_SR8 = 0x8FBD,
111 INTERNAL_SRG8 = 0x8FBE,
112 INTERNAL_SRGB8 = 0x8C41,
113 INTERNAL_SRGB8_ALPHA8 = 0x8C43,
116 INTERNAL_RGB9E5 = 0x8C3D,
117 INTERNAL_RG11B10F = 0x8C3A,
118 INTERNAL_RG3B2 = 0x2A10,
119 INTERNAL_R5G6B5 = 0x8D62,
120 INTERNAL_RGB5A1 = 0x8057,
121 INTERNAL_RGBA4 = 0x8056,
124 INTERNAL_LA4 = 0x8043,
125 INTERNAL_L8 = 0x8040,
126 INTERNAL_A8 = 0x803C,
127 INTERNAL_LA8 = 0x8045,
128 INTERNAL_L16 = 0x8042,
129 INTERNAL_A16 = 0x803E,
130 INTERNAL_LA16 = 0x8048,
133 INTERNAL_D16 = 0x81A5,
134 INTERNAL_D24 = 0x81A6,
135 INTERNAL_D24S8 = 0x88F0,
136 INTERNAL_D32 = 0x81A7,
137 INTERNAL_D32F = 0x8CAC,
138 INTERNAL_D32FS8X24 = 0x8CAD,
141 INTERNAL_RGB_DXT1 = 0x83F0,
142 INTERNAL_RGBA_DXT1 = 0x83F1,
143 INTERNAL_RGBA_DXT3 = 0x83F2,
144 INTERNAL_RGBA_DXT5 = 0x83F3,
145 INTERNAL_R_ATI1N_UNORM = 0x8DBB,
146 INTERNAL_R_ATI1N_SNORM = 0x8DBC,
147 INTERNAL_RG_ATI2N_UNORM = 0x8DBD,
148 INTERNAL_RG_ATI2N_SNORM = 0x8DBE,
149 INTERNAL_RGB_BP_UNSIGNED_FLOAT = 0x8E8F,
150 INTERNAL_RGB_BP_SIGNED_FLOAT = 0x8E8E,
151 INTERNAL_RGB_BP_UNORM = 0x8E8C,
152 INTERNAL_RGB_PVRTC_4BPPV1 = 0x8C00,
153 INTERNAL_RGB_PVRTC_2BPPV1 = 0x8C01,
154 INTERNAL_RGBA_PVRTC_4BPPV1 = 0x8C02,
155 INTERNAL_RGBA_PVRTC_2BPPV1 = 0x8C03,
156 INTERNAL_RGBA_PVRTC_4BPPV2 = 0x9137,
157 INTERNAL_RGBA_PVRTC_2BPPV2 = 0x9138,
158 INTERNAL_ATC_RGB = 0x8C92,
159 INTERNAL_ATC_RGBA_EXPLICIT_ALPHA = 0x8C93,
160 INTERNAL_ATC_RGBA_INTERPOLATED_ALPHA = 0x87EE,
162 INTERNAL_RGB_ETC = 0x8D64,
163 INTERNAL_RGB_ETC2 = 0x9274,
164 INTERNAL_RGBA_PUNCHTHROUGH_ETC2 = 0x9276,
165 INTERNAL_RGBA_ETC2_EAC = 0x9278,
166 INTERNAL_R11_EAC = 0x9270,
167 INTERNAL_SIGNED_R11_EAC = 0x9271,
168 INTERNAL_RG11_EAC = 0x9272,
169 INTERNAL_SIGNED_RG11_EAC = 0x9273,
171 INTERNAL_RGBA_ASTC_4x4 = 0x93B0,
172 INTERNAL_RGBA_ASTC_5x4 = 0x93B1,
173 INTERNAL_RGBA_ASTC_5x5 = 0x93B2,
174 INTERNAL_RGBA_ASTC_6x5 = 0x93B3,
175 INTERNAL_RGBA_ASTC_6x6 = 0x93B4,
176 INTERNAL_RGBA_ASTC_8x5 = 0x93B5,
177 INTERNAL_RGBA_ASTC_8x6 = 0x93B6,
178 INTERNAL_RGBA_ASTC_8x8 = 0x93B7,
179 INTERNAL_RGBA_ASTC_10x5 = 0x93B8,
180 INTERNAL_RGBA_ASTC_10x6 = 0x93B9,
181 INTERNAL_RGBA_ASTC_10x8 = 0x93BA,
182 INTERNAL_RGBA_ASTC_10x10 = 0x93BB,
183 INTERNAL_RGBA_ASTC_12x10 = 0x93BC,
184 INTERNAL_RGBA_ASTC_12x12 = 0x93BD,
187 INTERNAL_SRGB_DXT1 = 0x8C4C,
188 INTERNAL_SRGB_ALPHA_DXT1 = 0x8C4C,
189 INTERNAL_SRGB_ALPHA_DXT3 = 0x8C4E,
190 INTERNAL_SRGB_ALPHA_DXT5 = 0x8C4F,
191 INTERNAL_SRGB_BP_UNORM = 0x8E8D,
192 INTERNAL_SRGB_PVRTC_2BPPV1 = 0x8A54,
193 INTERNAL_SRGB_PVRTC_4BPPV1 = 0x8A55,
194 INTERNAL_SRGB_ALPHA_PVRTC_2BPPV1 = 0x8A56,
195 INTERNAL_SRGB_ALPHA_PVRTC_4BPPV1 = 0x8A57,
196 INTERNAL_SRGB_ALPHA_PVRTC_2BPPV2 = 0x93F0,
197 INTERNAL_SRGB_ALPHA_PVRTC_4BPPV2 = 0x93F1,
198 INTERNAL_SRGB8_ETC2 = 0x9275,
199 INTERNAL_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277,
200 INTERNAL_SRGB8_ALPHA8_ETC2_EAC = 0x9279,
201 INTERNAL_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0,
202 INTERNAL_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1,
203 INTERNAL_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2,
204 INTERNAL_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3,
205 INTERNAL_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4,
206 INTERNAL_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5,
207 INTERNAL_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6,
208 INTERNAL_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7,
209 INTERNAL_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8,
210 INTERNAL_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9,
211 INTERNAL_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA,
212 INTERNAL_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB,
213 INTERNAL_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC,
214 INTERNAL_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD
220 EXTERNAL_RED = 0x1903,
221 EXTERNAL_RG = 0x8227,
222 EXTERNAL_RGB= 0x1907,
223 EXTERNAL_BGR = 0x80E0,
224 EXTERNAL_RGBA = 0x1908,
225 EXTERNAL_BGRA = 0x80E1,
226 EXTERNAL_RED_INTEGER = 0x8D94,
227 EXTERNAL_RG_INTEGER = 0x8228,
228 EXTERNAL_RGB_INTEGER = 0x8D98,
229 EXTERNAL_BGR_INTEGER = 0x8D9A,
230 EXTERNAL_RGBA_INTEGER = 0x8D99,
231 EXTERNAL_BGRA_INTEGER = 0x8D9B,
232 EXTERNAL_DEPTH = 0x1902,
233 EXTERNAL_DEPTH_STENCIL = 0x84F9,
235 EXTERNAL_LUMINANCE = 0x1909,
236 EXTERNAL_ALPHA = 0x1906,
237 EXTERNAL_LUMINANCE_ALPHA = 0x190A,
239 EXTERNAL_RGB_DXT1 = 0x83F0,
240 EXTERNAL_RGBA_DXT1 = 0x83F1,
241 EXTERNAL_RGBA_DXT3 = 0x83F2,
242 EXTERNAL_RGBA_DXT5 = 0x83F3,
243 EXTERNAL_R_ATI1N_UNORM = 0x8DBB,
244 EXTERNAL_R_ATI1N_SNORM = 0x8DBC,
245 EXTERNAL_RG_ATI2N_UNORM = 0x8DBD,
246 EXTERNAL_RG_ATI2N_SNORM = 0x8DBE,
247 EXTERNAL_RGB_BP_UNSIGNED_FLOAT = 0x8E8F,
248 EXTERNAL_RGB_BP_SIGNED_FLOAT = 0x8E8E,
249 EXTERNAL_RGB_BP_UNORM = 0x8E8C,
250 EXTERNAL_RGB_PVRTC_4BPPV1 = 0x8C00,
251 EXTERNAL_RGB_PVRTC_2BPPV1 = 0x8C01,
252 EXTERNAL_RGBA_PVRTC_4BPPV1 = 0x8C02,
253 EXTERNAL_RGBA_PVRTC_2BPPV1 = 0x8C03,
254 EXTERNAL_RGBA_PVRTC_4BPPV2 = 0x9137,
255 EXTERNAL_RGBA_PVRTC_2BPPV2 = 0x9138,
256 EXTERNAL_ATC_RGB = 0x8C92,
257 EXTERNAL_ATC_RGBA_EXPLICIT_ALPHA = 0x8C93,
258 EXTERNAL_ATC_RGBA_INTERPOLATED_ALPHA = 0x87EE,
260 EXTERNAL_RGB_ETC = 0x8D64,
261 EXTERNAL_RGB8_ETC2 = 0x9274,
262 EXTERNAL_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276,
263 EXTERNAL_RGBA8_ETC2_EAC = 0x9278,
264 EXTERNAL_R11_EAC = 0x9270,
265 EXTERNAL_SIGNED_R11_EAC = 0x9271,
266 EXTERNAL_RG11_EAC = 0x9272,
267 EXTERNAL_SIGNED_RG11_EAC = 0x9273,
268 EXTERNAL_RGBA_ASTC_4x4 = 0x93B0,
269 EXTERNAL_RGBA_ASTC_5x4 = 0x93B1,
270 EXTERNAL_RGBA_ASTC_5x5 = 0x93B2,
271 EXTERNAL_RGBA_ASTC_6x5 = 0x93B3,
272 EXTERNAL_RGBA_ASTC_6x6 = 0x93B4,
273 EXTERNAL_RGBA_ASTC_8x5 = 0x93B5,
274 EXTERNAL_RGBA_ASTC_8x6 = 0x93B6,
275 EXTERNAL_RGBA_ASTC_8x8 = 0x93B7,
276 EXTERNAL_RGBA_ASTC_10x5 = 0x93B8,
277 EXTERNAL_RGBA_ASTC_10x6 = 0x93B9,
278 EXTERNAL_RGBA_ASTC_10x8 = 0x93BA,
279 EXTERNAL_RGBA_ASTC_10x10 = 0x93BB,
280 EXTERNAL_RGBA_ASTC_12x10 = 0x93BC,
281 EXTERNAL_RGBA_ASTC_12x12 = 0x93BD,
284 EXTERNAL_SRGB_DXT1 = 0x8C4C,
285 EXTERNAL_SRGB_ALPHA_DXT1 = 0x8C4C,
286 EXTERNAL_SRGB_ALPHA_DXT3 = 0x8C4E,
287 EXTERNAL_SRGB_ALPHA_DXT5 = 0x8C4F,
288 EXTERNAL_SRGB_BP_UNORM = 0x8E8D,
289 EXTERNAL_SRGB_PVRTC_2BPPV1 = 0x8A54,
290 EXTERNAL_SRGB_PVRTC_4BPPV1 = 0x8A55,
291 EXTERNAL_SRGB_ALPHA_PVRTC_2BPPV1 = 0x8A56,
292 EXTERNAL_SRGB_ALPHA_PVRTC_4BPPV1 = 0x8A57,
293 EXTERNAL_SRGB_ALPHA_PVRTC_2BPPV2 = 0x93F0,
294 EXTERNAL_SRGB_ALPHA_PVRTC_4BPPV2 = 0x93F1,
295 EXTERNAL_SRGB8_ETC2 = 0x9275,
296 EXTERNAL_RGBA_PUNCHTHROUGH_ETC2_SRGB = 0x9277,
297 EXTERNAL_SRGB8_ALPHA8_ETC2_EAC = 0x9279,
298 EXTERNAL_SRGB8_ALPHA8_ASTC_4x4 = 0x93D0,
299 EXTERNAL_SRGB8_ALPHA8_ASTC_5x4 = 0x93D1,
300 EXTERNAL_SRGB8_ALPHA8_ASTC_5x5 = 0x93D2,
301 EXTERNAL_SRGB8_ALPHA8_ASTC_6x5 = 0x93D3,
302 EXTERNAL_SRGB8_ALPHA8_ASTC_6x6 = 0x93D4,
303 EXTERNAL_SRGB8_ALPHA8_ASTC_8x5 = 0x93D5,
304 EXTERNAL_SRGB8_ALPHA8_ASTC_8x6 = 0x93D6,
305 EXTERNAL_SRGB8_ALPHA8_ASTC_8x8 = 0x93D7,
306 EXTERNAL_SRGB8_ALPHA8_ASTC_10x5 = 0x93D8,
307 EXTERNAL_SRGB8_ALPHA8_ASTC_10x6 = 0x93D9,
308 EXTERNAL_SRGB8_ALPHA8_ASTC_10x8 = 0x93DA,
309 EXTERNAL_SRGB8_ALPHA8_ASTC_10x10 = 0x93DB,
310 EXTERNAL_SRGB8_ALPHA8_ASTC_12x10 = 0x93DC,
311 EXTERNAL_SRGB8_ALPHA8_ASTC_12x12 = 0x93DD
325 TYPE_UINT32_RGB9_E5 = 0x8C3E,
326 TYPE_UINT32_RG11B10F = 0x8C3B,
327 TYPE_UINT8_RG3B2 = 0x8032,
328 TYPE_UINT8_RG3B2_REV = 0x8362,
329 TYPE_UINT16_RGB5A1 = 0x8034,
330 TYPE_UINT16_RGB5A1_REV = 0x8366,
331 TYPE_UINT16_R5G6B5 = 0x8363,
332 TYPE_UINT16_R5G6B5_REV = 0x8364,
333 TYPE_UINT16_RGBA4 = 0x8033,
334 TYPE_UINT16_RGBA4_REV = 0x8365,
335 TYPE_UINT32_RGB10A2 = 0x8036,
336 TYPE_UINT32_RGB10A2_REV = 0x8368
341 SWIZZLE_RED = 0x1903,
342 SWIZZLE_GREEN = 0x1904,
343 SWIZZLE_BLUE = 0x1905,
344 SWIZZLE_ALPHA = 0x1906,
345 SWIZZLE_ZERO = 0x0000,
346 SWIZZLE_ONE = 0x0001,
364 std::array<format, FORMAT_COUNT> Translation;
format const & translate(gli::format const &Format) const
OpenGL Image (gli.g-truc.net)