mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Added client API window hint.
This is cherry-picked from the EGL branch in preparation for the EGL backend.
This commit is contained in:
+13
-9
@@ -404,14 +404,19 @@ extern "C" {
|
||||
/* The following constants are used with both glfwGetWindowParam
|
||||
* and glfwWindowHint
|
||||
*/
|
||||
#define GLFW_OPENGL_VERSION_MAJOR 0x00022000
|
||||
#define GLFW_OPENGL_VERSION_MINOR 0x00022001
|
||||
#define GLFW_OPENGL_FORWARD_COMPAT 0x00022002
|
||||
#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022003
|
||||
#define GLFW_OPENGL_PROFILE 0x00022004
|
||||
#define GLFW_OPENGL_ROBUSTNESS 0x00022005
|
||||
#define GLFW_RESIZABLE 0x00022006
|
||||
#define GLFW_VISIBLE 0x00022007
|
||||
#define GLFW_CLIENT_API 0x00022000
|
||||
#define GLFW_OPENGL_VERSION_MAJOR 0x00022001
|
||||
#define GLFW_OPENGL_VERSION_MINOR 0x00022002
|
||||
#define GLFW_OPENGL_FORWARD_COMPAT 0x00022003
|
||||
#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022004
|
||||
#define GLFW_OPENGL_PROFILE 0x00022005
|
||||
#define GLFW_OPENGL_ROBUSTNESS 0x00022006
|
||||
#define GLFW_RESIZABLE 0x00022007
|
||||
#define GLFW_VISIBLE 0x00022008
|
||||
|
||||
/* GLFW_CLIENT_API tokens */
|
||||
#define GLFW_OPENGL_API 0x00000001
|
||||
#define GLFW_OPENGL_ES_API 0x00000002
|
||||
|
||||
/* GLFW_OPENGL_ROBUSTNESS mode tokens */
|
||||
#define GLFW_OPENGL_NO_ROBUSTNESS 0x00000000
|
||||
@@ -422,7 +427,6 @@ extern "C" {
|
||||
#define GLFW_OPENGL_NO_PROFILE 0x00000000
|
||||
#define GLFW_OPENGL_CORE_PROFILE 0x00000001
|
||||
#define GLFW_OPENGL_COMPAT_PROFILE 0x00000002
|
||||
#define GLFW_OPENGL_ES2_PROFILE 0x00000004
|
||||
|
||||
/* glfwGetInputMode/glfwSetInputMode tokens */
|
||||
#define GLFW_CURSOR_MODE 0x00030001
|
||||
|
||||
Reference in New Issue
Block a user