コード例 #1
0
	the fragment normal vector prior to fragment lighting.  It enables a
	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)
コード例 #2
0
'''OpenGL extension EXT.polygon_offset

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_polygon_offset'
_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',
コード例 #3
0
'''OpenGL extension SGIX.texture_add_env

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIX/texture_add_env.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_texture_add_env'
GL_TEXTURE_ENV_BIAS_SGIX = constant.Constant('GL_TEXTURE_ENV_BIAS_SGIX',
                                             0x80BE)


def glInitTextureAddEnvSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #4
0
'''OpenGL extension EXT.cull_vertex

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,
コード例 #5
0
'''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 )
コード例 #6
0
'''OpenGL extension ATI.pn_triangles

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_pn_triangles'
_DEPRECATED = False
GL_PN_TRIANGLES_ATI = constant.Constant('GL_PN_TRIANGLES_ATI', 0x87F0)
GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = constant.Constant(
    'GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI', 0x87F1)
glget.addGLGetConstant(GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI, (1, ))
GL_PN_TRIANGLES_POINT_MODE_ATI = constant.Constant(
    'GL_PN_TRIANGLES_POINT_MODE_ATI', 0x87F2)
glget.addGLGetConstant(GL_PN_TRIANGLES_POINT_MODE_ATI, (1, ))
GL_PN_TRIANGLES_NORMAL_MODE_ATI = constant.Constant(
    'GL_PN_TRIANGLES_NORMAL_MODE_ATI', 0x87F3)
glget.addGLGetConstant(GL_PN_TRIANGLES_NORMAL_MODE_ATI, (1, ))
GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = constant.Constant(
    'GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI', 0x87F4)
glget.addGLGetConstant(GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI, (1, ))
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(
コード例 #7
0
'''OpenGL extension SGIX.async_pixel

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_async_pixel'
_DEPRECATED = False
GL_ASYNC_TEX_IMAGE_SGIX = constant.Constant( 'GL_ASYNC_TEX_IMAGE_SGIX', 0x835C )
glget.addGLGetConstant( GL_ASYNC_TEX_IMAGE_SGIX, (1,) )
GL_ASYNC_DRAW_PIXELS_SGIX = constant.Constant( 'GL_ASYNC_DRAW_PIXELS_SGIX', 0x835D )
glget.addGLGetConstant( GL_ASYNC_DRAW_PIXELS_SGIX, (1,) )
GL_ASYNC_READ_PIXELS_SGIX = constant.Constant( 'GL_ASYNC_READ_PIXELS_SGIX', 0x835E )
glget.addGLGetConstant( GL_ASYNC_READ_PIXELS_SGIX, (1,) )
GL_MAX_ASYNC_TEX_IMAGE_SGIX = constant.Constant( 'GL_MAX_ASYNC_TEX_IMAGE_SGIX', 0x835F )
glget.addGLGetConstant( GL_MAX_ASYNC_TEX_IMAGE_SGIX, (1,) )
GL_MAX_ASYNC_DRAW_PIXELS_SGIX = constant.Constant( 'GL_MAX_ASYNC_DRAW_PIXELS_SGIX', 0x8360 )
glget.addGLGetConstant( GL_MAX_ASYNC_DRAW_PIXELS_SGIX, (1,) )
GL_MAX_ASYNC_READ_PIXELS_SGIX = constant.Constant( 'GL_MAX_ASYNC_READ_PIXELS_SGIX', 0x8361 )
glget.addGLGetConstant( GL_MAX_ASYNC_READ_PIXELS_SGIX, (1,) )


def glInitAsyncPixelSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #8
0
'''OpenGL extension ATI.texture_float

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_texture_float'
_DEPRECATED = False
GL_RGBA_FLOAT32_ATI = constant.Constant('GL_RGBA_FLOAT32_ATI', 0x8814)
GL_RGB_FLOAT32_ATI = constant.Constant('GL_RGB_FLOAT32_ATI', 0x8815)
GL_ALPHA_FLOAT32_ATI = constant.Constant('GL_ALPHA_FLOAT32_ATI', 0x8816)
GL_INTENSITY_FLOAT32_ATI = constant.Constant('GL_INTENSITY_FLOAT32_ATI',
                                             0x8817)
GL_LUMINANCE_FLOAT32_ATI = constant.Constant('GL_LUMINANCE_FLOAT32_ATI',
                                             0x8818)
GL_LUMINANCE_ALPHA_FLOAT32_ATI = constant.Constant(
    'GL_LUMINANCE_ALPHA_FLOAT32_ATI', 0x8819)
GL_RGBA_FLOAT16_ATI = constant.Constant('GL_RGBA_FLOAT16_ATI', 0x881A)
GL_RGB_FLOAT16_ATI = constant.Constant('GL_RGB_FLOAT16_ATI', 0x881B)
GL_ALPHA_FLOAT16_ATI = constant.Constant('GL_ALPHA_FLOAT16_ATI', 0x881C)
GL_INTENSITY_FLOAT16_ATI = constant.Constant('GL_INTENSITY_FLOAT16_ATI',
                                             0x881D)
GL_LUMINANCE_FLOAT16_ATI = constant.Constant('GL_LUMINANCE_FLOAT16_ATI',
                                             0x881E)
GL_LUMINANCE_ALPHA_FLOAT16_ATI = constant.Constant(
    'GL_LUMINANCE_ALPHA_FLOAT16_ATI', 0x881F)


def glInitTextureFloatATI():
コード例 #9
0
'''OpenGL extension SGIS.sharpen_texture

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_sharpen_texture'
_DEPRECATED = False
GL_LINEAR_SHARPEN_SGIS = constant.Constant('GL_LINEAR_SHARPEN_SGIS', 0x80AD)
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',
コード例 #10
0
	interleaves both depth and stencil data into a single buffer.  When
	a texture with DEPTH_STENCIL_EXT data is bound for texturing, only
	the depth component is accessible through the texture fetcher.  The
	stencil data can be written with TexImage or CopyTexImage, and can
	be read with GetTexImage.  When a DEPTH_STENCIL_EXT image is
	attached to the stencil attachment of the bound framebuffer object,
	the stencil data can be accessed through any operation that reads
	from or writes to the framebuffer's stencil buffer.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/EXT/packed_depth_stencil.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_packed_depth_stencil'
GL_DEPTH_STENCIL_EXT = constant.Constant('GL_DEPTH_STENCIL_EXT', 0x84F9)
GL_UNSIGNED_INT_24_8_EXT = constant.Constant('GL_UNSIGNED_INT_24_8_EXT',
                                             0x84FA)
GL_DEPTH24_STENCIL8_EXT = constant.Constant('GL_DEPTH24_STENCIL8_EXT', 0x88F0)
GL_TEXTURE_STENCIL_SIZE_EXT = constant.Constant('GL_TEXTURE_STENCIL_SIZE_EXT',
                                                0x88F1)


def glInitPackedDepthStencilEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #11
0
'''OpenGL extension MESAX.texture_stack

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_MESAX_texture_stack'
_DEPRECATED = False
GL_TEXTURE_1D_STACK_MESAX = constant.Constant( 'GL_TEXTURE_1D_STACK_MESAX', 0x8759 )
GL_TEXTURE_2D_STACK_MESAX = constant.Constant( 'GL_TEXTURE_2D_STACK_MESAX', 0x875A )
GL_PROXY_TEXTURE_1D_STACK_MESAX = constant.Constant( 'GL_PROXY_TEXTURE_1D_STACK_MESAX', 0x875B )
GL_PROXY_TEXTURE_2D_STACK_MESAX = constant.Constant( 'GL_PROXY_TEXTURE_2D_STACK_MESAX', 0x875C )
GL_TEXTURE_1D_STACK_BINDING_MESAX = constant.Constant( 'GL_TEXTURE_1D_STACK_BINDING_MESAX', 0x875D )
GL_TEXTURE_2D_STACK_BINDING_MESAX = constant.Constant( 'GL_TEXTURE_2D_STACK_BINDING_MESAX', 0x875E )


def glInitTextureStackMESAX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #12
0
'''OpenGL extension SGIX.sprite

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_sprite'
_DEPRECATED = False
GL_SPRITE_SGIX = constant.Constant('GL_SPRITE_SGIX', 0x8148)
GL_SPRITE_MODE_SGIX = constant.Constant('GL_SPRITE_MODE_SGIX', 0x8149)
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=(
コード例 #13
0
'''OpenGL extension EXT.texture_compression_latc

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_compression_latc.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_compression_latc'
GL_COMPRESSED_LUMINANCE_LATC1_EXT = constant.Constant(
    'GL_COMPRESSED_LUMINANCE_LATC1_EXT', 0x8C70)
GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = constant.Constant(
    'GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT', 0x8C71)
GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = constant.Constant(
    'GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT', 0x8C72)
GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = constant.Constant(
    'GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT', 0x8C73)


def glInitTextureCompressionLatcEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #14
0
	extension).

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_objects.txt
'''
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( 
コード例 #15
0
'''OpenGL extension SGIX.polynomial_ffd

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIX/polynomial_ffd.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_polynomial_ffd'
GL_GEOMETRY_DEFORMATION_SGIX = constant.Constant(
    'GL_GEOMETRY_DEFORMATION_SGIX', 0x8194)
GL_TEXTURE_DEFORMATION_SGIX = constant.Constant('GL_TEXTURE_DEFORMATION_SGIX',
                                                0x8195)
GL_DEFORMATIONS_MASK_SGIX = constant.Constant('GL_DEFORMATIONS_MASK_SGIX',
                                              0x8196)
GL_MAX_DEFORMATION_ORDER_SGIX = constant.Constant(
    'GL_MAX_DEFORMATION_ORDER_SGIX', 0x8197)
glDeformationMap3dSGIX = platform.createExtensionFunction(
    'glDeformationMap3dSGIX',
    dll=platform.GL,
    extension=EXTENSION_NAME,
    resultType=None,
    argTypes=(
        constants.GLenum,
        constants.GLdouble,
        constants.GLdouble,
        constants.GLint,
コード例 #16
0
ファイル: _GLX_NV.py プロジェクト: dondyabla/proMiniTest
# BEGIN GENERATED CONTENT (do not edit below this line)

# This content is generated by ./gengl.py.
# Wrapper for http://developer.download.nvidia.com/opengl/includes/glxext.h
from OpenGL import platform, constant
from ctypes import *

c_void = None

# H (/usr/include/GL/glx.h:26)
# ARB_get_proc_address (/usr/include/GL/glx.h:327)
# GLXEXT_LEGACY (/usr/include/GL/glx.h:344)
GLX_GLXEXT_VERSION = constant.Constant('GLX_GLXEXT_VERSION', 10)
# ARB_get_proc_address (GL/glxext.h:59)
# ARB_multisample (GL/glxext.h:62)
GLX_SAMPLE_BUFFERS_ARB = constant.Constant('GLX_SAMPLE_BUFFERS_ARB', 100000)
GLX_SAMPLES_ARB = constant.Constant('GLX_SAMPLES_ARB', 100001)
# ARB_fbconfig_float (GL/glxext.h:67)
GLX_RGBA_FLOAT_TYPE_ARB = constant.Constant('GLX_RGBA_FLOAT_TYPE_ARB', 8377)
GLX_RGBA_FLOAT_BIT_ARB = constant.Constant('GLX_RGBA_FLOAT_BIT_ARB', 4)
# SGIS_multisample (GL/glxext.h:72)
GLX_SAMPLE_BUFFERS_SGIS = constant.Constant('GLX_SAMPLE_BUFFERS_SGIS', 100000)
GLX_SAMPLES_SGIS = constant.Constant('GLX_SAMPLES_SGIS', 100001)
# EXT_visual_info (GL/glxext.h:77)
GLX_X_VISUAL_TYPE_EXT = constant.Constant('GLX_X_VISUAL_TYPE_EXT', 34)
GLX_TRANSPARENT_TYPE_EXT = constant.Constant('GLX_TRANSPARENT_TYPE_EXT', 35)
GLX_TRANSPARENT_INDEX_VALUE_EXT = constant.Constant(
    'GLX_TRANSPARENT_INDEX_VALUE_EXT', 36)
GLX_TRANSPARENT_RED_VALUE_EXT = constant.Constant(
    'GLX_TRANSPARENT_RED_VALUE_EXT', 37)
GLX_TRANSPARENT_GREEN_VALUE_EXT = constant.Constant(
コード例 #17
0
'''OpenGL extension EXT.stencil_wrap

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_wrap'
_DEPRECATED = False
GL_INCR_WRAP_EXT = constant.Constant('GL_INCR_WRAP_EXT', 0x8507)
GL_DECR_WRAP_EXT = constant.Constant('GL_DECR_WRAP_EXT', 0x8508)


def glInitStencilWrapEXT():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #18
0
	plane clipping accomplish), the depth values can be clamped to the
	current depth range.
	
	This extension provides exactly such functionality.  This
	functionality is useful to obviate the need for near plane capping
	of stenciled shadow volumes.  The functionality may also be useful
	for rendering geometry "beyond" the far plane if an alternative
	algorithm (rather than depth testing) for hidden surface removal is
	applied to such geometry (specifically, the painter's algorithm).
	Similar situations at the near clip plane can be avoided at the
	near clip plane where apparently solid objects can be "seen through"
	if they intersect the near clip plane.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/NV/depth_clamp.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_NV_depth_clamp'
GL_DEPTH_CLAMP_NV = constant.Constant('GL_DEPTH_CLAMP_NV', 0x864F)
glget.addGLGetConstant(GL_DEPTH_CLAMP_NV, (1, ))


def glInitDepthClampNV():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #19
0
'''OpenGL extension SGIX.subsample

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_subsample'
_DEPRECATED = False
GL_PACK_SUBSAMPLE_RATE_SGIX = constant.Constant('GL_PACK_SUBSAMPLE_RATE_SGIX',
                                                0x85A0)
GL_UNPACK_SUBSAMPLE_RATE_SGIX = constant.Constant(
    'GL_UNPACK_SUBSAMPLE_RATE_SGIX', 0x85A1)
GL_PIXEL_SUBSAMPLE_4444_SGIX = constant.Constant(
    'GL_PIXEL_SUBSAMPLE_4444_SGIX', 0x85A2)
GL_PIXEL_SUBSAMPLE_2424_SGIX = constant.Constant(
    'GL_PIXEL_SUBSAMPLE_2424_SGIX', 0x85A3)
GL_PIXEL_SUBSAMPLE_4242_SGIX = constant.Constant(
    'GL_PIXEL_SUBSAMPLE_4242_SGIX', 0x85A4)


def glInitSubsampleSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #20
0
'''OpenGL extension SGIX.resample

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_resample'
_DEPRECATED = False
GL_PACK_RESAMPLE_SGIX = constant.Constant( 'GL_PACK_RESAMPLE_SGIX', 0x842C )
glget.addGLGetConstant( GL_PACK_RESAMPLE_SGIX, (1,) )
GL_UNPACK_RESAMPLE_SGIX = constant.Constant( 'GL_UNPACK_RESAMPLE_SGIX', 0x842D )
glget.addGLGetConstant( GL_UNPACK_RESAMPLE_SGIX, (1,) )
GL_RESAMPLE_REPLICATE_SGIX = constant.Constant( 'GL_RESAMPLE_REPLICATE_SGIX', 0x842E )
GL_RESAMPLE_ZERO_FILL_SGIX = constant.Constant( 'GL_RESAMPLE_ZERO_FILL_SGIX', 0x842F )
GL_RESAMPLE_DECIMATE_SGIX = constant.Constant( 'GL_RESAMPLE_DECIMATE_SGIX', 0x8430 )


def glInitResampleSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #21
0
'''OpenGL extension SGIX.calligraphic_fragment

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_calligraphic_fragment'
_DEPRECATED = False
GL_CALLIGRAPHIC_FRAGMENT_SGIX = constant.Constant(
    'GL_CALLIGRAPHIC_FRAGMENT_SGIX', 0x8183)


def glInitCalligraphicFragmentSGIX():
    '''Return boolean indicating whether this extension is available'''
    return extensions.hasGLExtension(EXTENSION_NAME)
コード例 #22
0
	vertex indices issued before the fence must have completed being accessed.
	This ensures that the vertex data memory corresponding to the issued vertex
	indices can be safely modified (assuming no other outstanding vertex indices
	are issued subsequent to the fence).

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/APPLE/fence.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_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',
    ),
コード例 #23
0
'''OpenGL extension ATI.meminfo

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/ATI/meminfo.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_ATI_meminfo'
GL_VBO_FREE_MEMORY_ATI = constant.Constant( 'GL_VBO_FREE_MEMORY_ATI', 0x87FB )
GL_TEXTURE_FREE_MEMORY_ATI = constant.Constant( 'GL_TEXTURE_FREE_MEMORY_ATI', 0x87FC )
GL_RENDERBUFFER_FREE_MEMORY_ATI = constant.Constant( 'GL_RENDERBUFFER_FREE_MEMORY_ATI', 0x87FD )


def glInitMeminfoATI():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #24
0
'''OpenGL extension NV.shader_buffer_load

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,
コード例 #25
0
'''OpenGL extension NV.explicit_multisample

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_explicit_multisample'
_DEPRECATED = False
GL_SAMPLE_POSITION_NV = constant.Constant('GL_SAMPLE_POSITION_NV', 0x8E50)
GL_SAMPLE_MASK_NV = constant.Constant('GL_SAMPLE_MASK_NV', 0x8E51)
GL_SAMPLE_MASK_VALUE_NV = constant.Constant('GL_SAMPLE_MASK_VALUE_NV', 0x8E52)
GL_TEXTURE_BINDING_RENDERBUFFER_NV = constant.Constant(
    'GL_TEXTURE_BINDING_RENDERBUFFER_NV', 0x8E53)
glget.addGLGetConstant(GL_TEXTURE_BINDING_RENDERBUFFER_NV, (1, ))
GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = constant.Constant(
    'GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV', 0x8E54)
glget.addGLGetConstant(GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV, (1, ))
GL_TEXTURE_RENDERBUFFER_NV = constant.Constant('GL_TEXTURE_RENDERBUFFER_NV',
                                               0x8E55)
GL_SAMPLER_RENDERBUFFER_NV = constant.Constant('GL_SAMPLER_RENDERBUFFER_NV',
                                               0x8E56)
GL_INT_SAMPLER_RENDERBUFFER_NV = constant.Constant(
    '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(
コード例 #26
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 )
コード例 #27
0
	Phong shading is a well known shading technique documented 
	in most graphics texts. 
	
	As opposed to Gouraud (or smooth) shading, which simply calculates the 
	normals at the vertices and then interpolates the colors of the pixels, 
	Phong shading involves interpolating an individual normal for every pixel,
	and then applying the shading model to each pixel based on its normal 
	component. 
	
	While Phong shading requires substantially more computation than does 
	Gouraud shading, the resulting images are more realistic, especially if the
	primitives are large. 

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/WIN/phong_shading.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_WIN_phong_shading'
GL_PHONG_WIN = constant.Constant( 'GL_PHONG_WIN', 0x80EA )
GL_PHONG_HINT_WIN = constant.Constant( 'GL_PHONG_HINT_WIN', 0x80EB )


def glInitPhongShadingWIN():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #28
0
'''OpenGL extension SGIX.async_histogram

Overview (from the spec)
	
	This extension introduces a new asynchronous mode for histogram
	and minmax readbacks.  It allows programs to get the contents of a
	histogram or minmax table without blocking and to continue issuing
	graphics commands during the readback.

The official definition of this extension is available here:
	http://oss.sgi.com/projects/ogl-sample/registry/SGIX/async_histogram.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_async_histogram'
GL_ASYNC_HISTOGRAM_SGIX = constant.Constant( 'GL_ASYNC_HISTOGRAM_SGIX', 0x832C )
glget.addGLGetConstant( GL_ASYNC_HISTOGRAM_SGIX, (1,) )
GL_MAX_ASYNC_HISTOGRAM_SGIX = constant.Constant( 'GL_MAX_ASYNC_HISTOGRAM_SGIX', 0x832D )
glget.addGLGetConstant( GL_MAX_ASYNC_HISTOGRAM_SGIX, (1,) )


def glInitAsyncHistogramSGIX():
	'''Return boolean indicating whether this extension is available'''
	return extensions.hasGLExtension( EXTENSION_NAME )
コード例 #29
0
ファイル: GL_2_0.py プロジェクト: zoccolan/eyetracker
Python-friendly API
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.VERSION.GL_2_0 import *
### END AUTOGENERATED SECTION
import OpenGL
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.GL.ARB.shader_objects import glGetInfoLogARB as glGetInfoLog
from OpenGL.lazywrapper import lazy

from OpenGL import converters, error
GL_INFO_LOG_LENGTH = constant.Constant( 'GL_INFO_LOG_LENGTH', 0x8B84 )

glShaderSource = platform.createBaseFunction( 
	'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',),
)
conv = converters.StringLengths( name='string' )
glShaderSource = wrapper.wrapper(
	glShaderSource
).setPyConverter(
	'count' # number of strings
).setPyConverter( 
	'length' # lengths of strings
コード例 #30
0
'''OpenGL extension EXT.texture_sRGB

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_sRGB'
_DEPRECATED = False
GL_SRGB_EXT = constant.Constant('GL_SRGB_EXT', 0x8C40)
GL_SRGB8_EXT = constant.Constant('GL_SRGB8_EXT', 0x8C41)
GL_SRGB_ALPHA_EXT = constant.Constant('GL_SRGB_ALPHA_EXT', 0x8C42)
GL_SRGB8_ALPHA8_EXT = constant.Constant('GL_SRGB8_ALPHA8_EXT', 0x8C43)
GL_SLUMINANCE_ALPHA_EXT = constant.Constant('GL_SLUMINANCE_ALPHA_EXT', 0x8C44)
GL_SLUMINANCE8_ALPHA8_EXT = constant.Constant('GL_SLUMINANCE8_ALPHA8_EXT',
                                              0x8C45)
GL_SLUMINANCE_EXT = constant.Constant('GL_SLUMINANCE_EXT', 0x8C46)
GL_SLUMINANCE8_EXT = constant.Constant('GL_SLUMINANCE8_EXT', 0x8C47)
GL_COMPRESSED_SRGB_EXT = constant.Constant('GL_COMPRESSED_SRGB_EXT', 0x8C48)
GL_COMPRESSED_SRGB_ALPHA_EXT = constant.Constant(
    'GL_COMPRESSED_SRGB_ALPHA_EXT', 0x8C49)
GL_COMPRESSED_SLUMINANCE_EXT = constant.Constant(
    'GL_COMPRESSED_SLUMINANCE_EXT', 0x8C4A)
GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = constant.Constant(
    'GL_COMPRESSED_SLUMINANCE_ALPHA_EXT', 0x8C4B)
GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = constant.Constant(
    'GL_COMPRESSED_SRGB_S3TC_DXT1_EXT', 0x8C4C)
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = constant.Constant(
    'GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT', 0x8C4D)
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = constant.Constant(