129 if (width <= 0 || height <= 0)
141 wndconfig.
title = title;
205 window->
Clear(GL_COLOR_BUFFER_BIT);
397 while (*prev != window)
398 prev = &((*prev)->next);
400 *prev = window->
next;
449 "Full screen windows cannot be moved");
GLsizei const void * pointer
void(* GLFWwindowiconifyfun)(GLFWwindow *, int)
The function signature for window iconify/restore callbacks.
GLboolean _glfwIsValidContext(const _GLFWctxconfig *ctxconfig)
Checks whether the current context fulfils the specified hard constraints.
#define GLFW_CONTEXT_REVISION
GLFWAPI void glfwGetWindowSize(GLFWwindow *handle, int *width, int *height)
Retrieves the size of the client area of the specified window.
#define GLFW_CONTEXT_ROBUSTNESS
_GLFWfbconfig framebuffer
GLFWAPI int glfwGetWindowAttrib(GLFWwindow *handle, int attrib)
Returns an attribute of the specified window.
GLFWAPI void glfwSetWindowTitle(GLFWwindow *handle, const char *title)
Sets the title of the specified window.
GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow *handle, GLFWwindowsizefun cbfun)
Sets the size callback for the specified window.
void _glfwInputWindowIconify(_GLFWwindow *window, int iconified)
Notifies shared code of a window iconification event.
GLint GLint GLsizei GLsizei height
struct _GLFWwindow::@1 callbacks
#define _GLFW_REQUIRE_INIT()
GLint GLint GLint GLint GLint GLint y
GLFWAPI void glfwHideWindow(GLFWwindow *handle)
Hides the specified window.
void _glfwInputWindowSize(_GLFWwindow *window, int width, int height)
Notifies shared code of a window resize event.
#define GLFW_REFRESH_RATE
GLFWAPI void * glfwGetWindowUserPointer(GLFWwindow *handle)
Returns the user pointer of the specified window.
GLFWAPI void glfwPostEmptyEvent(void)
Posts an empty event to the event queue.
GLFWframebuffersizefun fbsize
#define GLFW_ACCUM_GREEN_BITS
#define GLFW_ACCUM_BLUE_BITS
GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow *handle, GLFWframebuffersizefun cbfun)
Sets the framebuffer resize callback for the specified window.
void _glfwInputWindowFocus(_GLFWwindow *window, GLboolean focused)
Notifies shared code of a window focus event.
_GLFWwindow * windowListHead
_GLFWlibrary _glfw
All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit t...
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
struct GLFWwindow GLFWwindow
Opaque window object.
void _glfwInputWindowCloseRequest(_GLFWwindow *window)
Notifies shared code of a window close request event.
#define GLFW_OPENGL_FORWARD_COMPAT
GLFWwindowrefreshfun refresh
#define _GLFW_SWAP_POINTERS(x, y)
GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow *handle, GLFWwindowiconifyfun cbfun)
Sets the iconify callback for the specified window.
#define _GLFW_REQUIRE_INIT_OR_RETURN(x)
char keys[GLFW_KEY_LAST+1]
GLFWAPI void glfwSetWindowUserPointer(GLFWwindow *handle, void *pointer)
Sets the user pointer of the specified window.
_GLFWwindow * cursorWindow
typedef GLboolean(APIENTRYP PFNGLISQUERYPROC)(GLuint id)
#define GLFW_CURSOR_NORMAL
GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow *handle, GLFWwindowrefreshfun cbfun)
Sets the refresh callback for the specified window.
void _glfwInputWindowDamage(_GLFWwindow *window)
Notifies shared code of a window damage event.
GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow *handle, GLFWwindowposfun cbfun)
Sets the position callback for the specified window.
void(* GLFWwindowsizefun)(GLFWwindow *, int, int)
The function signature for window resize callbacks.
GLFWAPI void glfwIconifyWindow(GLFWwindow *handle)
Iconifies the specified window.
void glfwDefaultWindowHints(void)
Resets all window hints to their default values.
struct _GLFWlibrary::@2 hints
struct _GLFWwindow * next
GLFWAPI void glfwWindowHint(int target, int hint)
Sets the specified window hint to the desired value.
GLFWAPI void glfwGetWindowFrameSize(GLFWwindow *handle, int *left, int *top, int *right, int *bottom)
Retrieves the size of the frame of the window.
#define GLFW_CONTEXT_RELEASE_BEHAVIOR
void(* GLFWframebuffersizefun)(GLFWwindow *, int, int)
The function signature for framebuffer resize callbacks.
struct _GLFWwindow::@0 context
GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow *handle, GLFWwindowfocusfun cbfun)
Sets the focus callback for the specified window.
void _glfwInputMouseClick(_GLFWwindow *window, int button, int action, int mods)
Notifies shared code of a mouse button click event.
void _glfwInputWindowPos(_GLFWwindow *window, int x, int y)
Notifies shared code of a window movement event.
#define GLFW_CONTEXT_VERSION_MAJOR
GLsizei const GLfloat * value
#define GLFW_SRGB_CAPABLE
void(* GLFWwindowposfun)(GLFWwindow *, int, int)
The function signature for window position callbacks.
GLFWAPI GLFWmonitor * glfwGetWindowMonitor(GLFWwindow *handle)
Returns the monitor that the window uses for full screen mode.
GLFWAPI void glfwSetWindowSize(GLFWwindow *handle, int width, int height)
Sets the size of the client area of the specified window.
GLFWAPI void glfwSetWindowPos(GLFWwindow *handle, int xpos, int ypos)
Sets the position of the client area of the specified window.
GLFWAPI void glfwSetWindowShouldClose(GLFWwindow *handle, int value)
Sets the close flag of the specified window.
#define GLFW_ACCUM_RED_BITS
GLFWAPI void glfwWaitEvents(void)
Waits until events are queued and processes them.
GLFWAPI GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
Creates a window and its associated context.
#define GLFW_INVALID_ENUM
One of the arguments to the function was an invalid enum value.
#define GLFW_INVALID_VALUE
One of the arguments to the function was an invalid value.
GLboolean _glfwRefreshContextAttribs(const _GLFWctxconfig *ctxconfig)
Retrieves the attributes of the current context.
#define GLFW_OPENGL_DEBUG_CONTEXT
GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig *ctxconfig)
Checks whether the desired context attributes are valid.
GLFWAPI void glfwGetWindowPos(GLFWwindow *handle, int *xpos, int *ypos)
Retrieves the position of the client area of the specified window.
GLint GLint GLsizei width
void _glfwInputKey(_GLFWwindow *window, int key, int scancode, int action, int mods)
Notifies shared code of a physical key event.
GLFWAPI void glfwDestroyWindow(GLFWwindow *handle)
Destroys the specified window and its context.
GLFWAPI void glfwGetFramebufferSize(GLFWwindow *handle, int *width, int *height)
Retrieves the size of the framebuffer of the specified window.
GLFWAPI void glfwShowWindow(GLFWwindow *handle)
Makes the specified window visible.
GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow *handle, GLFWwindowclosefun cbfun)
Sets the close callback for the specified window.
void(* GLFWwindowclosefun)(GLFWwindow *)
The function signature for window close callbacks.
void _glfwInputError(int error, const char *format,...)
Notifies shared code of an error.
#define GLFW_DOUBLEBUFFER
void _glfwInputFramebufferSize(_GLFWwindow *window, int width, int height)
Notifies shared code of a framebuffer resize event.
GLFWAPI void glfwPollEvents(void)
Processes all pending events.
#define GLFW_OPENGL_PROFILE
char mouseButtons[GLFW_MOUSE_BUTTON_LAST+1]
#define GLFW_AUTO_ICONIFY
#define GLFW_CONTEXT_VERSION_MINOR
#define GLFW_STENCIL_BITS
Window and context structure.
Framebuffer configuration.
GLdouble GLdouble GLdouble GLdouble top
GLFWAPI void glfwRestoreWindow(GLFWwindow *handle)
Restores the specified window.
GLFWwindowiconifyfun iconify
GLint GLint GLint GLint GLint x
#define GLFW_ACCUM_ALPHA_BITS
void(* GLFWwindowrefreshfun)(GLFWwindow *)
The function signature for window content refresh callbacks.
void(* GLFWwindowfocusfun)(GLFWwindow *, int)
The function signature for window focus/defocus callbacks.
GLFWAPI int glfwWindowShouldClose(GLFWwindow *handle)
Checks the close flag of the specified window.