diff options
Diffstat (limited to 'specs')
-rw-r--r-- | specs/glapi.py | 2 | ||||
-rw-r--r-- | specs/gltypes.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/specs/glapi.py b/specs/glapi.py index 6c6feebf..b665364b 100644 --- a/specs/glapi.py +++ b/specs/glapi.py @@ -2817,7 +2817,7 @@ glapi.addFunctions([ # GL_KTX_buffer_region # XXX: http://www.west.net/~brittain/3dsmax2.htm does not mention EXT suffix - GlFunction(GLregion, "glNewBufferRegion", [(GLenum, "type")]), + GlFunction(GLregion, "glNewBufferRegion", [(GLenum_region, "type")]), GlFunction(Void, "glDeleteBufferRegion", [(GLregion, "region")]), GlFunction(Void, "glReadBufferRegion", [(GLregion, "region"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]), GlFunction(Void, "glDrawBufferRegion", [(GLregion, "region"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height"), (GLint, "xDest"), (GLint, "yDest")]), diff --git a/specs/gltypes.py b/specs/gltypes.py index a9ffc4a1..9dd93bda 100644 --- a/specs/gltypes.py +++ b/specs/gltypes.py @@ -170,6 +170,13 @@ GLenum_error = FakeEnum(GLenum, [ "GL_TABLE_TOO_LARGE", # 0x8031 ]) +GLenum_region = FakeEnum(GLenum, [ + "GL_KTX_FRONT_REGION", + "GL_KTX_BACK_REGION", + "GL_KTX_Z_REGION", + "GL_KTX_STENCIL_REGION", +]) + GLbitfield = Alias("GLbitfield", UInt) GLbitfield_attrib = Flags(GLbitfield, [ |