GLstringARB = String("GLcharARB *")
GLintptrARB = Alias("GLintptrARB", Int)
GLsizeiptrARB = Alias("GLsizeiptrARB", Int)
-GLhandleARB = Alias("GLhandleARB", UInt)
+GLhandleARB = Handle("handleARB", Alias("GLhandleARB", UInt))
GLhalfARB = Alias("GLhalfARB", UShort)
GLhalfNV = Alias("GLhalfNV", UShort)
GLint64EXT = Alias("GLint64EXT", Int64)
GLuint64EXT = Alias("GLuint64EXT", UInt64)
GLDEBUGPROCARB = Opaque("GLDEBUGPROCARB")
+GLDEBUGPROCAMD = Opaque("GLDEBUGPROCAMD")
GLlist = Handle("list", GLuint)
GLtexture = Handle("texture", GLuint)
GLprogram = Handle("program", GLuint)
GLshader = Handle("shader", GLuint)
GLlocation = Handle("location", GLint, key=('program', GLuint))
-GLlocationARB = Handle("locationARB", GLint)
+GLlocationARB = Handle("locationARB", GLint, key=('programObj', GLhandleARB))
GLprogramARB = Handle("programARB", GLuint)
-GLprogramEXT = Handle("programEXT", GLuint)
-GLprogramNV = Handle("programNV", GLuint)
GLframebuffer = Handle("framebuffer", GLuint)
GLrenderbuffer = Handle("renderbuffer", GLuint)
GLfragmentShaderATI = Handle("fragmentShaderATI", GLuint)
-GLvertexArray = Handle("vertexArrayAPPLE", GLuint)
+GLarray = Handle("array", GLuint)
GLregion = Handle("region", GLuint)
GLmap = Handle("map", OpaquePointer(GLvoid))
+GLpipeline = Handle("pipeline", GLuint)
+GLsampler = Handle("sampler", GLuint)
GLsync_ = Opaque("GLsync")
GLsync = Handle("sync", GLsync_)
"GL_CLIENT_VERTEX_ARRAY_BIT", # 0x00000002
])
+GLbitfield_shader = Flags(GLbitfield, [
+ "GL_ALL_SHADER_BITS", # 0xFFFFFFFF
+ "GL_VERTEX_SHADER_BIT", # 0x00000001
+ "GL_FRAGMENT_SHADER_BIT", # 0x00000002
+ "GL_GEOMETRY_SHADER_BIT", # 0x00000004
+ "GL_TESS_CONTROL_SHADER_BIT", # 0x00000008
+ "GL_TESS_EVALUATION_SHADER_BIT", # 0x00000010
+])
+
+GLbitfield_access = Flags(GLbitfield, [
+ "GL_MAP_READ_BIT", # 0x0001
+ "GL_MAP_WRITE_BIT", # 0x0002
+ "GL_MAP_INVALIDATE_RANGE_BIT", # 0x0004
+ "GL_MAP_INVALIDATE_BUFFER_BIT", # 0x0008
+ "GL_MAP_FLUSH_EXPLICIT_BIT", # 0x0010
+ "GL_MAP_UNSYNCHRONIZED_BIT", # 0x0020
+])
+
+GLbitfield_sync_flush = Flags(GLbitfield, [
+ "GL_SYNC_FLUSH_COMMANDS_BIT", # 0x00000001
+])