Ejemplo n.º 1
0
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_occlusion_query'
_DEPRECATED = False
GL_PIXEL_COUNTER_BITS_NV = constant.Constant( 'GL_PIXEL_COUNTER_BITS_NV', 0x8864 )
glget.addGLGetConstant( GL_PIXEL_COUNTER_BITS_NV, (1,) )
GL_CURRENT_OCCLUSION_QUERY_ID_NV = constant.Constant( 'GL_CURRENT_OCCLUSION_QUERY_ID_NV', 0x8865 )
glget.addGLGetConstant( GL_CURRENT_OCCLUSION_QUERY_ID_NV, (1,) )
GL_PIXEL_COUNT_NV = constant.Constant( 'GL_PIXEL_COUNT_NV', 0x8866 )
GL_PIXEL_COUNT_AVAILABLE_NV = constant.Constant( 'GL_PIXEL_COUNT_AVAILABLE_NV', 0x8867 )
glGenOcclusionQueriesNV = platform.createExtensionFunction( 
'glGenOcclusionQueriesNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,arrays.GLuintArray,),
doc='glGenOcclusionQueriesNV(GLsizei(n), GLuintArray(ids)) -> None',
argNames=('n','ids',),
deprecated=_DEPRECATED,
)

glDeleteOcclusionQueriesNV = platform.createExtensionFunction( 
'glDeleteOcclusionQueriesNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,arrays.GLuintArray,),
doc='glDeleteOcclusionQueriesNV(GLsizei(n), GLuintArray(ids)) -> None',
argNames=('n','ids',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 2
0
GL_BUFFER_MAP_POINTER = constant.Constant( 'GL_BUFFER_MAP_POINTER', 0x88BD )
GL_STREAM_DRAW = constant.Constant( 'GL_STREAM_DRAW', 0x88E0 )
GL_STREAM_READ = constant.Constant( 'GL_STREAM_READ', 0x88E1 )
GL_STREAM_COPY = constant.Constant( 'GL_STREAM_COPY', 0x88E2 )
GL_STATIC_DRAW = constant.Constant( 'GL_STATIC_DRAW', 0x88E4 )
GL_STATIC_READ = constant.Constant( 'GL_STATIC_READ', 0x88E5 )
GL_STATIC_COPY = constant.Constant( 'GL_STATIC_COPY', 0x88E6 )
GL_DYNAMIC_DRAW = constant.Constant( 'GL_DYNAMIC_DRAW', 0x88E8 )
GL_DYNAMIC_READ = constant.Constant( 'GL_DYNAMIC_READ', 0x88E9 )
GL_DYNAMIC_COPY = constant.Constant( 'GL_DYNAMIC_COPY', 0x88EA )
GL_SAMPLES_PASSED = constant.Constant( 'GL_SAMPLES_PASSED', 0x8914 )
glGenQueries = platform.createExtensionFunction( 
'glGenQueries',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,arrays.GLuintArray,),
doc='glGenQueries(GLsizei(n), GLuintArray(ids)) -> None',
argNames=('n','ids',),
deprecated=_DEPRECATED,
)

glDeleteQueries = platform.createExtensionFunction( 
'glDeleteQueries',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,arrays.GLuintArray,),
doc='glDeleteQueries(GLsizei(n), GLuintArray(ids)) -> None',
argNames=('n','ids',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 3
0
GL_HISTOGRAM_RED_SIZE_EXT = constant.Constant( 'GL_HISTOGRAM_RED_SIZE_EXT', 0x8028 )
GL_HISTOGRAM_GREEN_SIZE_EXT = constant.Constant( 'GL_HISTOGRAM_GREEN_SIZE_EXT', 0x8029 )
GL_HISTOGRAM_BLUE_SIZE_EXT = constant.Constant( 'GL_HISTOGRAM_BLUE_SIZE_EXT', 0x802A )
GL_HISTOGRAM_ALPHA_SIZE_EXT = constant.Constant( 'GL_HISTOGRAM_ALPHA_SIZE_EXT', 0x802B )
GL_HISTOGRAM_LUMINANCE_SIZE_EXT = constant.Constant( 'GL_HISTOGRAM_LUMINANCE_SIZE_EXT', 0x802C )
GL_HISTOGRAM_SINK_EXT = constant.Constant( 'GL_HISTOGRAM_SINK_EXT', 0x802D )
GL_MINMAX_EXT = constant.Constant( 'GL_MINMAX_EXT', 0x802E )
glget.addGLGetConstant( GL_MINMAX_EXT, (1,) )
GL_MINMAX_FORMAT_EXT = constant.Constant( 'GL_MINMAX_FORMAT_EXT', 0x802F )
GL_MINMAX_SINK_EXT = constant.Constant( 'GL_MINMAX_SINK_EXT', 0x8030 )
GL_TABLE_TOO_LARGE_EXT = constant.Constant( 'GL_TABLE_TOO_LARGE_EXT', 0x8031 )
glGetHistogramEXT = platform.createExtensionFunction( 
'glGetHistogramEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLboolean,constants.GLenum,constants.GLenum,ctypes.c_void_p,),
doc='glGetHistogramEXT(GLenum(target), GLboolean(reset), GLenum(format), GLenum(type), c_void_p(values)) -> None',
argNames=('target','reset','format','type','values',),
deprecated=_DEPRECATED,
)

glGetHistogramParameterfvEXT = platform.createExtensionFunction( 
'glGetHistogramParameterfvEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,arrays.GLfloatArray,),
doc='glGetHistogramParameterfvEXT(GLenum(target), GLenum(pname), GLfloatArray(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 4
0
_DEPRECATED = False
GL_POLYGON_OFFSET_EXT = constant.Constant('GL_POLYGON_OFFSET_EXT', 0x8037)
glget.addGLGetConstant(GL_POLYGON_OFFSET_EXT, (1, ))
GL_POLYGON_OFFSET_FACTOR_EXT = constant.Constant(
    'GL_POLYGON_OFFSET_FACTOR_EXT', 0x8038)
glget.addGLGetConstant(GL_POLYGON_OFFSET_FACTOR_EXT, (1, ))
GL_POLYGON_OFFSET_BIAS_EXT = constant.Constant('GL_POLYGON_OFFSET_BIAS_EXT',
                                               0x8039)
glget.addGLGetConstant(GL_POLYGON_OFFSET_BIAS_EXT, (1, ))
glPolygonOffsetEXT = platform.createExtensionFunction(
    'glPolygonOffsetEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLfloat,
        constants.GLfloat,
    ),
    doc='glPolygonOffsetEXT(GLfloat(factor), GLfloat(bias)) -> None',
    argNames=(
        'factor',
        'bias',
    ),
    deprecated=_DEPRECATED,
)


def glInitPolygonOffsetEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
glDeformationMap3dSGIX = platform.createExtensionFunction(
    'glDeformationMap3dSGIX',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLdouble,
        constants.GLdouble,
        constants.GLint,
        constants.GLint,
        constants.GLdouble,
        constants.GLdouble,
        constants.GLint,
        constants.GLint,
        constants.GLdouble,
        constants.GLdouble,
        constants.GLint,
        constants.GLint,
        arrays.GLdoubleArray,
    ),
    doc=
    'glDeformationMap3dSGIX( GLenum(target), GLdouble(u1), GLdouble(u2), GLint(ustride), GLint(uorder), GLdouble(v1), GLdouble(v2), GLint(vstride), GLint(vorder), GLdouble(w1), GLdouble(w2), GLint(wstride), GLint(worder), GLdoubleArray(points) ) -> None',
    argNames=(
        'target',
        'u1',
        'u2',
        'ustride',
        'uorder',
        'v1',
        'v2',
        'vstride',
        'vorder',
        'w1',
        'w2',
        'wstride',
        'worder',
        'points',
    ),
)
Ejemplo n.º 6
0
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_transform_feedback2'
_DEPRECATED = False
GL_TRANSFORM_FEEDBACK_NV = constant.Constant( 'GL_TRANSFORM_FEEDBACK_NV', 0x8E22 )
GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = constant.Constant( 'GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV', 0x8E23 )
glget.addGLGetConstant( GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV, (1,) )
GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = constant.Constant( 'GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV', 0x8E24 )
glget.addGLGetConstant( GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV, (1,) )
GL_TRANSFORM_FEEDBACK_BINDING_NV = constant.Constant( 'GL_TRANSFORM_FEEDBACK_BINDING_NV', 0x8E25 )
glget.addGLGetConstant( GL_TRANSFORM_FEEDBACK_BINDING_NV, (1,) )
glBindTransformFeedbackNV = platform.createExtensionFunction( 
'glBindTransformFeedbackNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLuint,),
doc='glBindTransformFeedbackNV(GLenum(target), GLuint(id)) -> None',
argNames=('target','id',),
deprecated=_DEPRECATED,
)

glDeleteTransformFeedbacksNV = platform.createExtensionFunction( 
'glDeleteTransformFeedbacksNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,arrays.GLuintArray,),
doc='glDeleteTransformFeedbacksNV(GLsizei(n), GLuintArray(ids)) -> None',
argNames=('n','ids',),
deprecated=_DEPRECATED,
)
GL_MATRIX21_ARB = constant.Constant( 'GL_MATRIX21_ARB', 0x88D5 )
GL_MATRIX22_ARB = constant.Constant( 'GL_MATRIX22_ARB', 0x88D6 )
GL_MATRIX23_ARB = constant.Constant( 'GL_MATRIX23_ARB', 0x88D7 )
GL_MATRIX24_ARB = constant.Constant( 'GL_MATRIX24_ARB', 0x88D8 )
GL_MATRIX25_ARB = constant.Constant( 'GL_MATRIX25_ARB', 0x88D9 )
GL_MATRIX26_ARB = constant.Constant( 'GL_MATRIX26_ARB', 0x88DA )
GL_MATRIX27_ARB = constant.Constant( 'GL_MATRIX27_ARB', 0x88DB )
GL_MATRIX28_ARB = constant.Constant( 'GL_MATRIX28_ARB', 0x88DC )
GL_MATRIX29_ARB = constant.Constant( 'GL_MATRIX29_ARB', 0x88DD )
GL_MATRIX30_ARB = constant.Constant( 'GL_MATRIX30_ARB', 0x88DE )
GL_MATRIX31_ARB = constant.Constant( 'GL_MATRIX31_ARB', 0x88DF )
glVertexAttrib1dARB = platform.createExtensionFunction( 
'glVertexAttrib1dARB',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLuint,constants.GLdouble,),
doc='glVertexAttrib1dARB(GLuint(index), GLdouble(x)) -> None',
argNames=('index','x',),
deprecated=_DEPRECATED,
)

glVertexAttrib1dvARB = platform.createExtensionFunction( 
'glVertexAttrib1dvARB',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLuint,arrays.GLdoubleArray,),
doc='glVertexAttrib1dvARB(GLuint(index), GLdoubleArray(v)) -> None',
argNames=('index','v',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 8
0
GL_OPERAND0_ALPHA = constant.Constant( 'GL_OPERAND0_ALPHA', 0x8598 )
GL_OPERAND1_ALPHA = constant.Constant( 'GL_OPERAND1_ALPHA', 0x8599 )
GL_OPERAND2_ALPHA = constant.Constant( 'GL_OPERAND2_ALPHA', 0x859A )
GL_RGB_SCALE = constant.Constant( 'GL_RGB_SCALE', 0x8573 )
GL_ADD_SIGNED = constant.Constant( 'GL_ADD_SIGNED', 0x8574 )
GL_INTERPOLATE = constant.Constant( 'GL_INTERPOLATE', 0x8575 )
GL_SUBTRACT = constant.Constant( 'GL_SUBTRACT', 0x84E7 )
GL_CONSTANT = constant.Constant( 'GL_CONSTANT', 0x8576 )
GL_PRIMARY_COLOR = constant.Constant( 'GL_PRIMARY_COLOR', 0x8577 )
GL_PREVIOUS = constant.Constant( 'GL_PREVIOUS', 0x8578 )
GL_DOT3_RGB = constant.Constant( 'GL_DOT3_RGB', 0x86AE )
GL_DOT3_RGBA = constant.Constant( 'GL_DOT3_RGBA', 0x86AF )
glActiveTexture = platform.createExtensionFunction( 
	'glActiveTexture', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum,),
	doc = 'glActiveTexture( GLenum(texture) ) -> None',
	argNames = ('texture',),
)

glClientActiveTexture = platform.createExtensionFunction( 
	'glClientActiveTexture', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum,),
	doc = 'glClientActiveTexture( GLenum(texture) ) -> None',
	argNames = ('texture',),
)

glMultiTexCoord1d = platform.createExtensionFunction( 
	'glMultiTexCoord1d', dll=platform.GL,
Ejemplo n.º 9
0
import ctypes
EXTENSION_NAME = 'GL_SUN_mesh_array'
_DEPRECATED = False
GL_QUAD_MESH_SUN = constant.Constant('GL_QUAD_MESH_SUN', 0x8614)
GL_TRIANGLE_MESH_SUN = constant.Constant('GL_TRIANGLE_MESH_SUN', 0x8615)
glDrawMeshArraysSUN = platform.createExtensionFunction(
    'glDrawMeshArraysSUN',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLint,
        constants.GLsizei,
        constants.GLsizei,
    ),
    doc=
    'glDrawMeshArraysSUN(GLenum(mode), GLint(first), GLsizei(count), GLsizei(width)) -> None',
    argNames=(
        'mode',
        'first',
        'count',
        'width',
    ),
    deprecated=_DEPRECATED,
)


def glInitMeshArraySUN():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 10
0
The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIX/framezoom.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIX_framezoom'
GL_FRAMEZOOM_SGIX = constant.Constant('GL_FRAMEZOOM_SGIX', 0x818B)
GL_FRAMEZOOM_FACTOR_SGIX = constant.Constant('GL_FRAMEZOOM_FACTOR_SGIX',
                                             0x818C)
GL_MAX_FRAMEZOOM_FACTOR_SGIX = constant.Constant(
    'GL_MAX_FRAMEZOOM_FACTOR_SGIX', 0x818D)
glFrameZoomSGIX = platform.createExtensionFunction(
    'glFrameZoomSGIX',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLint, ),
    doc='glFrameZoomSGIX( GLint(factor) ) -> None',
    argNames=('factor', ),
)


def glInitFramezoomSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_ATI_element_array'
GL_ELEMENT_ARRAY_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_ATI', 0x8768 )
GL_ELEMENT_ARRAY_TYPE_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_TYPE_ATI', 0x8769 )
glget.addGLGetConstant( GL_ELEMENT_ARRAY_TYPE_ATI, (1,) )
GL_ELEMENT_ARRAY_POINTER_ATI = constant.Constant( 'GL_ELEMENT_ARRAY_POINTER_ATI', 0x876A )
glElementPointerATI = platform.createExtensionFunction( 
	'glElementPointerATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, ctypes.c_void_p,),
	doc = 'glElementPointerATI( GLenum(type), c_void_p(pointer) ) -> None',
	argNames = ('type', 'pointer',),
)

glDrawElementArrayATI = platform.createExtensionFunction( 
	'glDrawElementArrayATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLsizei,),
	doc = 'glDrawElementArrayATI( GLenum(mode), GLsizei(count) ) -> None',
	argNames = ('mode', 'count',),
)

glDrawRangeElementArrayATI = platform.createExtensionFunction( 
	'glDrawRangeElementArrayATI', dll=platform.GL,
Ejemplo n.º 12
0
EXTENSION_NAME = 'GL_NV_fragment_program'
GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = constant.Constant( 'GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV', 0x8868 )
glget.addGLGetConstant( GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV, (1,) )
GL_FRAGMENT_PROGRAM_NV = constant.Constant( 'GL_FRAGMENT_PROGRAM_NV', 0x8870 )
glget.addGLGetConstant( GL_FRAGMENT_PROGRAM_NV, (1,) )
GL_MAX_TEXTURE_COORDS_NV = constant.Constant( 'GL_MAX_TEXTURE_COORDS_NV', 0x8871 )
glget.addGLGetConstant( GL_MAX_TEXTURE_COORDS_NV, (1,) )
GL_MAX_TEXTURE_IMAGE_UNITS_NV = constant.Constant( 'GL_MAX_TEXTURE_IMAGE_UNITS_NV', 0x8872 )
glget.addGLGetConstant( GL_MAX_TEXTURE_IMAGE_UNITS_NV, (1,) )
GL_FRAGMENT_PROGRAM_BINDING_NV = constant.Constant( 'GL_FRAGMENT_PROGRAM_BINDING_NV', 0x8873 )
glget.addGLGetConstant( GL_FRAGMENT_PROGRAM_BINDING_NV, (1,) )
GL_PROGRAM_ERROR_STRING_NV = constant.Constant( 'GL_PROGRAM_ERROR_STRING_NV', 0x8874 )
glProgramNamedParameter4fNV = platform.createExtensionFunction( 
	'glProgramNamedParameter4fNV', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLsizei, arrays.GLubyteArray, constants.GLfloat, constants.GLfloat, constants.GLfloat, constants.GLfloat,),
	doc = 'glProgramNamedParameter4fNV( GLuint(id), GLsizei(len), GLubyteArray(name), GLfloat(x), GLfloat(y), GLfloat(z), GLfloat(w) ) -> None',
	argNames = ('id', 'len', 'name', 'x', 'y', 'z', 'w',),
)

glProgramNamedParameter4dNV = platform.createExtensionFunction( 
	'glProgramNamedParameter4dNV', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLuint, constants.GLsizei, arrays.GLubyteArray, constants.GLdouble, constants.GLdouble, constants.GLdouble, constants.GLdouble,),
	doc = 'glProgramNamedParameter4dNV( GLuint(id), GLsizei(len), GLubyteArray(name), GLdouble(x), GLdouble(y), GLdouble(z), GLdouble(w) ) -> None',
	argNames = ('id', 'len', 'name', 'x', 'y', 'z', 'w',),
)

glProgramNamedParameter4fvNV = platform.createExtensionFunction( 
	'glProgramNamedParameter4fvNV', dll=platform.GL,
Ejemplo n.º 13
0
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes

EXTENSION_NAME = 'GL_APPLE_vertex_array_object'
_DEPRECATED = False
GL_VERTEX_ARRAY_BINDING_APPLE = constant.Constant(
    'GL_VERTEX_ARRAY_BINDING_APPLE', 0x85B5)
glBindVertexArrayAPPLE = platform.createExtensionFunction(
    'glBindVertexArrayAPPLE',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLuint, ),
    doc='glBindVertexArrayAPPLE(GLuint(array)) -> None',
    argNames=('array', ),
    deprecated=_DEPRECATED,
)

glDeleteVertexArraysAPPLE = platform.createExtensionFunction(
    'glDeleteVertexArraysAPPLE',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLsizei,
        arrays.GLuintArray,
    ),
    doc='glDeleteVertexArraysAPPLE(GLsizei(n), GLuintArray(arrays)) -> None',
Ejemplo n.º 14
0
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_APPLE_element_array'
_DEPRECATED = False
GL_ELEMENT_ARRAY_APPLE = constant.Constant( 'GL_ELEMENT_ARRAY_APPLE', 0x8768 )
GL_ELEMENT_ARRAY_TYPE_APPLE = constant.Constant( 'GL_ELEMENT_ARRAY_TYPE_APPLE', 0x8769 )
glget.addGLGetConstant( GL_ELEMENT_ARRAY_TYPE_APPLE, (1,) )
GL_ELEMENT_ARRAY_POINTER_APPLE = constant.Constant( 'GL_ELEMENT_ARRAY_POINTER_APPLE', 0x876A )
glElementPointerAPPLE = platform.createExtensionFunction( 
'glElementPointerAPPLE',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,ctypes.c_void_p,),
doc='glElementPointerAPPLE(GLenum(type), c_void_p(pointer)) -> None',
argNames=('type','pointer',),
deprecated=_DEPRECATED,
)

glDrawElementArrayAPPLE = platform.createExtensionFunction( 
'glDrawElementArrayAPPLE',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLint,constants.GLsizei,),
doc='glDrawElementArrayAPPLE(GLenum(mode), GLint(first), GLsizei(count)) -> None',
argNames=('mode','first','count',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 15
0
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_multi_draw_arrays'
_DEPRECATED = False

glMultiDrawArraysEXT = platform.createExtensionFunction(
    'glMultiDrawArraysEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        arrays.GLintArray,
        arrays.GLsizeiArray,
        constants.GLsizei,
    ),
    doc=
    'glMultiDrawArraysEXT(GLenum(mode), GLintArray(first), GLsizeiArray(count), GLsizei(primcount)) -> None',
    argNames=(
        'mode',
        'first',
        'count',
        'primcount',
    ),
    deprecated=_DEPRECATED,
)

glMultiDrawElementsEXT = platform.createExtensionFunction(
    'glMultiDrawElementsEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
Ejemplo n.º 16
0
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_APPLE_fence'
GL_DRAW_PIXELS_APPLE = constant.Constant('GL_DRAW_PIXELS_APPLE', 0x8A0A)
GL_FENCE_APPLE = constant.Constant('GL_FENCE_APPLE', 0x8A0B)
glGenFencesAPPLE = platform.createExtensionFunction(
    'glGenFencesAPPLE',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLsizei,
        arrays.GLuintArray,
    ),
    doc='glGenFencesAPPLE( GLsizei(n), GLuintArray(fences) ) -> None',
    argNames=(
        'n',
        'fences',
    ),
)

