'''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_cl_event'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_cl_event',False)
_p.unpack_constants( """GL_SYNC_CL_EVENT_ARB 0x8240
GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241""", globals())
@_f
@_p.types(_cs.GLsync,ctypes.POINTER(_cs._cl_context),ctypes.POINTER(_cs._cl_event),_cs.GLbitfield)
def glCreateSyncFromCLeventARB(context,event,flags):pass


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