diff --git a/glcontext/darwin.cpp b/glcontext/darwin.cpp index d8b3276..c0a9130 100644 --- a/glcontext/darwin.cpp +++ b/glcontext/darwin.cpp @@ -136,6 +136,7 @@ void GLContext_dealloc(GLContext * self) { PyMethodDef GLContext_methods[] = { {"load", (PyCFunction)GLContext_meth_load, METH_O, NULL}, + {"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL}, {"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL}, {"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL}, {"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL}, diff --git a/glcontext/egl.cpp b/glcontext/egl.cpp index cc7d12d..55943b4 100644 --- a/glcontext/egl.cpp +++ b/glcontext/egl.cpp @@ -370,6 +370,7 @@ void GLContext_dealloc(GLContext * self) { PyMethodDef GLContext_methods[] = { {"load", (PyCFunction)GLContext_meth_load, METH_O, NULL}, + {"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL}, {"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL}, {"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL}, {"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL}, diff --git a/glcontext/empty.cpp b/glcontext/empty.cpp index da73cc3..c074410 100644 --- a/glcontext/empty.cpp +++ b/glcontext/empty.cpp @@ -38,7 +38,7 @@ void GLContext_dealloc(GLContext * self) { } PyMethodDef GLContext_methods[] = { - {"load", (PyCFunction)GLContext_meth_load, METH_O, NULL}, + {"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL}, {"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL}, {"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL}, {"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL}, diff --git a/glcontext/empty.py b/glcontext/empty.py index 08e45fc..1e28ca3 100644 --- a/glcontext/empty.py +++ b/glcontext/empty.py @@ -2,7 +2,7 @@ class GLContext: def __init__(self): pass - def load(self): + def load_opengl_function(self, name): return 0 def __enter__(self): diff --git a/glcontext/wgl.cpp b/glcontext/wgl.cpp index 53ee5c0..71af714 100644 --- a/glcontext/wgl.cpp +++ b/glcontext/wgl.cpp @@ -298,6 +298,7 @@ void GLContext_dealloc(GLContext * self) { PyMethodDef GLContext_methods[] = { {"load", (PyCFunction)GLContext_meth_load, METH_O, NULL}, + {"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL}, {"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL}, {"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL}, {"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL}, diff --git a/glcontext/x11.cpp b/glcontext/x11.cpp index d4fc899..5843a4c 100644 --- a/glcontext/x11.cpp +++ b/glcontext/x11.cpp @@ -483,6 +483,7 @@ void GLContext_dealloc(GLContext * self) { PyMethodDef GLContext_methods[] = { {"load", (PyCFunction)GLContext_meth_load, METH_O, NULL}, + {"load_opengl_function", (PyCFunction)GLContext_meth_load, METH_O, NULL}, {"release", (PyCFunction)GLContext_meth_release, METH_NOARGS, NULL}, {"__enter__", (PyCFunction)GLContext_meth_enter, METH_NOARGS, NULL}, {"__exit__", (PyCFunction)GLContext_meth_exit, METH_VARARGS, NULL},