From d27cf5a68ad3f00037eaa74e7538e60ee9e3b4ff Mon Sep 17 00:00:00 2001 From: James Murphy Date: Wed, 15 Dec 2021 14:53:27 -0600 Subject: [PATCH] expose TextureFormat DepthComponent enums --- src/python/magnum/gl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/python/magnum/gl.cpp b/src/python/magnum/gl.cpp index 1e17800..445b62b 100644 --- a/src/python/magnum/gl.cpp +++ b/src/python/magnum/gl.cpp @@ -1301,6 +1301,16 @@ void gl(py::module_& m) { #ifndef MAGNUM_TARGET_GLES .value("RGBA12", GL::TextureFormat::RGBA12) #endif + #if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) + .value("DEPTH_COMPONENT16", GL::TextureFormat::DepthComponent16) + .value("DEPTH_COMPONENT24", GL::TextureFormat::DepthComponent24) + #endif + #ifndef MAGNUM_TARGET_WEBGL + .value("DEPTH_COMPONENT32", GL::TextureFormat::DepthComponent32) + #endif + #ifndef MAGNUM_TARGET_GLES2 + .value("DEPTH_COMPONENT32F", GL::TextureFormat::DepthComponent32F) + #endif ; /** @todo compressed formats */