diff options
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index ac31b65..312329d 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -197,6 +197,24 @@ puglGetSize(PuglView* view, int* width, int* height) *height = view->height; } +void* +puglGetContext(PuglView* view) +{ + return view->backend->getContext(view); +} + +void +puglEnterContext(PuglView* view, bool drawing) +{ + view->backend->enter(view, drawing); +} + +void +puglLeaveContext(PuglView* view, bool drawing) +{ + view->backend->leave(view, drawing); +} + void puglIgnoreKeyRepeat(PuglView* view, bool ignore) { |