Как в библиотеке glfw3 в функции glfwGetWindowMonitor сделать полноэкранный режим?

Вот стандартный код создания окна на GLFW. Я не могу понять, как работать с функцией glfwGetWindowMonitor: Если ее просто вставить в main, окно без изменений остается в окном режиме... надо что-то прописать в параметры функции??

void glfwSetWindowMonitor (GLFWwindow * window,GLFWmonitor * monitor,int xpos,int ypos,int width,int height,int refreshRate);
#include <GLFW/glfw3.h>
int main(void)
{
    GLFWwindow* window;
    if (!glfwInit())
        return -1;
    window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
    if (!window)
    {
        glfwTerminate();
        return -1;
    }
    glfwMakeContextCurrent(window);
    while (!glfwWindowShouldClose(window))
    {
        glClear(GL_COLOR_BUFFER_BIT);
        glfwSwapBuffers(window);
        glfwPollEvents();
    }
    glfwTerminate();
    return 0;
}

Ответы (0 шт):