|
typedef void(* | GLFWglproc) (void) |
| Client API function pointer type. More...
|
|
typedef struct GLFWmonitor | GLFWmonitor |
| Opaque monitor object. More...
|
|
typedef struct GLFWwindow | GLFWwindow |
| Opaque window object. More...
|
|
typedef struct GLFWcursor | GLFWcursor |
| Opaque cursor object. More...
|
|
typedef void(* | GLFWerrorfun) (int, const char *) |
| The function signature for error callbacks. More...
|
|
typedef void(* | GLFWwindowposfun) (GLFWwindow *, int, int) |
| The function signature for window position callbacks. More...
|
|
typedef void(* | GLFWwindowsizefun) (GLFWwindow *, int, int) |
| The function signature for window resize callbacks. More...
|
|
typedef void(* | GLFWwindowclosefun) (GLFWwindow *) |
| The function signature for window close callbacks. More...
|
|
typedef void(* | GLFWwindowrefreshfun) (GLFWwindow *) |
| The function signature for window content refresh callbacks. More...
|
|
typedef void(* | GLFWwindowfocusfun) (GLFWwindow *, int) |
| The function signature for window focus/defocus callbacks. More...
|
|
typedef void(* | GLFWwindowiconifyfun) (GLFWwindow *, int) |
| The function signature for window iconify/restore callbacks. More...
|
|
typedef void(* | GLFWframebuffersizefun) (GLFWwindow *, int, int) |
| The function signature for framebuffer resize callbacks. More...
|
|
typedef void(* | GLFWmousebuttonfun) (GLFWwindow *, int, int, int) |
| The function signature for mouse button callbacks. More...
|
|
typedef void(* | GLFWcursorposfun) (GLFWwindow *, double, double) |
| The function signature for cursor position callbacks. More...
|
|
typedef void(* | GLFWcursorenterfun) (GLFWwindow *, int) |
| The function signature for cursor enter/leave callbacks. More...
|
|
typedef void(* | GLFWscrollfun) (GLFWwindow *, double, double) |
| The function signature for scroll callbacks. More...
|
|
typedef void(* | GLFWkeyfun) (GLFWwindow *, int, int, int, int) |
| The function signature for keyboard key callbacks. More...
|
|
typedef void(* | GLFWcharfun) (GLFWwindow *, unsigned int) |
| The function signature for Unicode character callbacks. More...
|
|
typedef void(* | GLFWcharmodsfun) (GLFWwindow *, unsigned int, int) |
| The function signature for Unicode character with modifiers callbacks. More...
|
|
typedef void(* | GLFWdropfun) (GLFWwindow *, int, const char **) |
| The function signature for file drop callbacks. More...
|
|
typedef void(* | GLFWmonitorfun) (GLFWmonitor *, int) |
| The function signature for monitor configuration callbacks. More...
|
|
typedef struct GLFWvidmode | GLFWvidmode |
| Video mode type. More...
|
|
typedef struct GLFWgammaramp | GLFWgammaramp |
| Gamma ramp. More...
|
|
typedef struct GLFWimage | GLFWimage |
| Image data. More...
|
|
|
int | glfwInit (void) |
| Initializes the GLFW library. More...
|
|
void | glfwTerminate (void) |
| Terminates the GLFW library. More...
|
|
void | glfwGetVersion (int *major, int *minor, int *rev) |
| Retrieves the version of the GLFW library. More...
|
|
const char * | glfwGetVersionString (void) |
| Returns a string describing the compile-time configuration. More...
|
|
GLFWerrorfun | glfwSetErrorCallback (GLFWerrorfun cbfun) |
| Sets the error callback. More...
|
|
GLFWmonitor ** | glfwGetMonitors (int *count) |
| Returns the currently connected monitors. More...
|
|
GLFWmonitor * | glfwGetPrimaryMonitor (void) |
| Returns the primary monitor. More...
|
|
void | glfwGetMonitorPos (GLFWmonitor *monitor, int *xpos, int *ypos) |
| Returns the position of the monitor's viewport on the virtual screen. More...
|
|
void | glfwGetMonitorPhysicalSize (GLFWmonitor *monitor, int *widthMM, int *heightMM) |
| Returns the physical size of the monitor. More...
|
|
const char * | glfwGetMonitorName (GLFWmonitor *monitor) |
| Returns the name of the specified monitor. More...
|
|
GLFWmonitorfun | glfwSetMonitorCallback (GLFWmonitorfun cbfun) |
| Sets the monitor configuration callback. More...
|
|
const GLFWvidmode * | glfwGetVideoModes (GLFWmonitor *monitor, int *count) |
| Returns the available video modes for the specified monitor. More...
|
|
const GLFWvidmode * | glfwGetVideoMode (GLFWmonitor *monitor) |
| Returns the current mode of the specified monitor. More...
|
|
void | glfwSetGamma (GLFWmonitor *monitor, float gamma) |
| Generates a gamma ramp and sets it for the specified monitor. More...
|
|
const GLFWgammaramp * | glfwGetGammaRamp (GLFWmonitor *monitor) |
| Returns the current gamma ramp for the specified monitor. More...
|
|
void | glfwSetGammaRamp (GLFWmonitor *monitor, const GLFWgammaramp *ramp) |
| Sets the current gamma ramp for the specified monitor. More...
|
|
void | glfwDefaultWindowHints (void) |
| Resets all window hints to their default values. More...
|
|
void | glfwWindowHint (int target, int hint) |
| Sets the specified window hint to the desired value. More...
|
|
GLFWwindow * | glfwCreateWindow (int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share) |
| Creates a window and its associated context. More...
|
|
void | glfwDestroyWindow (GLFWwindow *window) |
| Destroys the specified window and its context. More...
|
|
int | glfwWindowShouldClose (GLFWwindow *window) |
| Checks the close flag of the specified window. More...
|
|
void | glfwSetWindowShouldClose (GLFWwindow *window, int value) |
| Sets the close flag of the specified window. More...
|
|
void | glfwSetWindowTitle (GLFWwindow *window, const char *title) |
| Sets the title of the specified window. More...
|
|
void | glfwGetWindowPos (GLFWwindow *window, int *xpos, int *ypos) |
| Retrieves the position of the client area of the specified window. More...
|
|
void | glfwSetWindowPos (GLFWwindow *window, int xpos, int ypos) |
| Sets the position of the client area of the specified window. More...
|
|
void | glfwGetWindowSize (GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the client area of the specified window. More...
|
|
void | glfwSetWindowSize (GLFWwindow *window, int width, int height) |
| Sets the size of the client area of the specified window. More...
|
|
void | glfwGetFramebufferSize (GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the framebuffer of the specified window. More...
|
|
void | glfwGetWindowFrameSize (GLFWwindow *window, int *left, int *top, int *right, int *bottom) |
| Retrieves the size of the frame of the window. More...
|
|
void | glfwIconifyWindow (GLFWwindow *window) |
| Iconifies the specified window. More...
|
|
void | glfwRestoreWindow (GLFWwindow *window) |
| Restores the specified window. More...
|
|
void | glfwShowWindow (GLFWwindow *window) |
| Makes the specified window visible. More...
|
|
void | glfwHideWindow (GLFWwindow *window) |
| Hides the specified window. More...
|
|
GLFWmonitor * | glfwGetWindowMonitor (GLFWwindow *window) |
| Returns the monitor that the window uses for full screen mode. More...
|
|
int | glfwGetWindowAttrib (GLFWwindow *window, int attrib) |
| Returns an attribute of the specified window. More...
|
|
void | glfwSetWindowUserPointer (GLFWwindow *window, void *pointer) |
| Sets the user pointer of the specified window. More...
|
|
void * | glfwGetWindowUserPointer (GLFWwindow *window) |
| Returns the user pointer of the specified window. More...
|
|
GLFWwindowposfun | glfwSetWindowPosCallback (GLFWwindow *window, GLFWwindowposfun cbfun) |
| Sets the position callback for the specified window. More...
|
|
GLFWwindowsizefun | glfwSetWindowSizeCallback (GLFWwindow *window, GLFWwindowsizefun cbfun) |
| Sets the size callback for the specified window. More...
|
|
GLFWwindowclosefun | glfwSetWindowCloseCallback (GLFWwindow *window, GLFWwindowclosefun cbfun) |
| Sets the close callback for the specified window. More...
|
|
GLFWwindowrefreshfun | glfwSetWindowRefreshCallback (GLFWwindow *window, GLFWwindowrefreshfun cbfun) |
| Sets the refresh callback for the specified window. More...
|
|
GLFWwindowfocusfun | glfwSetWindowFocusCallback (GLFWwindow *window, GLFWwindowfocusfun cbfun) |
| Sets the focus callback for the specified window. More...
|
|
GLFWwindowiconifyfun | glfwSetWindowIconifyCallback (GLFWwindow *window, GLFWwindowiconifyfun cbfun) |
| Sets the iconify callback for the specified window. More...
|
|
GLFWframebuffersizefun | glfwSetFramebufferSizeCallback (GLFWwindow *window, GLFWframebuffersizefun cbfun) |
| Sets the framebuffer resize callback for the specified window. More...
|
|
void | glfwPollEvents (void) |
| Processes all pending events. More...
|
|
void | glfwWaitEvents (void) |
| Waits until events are queued and processes them. More...
|
|
void | glfwPostEmptyEvent (void) |
| Posts an empty event to the event queue. More...
|
|
int | glfwGetInputMode (GLFWwindow *window, int mode) |
| Returns the value of an input option for the specified window. More...
|
|
void | glfwSetInputMode (GLFWwindow *window, int mode, int value) |
| Sets an input option for the specified window. More...
|
|
int | glfwGetKey (GLFWwindow *window, int key) |
| Returns the last reported state of a keyboard key for the specified window. More...
|
|
int | glfwGetMouseButton (GLFWwindow *window, int button) |
| Returns the last reported state of a mouse button for the specified window. More...
|
|
void | glfwGetCursorPos (GLFWwindow *window, double *xpos, double *ypos) |
| Retrieves the position of the cursor relative to the client area of the window. More...
|
|
void | glfwSetCursorPos (GLFWwindow *window, double xpos, double ypos) |
| Sets the position of the cursor, relative to the client area of the window. More...
|
|
GLFWcursor * | glfwCreateCursor (const GLFWimage *image, int xhot, int yhot) |
| Creates a custom cursor. More...
|
|
GLFWcursor * | glfwCreateStandardCursor (int shape) |
| Creates a cursor with a standard shape. More...
|
|
void | glfwDestroyCursor (GLFWcursor *cursor) |
| Destroys a cursor. More...
|
|
void | glfwSetCursor (GLFWwindow *window, GLFWcursor *cursor) |
| Sets the cursor for the window. More...
|
|
GLFWkeyfun | glfwSetKeyCallback (GLFWwindow *window, GLFWkeyfun cbfun) |
| Sets the key callback. More...
|
|
GLFWcharfun | glfwSetCharCallback (GLFWwindow *window, GLFWcharfun cbfun) |
| Sets the Unicode character callback. More...
|
|
GLFWcharmodsfun | glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun cbfun) |
| Sets the Unicode character with modifiers callback. More...
|
|
GLFWmousebuttonfun | glfwSetMouseButtonCallback (GLFWwindow *window, GLFWmousebuttonfun cbfun) |
| Sets the mouse button callback. More...
|
|
GLFWcursorposfun | glfwSetCursorPosCallback (GLFWwindow *window, GLFWcursorposfun cbfun) |
| Sets the cursor position callback. More...
|
|
GLFWcursorenterfun | glfwSetCursorEnterCallback (GLFWwindow *window, GLFWcursorenterfun cbfun) |
| Sets the cursor enter/exit callback. More...
|
|
GLFWscrollfun | glfwSetScrollCallback (GLFWwindow *window, GLFWscrollfun cbfun) |
| Sets the scroll callback. More...
|
|
GLFWdropfun | glfwSetDropCallback (GLFWwindow *window, GLFWdropfun cbfun) |
| Sets the file drop callback. More...
|
|
int | glfwJoystickPresent (int joy) |
| Returns whether the specified joystick is present. More...
|
|
const float * | glfwGetJoystickAxes (int joy, int *count) |
| Returns the values of all axes of the specified joystick. More...
|
|
const unsigned char * | glfwGetJoystickButtons (int joy, int *count) |
| Returns the state of all buttons of the specified joystick. More...
|
|
const char * | glfwGetJoystickName (int joy) |
| Returns the name of the specified joystick. More...
|
|
void | glfwSetClipboardString (GLFWwindow *window, const char *string) |
| Sets the clipboard to the specified string. More...
|
|
const char * | glfwGetClipboardString (GLFWwindow *window) |
| Returns the contents of the clipboard as a string. More...
|
|
double | glfwGetTime (void) |
| Returns the value of the GLFW timer. More...
|
|
void | glfwSetTime (double time) |
| Sets the GLFW timer. More...
|
|
void | glfwMakeContextCurrent (GLFWwindow *window) |
| Makes the context of the specified window current for the calling thread. More...
|
|
GLFWwindow * | glfwGetCurrentContext (void) |
| Returns the window whose context is current on the calling thread. More...
|
|
void | glfwSwapBuffers (GLFWwindow *window) |
| Swaps the front and back buffers of the specified window. More...
|
|
void | glfwSwapInterval (int interval) |
| Sets the swap interval for the current context. More...
|
|
int | glfwExtensionSupported (const char *extension) |
| Returns whether the specified extension is available. More...
|
|
GLFWglproc | glfwGetProcAddress (const char *procname) |
| Returns the address of the specified function for the current context. More...
|
|