diff options
author | David Robillard <d@drobilla.net> | 2013-02-03 01:44:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-03 01:44:06 +0000 |
commit | aa01d329754134899e6e729d6948a72e0ef881c4 (patch) | |
tree | 1f762e4118a065b7c02da6f9b8f58f09a2cb1492 /pugl/pugl_internal.h | |
parent | 5ecc055c068ccd13c4e4129a97a2aec4f505866e (diff) | |
download | pugl-aa01d329754134899e6e729d6948a72e0ef881c4.tar.gz pugl-aa01d329754134899e6e729d6948a72e0ef881c4.tar.bz2 pugl-aa01d329754134899e6e729d6948a72e0ef881c4.zip |
Apply portability fixes from Ben Loftis.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 61d287a..37db9e5 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -39,11 +39,13 @@ struct PuglViewImpl { PuglInternals* impl; - int width; - int height; - int mods; - bool ignoreKeyRepeat; - bool redisplay; + int width; + int height; + int mods; + bool mouse_in_view; + bool ignoreKeyRepeat; + bool redisplay; + uint32_t event_timestamp_ms; }; void @@ -58,13 +60,19 @@ puglGetHandle(PuglView* view) return view->handle; } +uint32_t +puglGetEventTimestamp(PuglView* view) +{ + return view->event_timestamp_ms; +} + int puglGetModifiers(PuglView* view) { return view->mods; } -static inline void +void puglDefaultReshape(PuglView* view, int width, int height) { glMatrixMode(GL_PROJECTION); |