diff --git a/doc/python/magnum.gl.rst b/doc/python/magnum.gl.rst index 2ee012d..fa4bc6b 100644 --- a/doc/python/magnum.gl.rst +++ b/doc/python/magnum.gl.rst @@ -23,8 +23,26 @@ DEALINGS IN THE SOFTWARE. .. +.. py:module:: magnum.gl + + TODO: remove this once m.css stops ignoring the first caption on a page + ####################################################################### + + `NoCreate constructors`_ + ======================== + + .. TODO: link to NoCreate once m.dox handles variables properly + + Compared to C++, the Python APIs don't have an alternative to the + :dox:`NoCreate ` constructor tag. In C++ these make it possible + to have class members initialized before a GL context is present, but in + Python there's no such limitation so these don't make sense. + .. py:class:: magnum.gl.Mesh + TODO: remove this once m.css stops ignoring the first caption on a page + ####################################################################### + `Buffer ownership and reference counting`_ ========================================== diff --git a/src/python/magnum/gl.cpp b/src/python/magnum/gl.cpp index 17b730f..0ee769e 100644 --- a/src/python/magnum/gl.cpp +++ b/src/python/magnum/gl.cpp @@ -187,11 +187,6 @@ void gl(py::module& m) { abstractShaderProgram /** @todo limit queries */ - - /* Constructors */ - .def_static("no_create", []() { - return PyAbstractShaderProgram{NoCreate}; - }, "Construct without creating the underlying OpenGL object") .def(py::init(), "Constructor") /* Public interface */