aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-03 19:38:53 +0200
committerDavid Robillard <d@drobilla.net>2020-10-04 12:51:32 +0200
commitcc5c38b1aaf93157f5558df95383491a6163cc5a (patch)
treea1b858c00ad84a0479b98247f84e608ac0d62866 /pugl/pugl.hpp
parent6ca124d3787a901129252a2e26c091da1c1ff455 (diff)
downloadpugl-cc5c38b1aaf93157f5558df95383491a6163cc5a.tar.gz
pugl-cc5c38b1aaf93157f5558df95383491a6163cc5a.tar.bz2
pugl-cc5c38b1aaf93157f5558df95383491a6163cc5a.zip
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).
Diffstat (limited to 'pugl/pugl.hpp')
-rw-r--r--pugl/pugl.hpp6
1 files changed, 6 insertions, 0 deletions
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<PuglViewHint>(hint), value));
}
+ /// @copydoc puglGetViewHint
+ int getHint(ViewHint hint)
+ {
+ return puglGetViewHint(cobj(), static_cast<PuglViewHint>(hint));
+ }
+
/**
@}
@name Frame