File: texture_compression_astc_ldr.py

package info (click to toggle)
pyopengl 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,936 kB
  • ctags: 9,720
  • sloc: python: 49,408; makefile: 3
file content (38 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_KHR_texture_compression_astc_ldr'
_p.unpack_constants( """GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD""", globals())


def glInitTextureCompressionAstcLdrKHR():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )