From cc5c38b1aaf93157f5558df95383491a6163cc5a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Oct 2020 19:38:53 +0200 Subject: Add puglGetViewHint() This allows retrieving properties of the view that may be needed, such as the actual bit depth (which may vary from the suggested depth provided as a hint). --- pugl/pugl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pugl/pugl.hpp') diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp index 3072560..4968da4 100644 --- a/pugl/pugl.hpp +++ b/pugl/pugl.hpp @@ -418,6 +418,12 @@ public: puglSetViewHint(cobj(), static_cast(hint), value)); } + /// @copydoc puglGetViewHint + int getHint(ViewHint hint) + { + return puglGetViewHint(cobj(), static_cast(hint)); + } + /** @} @name Frame -- cgit v1.2.1