aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pugl/detail/implementation.c6
-rw-r--r--pugl/pugl.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 137bef9..ac3f527 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -128,6 +128,12 @@ puglFreeView(PuglView* view)
free(view);
}
+PuglWorld*
+puglGetWorld(PuglView* view)
+{
+ return view->world;
+}
+
void
puglInitWindowHint(PuglView* view, PuglWindowHint hint, int value)
{
diff --git a/pugl/pugl.h b/pugl/pugl.h
index ee83af7..6b60f69 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -534,6 +534,12 @@ PUGL_API void
puglFreeView(PuglView* view);
/**
+ Return the world that `view` is a part of.
+*/
+PUGL_API PuglWorld*
+puglGetWorld(PuglView* view);
+
+/**
Set a hint before creating a window.
*/
PUGL_API void