mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
Binding for DeleteVertexArray
This commit is contained in:
parent
277c46908d
commit
ee3c3e4cb4
1 changed files with 9 additions and 0 deletions
|
|
@ -622,6 +622,14 @@ DeleteBuffer(PyObject UNUSED *self, PyObject *val) {
|
|||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
DeleteVertexArray(PyObject UNUSED *self, PyObject *val) {
|
||||
GLuint tex_id = (GLuint)PyLong_AsUnsignedLong(val);
|
||||
glDeleteVertexArrays(1, &tex_id);
|
||||
CHECK_ERROR;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
BlendFunc(PyObject UNUSED *self, PyObject *args) {
|
||||
int s, d;
|
||||
|
|
@ -764,6 +772,7 @@ int add_module_gl_constants(PyObject *module) {
|
|||
METH(CompileShader, METH_O) \
|
||||
METH(DeleteTexture, METH_O) \
|
||||
METH(DeleteBuffer, METH_O) \
|
||||
METH(DeleteVertexArray, METH_O) \
|
||||
METH(GetString, METH_O) \
|
||||
METH(GetIntegerv, METH_O) \
|
||||
METH(Clear, METH_O) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue