# How to create a full screen window with version 3.0.1?

**URL:** <https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589>\
**Category:** support\
**Created:** [July 6, 2013, 1:11am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589 "2013-07-06T01:11:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 6, 2013, 1:11am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/1 "2013-07-06T01:11:58Z")

</div>

**[markspeir](https://sourceforge.net/u/markspeir/)** wrote on [Saturday, July 06, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#5d6f):

I’ve searched, but I can find no examples or any documentation on how to create a full screen window. A full screen window isn’t simply as window with a width and height equal to the screen’s, as I can attest from calling glfwCreateWindow with my screen width and height.

There needs to be a hint to tell GLFW to set up the window as a full screen window and I can find no references to such a beast. How do I do this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 6, 2013, 6:23pm UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/2 "2013-07-06T18:23:46Z")

</div>

**[markspeir](https://sourceforge.net/u/markspeir/)** wrote on [Saturday, July 06, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#7c02):

OK, I figured it out, but WOW!

In the transition guide, under “Changes to existing features-\>Multi-monitor Support” is the single, nondescript, sentence: “To request a full screen mode window, instead of passing GLFW\_FULLSCREEN[,] you specify which monitor you wish the window to use.”

Um… OK then. O.o

So, this creates a full screen window:

glfwCreateWindow(width,height,“Title”,glfwGetPrimaryMonitor(),NULL);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 12:28am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/3 "2013-07-07T00:28:44Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#9baa):

It’s described in the documentation for `glfwCreateWindow` as well as in the tutorial.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 5:44am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/4 "2013-07-07T05:44:28Z")

</div>

**[markspeir](https://sourceforge.net/u/markspeir/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#4451):

Found that just now. Thanks.

It does need to be in the glfwCreateWindow documentation as well. That was the first place I went as it seemed like the most logical place to find the information. It isn’t there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 9:46am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/5 "2013-07-07T09:46:35Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#67e5):

It states

> monitor  
> The monitor to use for full screen mode, or NULL to use windowed mode.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 9:49am UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/6 "2013-07-07T09:49:18Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#415d):

I’ll add more language to `glfwCreateWindow` and a window creation section to the _Window handling guide_.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 2:41pm UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/7 "2013-07-07T14:41:52Z")

</div>

**[markspeir](https://sourceforge.net/u/markspeir/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#67e5/77ba):

I’m sorry, but that concept of creating a widow by giving it a monitor is foreign to me. I’ve never seen such a method used in any windowing system, and the concept isn’t very obvious. It is useful in a multiple monitor set up, but how this relates to create a full screen window is not clear. Moreover, what if I want to create a non-fullscreen window on a second monitor?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 9:38pm UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/8 "2013-07-07T21:38:56Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#67e5/77ba/6dcb):

The monitor parameter is only for which monitor to go full screen on.

The monitor functions allow you to figure out where on the virtual screen the different monitors are located. If you want to position your windowed mode window on a specific monitor, just set its position.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 7, 2013, 10:59pm UTC](https://discourse.glfw.org/t/how-to-create-a-full-screen-window-with-version-3-0-1/589/9 "2013-07-07T22:59:25Z")

</div>

**[markspeir](https://sourceforge.net/u/markspeir/)** wrote on [Sunday, July 07, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/758fdfcc/#67e5/77ba/6dcb/117c):

Thanks for the information. I’m not trying to be critical. It is just that the method is counter-intuitive. Without it be clearly and plainly described, I had no hope of figuring it out. It simply did not make sense, based on my experience programming on widow-based GUIs.
