File: shader_subroutine.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 (46 lines) | stat: -rw-r--r-- 2,063 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
'''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_shader_subroutine'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_shader_subroutine',False)
_p.unpack_constants( """GL_ACTIVE_SUBROUTINES 0x8DE5
GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
GL_MAX_SUBROUTINES 0x8DE7
GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
GL_COMPATIBLE_SUBROUTINES 0x8E4B""", globals())
@_f
@_p.types(_cs.GLint,_cs.GLuint,_cs.GLenum,arrays.GLcharArray)
def glGetSubroutineUniformLocation( program,shadertype,name ):pass
@_f
@_p.types(_cs.GLuint,_cs.GLuint,_cs.GLenum,arrays.GLcharArray)
def glGetSubroutineIndex( program,shadertype,name ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLenum,arrays.GLintArray)
def glGetActiveSubroutineUniformiv( program,shadertype,index,pname,values ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray)
def glGetActiveSubroutineUniformName( program,shadertype,index,bufsize,length,name ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray)
def glGetActiveSubroutineName( program,shadertype,index,bufsize,length,name ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLsizei,arrays.GLuintArray)
def glUniformSubroutinesuiv( shadertype,count,indices ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLint,arrays.GLuintArray)
def glGetUniformSubroutineuiv( shadertype,location,params ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glGetProgramStageiv( program,shadertype,pname,values ):pass


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