File: program_interface_query.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 (78 lines) | stat: -rw-r--r-- 2,980 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p, constants as _cs, arrays
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_ARB_program_interface_query'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_program_interface_query',False)
_p.unpack_constants( """GL_UNIFORM 0x92E1
GL_UNIFORM_BLOCK 0x92E2
GL_PROGRAM_INPUT 0x92E3
GL_PROGRAM_OUTPUT 0x92E4
GL_BUFFER_VARIABLE 0x92E5
GL_SHADER_STORAGE_BLOCK 0x92E6
GL_VERTEX_SUBROUTINE 0x92E8
GL_TESS_CONTROL_SUBROUTINE 0x92E9
GL_TESS_EVALUATION_SUBROUTINE 0x92EA
GL_GEOMETRY_SUBROUTINE 0x92EB
GL_FRAGMENT_SUBROUTINE 0x92EC
GL_COMPUTE_SUBROUTINE 0x92ED
GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
GL_ACTIVE_RESOURCES 0x92F5
GL_MAX_NAME_LENGTH 0x92F6
GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
GL_NAME_LENGTH 0x92F9
GL_TYPE 0x92FA
GL_ARRAY_SIZE 0x92FB
GL_OFFSET 0x92FC
GL_BLOCK_INDEX 0x92FD
GL_ARRAY_STRIDE 0x92FE
GL_MATRIX_STRIDE 0x92FF
GL_IS_ROW_MAJOR 0x9300
GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
GL_BUFFER_BINDING 0x9302
GL_BUFFER_DATA_SIZE 0x9303
GL_NUM_ACTIVE_VARIABLES 0x9304
GL_ACTIVE_VARIABLES 0x9305
GL_REFERENCED_BY_VERTEX_SHADER 0x9306
GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
GL_TOP_LEVEL_ARRAY_SIZE 0x930C
GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
GL_LOCATION 0x930E
GL_LOCATION_INDEX 0x930F
GL_IS_PER_PATCH 0x92E7""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glGetProgramInterfaceiv( program,programInterface,pname,params ):pass
@_f
@_p.types(_cs.GLuint,_cs.GLuint,_cs.GLenum,arrays.GLcharArray)
def glGetProgramResourceIndex( program,programInterface,name ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray)
def glGetProgramResourceName( program,programInterface,index,bufSize,length,name ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLsizei,arrays.GLuintArray,_cs.GLsizei,arrays.GLsizeiArray,arrays.GLintArray)
def glGetProgramResourceiv( program,programInterface,index,propCount,props,bufSize,length,params ):pass
@_f
@_p.types(_cs.GLint,_cs.GLuint,_cs.GLenum,arrays.GLcharArray)
def glGetProgramResourceLocation( program,programInterface,name ):pass
@_f
@_p.types(_cs.GLint,_cs.GLuint,_cs.GLenum,arrays.GLcharArray)
def glGetProgramResourceLocationIndex( program,programInterface,name ):pass


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