Ejemplo n.º 1
0
'''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_NV_depth_buffer_float'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_NV_depth_buffer_float',
                             False)


_p.unpack_constants(
    """GL_DEPTH_COMPONENT32F_NV 0x8DAB
GL_DEPTH32F_STENCIL8_NV 0x8DAC
GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF""", globals())


@_f
@_p.types(None, _cs.GLdouble, _cs.GLdouble)
def glDepthRangedNV(zNear, zFar):
    pass


@_f
@_p.types(None, _cs.GLdouble)
def glClearDepthdNV(depth):
    pass

Ejemplo n.º 2
0
_p.unpack_constants( """GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C
GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA
GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB
GL_DSDT_MAG_INTENSITY_NV 0x86DC
GL_SHADER_CONSISTENT_NV 0x86DD
GL_TEXTURE_SHADER_NV 0x86DE
GL_SHADER_OPERATION_NV 0x86DF
GL_CULL_MODES_NV 0x86E0
GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1
GL_OFFSET_TEXTURE_SCALE_NV 0x86E2
GL_OFFSET_TEXTURE_BIAS_NV 0x86E3
GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4
GL_CONST_EYE_NV 0x86E5
GL_PASS_THROUGH_NV 0x86E6
GL_CULL_FRAGMENT_NV 0x86E7
GL_OFFSET_TEXTURE_2D_NV 0x86E8
GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9
GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA
GL_DOT_PRODUCT_NV 0x86EC
GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED
GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE
GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
GL_HILO_NV 0x86F4
GL_DSDT_NV 0x86F5
GL_DSDT_MAG_NV 0x86F6
GL_DSDT_MAG_VIB_NV 0x86F7
GL_HILO16_NV 0x86F8
GL_SIGNED_HILO_NV 0x86F9
GL_SIGNED_HILO16_NV 0x86FA
GL_SIGNED_RGBA_NV 0x86FB
GL_SIGNED_RGBA8_NV 0x86FC
GL_SIGNED_RGB_NV 0x86FE
GL_SIGNED_RGB8_NV 0x86FF
GL_SIGNED_LUMINANCE_NV 0x8701
GL_SIGNED_LUMINANCE8_NV 0x8702
GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703
GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704
GL_SIGNED_ALPHA_NV 0x8705
GL_SIGNED_ALPHA8_NV 0x8706
GL_SIGNED_INTENSITY_NV 0x8707
GL_SIGNED_INTENSITY8_NV 0x8708
GL_DSDT8_NV 0x8709
GL_DSDT8_MAG8_NV 0x870A
GL_DSDT8_MAG8_INTENSITY8_NV 0x870B
GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C
GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
GL_HI_SCALE_NV 0x870E
GL_LO_SCALE_NV 0x870F
GL_DS_SCALE_NV 0x8710
GL_DT_SCALE_NV 0x8711
GL_MAGNITUDE_SCALE_NV 0x8712
GL_VIBRANCE_SCALE_NV 0x8713
GL_HI_BIAS_NV 0x8714
GL_LO_BIAS_NV 0x8715
GL_DS_BIAS_NV 0x8716
GL_DT_BIAS_NV 0x8717
GL_MAGNITUDE_BIAS_NV 0x8718
GL_VIBRANCE_BIAS_NV 0x8719
GL_TEXTURE_BORDER_VALUES_NV 0x871A
GL_TEXTURE_HI_SIZE_NV 0x871B
GL_TEXTURE_LO_SIZE_NV 0x871C
GL_TEXTURE_DS_SIZE_NV 0x871D
GL_TEXTURE_DT_SIZE_NV 0x871E
GL_TEXTURE_MAG_SIZE_NV 0x871F""", globals())
Ejemplo n.º 3
0
_p.unpack_constants( """GL_COMPARE_REF_TO_TEXTURE 0x884E
GL_CLIP_DISTANCE0 0x3000
GL_CLIP_DISTANCE1 0x3001
GL_CLIP_DISTANCE2 0x3002
GL_CLIP_DISTANCE3 0x3003
GL_CLIP_DISTANCE4 0x3004
GL_CLIP_DISTANCE5 0x3005
GL_CLIP_DISTANCE6 0x3006
GL_CLIP_DISTANCE7 0x3007
GL_MAX_CLIP_DISTANCES 0xD32
GL_MAJOR_VERSION 0x821B
GL_MINOR_VERSION 0x821C
GL_NUM_EXTENSIONS 0x821D
GL_CONTEXT_FLAGS 0x821E
GL_COMPRESSED_RED 0x8225
GL_COMPRESSED_RG 0x8226
GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x1
GL_RGBA32F 0x8814
GL_RGB32F 0x8815
GL_RGBA16F 0x881A
GL_RGB16F 0x881B
GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
GL_CLAMP_READ_COLOR 0x891C
GL_FIXED_ONLY 0x891D
GL_MAX_VARYING_COMPONENTS 0x8B4B
GL_TEXTURE_1D_ARRAY 0x8C18
GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
GL_TEXTURE_2D_ARRAY 0x8C1A
GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
GL_R11F_G11F_B10F 0x8C3A
GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
GL_RGB9_E5 0x8C3D
GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
GL_TEXTURE_SHARED_SIZE 0x8C3F
GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
GL_PRIMITIVES_GENERATED 0x8C87
GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
GL_RASTERIZER_DISCARD 0x8C89
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
GL_INTERLEAVED_ATTRIBS 0x8C8C
GL_SEPARATE_ATTRIBS 0x8C8D
GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
GL_RGBA32UI 0x8D70
GL_RGB32UI 0x8D71
GL_RGBA16UI 0x8D76
GL_RGB16UI 0x8D77
GL_RGBA8UI 0x8D7C
GL_RGB8UI 0x8D7D
GL_RGBA32I 0x8D82
GL_RGB32I 0x8D83
GL_RGBA16I 0x8D88
GL_RGB16I 0x8D89
GL_RGBA8I 0x8D8E
GL_RGB8I 0x8D8F
GL_RED_INTEGER 0x8D94
GL_GREEN_INTEGER 0x8D95
GL_BLUE_INTEGER 0x8D96
GL_RGB_INTEGER 0x8D98
GL_RGBA_INTEGER 0x8D99
GL_BGR_INTEGER 0x8D9A
GL_BGRA_INTEGER 0x8D9B
GL_SAMPLER_1D_ARRAY 0x8DC0
GL_SAMPLER_2D_ARRAY 0x8DC1
GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
GL_SAMPLER_CUBE_SHADOW 0x8DC5
GL_UNSIGNED_INT_VEC2 0x8DC6
GL_UNSIGNED_INT_VEC3 0x8DC7
GL_UNSIGNED_INT_VEC4 0x8DC8
GL_INT_SAMPLER_1D 0x8DC9
GL_INT_SAMPLER_2D 0x8DCA
GL_INT_SAMPLER_3D 0x8DCB
GL_INT_SAMPLER_CUBE 0x8DCC
GL_INT_SAMPLER_1D_ARRAY 0x8DCE
GL_INT_SAMPLER_2D_ARRAY 0x8DCF
GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
GL_QUERY_WAIT 0x8E13
GL_QUERY_NO_WAIT 0x8E14
GL_QUERY_BY_REGION_WAIT 0x8E15
GL_QUERY_BY_REGION_NO_WAIT 0x8E16
GL_BUFFER_ACCESS_FLAGS 0x911F
GL_BUFFER_MAP_LENGTH 0x9120
GL_BUFFER_MAP_OFFSET 0x9121
GL_CLAMP_VERTEX_COLOR 0x891A
GL_CLAMP_FRAGMENT_COLOR 0x891B
GL_ALPHA_INTEGER 0x8D97""", globals())
'''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_EXT_texture_buffer_object'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_texture_buffer_object',False)
_p.unpack_constants( """GL_TEXTURE_BUFFER_EXT 0x8C2A
GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B
GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C
GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E""", globals())
glget.addGLGetConstant( GL_TEXTURE_BUFFER_EXT, (1,) )
glget.addGLGetConstant( GL_MAX_TEXTURE_BUFFER_SIZE_EXT, (1,) )
glget.addGLGetConstant( GL_TEXTURE_BINDING_BUFFER_EXT, (1,) )
glget.addGLGetConstant( GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT, (1,) )
glget.addGLGetConstant( GL_TEXTURE_BUFFER_FORMAT_EXT, (1,) )
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLuint)
def glTexBufferEXT( target,internalformat,buffer ):pass


def glInitTextureBufferObjectEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_NV_fragment_program2'
_p.unpack_constants( """GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5
GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6
GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7
GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8""", globals())


def glInitFragmentProgram2NV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 6
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_APPLE_ycbcr_422'
_p.unpack_constants( """GL_YCBCR_422_APPLE 0x85B9
GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB""", globals())


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

_p.unpack_constants(
    """GL_SAMPLER_1D_ARRAY_EXT 0x8DC0
GL_SAMPLER_2D_ARRAY_EXT 0x8DC1
GL_SAMPLER_BUFFER_EXT 0x8DC2
GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3
GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4
GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5
GL_UNSIGNED_INT_VEC2_EXT 0x8DC6
GL_UNSIGNED_INT_VEC3_EXT 0x8DC7
GL_UNSIGNED_INT_VEC4_EXT 0x8DC8
GL_INT_SAMPLER_1D_EXT 0x8DC9
GL_INT_SAMPLER_2D_EXT 0x8DCA
GL_INT_SAMPLER_3D_EXT 0x8DCB
GL_INT_SAMPLER_CUBE_EXT 0x8DCC
GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD
GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE
GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF
GL_INT_SAMPLER_BUFFER_EXT 0x8DD0
GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1
GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2
GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3
GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4
GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8""",
    globals(),
)

Ejemplo n.º 8
0
'''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_SUNX_constant_data'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_SUNX_constant_data', False)


_p.unpack_constants(
    """GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5
GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6""", globals())


@_f
@_p.types(
    None, )
def glFinishTextureSUNX():
    pass


def glInitConstantDataSUNX():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 9
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_ARB_texture_rg'
_p.unpack_constants( """GL_RG 0x8227
GL_RG_INTEGER 0x8228
GL_R8 0x8229
GL_R16 0x822A
GL_RG8 0x822B
GL_RG16 0x822C
GL_R16F 0x822D
GL_R32F 0x822E
GL_RG16F 0x822F
GL_RG32F 0x8230
GL_R8I 0x8231
GL_R8UI 0x8232
GL_R16I 0x8233
GL_R16UI 0x8234
GL_R32I 0x8235
GL_R32UI 0x8236
GL_RG8I 0x8237
GL_RG8UI 0x8238
GL_RG16I 0x8239
GL_RG16UI 0x823A
GL_RG32I 0x823B
GL_RG32UI 0x823C""", globals())


def glInitTextureRgARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
Ejemplo n.º 10
0
'''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_NV_vertex_program4'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_NV_vertex_program4', False)


_p.unpack_constants("""GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD""", globals())