glDeleteFencesAPPLE = platform.createExtensionFunction(
    'glDeleteFencesAPPLE',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLsizei,
Ejemplo n.º 17
0
'''OpenGL extension SGIX.igloo_interface

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIX_igloo_interface'
_DEPRECATED = False

glIglooInterfaceSGIX = platform.createExtensionFunction( 
'glIglooInterfaceSGIX',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,ctypes.c_void_p,),
doc='glIglooInterfaceSGIX(GLenum(pname), c_void_p(params)) -> None',
argNames=('pname','params',),
deprecated=_DEPRECATED,
)


def glInitIglooInterfaceSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_shader_buffer_load'
_DEPRECATED = False
GL_BUFFER_GPU_ADDRESS_NV = constant.Constant( 'GL_BUFFER_GPU_ADDRESS_NV', 0x8F1D )
GL_GPU_ADDRESS_NV = constant.Constant( 'GL_GPU_ADDRESS_NV', 0x8F34 )
GL_MAX_SHADER_BUFFER_ADDRESS_NV = constant.Constant( 'GL_MAX_SHADER_BUFFER_ADDRESS_NV', 0x8F35 )
glMakeBufferResidentNV = platform.createExtensionFunction( 
'glMakeBufferResidentNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,),
doc='glMakeBufferResidentNV(GLenum(target), GLenum(access)) -> None',
argNames=('target','access',),
deprecated=_DEPRECATED,
)

glMakeBufferNonResidentNV = platform.createExtensionFunction( 
'glMakeBufferNonResidentNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,),
doc='glMakeBufferNonResidentNV(GLenum(target)) -> None',
argNames=('target',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 19
0
GL_OPERAND1_ALPHA = constant.Constant( 'GL_OPERAND1_ALPHA', 0x8599 )
GL_OPERAND2_ALPHA = constant.Constant( 'GL_OPERAND2_ALPHA', 0x859A )
GL_RGB_SCALE = constant.Constant( 'GL_RGB_SCALE', 0x8573 )
GL_ADD_SIGNED = constant.Constant( 'GL_ADD_SIGNED', 0x8574 )
GL_INTERPOLATE = constant.Constant( 'GL_INTERPOLATE', 0x8575 )
GL_SUBTRACT = constant.Constant( 'GL_SUBTRACT', 0x84E7 )
GL_CONSTANT = constant.Constant( 'GL_CONSTANT', 0x8576 )
GL_PRIMARY_COLOR = constant.Constant( 'GL_PRIMARY_COLOR', 0x8577 )
GL_PREVIOUS = constant.Constant( 'GL_PREVIOUS', 0x8578 )
GL_DOT3_RGB = constant.Constant( 'GL_DOT3_RGB', 0x86AE )
GL_DOT3_RGBA = constant.Constant( 'GL_DOT3_RGBA', 0x86AF )
glClientActiveTexture = platform.createExtensionFunction( 
'glClientActiveTexture',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,),
doc='glClientActiveTexture(GLenum(texture)) -> None',
argNames=('texture',),
deprecated=_DEPRECATED,
)

glMultiTexCoord1d = platform.createExtensionFunction( 
'glMultiTexCoord1d',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLdouble,),
doc='glMultiTexCoord1d(GLenum(target), GLdouble(s)) -> None',
argNames=('target','s',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 20
0
GL_FOG_COORDINATE_SOURCE_EXT = constant.Constant("GL_FOG_COORDINATE_SOURCE_EXT", 0x8450)
GL_FOG_COORDINATE_EXT = constant.Constant("GL_FOG_COORDINATE_EXT", 0x8451)
GL_FRAGMENT_DEPTH_EXT = constant.Constant("GL_FRAGMENT_DEPTH_EXT", 0x8452)
GL_CURRENT_FOG_COORDINATE_EXT = constant.Constant("GL_CURRENT_FOG_COORDINATE_EXT", 0x8453)
glget.addGLGetConstant(GL_CURRENT_FOG_COORDINATE_EXT, (1,))
GL_FOG_COORDINATE_ARRAY_TYPE_EXT = constant.Constant("GL_FOG_COORDINATE_ARRAY_TYPE_EXT", 0x8454)
glget.addGLGetConstant(GL_FOG_COORDINATE_ARRAY_TYPE_EXT, (1,))
GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = constant.Constant("GL_FOG_COORDINATE_ARRAY_STRIDE_EXT", 0x8455)
glget.addGLGetConstant(GL_FOG_COORDINATE_ARRAY_STRIDE_EXT, (1,))
GL_FOG_COORDINATE_ARRAY_POINTER_EXT = constant.Constant("GL_FOG_COORDINATE_ARRAY_POINTER_EXT", 0x8456)
GL_FOG_COORDINATE_ARRAY_EXT = constant.Constant("GL_FOG_COORDINATE_ARRAY_EXT", 0x8457)
glFogCoordfEXT = platform.createExtensionFunction(
    "glFogCoordfEXT",
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLfloat,),
    doc="glFogCoordfEXT( GLfloat(coord) ) -> None",
    argNames=("coord",),
)

glFogCoordfvEXT = platform.createExtensionFunction(
    "glFogCoordfvEXT",
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(arrays.GLfloatArray,),
    doc="glFogCoordfvEXT( GLfloatArray(coord) ) -> None",
    argNames=("coord",),
)
Ejemplo n.º 21
0
GL_VERTEX_STREAM1_ATI = constant.Constant('GL_VERTEX_STREAM1_ATI', 0x876D)
GL_VERTEX_STREAM2_ATI = constant.Constant('GL_VERTEX_STREAM2_ATI', 0x876E)
GL_VERTEX_STREAM3_ATI = constant.Constant('GL_VERTEX_STREAM3_ATI', 0x876F)
GL_VERTEX_STREAM4_ATI = constant.Constant('GL_VERTEX_STREAM4_ATI', 0x8770)
GL_VERTEX_STREAM5_ATI = constant.Constant('GL_VERTEX_STREAM5_ATI', 0x8771)
GL_VERTEX_STREAM6_ATI = constant.Constant('GL_VERTEX_STREAM6_ATI', 0x8772)
GL_VERTEX_STREAM7_ATI = constant.Constant('GL_VERTEX_STREAM7_ATI', 0x8773)
GL_VERTEX_SOURCE_ATI = constant.Constant('GL_VERTEX_SOURCE_ATI', 0x8774)
glVertexStream1sATI = platform.createExtensionFunction(
    'glVertexStream1sATI',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLshort,
    ),
    doc='glVertexStream1sATI( GLenum(stream), GLshort(x) ) -> None',
    argNames=(
        'stream',
        'x',
    ),
)

glVertexStream1svATI = platform.createExtensionFunction(
    'glVertexStream1svATI',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
Ejemplo n.º 22
0
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_APPLE_texture_range'
_DEPRECATED = False
GL_TEXTURE_RANGE_LENGTH_APPLE = constant.Constant( 'GL_TEXTURE_RANGE_LENGTH_APPLE', 0x85B7 )
GL_TEXTURE_RANGE_POINTER_APPLE = constant.Constant( 'GL_TEXTURE_RANGE_POINTER_APPLE', 0x85B8 )
GL_TEXTURE_STORAGE_HINT_APPLE = constant.Constant( 'GL_TEXTURE_STORAGE_HINT_APPLE', 0x85BC )
GL_STORAGE_PRIVATE_APPLE = constant.Constant( 'GL_STORAGE_PRIVATE_APPLE', 0x85BD )
glTextureRangeAPPLE = platform.createExtensionFunction( 
'glTextureRangeAPPLE',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLsizei,ctypes.c_void_p,),
doc='glTextureRangeAPPLE(GLenum(target), GLsizei(length), c_void_p(pointer)) -> None',
argNames=('target','length','pointer',),
deprecated=_DEPRECATED,
)

glGetTexParameterPointervAPPLE = platform.createExtensionFunction( 
'glGetTexParameterPointervAPPLE',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLenum,ctypes.POINTER(ctypes.c_void_p),),
doc='glGetTexParameterPointervAPPLE(GLenum(target), GLenum(pname), POINTER(ctypes.c_void_p)(params)) -> None',
argNames=('target','pname','params',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 23
0
	The extension allows an application to update a subset of
	components in an existing texture.	The masks are applied after
	all pixel transfer operations have been performed, immediately
	prior to writing the texel value into texture memory.  They
	apply to all texture updates.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_color_mask.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIS_texture_color_mask'
GL_TEXTURE_COLOR_WRITEMASK_SGIS = constant.Constant( 'GL_TEXTURE_COLOR_WRITEMASK_SGIS', 0x81EF )
glTextureColorMaskSGIS = platform.createExtensionFunction( 
	'glTextureColorMaskSGIS', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLboolean, constants.GLboolean, constants.GLboolean, constants.GLboolean,),
	doc = 'glTextureColorMaskSGIS( GLboolean(red), GLboolean(green), GLboolean(blue), GLboolean(alpha) ) -> None',
	argNames = ('red', 'green', 'blue', 'alpha',),
)


def glInitTextureColorMaskSGIS():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
'''OpenGL extension EXT.stencil_two_side

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_stencil_two_side'
_DEPRECATED = False
GL_STENCIL_TEST_TWO_SIDE_EXT = constant.Constant( 'GL_STENCIL_TEST_TWO_SIDE_EXT', 0x8910 )
glget.addGLGetConstant( GL_STENCIL_TEST_TWO_SIDE_EXT, (1,) )
GL_ACTIVE_STENCIL_FACE_EXT = constant.Constant( 'GL_ACTIVE_STENCIL_FACE_EXT', 0x8911 )
glget.addGLGetConstant( GL_ACTIVE_STENCIL_FACE_EXT, (1,) )
glActiveStencilFaceEXT = platform.createExtensionFunction( 
'glActiveStencilFaceEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,),
doc='glActiveStencilFaceEXT(GLenum(face)) -> None',
argNames=('face',),
deprecated=_DEPRECATED,
)


def glInitStencilTwoSideEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 25
0
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_gpu_program4'
GL_MIN_PROGRAM_TEXEL_OFFSET_NV = constant.Constant( 'GL_MIN_PROGRAM_TEXEL_OFFSET_NV', 0x8904 )
GL_MAX_PROGRAM_TEXEL_OFFSET_NV = constant.Constant( 'GL_MAX_PROGRAM_TEXEL_OFFSET_NV', 0x8905 )
GL_PROGRAM_ATTRIB_COMPONENTS_NV = constant.Constant( 'GL_PROGRAM_ATTRIB_COMPONENTS_NV', 0x8906 )
GL_PROGRAM_RESULT_COMPONENTS_NV = constant.Constant( 'GL_PROGRAM_RESULT_COMPONENTS_NV', 0x8907 )
GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = constant.Constant( 'GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV', 0x8908 )
GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = constant.Constant( 'GL_MAX_PROGRAM_RESULT_COMPONENTS_NV', 0x8909 )
GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = constant.Constant( 'GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV', 0x8DA5 )
GL_MAX_PROGRAM_GENERIC_RESULTS_NV = constant.Constant( 'GL_MAX_PROGRAM_GENERIC_RESULTS_NV', 0x8DA6 )
glProgramLocalParameterI4iNV = platform.createExtensionFunction( 
	'glProgramLocalParameterI4iNV', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLuint, constants.GLint, constants.GLint, constants.GLint, constants.GLint,),
	doc = 'glProgramLocalParameterI4iNV( GLenum(target), GLuint(index), GLint(x), GLint(y), GLint(z), GLint(w) ) -> None',
	argNames = ('target', 'index', 'x', 'y', 'z', 'w',),
)

glProgramLocalParameterI4ivNV = platform.createExtensionFunction( 
	'glProgramLocalParameterI4ivNV', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLuint, arrays.GLintArray,),
	doc = 'glProgramLocalParameterI4ivNV( GLenum(target), GLuint(index), GLintArray(params) ) -> None',
	argNames = ('target', 'index', 'params',),
)

