aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-12-16 20:37:58 -0500
committerDavid Robillard <d@drobilla.net>2021-12-16 20:37:58 -0500
commit0fb812f37e89591d40269cd64ec8f199a0f2c04e (patch)
tree767a484c8b0b3cdea066bda2d0bfa985af38114c /include
parent5ad1447d074939825ee5bb4f1944a4e17d80d1c6 (diff)
downloadpugl-0fb812f37e89591d40269cd64ec8f199a0f2c04e.tar.gz
pugl-0fb812f37e89591d40269cd64ec8f199a0f2c04e.tar.bz2
pugl-0fb812f37e89591d40269cd64ec8f199a0f2c04e.zip
Add puglGetBackend()
Diffstat (limited to 'include')
-rw-r--r--include/pugl/pugl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index c13fa69..71578a9 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -877,6 +877,10 @@ PUGL_API
PuglStatus
puglSetBackend(PuglView* view, const PuglBackend* backend);
+/// Return the graphics backend used by a view
+const PuglBackend*
+puglGetBackend(const PuglView* view);
+
/// Set the function to call when an event occurs
PUGL_API
PuglStatus