mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 15:35:03 +02:00
Add glFlush() and glFinish() bindings
This commit is contained in:
13
kitty/gl.h
13
kitty/gl.h
@@ -695,6 +695,17 @@ VertexAttribPointer(PyObject UNUSED *self, PyObject *args) {
|
|||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PyObject*
|
||||||
|
Flush(PyObject UNUSED *self) {
|
||||||
|
glFinish();
|
||||||
|
Py_RETURN_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject*
|
||||||
|
Finish(PyObject UNUSED *self) {
|
||||||
|
glFinish();
|
||||||
|
Py_RETURN_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
check_for_extensions(PyObject UNUSED *self) {
|
check_for_extensions(PyObject UNUSED *self) {
|
||||||
@@ -807,4 +818,6 @@ int add_module_gl_constants(PyObject *module) {
|
|||||||
METH(NamedBufferData, METH_VARARGS) \
|
METH(NamedBufferData, METH_VARARGS) \
|
||||||
METH(GetBufferSubData, METH_VARARGS) \
|
METH(GetBufferSubData, METH_VARARGS) \
|
||||||
METH(BlendFunc, METH_VARARGS) \
|
METH(BlendFunc, METH_VARARGS) \
|
||||||
|
METH(Finish, METH_NOARGS) \
|
||||||
|
METH(Flush, METH_NOARGS) \
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user