Add GLFW_CONTEXT_RENDERER

This window hint allows choosing between hardware and software renderers
(where available) for the created OpenGL or OpenGL ES context.

Fixes #589.
This commit is contained in:
Camilla Löwy
2017-12-07 16:38:51 +01:00
parent 682f1cf203
commit d79056fc27
10 changed files with 92 additions and 12 deletions
+4
View File
@@ -962,6 +962,7 @@ extern "C" {
* [attribute](@ref GLFW_CLIENT_API_attrib).
*/
#define GLFW_CONTEXT_CREATION_API 0x0002200B
#define GLFW_CONTEXT_RENDERER 0x0002200C
#define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001
#define GLFW_COCOA_FRAME_AUTOSAVE 0x00023002
@@ -997,6 +998,9 @@ extern "C" {
#define GLFW_EGL_CONTEXT_API 0x00036002
#define GLFW_OSMESA_CONTEXT_API 0x00036003
#define GLFW_HARDWARE_RENDERER 0x00037001
#define GLFW_SOFTWARE_RENDERER 0x00037002
/*! @defgroup shapes Standard cursor shapes
* @brief Standard system cursor shapes.
*