diff options
author | David Robillard <d@drobilla.net> | 2019-07-22 16:30:53 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | e83c2b421d140244a6b9edb051b3e0d4aacda332 (patch) | |
tree | 398e49f43c96f4602496874fa7b3680236138720 /pugl/detail/win.h | |
parent | 5081d49f9f08596c07a8ed32430a4fa3e1baf352 (diff) | |
download | pugl-e83c2b421d140244a6b9edb051b3e0d4aacda332.tar.gz pugl-e83c2b421d140244a6b9edb051b3e0d4aacda332.tar.bz2 pugl-e83c2b421d140244a6b9edb051b3e0d4aacda332.zip |
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.
Diffstat (limited to 'pugl/detail/win.h')
-rw-r--r-- | pugl/detail/win.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/detail/win.h b/pugl/detail/win.h index 88cb1a1..16d22c0 100644 --- a/pugl/detail/win.h +++ b/pugl/detail/win.h @@ -26,6 +26,10 @@ typedef PIXELFORMATDESCRIPTOR PuglWinPFD; +struct PuglWorldInternalsImpl { + double timerFrequency; +}; + struct PuglInternalsImpl { PuglWinPFD pfd; int pfId; @@ -33,7 +37,6 @@ struct PuglInternalsImpl { HDC hdc; PuglSurface* surface; DWORD refreshRate; - double timerFrequency; bool flashing; bool resizing; bool mouseTracked; |