glProgramLocalParametersI4ivNV = platform.createExtensionFunction( 
	'glProgramLocalParametersI4ivNV', dll=platform.GL,
'''OpenGL extension INGR.blend_func_separate

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/INGR/blend_func_separate.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_INGR_blend_func_separate'

glBlendFuncSeparateINGR = platform.createExtensionFunction( 
	'glBlendFuncSeparateINGR', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, constants.GLenum, constants.GLenum,),
	doc = 'glBlendFuncSeparateINGR( GLenum(sfactorRGB), GLenum(dfactorRGB), GLenum(sfactorAlpha), GLenum(dfactorAlpha) ) -> None',
	argNames = ('sfactorRGB', 'dfactorRGB', 'sfactorAlpha', 'dfactorAlpha',),
)


def glInitBlendFuncSeparateINGR():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 27
0
'''OpenGL extension IBM.vertex_array_lists

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_IBM_vertex_array_lists'
_DEPRECATED = False

glColorPointerListIBM = platform.createExtensionFunction( 
'glColorPointerListIBM',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLint,constants.GLenum,constants.GLint,ctypes.POINTER(ctypes.c_void_p),constants.GLint,),
doc='glColorPointerListIBM(GLint(size), GLenum(type), GLint(stride), POINTER(ctypes.c_void_p)(pointer), GLint(ptrstride)) -> None',
argNames=('size','type','stride','pointer','ptrstride',),
deprecated=_DEPRECATED,
)

glSecondaryColorPointerListIBM = platform.createExtensionFunction( 
'glSecondaryColorPointerListIBM',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLint,constants.GLenum,constants.GLint,ctypes.POINTER(ctypes.c_void_p),constants.GLint,),
doc='glSecondaryColorPointerListIBM(GLint(size), GLenum(type), GLint(stride), POINTER(ctypes.c_void_p)(pointer), GLint(ptrstride)) -> None',
argNames=('size','type','stride','pointer','ptrstride',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 28
0
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_ATI_separate_stencil'
GL_STENCIL_BACK_FUNC_ATI = constant.Constant( 'GL_STENCIL_BACK_FUNC_ATI', 0x8800 )
GL_STENCIL_BACK_FAIL_ATI = constant.Constant( 'GL_STENCIL_BACK_FAIL_ATI', 0x8801 )
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI', 0x8802 )
GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI', 0x8803 )
glStencilOpSeparateATI = platform.createExtensionFunction( 
	'glStencilOpSeparateATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, constants.GLenum, constants.GLenum,),
	doc = 'glStencilOpSeparateATI( GLenum(face), GLenum(sfail), GLenum(dpfail), GLenum(dppass) ) -> None',
	argNames = ('face', 'sfail', 'dpfail', 'dppass',),
)

glStencilFuncSeparateATI = platform.createExtensionFunction( 
	'glStencilFuncSeparateATI', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, constants.GLint, constants.GLuint,),
	doc = 'glStencilFuncSeparateATI( GLenum(frontfunc), GLenum(backfunc), GLint(ref), GLuint(mask) ) -> None',
	argNames = ('frontfunc', 'backfunc', 'ref', 'mask',),
)


def glInitSeparateStencilATI():
Ejemplo n.º 29
0
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIS_pixel_texture'
GL_PIXEL_TEXTURE_SGIS = constant.Constant( 'GL_PIXEL_TEXTURE_SGIS', 0x8353 )
GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = constant.Constant( 'GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS', 0x8354 )
GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = constant.Constant( 'GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS', 0x8355 )
GL_PIXEL_GROUP_COLOR_SGIS = constant.Constant( 'GL_PIXEL_GROUP_COLOR_SGIS', 0x8356 )
glPixelTexGenParameteriSGIS = platform.createExtensionFunction( 
	'glPixelTexGenParameteriSGIS', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLint,),
	doc = 'glPixelTexGenParameteriSGIS( GLenum(pname), GLint(param) ) -> None',
	argNames = ('pname', 'param',),
)

glPixelTexGenParameterivSGIS = platform.createExtensionFunction( 
	'glPixelTexGenParameterivSGIS', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, arrays.GLintArray,),
	doc = 'glPixelTexGenParameterivSGIS( GLenum(pname), GLintArray(params) ) -> None',
	argNames = ('pname', 'params',),
)

glPixelTexGenParameterfSGIS = platform.createExtensionFunction( 
	'glPixelTexGenParameterfSGIS', dll=platform.GL,
Ejemplo n.º 30
0
GL_LINEAR_SHARPEN_ALPHA_SGIS = constant.Constant(
    'GL_LINEAR_SHARPEN_ALPHA_SGIS', 0x80AE)
GL_LINEAR_SHARPEN_COLOR_SGIS = constant.Constant(
    'GL_LINEAR_SHARPEN_COLOR_SGIS', 0x80AF)
GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = constant.Constant(
    'GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS', 0x80B0)
glSharpenTexFuncSGIS = platform.createExtensionFunction(
    'glSharpenTexFuncSGIS',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLsizei,
        arrays.GLfloatArray,
    ),
    doc=
    'glSharpenTexFuncSGIS(GLenum(target), GLsizei(n), GLfloatArray(points)) -> None',
    argNames=(
        'target',
        'n',
        'points',
    ),
    deprecated=_DEPRECATED,
)

