diff options
author | falkTX <falktx@gmail.com> | 2019-01-06 19:31:21 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2019-01-06 19:31:21 +0100 |
commit | a3006690997424238f4eac1c1f588cddb671909e (patch) | |
tree | b7119948e56dac4eb76dc610f2db0b5b23cfe8a9 /dgl/src/pugl/pugl.h | |
parent | 7125eaace4ea0653e66c3e16e60b15acfce952d7 (diff) |
Do not use pugl context detection during runtime
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat (limited to 'dgl/src/pugl/pugl.h')
-rw-r--r-- | dgl/src/pugl/pugl.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/dgl/src/pugl/pugl.h b/dgl/src/pugl/pugl.h index a2ffa85d..898ef056 100644 --- a/dgl/src/pugl/pugl.h +++ b/dgl/src/pugl/pugl.h @@ -1,5 +1,6 @@ /* Copyright 2012-2014 David Robillard <http://drobilla.net> + Copyright 2012-2019 Filipe Coelho <falktx@falktx.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -274,20 +275,6 @@ PUGL_API void puglInitTransientFor(PuglView* view, uintptr_t parent); /** - Drawing context type. -*/ -typedef enum { - PUGL_GL, - PUGL_CAIRO -} PuglContextType; - -/** - Set the context type before creating a window. -*/ -PUGL_API void -puglInitContextType(PuglView* view, PuglContextType type); - -/** @} */ @@ -365,8 +352,8 @@ puglGetHandle(PuglView* view); /** Get the drawing context. - For PUGL_GL contexts, this is unused and returns NULL. - For PUGL_CAIRO contexts, this returns a pointer to a cairo_t. + For Cairo contexts, this returns a pointer to a cairo_t. + For everything else, this is unused and returns NULL. */ PUGL_API void* puglGetContext(PuglView* view); |