Browse Source

python: properly expose gl.Context.flags.

pull/12/head
Vladimír Vondruš 5 years ago
parent
commit
8f733ca8db
  1. 4
      src/python/magnum/gl.cpp

4
src/python/magnum/gl.cpp

@ -407,7 +407,9 @@ void gl(py::module_& m) {
return std::vector<std::string>{strings.begin(), strings.end()}; return std::vector<std::string>{strings.begin(), strings.end()};
}, "Extension strings") }, "Extension strings")
#ifndef MAGNUM_TARGET_WEBGL #ifndef MAGNUM_TARGET_WEBGL
.def_property_readonly("flags", &GL::Context::flags, "Context flags") .def_property_readonly("flags", [](GL::Context& self) {
return GL::Context::Flag(typename std::underlying_type<GL::Context::Flag>::type(self.flags()));
}, "Context flags")
#endif #endif
/** @todo supportedExtensions() (needs Extension exposed) */ /** @todo supportedExtensions() (needs Extension exposed) */
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES

Loading…
Cancel
Save