@_f
@_p.types(None, _cs.GLuint, _cs.GLint)
def glVertexAttribI1iEXT(index, x):
    pass


@_f
@_p.types(None, _cs.GLuint, _cs.GLint, _cs.GLint)
def glVertexAttribI2iEXT(index, x, y):
    pass


@_f
@_p.types(None, _cs.GLuint, _cs.GLint, _cs.GLint, _cs.GLint)
def glVertexAttribI3iEXT(index, x, y, z):
    pass
Ejemplo n.º 11
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_NV_texture_shader3'
_p.unpack_constants(
    """GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854
GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858
GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859
GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B
GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C
GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
GL_HILO8_NV 0x885E
GL_SIGNED_HILO8_NV 0x885F
GL_FORCE_BLUE_TO_ONE_NV 0x8860""", globals())


def glInitTextureShader3NV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 12
0
EXTENSION_NAME = 'GL_EXT_multisample'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_EXT_multisample', False)


_p.unpack_constants(
    """GL_MULTISAMPLE_EXT 0x809D
GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E
GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F
GL_SAMPLE_MASK_EXT 0x80A0
GL_1PASS_EXT 0x80A1
GL_2PASS_0_EXT 0x80A2
GL_2PASS_1_EXT 0x80A3
GL_4PASS_0_EXT 0x80A4
GL_4PASS_1_EXT 0x80A5
GL_4PASS_2_EXT 0x80A6
GL_4PASS_3_EXT 0x80A7
GL_SAMPLE_BUFFERS_EXT 0x80A8
GL_SAMPLES_EXT 0x80A9
GL_SAMPLE_MASK_VALUE_EXT 0x80AA
GL_SAMPLE_MASK_INVERT_EXT 0x80AB
GL_SAMPLE_PATTERN_EXT 0x80AC
GL_MULTISAMPLE_BIT_EXT 0x20000000""", globals())
glget.addGLGetConstant(GL_MULTISAMPLE_EXT, (1, ))
glget.addGLGetConstant(GL_SAMPLE_ALPHA_TO_MASK_EXT, (1, ))
glget.addGLGetConstant(GL_SAMPLE_ALPHA_TO_ONE_EXT, (1, ))
glget.addGLGetConstant(GL_SAMPLE_MASK_EXT, (1, ))


@_f
Ejemplo n.º 13
0
EXTENSION_NAME = 'GL_EXT_transform_feedback'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_EXT_transform_feedback',
                             False)


_p.unpack_constants(
    """GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E
GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C
GL_SEPARATE_ATTRIBS_EXT 0x8C8D
GL_PRIMITIVES_GENERATED_EXT 0x8C87
GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88
GL_RASTERIZER_DISCARD_EXT 0x8C89
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76""", globals())


@_f
@_p.types(None, _cs.GLenum)
def glBeginTransformFeedbackEXT(primitiveMode):
    pass

Ejemplo n.º 14
0
'''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_NV_fragment_program'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_NV_fragment_program',False)
_p.unpack_constants( """GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
GL_FRAGMENT_PROGRAM_NV 0x8870
GL_MAX_TEXTURE_COORDS_NV 0x8871
GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872
GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873
GL_PROGRAM_ERROR_STRING_NV 0x8874""", globals())
glget.addGLGetConstant( GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV, (1,) )
glget.addGLGetConstant( GL_FRAGMENT_PROGRAM_NV, (1,) )
glget.addGLGetConstant( GL_MAX_TEXTURE_COORDS_NV, (1,) )
glget.addGLGetConstant( GL_MAX_TEXTURE_IMAGE_UNITS_NV, (1,) )
glget.addGLGetConstant( GL_FRAGMENT_PROGRAM_BINDING_NV, (1,) )
@_f
@_p.types(None,_cs.GLuint,_cs.GLsizei,arrays.GLubyteArray,_cs.GLfloat,_cs.GLfloat,_cs.GLfloat,_cs.GLfloat)
def glProgramNamedParameter4fNV( id,len,name,x,y,z,w ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLsizei,arrays.GLubyteArray,_cs.GLdouble,_cs.GLdouble,_cs.GLdouble,_cs.GLdouble)
def glProgramNamedParameter4dNV( id,len,name,x,y,z,w ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLsizei,arrays.GLubyteArray,arrays.GLfloatArray)
def glProgramNamedParameter4fvNV( id,len,name,v ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLsizei,arrays.GLubyteArray,arrays.GLdoubleArray)
def glProgramNamedParameter4dvNV( id,len,name,v ):pass
@_f
'''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_NV_geometry_program4'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_NV_geometry_program4',False)
_p.unpack_constants( """GL_LINES_ADJACENCY_EXT 0xA
GL_LINE_STRIP_ADJACENCY_EXT 0xB
GL_TRIANGLES_ADJACENCY_EXT 0xC
GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD
GL_GEOMETRY_PROGRAM_NV 0x8C26
GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28
GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA
GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB
GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
GL_PROGRAM_POINT_SIZE_EXT 0x8642""", globals())
glget.addGLGetConstant( GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT, (1,) )
glget.addGLGetConstant( GL_PROGRAM_POINT_SIZE_EXT, (1,) )
@_f
@_p.types(None,_cs.GLenum,_cs.GLint)
def glProgramVertexLimitNV( target,limit ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLuint,_cs.GLint)
def glFramebufferTextureEXT( target,attachment,texture,level ):pass
Ejemplo n.º 16
0
def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_ARB_debug_output', False)


_p.unpack_constants(
    """GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
GL_DEBUG_SOURCE_API_ARB 0x8246
GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
GL_DEBUG_SOURCE_OTHER_ARB 0x824B
GL_DEBUG_TYPE_ERROR_ARB 0x824C
GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
GL_DEBUG_TYPE_OTHER_ARB 0x8251
GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
GL_DEBUG_SEVERITY_LOW_ARB 0x9148""", globals())


@_f
@_p.types(None, _cs.GLenum, _cs.GLenum, _cs.GLenum, _cs.GLsizei,
Ejemplo n.º 17
0
'''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_EXT_light_texture'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_light_texture',False)
_p.unpack_constants( """GL_FRAGMENT_MATERIAL_EXT 0x8349
GL_FRAGMENT_NORMAL_EXT 0x834A
GL_FRAGMENT_COLOR_EXT 0x834C
GL_ATTENUATION_EXT 0x834D
GL_SHADOW_ATTENUATION_EXT 0x834E
GL_TEXTURE_APPLICATION_MODE_EXT 0x834F
GL_TEXTURE_LIGHT_EXT 0x8350
GL_TEXTURE_MATERIAL_FACE_EXT 0x8351
GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352""", globals())
@_f
@_p.types(None,_cs.GLenum)
def glApplyTextureEXT( mode ):pass
@_f
@_p.types(None,_cs.GLenum)
def glTextureLightEXT( pname ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum)
def glTextureMaterialEXT( face,mode ):pass


def glInitLightTextureEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 18
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_EXT_index_array_formats'
_p.unpack_constants(
    """GL_IUI_V2F_EXT 0x81AD
GL_IUI_V3F_EXT 0x81AE
GL_IUI_N3F_V2F_EXT 0x81AF
GL_IUI_N3F_V3F_EXT 0x81B0
GL_T2F_IUI_V2F_EXT 0x81B1
GL_T2F_IUI_V3F_EXT 0x81B2
GL_T2F_IUI_N3F_V2F_EXT 0x81B3
GL_T2F_IUI_N3F_V3F_EXT 0x81B4""", globals())


def glInitIndexArrayFormatsEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 19
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_SGI_color_matrix'
_p.unpack_constants( """GL_COLOR_MATRIX_SGI 0x80B1
GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2
GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB""", globals())
glget.addGLGetConstant( GL_COLOR_MATRIX_SGI, (4,4) )
glget.addGLGetConstant( GL_COLOR_MATRIX_STACK_DEPTH_SGI, (1,) )
glget.addGLGetConstant( GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_RED_SCALE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_RED_BIAS_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI, (1,) )
glget.addGLGetConstant( GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI, (1,) )


def glInitColorMatrixSGI():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
Ejemplo n.º 20
0
import ctypes

EXTENSION_NAME = 'GL_NV_explicit_multisample'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_NV_explicit_multisample',
                             False)


_p.unpack_constants(
    """GL_SAMPLE_POSITION_NV 0x8E50
GL_SAMPLE_MASK_NV 0x8E51
GL_SAMPLE_MASK_VALUE_NV 0x8E52
GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
GL_TEXTURE_RENDERBUFFER_NV 0x8E55
GL_SAMPLER_RENDERBUFFER_NV 0x8E56
GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57
GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59""", globals())
glget.addGLGetConstant(GL_TEXTURE_BINDING_RENDERBUFFER_NV, (1, ))
glget.addGLGetConstant(GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV, (1, ))
glget.addGLGetConstant(GL_MAX_SAMPLE_MASK_WORDS_NV, (1, ))


@_f
@_p.types(None, _cs.GLenum, _cs.GLuint, arrays.GLfloatArray)
def glGetMultisamplefvNV(pname, index, val):
    pass
'''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_NV_framebuffer_multisample_coverage'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_NV_framebuffer_multisample_coverage',False)
_p.unpack_constants( """GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10
GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12""", globals())
glget.addGLGetConstant( GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV, (1,) )
@_f
@_p.types(None,_cs.GLenum,_cs.GLsizei,_cs.GLsizei,_cs.GLenum,_cs.GLsizei,_cs.GLsizei)
def glRenderbufferStorageMultisampleCoverageNV( target,coverageSamples,colorSamples,internalformat,width,height ):pass


def glInitFramebufferMultisampleCoverageNV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 22
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_EXT_texture_mirror_clamp'
_p.unpack_constants(
    """GL_MIRROR_CLAMP_EXT 0x8742
GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743
GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912""", globals())


def glInitTextureMirrorClampEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 23
0
'''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_SGIS_sharpen_texture'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_SGIS_sharpen_texture',False)
_p.unpack_constants( """GL_LINEAR_SHARPEN_SGIS 0x80AD
GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE
GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF
GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0""", globals())
@_f
@_p.types(None,_cs.GLenum,_cs.GLsizei,arrays.GLfloatArray)
def glSharpenTexFuncSGIS( target,n,points ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLfloatArray)
def glGetSharpenTexFuncSGIS( target,points ):pass


def glInitSharpenTextureSGIS():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 24
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_SGIS_generate_mipmap'
_p.unpack_constants( """GL_GENERATE_MIPMAP_SGIS 0x8191
GL_GENERATE_MIPMAP_HINT_SGIS 0x8192""", globals())
glget.addGLGetConstant( GL_GENERATE_MIPMAP_HINT_SGIS, (1,) )


def glInitGenerateMipmapSGIS():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 25
0
_p.unpack_constants( """GL_CONSTANT_COLOR 0x8001
GL_ONE_MINUS_CONSTANT_COLOR 0x8002
GL_CONSTANT_ALPHA 0x8003
GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
GL_BLEND_COLOR 0x8005
GL_FUNC_ADD 0x8006
GL_MIN 0x8007
GL_MAX 0x8008
GL_BLEND_EQUATION 0x8009
GL_FUNC_SUBTRACT 0x800A
GL_FUNC_REVERSE_SUBTRACT 0x800B
GL_CONVOLUTION_1D 0x8010
GL_CONVOLUTION_2D 0x8011
GL_SEPARABLE_2D 0x8012
GL_CONVOLUTION_BORDER_MODE 0x8013
GL_CONVOLUTION_FILTER_SCALE 0x8014
GL_CONVOLUTION_FILTER_BIAS 0x8015
GL_REDUCE 0x8016
GL_CONVOLUTION_FORMAT 0x8017
GL_CONVOLUTION_WIDTH 0x8018
GL_CONVOLUTION_HEIGHT 0x8019
GL_MAX_CONVOLUTION_WIDTH 0x801A
GL_MAX_CONVOLUTION_HEIGHT 0x801B
GL_POST_CONVOLUTION_RED_SCALE 0x801C
GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
GL_POST_CONVOLUTION_RED_BIAS 0x8020
GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
GL_HISTOGRAM 0x8024
GL_PROXY_HISTOGRAM 0x8025
GL_HISTOGRAM_WIDTH 0x8026
GL_HISTOGRAM_FORMAT 0x8027
GL_HISTOGRAM_RED_SIZE 0x8028
GL_HISTOGRAM_GREEN_SIZE 0x8029
GL_HISTOGRAM_BLUE_SIZE 0x802A
GL_HISTOGRAM_ALPHA_SIZE 0x802B
GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
GL_HISTOGRAM_SINK 0x802D
GL_MINMAX 0x802E
GL_MINMAX_FORMAT 0x802F
GL_MINMAX_SINK 0x8030
GL_TABLE_TOO_LARGE 0x8031
GL_COLOR_MATRIX 0x80B1
GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
GL_COLOR_TABLE 0x80D0
GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
GL_PROXY_COLOR_TABLE 0x80D3
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
GL_COLOR_TABLE_SCALE 0x80D6
GL_COLOR_TABLE_BIAS 0x80D7
GL_COLOR_TABLE_FORMAT 0x80D8
GL_COLOR_TABLE_WIDTH 0x80D9
GL_COLOR_TABLE_RED_SIZE 0x80DA
GL_COLOR_TABLE_GREEN_SIZE 0x80DB
GL_COLOR_TABLE_BLUE_SIZE 0x80DC
GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
GL_CONSTANT_BORDER 0x8151
GL_REPLICATE_BORDER 0x8153
GL_CONVOLUTION_BORDER_COLOR 0x8154""", globals())
Ejemplo n.º 26
0
'''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_EXT_x11_sync_object'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_EXT_x11_sync_object', False)


_p.unpack_constants("""GL_SYNC_X11_FENCE_EXT 0x90E1""", globals())


@_f
@_p.types(_cs.GLsync, _cs.GLenum, _cs.GLintptr, _cs.GLbitfield)
def glImportSyncEXT(external_sync_type, external_sync, flags):
    pass


def glInitX11SyncObjectEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
'''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_EXT_coordinate_frame'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_coordinate_frame',False)
_p.unpack_constants( """GL_TANGENT_ARRAY_EXT 0x8439
GL_BINORMAL_ARRAY_EXT 0x843A
GL_CURRENT_TANGENT_EXT 0x843B
GL_CURRENT_BINORMAL_EXT 0x843C
GL_TANGENT_ARRAY_TYPE_EXT 0x843E
GL_TANGENT_ARRAY_STRIDE_EXT 0x843F
GL_BINORMAL_ARRAY_TYPE_EXT 0x8440
GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441
GL_TANGENT_ARRAY_POINTER_EXT 0x8442
GL_BINORMAL_ARRAY_POINTER_EXT 0x8443
GL_MAP1_TANGENT_EXT 0x8444
GL_MAP2_TANGENT_EXT 0x8445
GL_MAP1_BINORMAL_EXT 0x8446
GL_MAP2_BINORMAL_EXT 0x8447""", globals())
glget.addGLGetConstant( GL_TANGENT_ARRAY_EXT, (1,) )
glget.addGLGetConstant( GL_CURRENT_TANGENT_EXT, (1,) )
glget.addGLGetConstant( GL_CURRENT_BINORMAL_EXT, (1,) )
glget.addGLGetConstant( GL_TANGENT_ARRAY_TYPE_EXT, (1,) )
glget.addGLGetConstant( GL_TANGENT_ARRAY_STRIDE_EXT, (1,) )
glget.addGLGetConstant( GL_BINORMAL_ARRAY_TYPE_EXT, (1,) )
glget.addGLGetConstant( GL_BINORMAL_ARRAY_STRIDE_EXT, (1,) )
@_f
@_p.types(None,_cs.GLbyte,_cs.GLbyte,_cs.GLbyte)
def glTangent3bEXT( tx,ty,tz ):pass
Ejemplo n.º 28
0
'''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_EXT_fog_coord'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_EXT_fog_coord', False)


_p.unpack_constants(
    """GL_FOG_COORDINATE_SOURCE_EXT 0x8450
GL_FOG_COORDINATE_EXT 0x8451
GL_FRAGMENT_DEPTH_EXT 0x8452
GL_CURRENT_FOG_COORDINATE_EXT 0x8453
GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
GL_FOG_COORDINATE_ARRAY_EXT 0x8457""", globals())
glget.addGLGetConstant(GL_CURRENT_FOG_COORDINATE_EXT, (1, ))
glget.addGLGetConstant(GL_FOG_COORDINATE_ARRAY_TYPE_EXT, (1, ))
glget.addGLGetConstant(GL_FOG_COORDINATE_ARRAY_STRIDE_EXT, (1, ))


