|
@@ -179,43 +179,48 @@ context, but are ignored when requesting an OpenGL ES context:
|
|
@anchor GLFW_RESIZABLE_hint
|
|
@anchor GLFW_RESIZABLE_hint
|
|
__GLFW_RESIZABLE__ specifies whether the windowed mode window will be resizable
|
|
__GLFW_RESIZABLE__ specifies whether the windowed mode window will be resizable
|
|
_by the user_. The window will still be resizable using the @ref
|
|
_by the user_. The window will still be resizable using the @ref
|
|
-glfwSetWindowSize function. This hint is ignored for full screen and
|
|
|
|
-undecorated windows.
|
|
|
|
|
|
+glfwSetWindowSize function. Possible values are `GLFW_TRUE` and `GLFW_FALSE`.
|
|
|
|
+This hint is ignored for full screen and undecorated windows.
|
|
|
|
|
|
@anchor GLFW_VISIBLE_hint
|
|
@anchor GLFW_VISIBLE_hint
|
|
__GLFW_VISIBLE__ specifies whether the windowed mode window will be initially
|
|
__GLFW_VISIBLE__ specifies whether the windowed mode window will be initially
|
|
-visible. This hint is ignored for full screen windows.
|
|
|
|
|
|
+visible. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This hint is
|
|
|
|
+ignored for full screen windows.
|
|
|
|
|
|
@anchor GLFW_DECORATED_hint
|
|
@anchor GLFW_DECORATED_hint
|
|
__GLFW_DECORATED__ specifies whether the windowed mode window will have window
|
|
__GLFW_DECORATED__ specifies whether the windowed mode window will have window
|
|
decorations such as a border, a close widget, etc. An undecorated window will
|
|
decorations such as a border, a close widget, etc. An undecorated window will
|
|
not be resizable by the user but will still allow the user to generate close
|
|
not be resizable by the user but will still allow the user to generate close
|
|
-events on some platforms. This hint is ignored for full screen windows.
|
|
|
|
|
|
+events on some platforms. Possible values are `GLFW_TRUE` and `GLFW_FALSE`.
|
|
|
|
+This hint is ignored for full screen windows.
|
|
|
|
|
|
@anchor GLFW_FOCUSED_hint
|
|
@anchor GLFW_FOCUSED_hint
|
|
__GLFW_FOCUSED__ specifies whether the windowed mode window will be given input
|
|
__GLFW_FOCUSED__ specifies whether the windowed mode window will be given input
|
|
-focus when created. This hint is ignored for full screen and initially hidden
|
|
|
|
-windows.
|
|
|
|
|
|
+focus when created. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This
|
|
|
|
+hint is ignored for full screen and initially hidden windows.
|
|
|
|
|
|
@anchor GLFW_AUTO_ICONIFY_hint
|
|
@anchor GLFW_AUTO_ICONIFY_hint
|
|
__GLFW_AUTO_ICONIFY__ specifies whether the full screen window will
|
|
__GLFW_AUTO_ICONIFY__ specifies whether the full screen window will
|
|
automatically iconify and restore the previous video mode on input focus loss.
|
|
automatically iconify and restore the previous video mode on input focus loss.
|
|
-This hint is ignored for windowed mode windows.
|
|
|
|
|
|
+Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This hint is ignored for
|
|
|
|
+windowed mode windows.
|
|
|
|
|
|
@anchor GLFW_FLOATING_hint
|
|
@anchor GLFW_FLOATING_hint
|
|
__GLFW_FLOATING__ specifies whether the windowed mode window will be floating
|
|
__GLFW_FLOATING__ specifies whether the windowed mode window will be floating
|
|
above other regular windows, also called topmost or always-on-top. This is
|
|
above other regular windows, also called topmost or always-on-top. This is
|
|
intended primarily for debugging purposes and cannot be used to implement proper
|
|
intended primarily for debugging purposes and cannot be used to implement proper
|
|
-full screen windows. This hint is ignored for full screen windows.
|
|
|
|
|
|
+full screen windows. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This
|
|
|
|
+hint is ignored for full screen windows.
|
|
|
|
|
|
@anchor GLFW_MAXIMIZED_hint
|
|
@anchor GLFW_MAXIMIZED_hint
|
|
__GLFW_MAXIMIZED__ specifies whether the windowed mode window will be maximized
|
|
__GLFW_MAXIMIZED__ specifies whether the windowed mode window will be maximized
|
|
-when created. This hint is ignored for full screen windows.
|
|
|
|
|
|
+when created. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This hint is
|
|
|
|
+ignored for full screen windows.
|
|
|
|
|
|
@anchor GLFW_CENTER_CURSOR_hint
|
|
@anchor GLFW_CENTER_CURSOR_hint
|
|
__GLFW_CENTER_CURSOR__ specifies whether the cursor should be centered over
|
|
__GLFW_CENTER_CURSOR__ specifies whether the cursor should be centered over
|
|
-newly created full screen windows. This hint is ignored for windowed mode
|
|
|
|
-windows.
|
|
|
|
|
|
+newly created full screen windows. Possible values are `GLFW_TRUE` and
|
|
|
|
+`GLFW_FALSE`. This hint is ignored for windowed mode windows.
|
|
|
|
|
|
|
|
|
|
@subsubsection window_hints_fb Framebuffer related hints
|
|
@subsubsection window_hints_fb Framebuffer related hints
|
|
@@ -253,8 +258,8 @@ Auxiliary buffers are a legacy OpenGL feature and should not be used in new
|
|
code.
|
|
code.
|
|
|
|
|
|
@anchor GLFW_STEREO
|
|
@anchor GLFW_STEREO
|
|
-__GLFW_STEREO__ specifies whether to use OpenGL stereoscopic rendering. This is
|
|
|
|
-a hard constraint.
|
|
|
|
|
|
+__GLFW_STEREO__ specifies whether to use OpenGL stereoscopic rendering.
|
|
|
|
+Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This is a hard constraint.
|
|
|
|
|
|
@anchor GLFW_SAMPLES
|
|
@anchor GLFW_SAMPLES
|
|
__GLFW_SAMPLES__ specifies the desired number of samples to use for
|
|
__GLFW_SAMPLES__ specifies the desired number of samples to use for
|
|
@@ -266,11 +271,12 @@ __GLFW_SRGB_CAPABLE__ specifies whether the framebuffer should be sRGB capable.
|
|
If supported, a created OpenGL context will support the `GL_FRAMEBUFFER_SRGB`
|
|
If supported, a created OpenGL context will support the `GL_FRAMEBUFFER_SRGB`
|
|
enable, also called `GL_FRAMEBUFFER_SRGB_EXT`) for controlling sRGB rendering
|
|
enable, also called `GL_FRAMEBUFFER_SRGB_EXT`) for controlling sRGB rendering
|
|
and a created OpenGL ES context will always have sRGB rendering enabled.
|
|
and a created OpenGL ES context will always have sRGB rendering enabled.
|
|
|
|
+Possible values are `GLFW_TRUE` and `GLFW_FALSE`.
|
|
|
|
|
|
@anchor GLFW_DOUBLEBUFFER
|
|
@anchor GLFW_DOUBLEBUFFER
|
|
__GLFW_DOUBLEBUFFER__ specifies whether the framebuffer should be double
|
|
__GLFW_DOUBLEBUFFER__ specifies whether the framebuffer should be double
|
|
buffered. You nearly always want to use double buffering. This is a hard
|
|
buffered. You nearly always want to use double buffering. This is a hard
|
|
-constraint.
|
|
|
|
|
|
+constraint. Possible values are `GLFW_TRUE` and `GLFW_FALSE`.
|
|
|
|
|
|
|
|
|
|
@subsubsection window_hints_mtr Monitor related hints
|
|
@subsubsection window_hints_mtr Monitor related hints
|
|
@@ -356,7 +362,8 @@ Forward-compatibility is described in detail in the
|
|
@anchor GLFW_OPENGL_DEBUG_CONTEXT_hint
|
|
@anchor GLFW_OPENGL_DEBUG_CONTEXT_hint
|
|
__GLFW_OPENGL_DEBUG_CONTEXT__ specifies whether to create a debug OpenGL
|
|
__GLFW_OPENGL_DEBUG_CONTEXT__ specifies whether to create a debug OpenGL
|
|
context, which may have additional error and performance issue reporting
|
|
context, which may have additional error and performance issue reporting
|
|
-functionality. If OpenGL ES is requested, this hint is ignored.
|
|
|
|
|
|
+functionality. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. If OpenGL ES
|
|
|
|
+is requested, this hint is ignored.
|
|
|
|
|
|
@anchor GLFW_OPENGL_PROFILE_hint
|
|
@anchor GLFW_OPENGL_PROFILE_hint
|
|
__GLFW_OPENGL_PROFILE__ specifies which OpenGL profile to create the context
|
|
__GLFW_OPENGL_PROFILE__ specifies which OpenGL profile to create the context
|
|
@@ -393,8 +400,8 @@ extension.
|
|
|
|
|
|
@anchor GLFW_CONTEXT_NO_ERROR_hint
|
|
@anchor GLFW_CONTEXT_NO_ERROR_hint
|
|
__GLFW_CONTEXT_NO_ERROR__ specifies whether errors should be generated by the
|
|
__GLFW_CONTEXT_NO_ERROR__ specifies whether errors should be generated by the
|
|
-context. If enabled, situations that would have generated errors instead cause
|
|
|
|
-undefined behavior.
|
|
|
|
|
|
+context. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. If enabled,
|
|
|
|
+situations that would have generated errors instead cause undefined behavior.
|
|
|
|
|
|
@par
|
|
@par
|
|
The no error mode for OpenGL and OpenGL ES is described in detail by the
|
|
The no error mode for OpenGL and OpenGL ES is described in detail by the
|
|
@@ -414,19 +421,21 @@ being listed.
|
|
|
|
|
|
@anchor GLFW_COCOA_RETINA_FRAMEBUFFER_hint
|
|
@anchor GLFW_COCOA_RETINA_FRAMEBUFFER_hint
|
|
__GLFW_COCOA_RETINA_FRAMEBUFFER__ specifies whether to use full resolution
|
|
__GLFW_COCOA_RETINA_FRAMEBUFFER__ specifies whether to use full resolution
|
|
-framebuffers on Retina displays. This is ignored on other platforms.
|
|
|
|
|
|
+framebuffers on Retina displays. Possible values are `GLFW_TRUE` and
|
|
|
|
+`GLFW_FALSE`. This is ignored on other platforms.
|
|
|
|
|
|
@anchor GLFW_COCOA_FRAME_AUTOSAVE_hint
|
|
@anchor GLFW_COCOA_FRAME_AUTOSAVE_hint
|
|
__GLFW_COCOA_FRAME_AUTOSAVE__ specifies whether to activate frame autosaving
|
|
__GLFW_COCOA_FRAME_AUTOSAVE__ specifies whether to activate frame autosaving
|
|
-using the window title specified at window creation. This is ignored on other
|
|
|
|
-platforms.
|
|
|
|
|
|
+using the window title specified at window creation. Possible values are
|
|
|
|
+`GLFW_TRUE` and `GLFW_FALSE`. This is ignored on other platforms.
|
|
|
|
|
|
@anchor GLFW_COCOA_GRAPHICS_SWITCHING_hint
|
|
@anchor GLFW_COCOA_GRAPHICS_SWITCHING_hint
|
|
__GLFW_COCOA_GRAPHICS_SWITCHING__ specifies whether to in Automatic Graphics
|
|
__GLFW_COCOA_GRAPHICS_SWITCHING__ specifies whether to in Automatic Graphics
|
|
Switching, i.e. to allow the system to choose the integrated GPU for the OpenGL
|
|
Switching, i.e. to allow the system to choose the integrated GPU for the OpenGL
|
|
context and move it between GPUs if necessary or whether to force it to always
|
|
context and move it between GPUs if necessary or whether to force it to always
|
|
run on the discrete GPU. This only affects systems with both integrated and
|
|
run on the discrete GPU. This only affects systems with both integrated and
|
|
-discrete GPUs. This is ignored on other platforms.
|
|
|
|
|
|
+discrete GPUs. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This is
|
|
|
|
+ignored on other platforms.
|
|
|
|
|
|
@par
|
|
@par
|
|
Simpler programs and tools may want to enable this to save power, while games
|
|
Simpler programs and tools may want to enable this to save power, while games
|