Move gl binding code into its own module

This commit is contained in:
Kovid Goyal
2017-09-09 11:37:51 +05:30
parent dd8be35922
commit 457bf8c289
3 changed files with 82 additions and 76 deletions

View File

@@ -7,7 +7,6 @@
#include "data-types.h"
#include "glfw.h"
#include "gl.h"
#include "modes.h"
#include "sprites.h"
#include <stddef.h>
@@ -66,7 +65,6 @@ stop_profiler(PyObject UNUSED *self) {
#endif
static PyMethodDef module_methods[] = {
GL_METHODS
{"set_iutf8", (PyCFunction)pyset_iutf8, METH_VARARGS, ""},
{"thread_write", (PyCFunction)cm_thread_write, METH_VARARGS, ""},
{"parse_bytes", (PyCFunction)parse_bytes, METH_VARARGS, ""},
@@ -99,6 +97,8 @@ static struct PyModuleDef module = {
#include <termios.h>
extern bool add_module_gl_constants(PyObject*);
EXPORTED PyMODINIT_FUNC
PyInit_fast_data_types(void) {
PyObject *m;