@_f
@_p.types(None, _cs.GLfloat)
def glFogCoordfEXT(coord):
    pass

'''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_instanced_arrays'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_instanced_arrays',False)
_p.unpack_constants( """GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint)
def glVertexAttribDivisorARB( index,divisor ):pass


def glInitInstancedArraysARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 30
0
'''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_NV_vdpau_interop'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_NV_vdpau_interop', False)


_p.unpack_constants(
    """GL_SURFACE_STATE_NV 0x86EB
GL_SURFACE_REGISTERED_NV 0x86FD
GL_SURFACE_MAPPED_NV 0x8700
GL_WRITE_DISCARD_NV 0x88BE""", globals())


@_f
@_p.types(None, ctypes.c_void_p, ctypes.c_void_p)
def glVDPAUInitNV(vdpDevice, getProcAddress):
    pass


@_f
@_p.types(
    None, )
def glVDPAUFiniNV():
    pass

'''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_EXT_draw_range_elements'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_draw_range_elements',False)
_p.unpack_constants( """GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8
GL_MAX_ELEMENTS_INDICES_EXT 0x80E9""", globals())
@_f
@_p.types(None,_cs.GLenum,_cs.GLuint,_cs.GLuint,_cs.GLsizei,_cs.GLenum,ctypes.c_void_p)
def glDrawRangeElementsEXT( mode,start,end,count,type,indices ):pass


def glInitDrawRangeElementsEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 32
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_NV_vertex_array_range2'
_p.unpack_constants("""GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533""",
                    globals())


def glInitVertexArrayRange2NV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_NV_tessellation_program5'
_p.unpack_constants( """GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8
GL_TESS_CONTROL_PROGRAM_NV 0x891E
GL_TESS_EVALUATION_PROGRAM_NV 0x891F
GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74
GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75""", globals())


def glInitTessellationProgram5NV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 34
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_ARB_occlusion_query2'
_p.unpack_constants( """GL_ANY_SAMPLES_PASSED 0x8C2F""", globals())


def glInitOcclusionQuery2ARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 35
0
'''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_NV_fence'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_NV_fence',False)
_p.unpack_constants( """GL_ALL_COMPLETED_NV 0x84F2
GL_FENCE_STATUS_NV 0x84F3
GL_FENCE_CONDITION_NV 0x84F4""", globals())
@_f
@_p.types(None,_cs.GLsizei,arrays.GLuintArray)
def glDeleteFencesNV( n,fences ):pass
@_f
@_p.types(None,_cs.GLsizei,arrays.GLuintArray)
def glGenFencesNV( n,fences ):pass
@_f
@_p.types(_cs.GLboolean,_cs.GLuint)
def glIsFenceNV( fence ):pass
@_f
@_p.types(_cs.GLboolean,_cs.GLuint)
def glTestFenceNV( fence ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,arrays.GLintArray)
def glGetFenceivNV( fence,pname,params ):pass
@_f
@_p.types(None,_cs.GLuint)
def glFinishFenceNV( fence ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum)
def glSetFenceNV( fence,condition ):pass
Ejemplo n.º 36
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_SGIX_async_pixel'
_p.unpack_constants(
    """GL_ASYNC_TEX_IMAGE_SGIX 0x835C
GL_ASYNC_DRAW_PIXELS_SGIX 0x835D
GL_ASYNC_READ_PIXELS_SGIX 0x835E
GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F
GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360
GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361""", globals())
glget.addGLGetConstant(GL_ASYNC_TEX_IMAGE_SGIX, (1, ))
glget.addGLGetConstant(GL_ASYNC_DRAW_PIXELS_SGIX, (1, ))
glget.addGLGetConstant(GL_ASYNC_READ_PIXELS_SGIX, (1, ))
glget.addGLGetConstant(GL_MAX_ASYNC_TEX_IMAGE_SGIX, (1, ))
glget.addGLGetConstant(GL_MAX_ASYNC_DRAW_PIXELS_SGIX, (1, ))
glget.addGLGetConstant(GL_MAX_ASYNC_READ_PIXELS_SGIX, (1, ))


def glInitAsyncPixelSGIX():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_EXT_shared_texture_palette'
_p.unpack_constants( """GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB""", globals())


def glInitSharedTexturePaletteEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 38
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_AMD_pinned_memory'
_p.unpack_constants("""GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160""",
                    globals())


