File: vertex_attrib_binding.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 (56 lines) | stat: -rw-r--r-- 2,503 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
'''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_vertex_attrib_binding'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_vertex_attrib_binding',False)
_p.unpack_constants( """GL_VERTEX_ATTRIB_BINDING 0x82D4
GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
GL_VERTEX_BINDING_DIVISOR 0x82D6
GL_VERTEX_BINDING_OFFSET 0x82D7
GL_VERTEX_BINDING_STRIDE 0x82D8
GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLintptr,_cs.GLsizei)
def glBindVertexBuffer( bindingindex,buffer,offset,stride ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLboolean,_cs.GLuint)
def glVertexAttribFormat( attribindex,size,type,normalized,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLuint)
def glVertexAttribIFormat( attribindex,size,type,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLuint)
def glVertexAttribLFormat( attribindex,size,type,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint)
def glVertexAttribBinding( attribindex,bindingindex ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint)
def glVertexBindingDivisor( bindingindex,divisor ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLuint,_cs.GLintptr,_cs.GLsizei)
def glVertexArrayBindVertexBufferEXT( vaobj,bindingindex,buffer,offset,stride ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLboolean,_cs.GLuint)
def glVertexArrayVertexAttribFormatEXT( vaobj,attribindex,size,type,normalized,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLuint)
def glVertexArrayVertexAttribIFormatEXT( vaobj,attribindex,size,type,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLint,_cs.GLenum,_cs.GLuint)
def glVertexArrayVertexAttribLFormatEXT( vaobj,attribindex,size,type,relativeoffset ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLuint)
def glVertexArrayVertexAttribBindingEXT( vaobj,attribindex,bindingindex ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLuint)
def glVertexArrayVertexBindingDivisorEXT( vaobj,bindingindex,divisor ):pass


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