glGetSharpenTexFuncSGIS = platform.createExtensionFunction(
    'glGetSharpenTexFuncSGIS',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
Ejemplo n.º 31
0
	This clear can be used with some restrictions as a significantly
	faster alternative to Clear(DEPTH_BUFFER_BIT).
	
	The extension is based on the RealityEngine architecture and will
	probably never be supported by any other architecture.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIX/tag_sample_buffer.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_SGIX_tag_sample_buffer'

glTagSampleBufferSGIX = platform.createExtensionFunction( 
	'glTagSampleBufferSGIX', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(),
	doc = 'glTagSampleBufferSGIX(  ) -> None',
	argNames = (),
)


def glInitTagSampleBufferSGIX():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 32
0
'''OpenGL extension EXT.stencil_clear_tag

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_stencil_clear_tag'
_DEPRECATED = False
GL_STENCIL_TAG_BITS_EXT = constant.Constant( 'GL_STENCIL_TAG_BITS_EXT', 0x88F2 )
GL_STENCIL_CLEAR_TAG_VALUE_EXT = constant.Constant( 'GL_STENCIL_CLEAR_TAG_VALUE_EXT', 0x88F3 )
glStencilClearTagEXT = platform.createExtensionFunction( 
'glStencilClearTagEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLsizei,constants.GLuint,),
doc='glStencilClearTagEXT(GLsizei(stencilTagBits), GLuint(stencilClearTag)) -> None',
argNames=('stencilTagBits','stencilClearTag',),
deprecated=_DEPRECATED,
)


def glInitStencilClearTagEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
glBlitFramebufferEXT = platform.createExtensionFunction(
    'glBlitFramebufferEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLint,
        constants.GLbitfield,
        constants.GLenum,
    ),
    doc=
    'glBlitFramebufferEXT( GLint(srcX0), GLint(srcY0), GLint(srcX1), GLint(srcY1), GLint(dstX0), GLint(dstY0), GLint(dstX1), GLint(dstY1), GLbitfield(mask), GLenum(filter) ) -> None',
    argNames=(
        'srcX0',
        'srcY0',
        'srcX1',
        'srcY1',
        'dstX0',
        'dstY0',
        'dstX1',
        'dstY1',
        'mask',
        'filter',
    ),
)
Ejemplo n.º 34
0
    'length',size=(1,),orPassIn=True
).setOutput(
    'source',size=lambda x:(x,),pnameArg='maxLength',orPassIn=True
)
### END AUTOGENERATED SECTION
import OpenGL
from OpenGL._bytes import bytes, _NULL_8_BYTE, as_8_bit
from OpenGL.raw.GL import _errors
from OpenGL.lazywrapper import lazy as _lazy
from OpenGL import converters, error
GL_INFO_LOG_LENGTH_ARB = constant.Constant( 'GL_INFO_LOG_LENGTH_ARB', 0x8B84 )

glShaderSourceARB = platform.createExtensionFunction(
    'glShaderSourceARB', dll=platform.PLATFORM.GL,
    resultType=None,
    argTypes=(_types.GLhandleARB, _types.GLsizei, ctypes.POINTER(ctypes.c_char_p), arrays.GLintArray,),
    doc = 'glShaderSourceARB( GLhandleARB(shaderObj), [bytes(string),...] ) -> None',
    argNames = ('shaderObj', 'count', 'string', 'length',),
    extension = _EXTENSION_NAME,
)
conv = converters.StringLengths( name='string' )
glShaderSourceARB = wrapper.wrapper(
    glShaderSourceARB
).setPyConverter(
    'count' # number of strings
).setPyConverter(
    'length' # lengths of strings
).setPyConverter(
    'string', conv.stringArray
).setCResolver(
    'string', conv.stringArrayForC,
).setCConverter(
Ejemplo n.º 35
0
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_vdpau_interop'
_DEPRECATED = False
GL_SURFACE_STATE_NV = constant.Constant( 'GL_SURFACE_STATE_NV', 0x86EB )
GL_SURFACE_REGISTERED_NV = constant.Constant( 'GL_SURFACE_REGISTERED_NV', 0x86FD )
GL_SURFACE_MAPPED_NV = constant.Constant( 'GL_SURFACE_MAPPED_NV', 0x8700 )
GL_WRITE_DISCARD_NV = constant.Constant( 'GL_WRITE_DISCARD_NV', 0x88BE )
glVDPAUInitNV = platform.createExtensionFunction( 
'glVDPAUInitNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(ctypes.c_void_p,ctypes.c_void_p,),
doc='glVDPAUInitNV(c_void_p(vdpDevice), c_void_p(getProcAddress)) -> None',
argNames=('vdpDevice','getProcAddress',),
deprecated=_DEPRECATED,
)

glVDPAUFiniNV = platform.createExtensionFunction( 
'glVDPAUFiniNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(),
doc='glVDPAUFiniNV() -> None',
argNames=(),
deprecated=_DEPRECATED,
)
Ejemplo n.º 36
0
'''OpenGL extension EXT.x11_sync_object

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_x11_sync_object'
_DEPRECATED = False
GL_SYNC_X11_FENCE_EXT = constant.Constant( 'GL_SYNC_X11_FENCE_EXT', 0x90E1 )
glImportSyncEXT = platform.createExtensionFunction( 
'glImportSyncEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=constants.GLsync, 
argTypes=(constants.GLenum,constants.GLintptr,constants.GLbitfield,),
doc='glImportSyncEXT(GLenum(external_sync_type), GLintptr(external_sync), GLbitfield(flags)) -> constants.GLsync',
argNames=('external_sync_type','external_sync','flags',),
deprecated=_DEPRECATED,
)


def glInitX11SyncObjectEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 37
0
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_provoking_vertex'
_DEPRECATED = False
GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = constant.Constant(
    'GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT', 0x8E4C)
glget.addGLGetConstant(GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT, (1, ))
GL_FIRST_VERTEX_CONVENTION_EXT = constant.Constant(
    'GL_FIRST_VERTEX_CONVENTION_EXT', 0x8E4D)
GL_LAST_VERTEX_CONVENTION_EXT = constant.Constant(
    'GL_LAST_VERTEX_CONVENTION_EXT', 0x8E4E)
GL_PROVOKING_VERTEX_EXT = constant.Constant('GL_PROVOKING_VERTEX_EXT', 0x8E4F)
glget.addGLGetConstant(GL_PROVOKING_VERTEX_EXT, (1, ))
glProvokingVertexEXT = platform.createExtensionFunction(
    'glProvokingVertexEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLenum, ),
    doc='glProvokingVertexEXT(GLenum(mode)) -> None',
    argNames=('mode', ),
    deprecated=_DEPRECATED,
)


def glInitProvokingVertexEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 38
0
'''OpenGL extension NV.framebuffer_multisample_coverage

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_framebuffer_multisample_coverage'
_DEPRECATED = False
GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = constant.Constant( 'GL_RENDERBUFFER_COVERAGE_SAMPLES_NV', 0x8CAB )
GL_RENDERBUFFER_COLOR_SAMPLES_NV = constant.Constant( 'GL_RENDERBUFFER_COLOR_SAMPLES_NV', 0x8E10 )
GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = constant.Constant( 'GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV', 0x8E11 )
glget.addGLGetConstant( GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV, (1,) )
GL_MULTISAMPLE_COVERAGE_MODES_NV = constant.Constant( 'GL_MULTISAMPLE_COVERAGE_MODES_NV', 0x8E12 )
glRenderbufferStorageMultisampleCoverageNV = platform.createExtensionFunction( 
'glRenderbufferStorageMultisampleCoverageNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLsizei,constants.GLsizei,constants.GLenum,constants.GLsizei,constants.GLsizei,),
doc='glRenderbufferStorageMultisampleCoverageNV(GLenum(target), GLsizei(coverageSamples), GLsizei(colorSamples), GLenum(internalformat), GLsizei(width), GLsizei(height)) -> None',
argNames=('target','coverageSamples','colorSamples','internalformat','width','height',),
deprecated=_DEPRECATED,
)


def glInitFramebufferMultisampleCoverageNV():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 39
0
GL_GEOMETRY_PROGRAM_NV = constant.Constant( 'GL_GEOMETRY_PROGRAM_NV', 0x8C26 )
GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = constant.Constant( 'GL_MAX_PROGRAM_OUTPUT_VERTICES_NV', 0x8C27 )
GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = constant.Constant( 'GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV', 0x8C28 )
GL_GEOMETRY_VERTICES_OUT_EXT = constant.Constant( 'GL_GEOMETRY_VERTICES_OUT_EXT', 0x8DDA )
GL_GEOMETRY_INPUT_TYPE_EXT = constant.Constant( 'GL_GEOMETRY_INPUT_TYPE_EXT', 0x8DDB )
GL_GEOMETRY_OUTPUT_TYPE_EXT = constant.Constant( 'GL_GEOMETRY_OUTPUT_TYPE_EXT', 0x8DDC )
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = constant.Constant( 'GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT', 0x8C29 )
GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = constant.Constant( 'GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT', 0x8DA7 )
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = constant.Constant( 'GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT', 0x8DA8 )
GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = constant.Constant( 'GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT', 0x8DA9 )
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = constant.Constant( 'GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT', 0x8CD4 )
GL_PROGRAM_POINT_SIZE_EXT = constant.Constant( 'GL_PROGRAM_POINT_SIZE_EXT', 0x8642 )
glProgramVertexLimitNV = platform.createExtensionFunction( 
	'glProgramVertexLimitNV', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLint,),
	doc = 'glProgramVertexLimitNV( GLenum(target), GLint(limit) ) -> None',
	argNames = ('target', 'limit',),
)

glFramebufferTextureEXT = platform.createExtensionFunction( 
	'glFramebufferTextureEXT', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum, constants.GLuint, constants.GLint,),
	doc = 'glFramebufferTextureEXT( GLenum(target), GLenum(attachment), GLuint(texture), GLint(level) ) -> None',
	argNames = ('target', 'attachment', 'texture', 'level',),
)

glFramebufferTextureLayerEXT = platform.createExtensionFunction( 
	'glFramebufferTextureLayerEXT', dll=platform.GL,
Ejemplo n.º 40
0
	to both RGB and alpha portions of blending.
	
	This extension provides a separate blend equation for RGB and alpha
	to match the generality available for blend factors.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/EXT/blend_equation_separate.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_blend_equation_separate'
GL_BLEND_EQUATION_ALPHA_EXT = constant.Constant( 'GL_BLEND_EQUATION_ALPHA_EXT', 0x883D )
glget.addGLGetConstant( GL_BLEND_EQUATION_ALPHA_EXT, (1,) )
glBlendEquationSeparateEXT = platform.createExtensionFunction( 
	'glBlendEquationSeparateEXT', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLenum,),
	doc = 'glBlendEquationSeparateEXT( GLenum(modeRGB), GLenum(modeAlpha) ) -> None',
	argNames = ('modeRGB', 'modeAlpha',),
)


def glInitBlendEquationSeparateEXT():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 41
0
GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = constant.Constant(
    'GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN', 0x85C3)
GL_R1UI_V3F_SUN = constant.Constant('GL_R1UI_V3F_SUN', 0x85C4)
GL_R1UI_C4UB_V3F_SUN = constant.Constant('GL_R1UI_C4UB_V3F_SUN', 0x85C5)
GL_R1UI_C3F_V3F_SUN = constant.Constant('GL_R1UI_C3F_V3F_SUN', 0x85C6)
GL_R1UI_N3F_V3F_SUN = constant.Constant('GL_R1UI_N3F_V3F_SUN', 0x85C7)
GL_R1UI_C4F_N3F_V3F_SUN = constant.Constant('GL_R1UI_C4F_N3F_V3F_SUN', 0x85C8)
GL_R1UI_T2F_V3F_SUN = constant.Constant('GL_R1UI_T2F_V3F_SUN', 0x85C9)
GL_R1UI_T2F_N3F_V3F_SUN = constant.Constant('GL_R1UI_T2F_N3F_V3F_SUN', 0x85CA)
GL_R1UI_T2F_C4F_N3F_V3F_SUN = constant.Constant('GL_R1UI_T2F_C4F_N3F_V3F_SUN',
                                                0x85CB)
glReplacementCodeuiSUN = platform.createExtensionFunction(
    'glReplacementCodeuiSUN',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLuint, ),
    doc='glReplacementCodeuiSUN( GLuint(code) ) -> None',
    argNames=('code', ),
)

glReplacementCodeusSUN = platform.createExtensionFunction(
    'glReplacementCodeusSUN',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLushort, ),
    doc='glReplacementCodeusSUN( GLushort(code) ) -> None',
    argNames=('code', ),
)
Ejemplo n.º 42
0
GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = constant.Constant(
    'GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI', 0x87F5)
GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = constant.Constant(
    'GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI', 0x87F6)
GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = constant.Constant(
    'GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI', 0x87F7)
GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = constant.Constant(
    'GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI', 0x87F8)
glPNTrianglesiATI = platform.createExtensionFunction(
    'glPNTrianglesiATI',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLint,
    ),
    doc='glPNTrianglesiATI(GLenum(pname), GLint(param)) -> None',
    argNames=(
        'pname',
        'param',
    ),
    deprecated=_DEPRECATED,
)

glPNTrianglesfATI = platform.createExtensionFunction(
    'glPNTrianglesfATI',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
Ejemplo n.º 43
0
	direct implementation of the original formulation of bump mapping by
	Blinn.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_perturb_normal.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes

EXTENSION_NAME = 'GL_EXT_texture_perturb_normal'
GL_PERTURB_EXT = constant.Constant('GL_PERTURB_EXT', 0x85AE)
GL_TEXTURE_NORMAL_EXT = constant.Constant('GL_TEXTURE_NORMAL_EXT', 0x85AF)
glTextureNormalEXT = platform.createExtensionFunction(
    'glTextureNormalEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(constants.GLenum, ),
    doc='glTextureNormalEXT( GLenum(mode) ) -> None',
    argNames=('mode', ),
)


def glInitTexturePerturbNormalEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 44
0
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_cull_vertex'
_DEPRECATED = False
GL_CULL_VERTEX_EXT = constant.Constant( 'GL_CULL_VERTEX_EXT', 0x81AA )
GL_CULL_VERTEX_EYE_POSITION_EXT = constant.Constant( 'GL_CULL_VERTEX_EYE_POSITION_EXT', 0x81AB )
GL_CULL_VERTEX_OBJECT_POSITION_EXT = constant.Constant( 'GL_CULL_VERTEX_OBJECT_POSITION_EXT', 0x81AC )
glCullParameterdvEXT = platform.createExtensionFunction( 
'glCullParameterdvEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,arrays.GLdoubleArray,),
doc='glCullParameterdvEXT(GLenum(pname), GLdoubleArray(params)) -> None',
argNames=('pname','params',),
deprecated=_DEPRECATED,
)

glCullParameterfvEXT = platform.createExtensionFunction( 
'glCullParameterfvEXT',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,arrays.GLfloatArray,),
doc='glCullParameterfvEXT(GLenum(pname), GLfloatArray(params)) -> None',
argNames=('pname','params',),
deprecated=_DEPRECATED,
)
Ejemplo n.º 45
0
import ctypes
EXTENSION_NAME = 'GL_ARB_draw_elements_base_vertex'
_DEPRECATED = False

glDrawElementsBaseVertex = platform.createExtensionFunction(
    'glDrawElementsBaseVertex',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLsizei,
        constants.GLenum,
        ctypes.c_void_p,
        constants.GLint,
    ),
    doc=
    'glDrawElementsBaseVertex(GLenum(mode), GLsizei(count), GLenum(type), c_void_p(indices), GLint(basevertex)) -> None',
    argNames=(
        'mode',
        'count',
        'type',
        'indices',
        'basevertex',
    ),
    deprecated=_DEPRECATED,
)

glDrawRangeElementsBaseVertex = platform.createExtensionFunction(
    'glDrawRangeElementsBaseVertex',
    dll=platform.GL,
Ejemplo n.º 46
0
glget.addGLGetConstant( GL_PACK_IMAGE_HEIGHT_EXT, (1,) )
GL_UNPACK_SKIP_IMAGES_EXT = constant.Constant( 'GL_UNPACK_SKIP_IMAGES_EXT', 0x806D )
glget.addGLGetConstant( GL_UNPACK_SKIP_IMAGES_EXT, (1,) )
GL_UNPACK_IMAGE_HEIGHT_EXT = constant.Constant( 'GL_UNPACK_IMAGE_HEIGHT_EXT', 0x806E )
glget.addGLGetConstant( GL_UNPACK_IMAGE_HEIGHT_EXT, (1,) )
GL_TEXTURE_3D_EXT = constant.Constant( 'GL_TEXTURE_3D_EXT', 0x806F )
glget.addGLGetConstant( GL_TEXTURE_3D_EXT, (1,) )
GL_PROXY_TEXTURE_3D_EXT = constant.Constant( 'GL_PROXY_TEXTURE_3D_EXT', 0x8070 )
GL_TEXTURE_DEPTH_EXT = constant.Constant( 'GL_TEXTURE_DEPTH_EXT', 0x8071 )
GL_TEXTURE_WRAP_R_EXT = constant.Constant( 'GL_TEXTURE_WRAP_R_EXT', 0x8072 )
GL_MAX_3D_TEXTURE_SIZE_EXT = constant.Constant( 'GL_MAX_3D_TEXTURE_SIZE_EXT', 0x8073 )
glget.addGLGetConstant( GL_MAX_3D_TEXTURE_SIZE_EXT, (1,) )
glTexImage3DEXT = platform.createExtensionFunction( 
	'glTexImage3DEXT', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLint, constants.GLenum, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLint, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
	doc = 'glTexImage3DEXT( GLenum(target), GLint(level), GLenum(internalformat), GLsizei(width), GLsizei(height), GLsizei(depth), GLint(border), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
	argNames = ('target', 'level', 'internalformat', 'width', 'height', 'depth', 'border', 'format', 'type', 'pixels',),
)

glTexSubImage3DEXT = platform.createExtensionFunction( 
	'glTexSubImage3DEXT', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
	doc = 'glTexSubImage3DEXT( GLenum(target), GLint(level), GLint(xoffset), GLint(yoffset), GLint(zoffset), GLsizei(width), GLsizei(height), GLsizei(depth), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
	argNames = ('target', 'level', 'xoffset', 'yoffset', 'zoffset', 'width', 'height', 'depth', 'format', 'type', 'pixels',),
)


def glInitTexture3DEXT():
Ejemplo n.º 47
0
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.ARB.shader_objects import *
### END AUTOGENERATED SECTION
EXTENSION_NAME = 'GL_ARB_shader_objects'
import OpenGL
from OpenGL.lazywrapper import lazy
from OpenGL import converters, error
GL_INFO_LOG_LENGTH_ARB = constant.Constant( 'GL_INFO_LOG_LENGTH_ARB', 0x8B84 )

glShaderSourceARB = platform.createExtensionFunction( 
    'glShaderSourceARB', dll=platform.GL,
    resultType=None, 
    argTypes=(constants.GLhandleARB, constants.GLsizei, ctypes.POINTER(ctypes.c_char_p), arrays.GLintArray,),
    doc = 'glShaderSourceARB( GLhandleARB(shaderObj), [str(string),...] ) -> None',
    argNames = ('shaderObj', 'count', 'string', 'length',),
    extension = EXTENSION_NAME,
)
conv = converters.StringLengths( name='string' )
glShaderSourceARB = wrapper.wrapper(
    glShaderSourceARB
).setPyConverter(
    'count' # number of strings
).setPyConverter( 
    'length' # lengths of strings
).setPyConverter(
    'string', conv.stringArray
).setCResolver(
    'string', conv.stringArrayForC,
).setCConverter(
Ejemplo n.º 48
0
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_AMD_draw_buffers_blend'
_DEPRECATED = False

glBlendFuncIndexedAMD = platform.createExtensionFunction(
    'glBlendFuncIndexedAMD',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLuint,
        constants.GLenum,
        constants.GLenum,
    ),
    doc='glBlendFuncIndexedAMD(GLuint(buf), GLenum(src), GLenum(dst)) -> None',
    argNames=(
        'buf',
        'src',
        'dst',
    ),
    deprecated=_DEPRECATED,
)

glBlendFuncSeparateIndexedAMD = platform.createExtensionFunction(
    'glBlendFuncSeparateIndexedAMD',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
Ejemplo n.º 49
0
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_NV_texture_multisample'
_DEPRECATED = False
GL_TEXTURE_COVERAGE_SAMPLES_NV = constant.Constant( 'GL_TEXTURE_COVERAGE_SAMPLES_NV', 0x9045 )
GL_TEXTURE_COLOR_SAMPLES_NV = constant.Constant( 'GL_TEXTURE_COLOR_SAMPLES_NV', 0x9046 )
glTexImage2DMultisampleCoverageNV = platform.createExtensionFunction( 
'glTexImage2DMultisampleCoverageNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLsizei,constants.GLsizei,constants.GLint,constants.GLsizei,constants.GLsizei,constants.GLboolean,),
doc='glTexImage2DMultisampleCoverageNV(GLenum(target), GLsizei(coverageSamples), GLsizei(colorSamples), GLint(internalFormat), GLsizei(width), GLsizei(height), GLboolean(fixedSampleLocations)) -> None',
argNames=('target','coverageSamples','colorSamples','internalFormat','width','height','fixedSampleLocations',),
deprecated=_DEPRECATED,
)

glTexImage3DMultisampleCoverageNV = platform.createExtensionFunction( 
'glTexImage3DMultisampleCoverageNV',dll=platform.GL,
extension=EXTENSION_NAME,
resultType=None, 
argTypes=(constants.GLenum,constants.GLsizei,constants.GLsizei,constants.GLint,constants.GLsizei,constants.GLsizei,constants.GLsizei,constants.GLboolean,),
doc='glTexImage3DMultisampleCoverageNV(GLenum(target), GLsizei(coverageSamples), GLsizei(colorSamples), GLint(internalFormat), GLsizei(width), GLsizei(height), GLsizei(depth), GLboolean(fixedSampleLocations)) -> None',
argNames=('target','coverageSamples','colorSamples','internalFormat','width','height','depth','fixedSampleLocations',),
deprecated=_DEPRECATED,
)
    'GL_INT_SAMPLER_RENDERBUFFER_NV', 0x8E57)
GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = constant.Constant(
    'GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV', 0x8E58)
GL_MAX_SAMPLE_MASK_WORDS_NV = constant.Constant('GL_MAX_SAMPLE_MASK_WORDS_NV',
                                                0x8E59)
glget.addGLGetConstant(GL_MAX_SAMPLE_MASK_WORDS_NV, (1, ))
glGetMultisamplefvNV = platform.createExtensionFunction(
    'glGetMultisamplefvNV',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLuint,
        arrays.GLfloatArray,
    ),
    doc=
    'glGetMultisamplefvNV(GLenum(pname), GLuint(index), GLfloatArray(val)) -> None',
    argNames=(
        'pname',
        'index',
        'val',
    ),
    deprecated=_DEPRECATED,
)

glSampleMaskIndexedNV = platform.createExtensionFunction(
    'glSampleMaskIndexedNV',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
Ejemplo n.º 51
0
	main point of having this extension is to allow applications to have a
	clean way of accessing this functionality only when they are run
	under the control of a debugger/profiler, without having to
	recompile or change the application.
	

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/GREMEDY/string_marker.txt

Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_GREMEDY_string_marker'

glStringMarkerGREMEDY = platform.createExtensionFunction( 
	'glStringMarkerGREMEDY', dll=platform.GL,
	extension=EXTENSION_NAME,
	resultType=None, 
	argTypes=(constants.GLsizei, ctypes.c_void_p,),
	doc = 'glStringMarkerGREMEDY( GLsizei(len), c_void_p(string) ) -> None',
	argNames = ('len', 'string',),
)


def glInitStringMarkerGREMEDY():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 52
0
from OpenGL._bytes import bytes, _NULL_8_BYTE
from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_COMPILE_STATUS_ARB as GL_OBJECT_COMPILE_STATUS
from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_LINK_STATUS_ARB as GL_OBJECT_LINK_STATUS
from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_ACTIVE_UNIFORMS_ARB as GL_OBJECT_ACTIVE_UNIFORMS
from OpenGL.raw.GL.ARB.shader_objects import GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB as GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH
from OpenGL.GL.ARB.shader_objects import glGetInfoLogARB as glGetInfoLog
from OpenGL.lazywrapper import lazy

from OpenGL import converters, error, contextdata
from OpenGL.arrays.arraydatatype import ArrayDatatype, GLenumArray
GL_INFO_LOG_LENGTH = constant.Constant( 'GL_INFO_LOG_LENGTH', 0x8B84 )

glShaderSource = platform.createExtensionFunction(
    'glShaderSource', dll=platform.GL,
    resultType=None,
    argTypes=(constants.GLhandle, constants.GLsizei, ctypes.POINTER(ctypes.c_char_p), arrays.GLintArray,),
    doc = 'glShaderSource( GLhandle(shaderObj),[str(string),...]) -> None',
    argNames = ('shaderObj', 'count', 'string', 'length',),
    extension = EXTENSION_NAME,
)
conv = converters.StringLengths( name='string' )
glShaderSource = wrapper.wrapper(
    glShaderSource
).setPyConverter(
    'count' # number of strings
).setPyConverter(
    'length' # lengths of strings
).setPyConverter(
    'string', conv.stringArray
).setCResolver(
    'string', conv.stringArrayForC,
).setCConverter(
Ejemplo n.º 53
0
GL_SPRITE_AXIS_SGIX = constant.Constant('GL_SPRITE_AXIS_SGIX', 0x814A)
GL_SPRITE_TRANSLATION_SGIX = constant.Constant('GL_SPRITE_TRANSLATION_SGIX',
                                               0x814B)
GL_SPRITE_AXIAL_SGIX = constant.Constant('GL_SPRITE_AXIAL_SGIX', 0x814C)
GL_SPRITE_OBJECT_ALIGNED_SGIX = constant.Constant(
    'GL_SPRITE_OBJECT_ALIGNED_SGIX', 0x814D)
GL_SPRITE_EYE_ALIGNED_SGIX = constant.Constant('GL_SPRITE_EYE_ALIGNED_SGIX',
                                               0x814E)
glSpriteParameterfSGIX = platform.createExtensionFunction(
    'glSpriteParameterfSGIX',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLfloat,
    ),
    doc='glSpriteParameterfSGIX(GLenum(pname), GLfloat(param)) -> None',
    argNames=(
        'pname',
        'param',
    ),
    deprecated=_DEPRECATED,
)

glSpriteParameterfvSGIX = platform.createExtensionFunction(
    'glSpriteParameterfvSGIX',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
Ejemplo n.º 54
0
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes

EXTENSION_NAME = "GL_EXT_copy_texture"

glCopyTexImage1DEXT = platform.createExtensionFunction(
    "glCopyTexImage1DEXT",
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLint,
        constants.GLenum,
        constants.GLint,
        constants.GLint,
        constants.GLsizei,
        constants.GLint,
    ),
    doc="glCopyTexImage1DEXT( GLenum(target), GLint(level), GLenum(internalformat), GLint(x), GLint(y), GLsizei(width), GLint(border) ) -> None",
    argNames=("target", "level", "internalformat", "x", "y", "width", "border"),
)

glCopyTexImage2DEXT = platform.createExtensionFunction(
    "glCopyTexImage2DEXT",
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
Ejemplo n.º 55
0
import ctypes
EXTENSION_NAME = 'GL_EXT_draw_buffers2'
_DEPRECATED = False

glColorMaskIndexedEXT = platform.createExtensionFunction(
    'glColorMaskIndexedEXT',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLuint,
        constants.GLboolean,
        constants.GLboolean,
        constants.GLboolean,
        constants.GLboolean,
    ),
    doc=
    'glColorMaskIndexedEXT(GLuint(index), GLboolean(r), GLboolean(g), GLboolean(b), GLboolean(a)) -> None',
    argNames=(
        'index',
        'r',
        'g',
        'b',
        'a',
    ),
    deprecated=_DEPRECATED,
)

glGetBooleanIndexedvEXT = platform.createExtensionFunction(
    'glGetBooleanIndexedvEXT',
    dll=platform.GL,