def glInitPinnedMemoryAMD():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 39
0
'''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_EXT_blend_color'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_blend_color',False)
_p.unpack_constants( """GL_CONSTANT_COLOR_EXT 0x8001
GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
GL_CONSTANT_ALPHA_EXT 0x8003
GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
GL_BLEND_COLOR_EXT 0x8005""", globals())
glget.addGLGetConstant( GL_BLEND_COLOR_EXT, (4,) )
@_f
@_p.types(None,_cs.GLfloat,_cs.GLfloat,_cs.GLfloat,_cs.GLfloat)
def glBlendColorEXT( red,green,blue,alpha ):pass


def glInitBlendColorEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 40
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_PGI_vertex_hints'
_p.unpack_constants(
    """GL_VERTEX_DATA_HINT_PGI 0x1A22A
GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B
GL_MATERIAL_SIDE_HINT_PGI 0x1A22C
GL_MAX_VERTEX_HINT_PGI 0x1A22D
GL_COLOR3_BIT_PGI 0x10000
GL_COLOR4_BIT_PGI 0x20000
GL_EDGEFLAG_BIT_PGI 0x40000
GL_INDEX_BIT_PGI 0x80000
GL_MAT_AMBIENT_BIT_PGI 0x100000
GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x200000
GL_MAT_DIFFUSE_BIT_PGI 0x400000
GL_MAT_EMISSION_BIT_PGI 0x800000
GL_MAT_COLOR_INDEXES_BIT_PGI 0x1000000
GL_MAT_SHININESS_BIT_PGI 0x2000000
GL_MAT_SPECULAR_BIT_PGI 0x4000000
GL_NORMAL_BIT_PGI 0x8000000
GL_TEXCOORD1_BIT_PGI 0x10000000
GL_TEXCOORD2_BIT_PGI 0x20000000
GL_TEXCOORD3_BIT_PGI 0x40000000
GL_TEXCOORD4_BIT_PGI 0x80000000
GL_VERTEX23_BIT_PGI 0x4
GL_VERTEX4_BIT_PGI 0x8""", globals())


def glInitVertexHintsPGI():
    '''Return boolean indicating whether this extension is available'''
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_REND_screen_coordinates'
_p.unpack_constants( """GL_SCREEN_COORDINATES_REND 0x8490
GL_INVERTED_SCREEN_W_REND 0x8491""", globals())


def glInitScreenCoordinatesREND():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 42
0
'''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_EXT_provoking_vertex'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_EXT_provoking_vertex', False)


_p.unpack_constants(
    """GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D
GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E
GL_PROVOKING_VERTEX_EXT 0x8E4F""", globals())
glget.addGLGetConstant(GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT, (1, ))
glget.addGLGetConstant(GL_PROVOKING_VERTEX_EXT, (1, ))


@_f
@_p.types(None, _cs.GLenum)
def glProvokingVertexEXT(mode):
    pass


def glInitProvokingVertexEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
'''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_EXT_point_parameters'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_point_parameters',False)
_p.unpack_constants( """GL_POINT_SIZE_MIN_EXT 0x8126
GL_POINT_SIZE_MAX_EXT 0x8127
GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
GL_DISTANCE_ATTENUATION_EXT 0x8129""", globals())
@_f
@_p.types(None,_cs.GLenum,_cs.GLfloat)
def glPointParameterfEXT( pname,param ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLfloatArray)
def glPointParameterfvEXT( pname,params ):pass


def glInitPointParametersEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 44
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_AMD_depth_clamp_separate'
_p.unpack_constants( """GL_DEPTH_CLAMP_NEAR_AMD 0x901E
GL_DEPTH_CLAMP_FAR_AMD 0x901F""", globals())


def glInitDepthClampSeparateAMD():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 45
0
'''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_SGIX_list_priority'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_SGIX_list_priority',False)
_p.unpack_constants( """GL_LIST_PRIORITY_SGIX 0x8182""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,arrays.GLfloatArray)
def glGetListParameterfvSGIX( list,pname,params ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,arrays.GLintArray)
def glGetListParameterivSGIX( list,pname,params ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLfloat)
def glListParameterfSGIX( list,pname,param ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,arrays.GLfloatArray)
def glListParameterfvSGIX( list,pname,params ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLint)
def glListParameteriSGIX( list,pname,param ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,arrays.GLintArray)
def glListParameterivSGIX( list,pname,params ):pass


def glInitListPrioritySGIX():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
Ejemplo n.º 46
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_NV_float_buffer'
_p.unpack_constants( """GL_FLOAT_R_NV 0x8880
GL_FLOAT_RG_NV 0x8881
GL_FLOAT_RGB_NV 0x8882
GL_FLOAT_RGBA_NV 0x8883
GL_FLOAT_R16_NV 0x8884
GL_FLOAT_R32_NV 0x8885
GL_FLOAT_RG16_NV 0x8886
GL_FLOAT_RG32_NV 0x8887
GL_FLOAT_RGB16_NV 0x8888
GL_FLOAT_RGB32_NV 0x8889
GL_FLOAT_RGBA16_NV 0x888A
GL_FLOAT_RGBA32_NV 0x888B
GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C
GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
GL_FLOAT_RGBA_MODE_NV 0x888E""", globals())
glget.addGLGetConstant( GL_FLOAT_CLEAR_COLOR_VALUE_NV, (4,) )
glget.addGLGetConstant( GL_FLOAT_RGBA_MODE_NV, (1,) )


def glInitFloatBufferNV():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
'''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_texture_buffer_range'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_texture_buffer_range',False)
_p.unpack_constants( """GL_TEXTURE_BUFFER_OFFSET 0x919D
GL_TEXTURE_BUFFER_SIZE 0x919E
GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F""", globals())
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLuint,_cs.GLintptr,_cs.GLsizeiptr)
def glTexBufferRange( target,internalformat,buffer,offset,size ):pass
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLenum,_cs.GLuint,_cs.GLintptr,_cs.GLsizeiptr)
def glTextureBufferRangeEXT( texture,target,internalformat,buffer,offset,size ):pass


def glInitTextureBufferRangeARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 48
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_ARB_ES3_compatibility'
_p.unpack_constants( """GL_COMPRESSED_RGB8_ETC2 0x9274
GL_COMPRESSED_SRGB8_ETC2 0x9275
GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
GL_COMPRESSED_R11_EAC 0x9270
GL_COMPRESSED_SIGNED_R11_EAC 0x9271
GL_COMPRESSED_RG11_EAC 0x9272
GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
GL_MAX_ELEMENT_INDEX 0x8D6B""", globals())


def glInitEs3CompatibilityARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
"""Autogenerated by get_gl_extensions script, do not edit!"""
from OpenGL import platform as _p
from OpenGL.GL import glget

EXTENSION_NAME = "GL_EXT_texture_env_dot3"
_p.unpack_constants(
    """GL_DOT3_RGB_EXT 0x8740
GL_DOT3_RGBA_EXT 0x8741""",
    globals(),
)


def glInitTextureEnvDot3EXT():
    """Return boolean indicating whether this extension is available"""
    from OpenGL import extensions

    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 50
0
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_SGIX_interlace'
_p.unpack_constants("""GL_INTERLACE_SGIX 0x8094""", globals())
glget.addGLGetConstant(GL_INTERLACE_SGIX, (1, ))


def glInitInterlaceSGIX():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension(EXTENSION_NAME)
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_EXT_texture_filter_anisotropic'
_p.unpack_constants( """GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF""", globals())
glget.addGLGetConstant( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, (1,) )


def glInitTextureFilterAnisotropicEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 52
0
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())

"""Autogenerated by get_gl_extensions script, do not edit!"""
from OpenGL import platform as _p
from OpenGL.GL import glget

EXTENSION_NAME = "GL_SGIX_ir_instrument1"
_p.unpack_constants("""GL_IR_INSTRUMENT1_SGIX 0x817F""", globals())


def glInitIrInstrument1SGIX():
    """Return boolean indicating whether this extension is available"""
    from OpenGL import extensions

    return extensions.hasGLExtension(EXTENSION_NAME)
Ejemplo n.º 54
0
'''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_ATI_separate_stencil'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_ATI_separate_stencil', False)


_p.unpack_constants(
    """GL_STENCIL_BACK_FUNC_ATI 0x8800
GL_STENCIL_BACK_FAIL_ATI 0x8801
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803""", globals())


@_f
@_p.types(None, _cs.GLenum, _cs.GLenum, _cs.GLenum, _cs.GLenum)
def glStencilOpSeparateATI(face, sfail, dpfail, dppass):
    pass


@_f
@_p.types(None, _cs.GLenum, _cs.GLenum, _cs.GLint, _cs.GLuint)
def glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask):
    pass


def glInitSeparateStencilATI():
'''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_AMD_sample_positions'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_AMD_sample_positions',False)
_p.unpack_constants( """GL_SUBSAMPLE_DISTANCE_AMD 0x883F""", globals())
@_f
@_p.types(None,_cs.GLenum,_cs.GLuint,arrays.GLfloatArray)
def glSetMultisamplefvAMD( pname,index,val ):pass


def glInitSamplePositionsAMD():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
Ejemplo n.º 56
0
'''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_get_program_binary'


def _f(function):
    return _p.createFunction(function, _p.GL, 'GL_ARB_get_program_binary',
                             False)


_p.unpack_constants(
    """GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
GL_PROGRAM_BINARY_LENGTH 0x8741
GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
GL_PROGRAM_BINARY_FORMATS 0x87FF""", globals())


@_f
@_p.types(None, _cs.GLuint, _cs.GLsizei, arrays.GLsizeiArray,
          arrays.GLuintArray, ctypes.c_void_p)
def glGetProgramBinary(program, bufSize, length, binaryFormat, binary):
    pass


@_f
@_p.types(None, _cs.GLuint, _cs.GLenum, ctypes.c_void_p, _cs.GLsizei)
def glProgramBinary(program, binaryFormat, binary, length):
    pass
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_ARB_map_buffer_alignment'
_p.unpack_constants( """GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC""", globals())


def glInitMapBufferAlignmentARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.GL import glget
EXTENSION_NAME = 'GL_ARB_explicit_uniform_location'
_p.unpack_constants( """GL_MAX_UNIFORM_LOCATIONS 0x826E""", globals())


def glInitExplicitUniformLocationARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )
'''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_VERSION_GL_2_0'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_VERSION_GL_2_0',True)
_p.unpack_constants( """GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
GL_POINT_SPRITE 0x8861
GL_COORD_REPLACE 0x8862
GL_MAX_TEXTURE_COORDS 0x8871""", globals())
glget.addGLGetConstant( GL_VERTEX_PROGRAM_TWO_SIDE, (1,) )
glget.addGLGetConstant( GL_POINT_SPRITE, (1,) )
glget.addGLGetConstant( GL_MAX_TEXTURE_COORDS, (1,) )


Ejemplo n.º 60
0
'''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_EXT_direct_state_access'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_direct_state_access',False)
_p.unpack_constants( """GL_PROGRAM_MATRIX_EXT 0x8E2D
GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E
GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F""", globals())
@_f
@_p.types(None,_cs.GLbitfield)
def glClientAttribDefaultEXT( mask ):pass
@_f
@_p.types(None,_cs.GLbitfield)
def glPushClientAttribDefaultEXT( mask ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLfloatArray)
def glMatrixLoadfEXT( mode,m ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLdoubleArray)
def glMatrixLoaddEXT( mode,m ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLfloatArray)
def glMatrixMultfEXT( mode,m ):pass
@_f
@_p.types(None,_cs.GLenum,arrays.GLdoubleArray)
def glMatrixMultdEXT( mode,m ):pass
@_f
@_p.types(None,_cs.GLenum)
def glMatrixLoadIdentityEXT( mode ):pass