func SetWindowSize(window Window, width, height int) { C.glfwSetWindowSize(C.GLFWwindow(window), C.int(width), C.int(height)) }
// SetWindowSize changes the size of an opened window. The width and height // parameters denote the size of the client area of the window (i.e. excluding // any window borders and decorations). If the window is in fullscreen mode, the // video mode will be changed to a resolution that closest matches the width and // height parameters (the number of color bits will not be changed). // // Note: This function has no effect if the window is iconified. // // Note: The OpenGL context is guaranteed to be preserved after calling // SetWindowSize, even if the video mode is changed. func SetWindowSize(width, height int) { C.glfwSetWindowSize(C.int(width), C.int(height)) }
//SetSize sets the size, in screen coordinates, of the client area of the //window. // //For full screen windows, this function selects and switches to the resolution //closest to the specified size, without affecting the window's context. As the //context is unaffected, the bit depths of the framebuffer remain unchanged. // //The window manager may put limits on what window sizes are allowed. // //This function may only be called from the main thread. See //https://code.google.com/p/go-wiki/wiki/LockOSThread func (w *Window) SetSize(width, height int) { C.glfwSetWindowSize(w.data, C.int(width), C.int(height)) }