mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
Add glFlush() and glFinish() bindings
This commit is contained in:
parent
8c16be2ccd
commit
313253cd95
1 changed files with 13 additions and 0 deletions
13
kitty/gl.h
13
kitty/gl.h
|
|
@ -695,6 +695,17 @@ VertexAttribPointer(PyObject UNUSED *self, PyObject *args) {
|
|||
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*
|
||||
check_for_extensions(PyObject UNUSED *self) {
|
||||
|
|
@ -807,4 +818,6 @@ int add_module_gl_constants(PyObject *module) {
|
|||
METH(NamedBufferData, METH_VARARGS) \
|
||||
METH(GetBufferSubData, METH_VARARGS) \
|
||||
METH(BlendFunc, METH_VARARGS) \
|
||||
METH(Finish, METH_NOARGS) \
|
||||
METH(Flush, METH_NOARGS) \
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue