mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 07:55:10 +02:00
Binding for DeleteVertexArray
This commit is contained in:
@@ -622,6 +622,14 @@ DeleteBuffer(PyObject UNUSED *self, PyObject *val) {
|
|||||||
Py_RETURN_NONE;
|
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*
|
static PyObject*
|
||||||
BlendFunc(PyObject UNUSED *self, PyObject *args) {
|
BlendFunc(PyObject UNUSED *self, PyObject *args) {
|
||||||
int s, d;
|
int s, d;
|
||||||
@@ -764,6 +772,7 @@ int add_module_gl_constants(PyObject *module) {
|
|||||||
METH(CompileShader, METH_O) \
|
METH(CompileShader, METH_O) \
|
||||||
METH(DeleteTexture, METH_O) \
|
METH(DeleteTexture, METH_O) \
|
||||||
METH(DeleteBuffer, METH_O) \
|
METH(DeleteBuffer, METH_O) \
|
||||||
|
METH(DeleteVertexArray, METH_O) \
|
||||||
METH(GetString, METH_O) \
|
METH(GetString, METH_O) \
|
||||||
METH(GetIntegerv, METH_O) \
|
METH(GetIntegerv, METH_O) \
|
||||||
METH(Clear, METH_O) \
|
METH(Clear, METH_O) \
|
||||||
|
|||||||
Reference in New Issue
Block a user