This hint is ignored for full screen and initially hidden windows. Possible values are GLFW_TRUE and GLFW_FALSE. GLFW_FOCUSED specifies whether the windowed mode window will be given input focus when created. This hint is ignored for full screen windows. An undecorated window will not be resizable by the user but will still allow the user to generate close events on some platforms. GLFW_DECORATED specifies whether the windowed mode window will have window decorations such as a border, a close widget, etc. GLFW_VISIBLE specifies whether the windowed mode window will be initially visible. This hint is ignored for full screen and undecorated windows. The window will still be resizable using the glfwSetWindowSize function. GLFW_RESIZABLE specifies whether the windowed mode window will be resizable by the user. The following additional hints are hard constraints when requesting an OpenGL context, but are ignored when requesting an OpenGL ES context: The following hints are always hard constraints: Hints that are not hard constraints are matched as closely as possible, but the resulting context and framebuffer may differ from what these hints requested. These must match the available capabilities exactly for window and context creation to succeed. They function as additional arguments to glfwCreateWindow. Note Window hints need to be set before the creation of the window and context you wish to have the specified attributes. Setting these hints requires no platform specific headers or calls. These are always valid to set on any platform but they will only affect their specific platform. You can reset all at once to their defaults with glfwDefaultWindowHints. Integer value hints can be set individually with glfwWindowHint and string value hints with glfwWindowHintString. These hints are set to their default values each time the library is initialized with glfwInit. Some affect the window itself, others affect the framebuffer or context. There are a number of hints that can be set before the creation of a window and context. When a full screen window is destroyed, the original video mode of its monitor is restored, but the gamma ramp is left untouched. All windows remaining when glfwTerminate is called are destroyed as well. Before the actual destruction, all callbacks are removed so no further events will be delivered for the window. To create such a window, request the current video mode.ĭestroys the specified window and its context. This is sometimes called windowed full screen or borderless full screen window and counts as a full screen window. If the closest match for the desired video mode is the current one, the video mode will not be changed, making window creation faster and application switching much smoother. See Monitor configuration changes for more information. If a monitor is disconnected, all windows that are full screen on that monitor will be switched to windowed mode. This behavior can be disabled with the GLFW_AUTO_ICONIFY window hint, for example if you wish to simultaneously cover multiple monitors with full screen windows. If the window has an OpenGL or OpenGL ES context, it will be unaffected.īy default, the original video mode of the monitor will be restored and the window iconified if it loses input focus, to allow the user to switch back to the desktop. In all cases, the new video mode will be selected the same way as the video mode chosen by glfwCreateWindow. If you only need change its resolution you can also call glfwSetWindowSize. Once you have a full screen window, you can change its resolution, refresh rate and monitor with glfwSetWindowMonitor. For more information about retrieving video modes, see Video modes. The supported video mode most closely matching the desired video mode will be set for the chosen monitor as long as the window has input focus. Windowed mode windows can be made full screen by setting a monitor with glfwSetWindowMonitor, and full screen ones can be made windowed by unsetting it with the same function.Įach field of the GLFWvidmode structure corresponds to a function parameter or window hint and combine to form the desired video mode for that window. Full screen windows cover the entire display area of a monitor, have no border or decorations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |