From bbb2d0a395e83fcd216c81667b05e7a0646e17e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 6 Oct 2020 13:07:56 +0200 Subject: [PATCH] python: document args of gl.Renderer.enable() and friends. --- src/python/magnum/gl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/magnum/gl.cpp b/src/python/magnum/gl.cpp index 77a4719..06e3a82 100644 --- a/src/python/magnum/gl.cpp +++ b/src/python/magnum/gl.cpp @@ -946,9 +946,9 @@ void gl(py::module& m) { .value("ONE_MINUS_DESTINATION_ALPHA", GL::Renderer::BlendFunction::OneMinusDestinationAlpha); renderer - .def_static("enable", static_cast(GL::Renderer::enable), "Enable a feature") - .def_static("disable", static_cast(GL::Renderer::disable), "Disable a feature") - .def_static("set_feature", static_cast(GL::Renderer::setFeature), "Enable or disable a feature") + .def_static("enable", static_cast(GL::Renderer::enable), "Enable a feature", py::arg("feature")) + .def_static("disable", static_cast(GL::Renderer::disable), "Disable a feature", py::arg("feature")) + .def_static("set_feature", static_cast(GL::Renderer::setFeature), "Enable or disable a feature", py::arg("feature"), py::arg("enabled")) /** @todo indexed variants of enable/disable/set_feature (needs deprecation of the original ones and making draw_buffer first so it's consistent with the rest) */