diff options
Diffstat (limited to 'dgl/src/pugl/pugl_internal.h')
-rw-r--r-- | dgl/src/pugl/pugl_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dgl/src/pugl/pugl_internal.h b/dgl/src/pugl/pugl_internal.h index fa52df40..b8d9ca93 100644 --- a/dgl/src/pugl/pugl_internal.h +++ b/dgl/src/pugl/pugl_internal.h @@ -41,6 +41,7 @@ struct PuglViewImpl { PuglInternals* impl; PuglNativeWindow parent; + PuglContextType ctx_type; uintptr_t transient_parent; int width; @@ -141,6 +142,12 @@ puglCreate(PuglNativeWindow parent, } void +puglInitContextType(PuglView* view, PuglContextType type) +{ + view->ctx_type = type; +} + +void puglSetHandle(PuglView* view, PuglHandle handle) { view->handle = handle; @@ -239,6 +246,7 @@ puglLeaveContext(PuglView* view, bool flush); static void puglDefaultReshape(int width, int height) { +#ifdef PUGL_HAVE_GL #ifdef ROBTK_HERE glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); @@ -257,4 +265,5 @@ puglDefaultReshape(int width, int height) glMatrixMode(GL_MODELVIEW); glLoadIdentity(); #endif +#endif } |