From e83c2b421d140244a6b9edb051b3e0d4aacda332 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 16:30:53 +0200 Subject: Add PuglWorld The old API was broken for programs that manage multiple views, since it was impossible to wait for events on any view. There are also several functions in the API which are not actually associated with views at all, so those can now be moved to the more appropriate PuglWorld to make this more clear. The old puglInit() and puglDestroy() functions are preserved for compatibility, but marked as deprecated. --- pugl/detail/mac.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pugl/detail/mac.h') diff --git a/pugl/detail/mac.h b/pugl/detail/mac.h index 8146373..f8cfbed 100644 --- a/pugl/detail/mac.h +++ b/pugl/detail/mac.h @@ -50,6 +50,11 @@ @end +struct PuglWorldInternalsImpl { + NSApplication* app; + NSAutoreleasePool* autoreleasePool; +}; + struct PuglInternalsImpl { NSApplication* app; PuglWrapperView* wrapperView; -- cgit v1.2.1