|
@@ -421,6 +421,23 @@ __GLFW_COCOA_FRAME_AUTOSAVE__ specifies whether to activate frame autosaving
|
|
using the window title specified at window creation. This is ignored on other
|
|
using the window title specified at window creation. This is ignored on other
|
|
platforms.
|
|
platforms.
|
|
|
|
|
|
|
|
+@anchor GLFW_COCOA_GRAPHICS_SWITCHING_hint
|
|
|
|
+__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
|
|
|
|
+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
|
|
|
|
+discrete GPUs. This is ignored on other platforms.
|
|
|
|
+
|
|
|
|
+@par
|
|
|
|
+Simpler programs and tools may want to enable this to save power, while games
|
|
|
|
+and other applications performing advanced rendering will want to leave it
|
|
|
|
+disabled.
|
|
|
|
+
|
|
|
|
+@par
|
|
|
|
+A bundled application that wishes to participate in Automatic Graphics Switching
|
|
|
|
+should also declare this in its `Info.plist` by setting the
|
|
|
|
+`NSSupportsAutomaticGraphicsSwitching` key to `true`.
|
|
|
|
+
|
|
|
|
|
|
@subsubsection window_hints_values Supported and default values
|
|
@subsubsection window_hints_values Supported and default values
|
|
|
|
|
|
@@ -461,6 +478,7 @@ GLFW_OPENGL_DEBUG_CONTEXT | `GLFW_FALSE` | `GLFW_TRUE` or `GL
|
|
GLFW_OPENGL_PROFILE | `GLFW_OPENGL_ANY_PROFILE` | `GLFW_OPENGL_ANY_PROFILE`, `GLFW_OPENGL_COMPAT_PROFILE` or `GLFW_OPENGL_CORE_PROFILE`
|
|
GLFW_OPENGL_PROFILE | `GLFW_OPENGL_ANY_PROFILE` | `GLFW_OPENGL_ANY_PROFILE`, `GLFW_OPENGL_COMPAT_PROFILE` or `GLFW_OPENGL_CORE_PROFILE`
|
|
GLFW_COCOA_RETINA_FRAMEBUFFER | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE`
|
|
GLFW_COCOA_RETINA_FRAMEBUFFER | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE`
|
|
GLFW_COCOA_FRAME_AUTOSAVE | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE`
|
|
GLFW_COCOA_FRAME_AUTOSAVE | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE`
|
|
|
|
+GLFW_COCOA_GRAPHICS_SWITCHING | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE`
|
|
|
|
|
|
|
|
|
|
@section window_events Window event processing
|
|
@section window_events Window event processing
|