parent
85de0db05d
commit
98e36753e6
@ -83,9 +83,11 @@ screen windows.
|
|||||||
|
|
||||||
@subsubsection window_windowed_full_screen "Windowed full screen" windows
|
@subsubsection window_windowed_full_screen "Windowed full screen" windows
|
||||||
|
|
||||||
To create a so called _windowed full screen_ or _borderless full screen_ window,
|
If the closest match for the desired video mode is the current one, the video
|
||||||
i.e. a full screen window that doesn't change the video mode of the monitor, you
|
mode will not be changed, making window creation faster and application
|
||||||
need to request the current video mode of the chosen monitor.
|
switching much smoother. This is sometimes called _windowed full screen_ or
|
||||||
|
_borderless full screen_ window and counts as a full screen window. To create
|
||||||
|
such a window, simply request the current video mode.
|
||||||
|
|
||||||
@code
|
@code
|
||||||
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
|
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
|
||||||
@ -98,8 +100,6 @@ glfwWindowHint(GLFW_REFRESH_RATE, mode->refreshRate);
|
|||||||
GLFWwindow* window = glfwCreateWindow(mode->width, mode->height, "My Title", monitor, NULL);
|
GLFWwindow* window = glfwCreateWindow(mode->width, mode->height, "My Title", monitor, NULL);
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
GLFW will detect this and will not perform any mode setting for that window.
|
|
||||||
|
|
||||||
|
|
||||||
@subsection window_destruction Window destruction
|
@subsection window_destruction Window destruction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user