diff options
author | David Robillard <d@drobilla.net> | 2023-01-08 20:13:08 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-08 22:32:09 -0500 |
commit | b2b917da14cbab770905232c8cf5680fa79cea8e (patch) | |
tree | 389a6ea726f8a2fa8c6df22808a183b121608c3b /include/pugl | |
parent | a45fb20347d4474a2e3cacc8da3c2d3a465a3aed (diff) | |
download | pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.gz pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.bz2 pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.zip |
Prepare OpenGL context flags for OpenGL ES support
Diffstat (limited to 'include/pugl')
-rw-r--r-- | include/pugl/pugl.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 0e97f91..ea2f3a9 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -872,10 +872,11 @@ typedef void* PuglHandle; /// A hint for configuring a view typedef enum { - PUGL_USE_COMPAT_PROFILE, ///< Use compatible (not core) OpenGL profile - PUGL_USE_DEBUG_CONTEXT, ///< True to use a debug OpenGL context + PUGL_CONTEXT_API, ///< OpenGL render API (GL/GLES) PUGL_CONTEXT_VERSION_MAJOR, ///< OpenGL context major version PUGL_CONTEXT_VERSION_MINOR, ///< OpenGL context minor version + PUGL_CONTEXT_PROFILE, ///< OpenGL context profile (core/compatibility) + PUGL_CONTEXT_DEBUG, ///< OpenGL context debugging enabled PUGL_RED_BITS, ///< Number of bits for red channel PUGL_GREEN_BITS, ///< Number of bits for green channel PUGL_BLUE_BITS, ///< Number of bits for blue channel @@ -897,9 +898,13 @@ typedef enum { /// A special view hint value typedef enum { - PUGL_DONT_CARE = -1, ///< Use best available value - PUGL_FALSE = 0, ///< Explicitly false - PUGL_TRUE = 1 ///< Explicitly true + PUGL_DONT_CARE = -1, ///< Generic trinary: Use best default + PUGL_FALSE = 0, ///< Generic trinary: Explicitly false + PUGL_TRUE = 1, ///< Generic trinary: Explicitly true + PUGL_OPENGL_API = 2, ///< For #PUGL_CONTEXT_API + PUGL_OPENGL_ES_API = 3, ///< For #PUGL_CONTEXT_API + PUGL_OPENGL_CORE_PROFILE = 4, ///< For #PUGL_CONTEXT_PROFILE + PUGL_OPENGL_COMPATIBILITY_PROFILE = 5, ///< For #PUGL_CONTEXT_PROFILE } PuglViewHintValue; /// View type |