'''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_map_buffer_range'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_map_buffer_range',False)
_p.unpack_constants( """GL_MAP_READ_BIT 0x1
GL_MAP_WRITE_BIT 0x2
GL_MAP_INVALIDATE_RANGE_BIT 0x4
GL_MAP_INVALIDATE_BUFFER_BIT 0x8
GL_MAP_FLUSH_EXPLICIT_BIT 0x10
GL_MAP_UNSYNCHRONIZED_BIT 0x20""", globals())
@_f
@_p.types(ctypes.c_void_p,_cs.GLenum,_cs.GLintptr,_cs.GLsizeiptr,_cs.GLbitfield)
def glMapBufferRange( target,offset,length,access ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLintptr,_cs.GLsizeiptr)
def glFlushMappedBufferRange( target,offset,length ):pass


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