'''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_view'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_texture_view',False)
_p.unpack_constants( """GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLenum,_cs.GLuint,_cs.GLuint,_cs.GLuint,_cs.GLuint)
def glTextureView(texture,target,origtexture,internalformat,minlevel,numlevels,minlayer,numlayers):pass


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