|
typedef void(* | GLFWglproc) (void) |
| Client API function pointer type.
|
|
typedef void(* | GLFWvkproc) (void) |
| Vulkan API function pointer type.
|
|
typedef struct GLFWmonitor | GLFWmonitor |
| Opaque monitor object.
|
|
typedef struct GLFWwindow | GLFWwindow |
| Opaque window object.
|
|
typedef struct GLFWcursor | GLFWcursor |
| Opaque cursor object.
|
|
typedef void(* | GLFWerrorfun) (int error_code, const char *description) |
| The function pointer type for error callbacks.
|
|
typedef void(* | GLFWwindowposfun) (GLFWwindow *window, int xpos, int ypos) |
| The function pointer type for window position callbacks.
|
|
typedef void(* | GLFWwindowsizefun) (GLFWwindow *window, int width, int height) |
| The function pointer type for window size callbacks.
|
|
typedef void(* | GLFWwindowclosefun) (GLFWwindow *window) |
| The function pointer type for window close callbacks.
|
|
typedef void(* | GLFWwindowrefreshfun) (GLFWwindow *window) |
| The function pointer type for window content refresh callbacks.
|
|
typedef void(* | GLFWwindowfocusfun) (GLFWwindow *window, int focused) |
| The function pointer type for window focus callbacks.
|
|
typedef void(* | GLFWwindowiconifyfun) (GLFWwindow *window, int iconified) |
| The function pointer type for window iconify callbacks.
|
|
typedef void(* | GLFWwindowmaximizefun) (GLFWwindow *window, int maximized) |
| The function pointer type for window maximize callbacks.
|
|
typedef void(* | GLFWframebuffersizefun) (GLFWwindow *window, int width, int height) |
| The function pointer type for framebuffer size callbacks.
|
|
typedef void(* | GLFWwindowcontentscalefun) (GLFWwindow *window, float xscale, float yscale) |
| The function pointer type for window content scale callbacks.
|
|
typedef void(* | GLFWmousebuttonfun) (GLFWwindow *window, int button, int action, int mods) |
| The function pointer type for mouse button callbacks.
|
|
typedef void(* | GLFWcursorposfun) (GLFWwindow *window, double xpos, double ypos) |
| The function pointer type for cursor position callbacks.
|
|
typedef void(* | GLFWcursorenterfun) (GLFWwindow *window, int entered) |
| The function pointer type for cursor enter/leave callbacks.
|
|
typedef void(* | GLFWscrollfun) (GLFWwindow *window, double xoffset, double yoffset) |
| The function pointer type for scroll callbacks.
|
|
typedef void(* | GLFWkeyfun) (GLFWwindow *window, int key, int scancode, int action, int mods) |
| The function pointer type for keyboard key callbacks.
|
|
typedef void(* | GLFWcharfun) (GLFWwindow *window, unsigned int codepoint) |
| The function pointer type for Unicode character callbacks.
|
|
typedef void(* | GLFWcharmodsfun) (GLFWwindow *window, unsigned int codepoint, int mods) |
| The function pointer type for Unicode character with modifiers callbacks.
|
|
typedef void(* | GLFWdropfun) (GLFWwindow *window, int path_count, const char *paths[]) |
| The function pointer type for path drop callbacks.
|
|
typedef void(* | GLFWmonitorfun) (GLFWmonitor *monitor, int event) |
| The function pointer type for monitor configuration callbacks.
|
|
typedef void(* | GLFWjoystickfun) (int jid, int event) |
| The function pointer type for joystick configuration callbacks.
|
|
typedef struct GLFWvidmode | GLFWvidmode |
| Video mode type.
|
|
typedef struct GLFWgammaramp | GLFWgammaramp |
| Gamma ramp.
|
|
typedef struct GLFWimage | GLFWimage |
| Image data.
|
|
typedef struct GLFWgamepadstate | GLFWgamepadstate |
| Gamepad input state.
|
|
|
int | glfwInit (void) |
| Initializes the GLFW library.
|
|
void | glfwTerminate (void) |
| Terminates the GLFW library.
|
|
void | glfwInitHint (int hint, int value) |
| Sets the specified init hint to the desired value.
|
|
void | glfwGetVersion (int *major, int *minor, int *rev) |
| Retrieves the version of the GLFW library.
|
|
const char * | glfwGetVersionString (void) |
| Returns a string describing the compile-time configuration.
|
|
int | glfwGetError (const char **description) |
| Returns and clears the last error for the calling thread.
|
|
GLFWerrorfun | glfwSetErrorCallback (GLFWerrorfun callback) |
| Sets the error callback.
|
|
GLFWmonitor ** | glfwGetMonitors (int *count) |
| Returns the currently connected monitors.
|
|
GLFWmonitor * | glfwGetPrimaryMonitor (void) |
| Returns the primary monitor.
|
|
void | glfwGetMonitorPos (GLFWmonitor *monitor, int *xpos, int *ypos) |
| Returns the position of the monitor's viewport on the virtual screen.
|
|
void | glfwGetMonitorWorkarea (GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height) |
| Retrieves the work area of the monitor.
|
|
void | glfwGetMonitorPhysicalSize (GLFWmonitor *monitor, int *widthMM, int *heightMM) |
| Returns the physical size of the monitor.
|
|
void | glfwGetMonitorContentScale (GLFWmonitor *monitor, float *xscale, float *yscale) |
| Retrieves the content scale for the specified monitor.
|
|
const char * | glfwGetMonitorName (GLFWmonitor *monitor) |
| Returns the name of the specified monitor.
|
|
void | glfwSetMonitorUserPointer (GLFWmonitor *monitor, void *pointer) |
| Sets the user pointer of the specified monitor.
|
|
void * | glfwGetMonitorUserPointer (GLFWmonitor *monitor) |
| Returns the user pointer of the specified monitor.
|
|
GLFWmonitorfun | glfwSetMonitorCallback (GLFWmonitorfun callback) |
| Sets the monitor configuration callback.
|
|
const GLFWvidmode * | glfwGetVideoModes (GLFWmonitor *monitor, int *count) |
| Returns the available video modes for the specified monitor.
|
|
const GLFWvidmode * | glfwGetVideoMode (GLFWmonitor *monitor) |
| Returns the current mode of the specified monitor.
|
|
void | glfwSetGamma (GLFWmonitor *monitor, float gamma) |
| Generates a gamma ramp and sets it for the specified monitor.
|
|
const GLFWgammaramp * | glfwGetGammaRamp (GLFWmonitor *monitor) |
| Returns the current gamma ramp for the specified monitor.
|
|
void | glfwSetGammaRamp (GLFWmonitor *monitor, const GLFWgammaramp *ramp) |
| Sets the current gamma ramp for the specified monitor.
|
|
void | glfwDefaultWindowHints (void) |
| Resets all window hints to their default values.
|
|
void | glfwWindowHint (int hint, int value) |
| Sets the specified window hint to the desired value.
|
|
void | glfwWindowHintString (int hint, const char *value) |
| Sets the specified window hint to the desired value.
|
|
GLFWwindow * | glfwCreateWindow (int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share) |
| Creates a window and its associated context.
|
|
void | glfwDestroyWindow (GLFWwindow *window) |
| Destroys the specified window and its context.
|
|
int | glfwWindowShouldClose (GLFWwindow *window) |
| Checks the close flag of the specified window.
|
|
void | glfwSetWindowShouldClose (GLFWwindow *window, int value) |
| Sets the close flag of the specified window.
|
|
void | glfwSetWindowTitle (GLFWwindow *window, const char *title) |
| Sets the title of the specified window.
|
|
void | glfwSetWindowIcon (GLFWwindow *window, int count, const GLFWimage *images) |
| Sets the icon for the specified window.
|
|
void | glfwGetWindowPos (GLFWwindow *window, int *xpos, int *ypos) |
| Retrieves the position of the content area of the specified window.
|
|
void | glfwSetWindowPos (GLFWwindow *window, int xpos, int ypos) |
| Sets the position of the content area of the specified window.
|
|
void | glfwGetWindowSize (GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the content area of the specified window.
|
|
void | glfwSetWindowSizeLimits (GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight) |
| Sets the size limits of the specified window.
|
|
void | glfwSetWindowAspectRatio (GLFWwindow *window, int numer, int denom) |
| Sets the aspect ratio of the specified window.
|
|
void | glfwSetWindowSize (GLFWwindow *window, int width, int height) |
| Sets the size of the content area of the specified window.
|
|
void | glfwGetFramebufferSize (GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the framebuffer of the specified window.
|
|
void | glfwGetWindowFrameSize (GLFWwindow *window, int *left, int *top, int *right, int *bottom) |
| Retrieves the size of the frame of the window.
|
|
void | glfwGetWindowContentScale (GLFWwindow *window, float *xscale, float *yscale) |
| Retrieves the content scale for the specified window.
|
|
float | glfwGetWindowOpacity (GLFWwindow *window) |
| Returns the opacity of the whole window.
|
|
void | glfwSetWindowOpacity (GLFWwindow *window, float opacity) |
| Sets the opacity of the whole window.
|
|
void | glfwIconifyWindow (GLFWwindow *window) |
| Iconifies the specified window.
|
|
void | glfwRestoreWindow (GLFWwindow *window) |
| Restores the specified window.
|
|
void | glfwMaximizeWindow (GLFWwindow *window) |
| Maximizes the specified window.
|
|
void | glfwShowWindow (GLFWwindow *window) |
| Makes the specified window visible.
|
|
void | glfwHideWindow (GLFWwindow *window) |
| Hides the specified window.
|
|
void | glfwFocusWindow (GLFWwindow *window) |
| Brings the specified window to front and sets input focus.
|
|
void | glfwRequestWindowAttention (GLFWwindow *window) |
| Requests user attention to the specified window.
|
|
GLFWmonitor * | glfwGetWindowMonitor (GLFWwindow *window) |
| Returns the monitor that the window uses for full screen mode.
|
|
void | glfwSetWindowMonitor (GLFWwindow *window, GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate) |
| Sets the mode, monitor, video mode and placement of a window.
|
|
int | glfwGetWindowAttrib (GLFWwindow *window, int attrib) |
| Returns an attribute of the specified window.
|
|
void | glfwSetWindowAttrib (GLFWwindow *window, int attrib, int value) |
| Sets an attribute of the specified window.
|
|
void | glfwSetWindowUserPointer (GLFWwindow *window, void *pointer) |
| Sets the user pointer of the specified window.
|
|
void * | glfwGetWindowUserPointer (GLFWwindow *window) |
| Returns the user pointer of the specified window.
|
|
GLFWwindowposfun | glfwSetWindowPosCallback (GLFWwindow *window, GLFWwindowposfun callback) |
| Sets the position callback for the specified window.
|
|
GLFWwindowsizefun | glfwSetWindowSizeCallback (GLFWwindow *window, GLFWwindowsizefun callback) |
| Sets the size callback for the specified window.
|
|
GLFWwindowclosefun | glfwSetWindowCloseCallback (GLFWwindow *window, GLFWwindowclosefun callback) |
| Sets the close callback for the specified window.
|
|
GLFWwindowrefreshfun | glfwSetWindowRefreshCallback (GLFWwindow *window, GLFWwindowrefreshfun callback) |
| Sets the refresh callback for the specified window.
|
|
GLFWwindowfocusfun | glfwSetWindowFocusCallback (GLFWwindow *window, GLFWwindowfocusfun callback) |
| Sets the focus callback for the specified window.
|
|
GLFWwindowiconifyfun | glfwSetWindowIconifyCallback (GLFWwindow *window, GLFWwindowiconifyfun callback) |
| Sets the iconify callback for the specified window.
|
|
GLFWwindowmaximizefun | glfwSetWindowMaximizeCallback (GLFWwindow *window, GLFWwindowmaximizefun callback) |
| Sets the maximize callback for the specified window.
|
|
GLFWframebuffersizefun | glfwSetFramebufferSizeCallback (GLFWwindow *window, GLFWframebuffersizefun callback) |
| Sets the framebuffer resize callback for the specified window.
|
|
GLFWwindowcontentscalefun | glfwSetWindowContentScaleCallback (GLFWwindow *window, GLFWwindowcontentscalefun callback) |
| Sets the window content scale callback for the specified window.
|
|
void | glfwPollEvents (void) |
| Processes all pending events.
|
|
void | glfwWaitEvents (void) |
| Waits until events are queued and processes them.
|
|
void | glfwWaitEventsTimeout (double timeout) |
| Waits with timeout until events are queued and processes them.
|
|
void | glfwPostEmptyEvent (void) |
| Posts an empty event to the event queue.
|
|
int | glfwGetInputMode (GLFWwindow *window, int mode) |
| Returns the value of an input option for the specified window.
|
|
void | glfwSetInputMode (GLFWwindow *window, int mode, int value) |
| Sets an input option for the specified window.
|
|
int | glfwRawMouseMotionSupported (void) |
| Returns whether raw mouse motion is supported.
|
|
const char * | glfwGetKeyName (int key, int scancode) |
| Returns the layout-specific name of the specified printable key.
|
|
int | glfwGetKeyScancode (int key) |
| Returns the platform-specific scancode of the specified key.
|
|
int | glfwGetKey (GLFWwindow *window, int key) |
| Returns the last reported state of a keyboard key for the specified window.
|
|
int | glfwGetMouseButton (GLFWwindow *window, int button) |
| Returns the last reported state of a mouse button for the specified window.
|
|
void | glfwGetCursorPos (GLFWwindow *window, double *xpos, double *ypos) |
| Retrieves the position of the cursor relative to the content area of the window.
|
|
void | glfwSetCursorPos (GLFWwindow *window, double xpos, double ypos) |
| Sets the position of the cursor, relative to the content area of the window.
|
|
GLFWcursor * | glfwCreateCursor (const GLFWimage *image, int xhot, int yhot) |
| Creates a custom cursor.
|
|
GLFWcursor * | glfwCreateStandardCursor (int shape) |
| Creates a cursor with a standard shape.
|
|
void | glfwDestroyCursor (GLFWcursor *cursor) |
| Destroys a cursor.
|
|
void | glfwSetCursor (GLFWwindow *window, GLFWcursor *cursor) |
| Sets the cursor for the window.
|
|
GLFWkeyfun | glfwSetKeyCallback (GLFWwindow *window, GLFWkeyfun callback) |
| Sets the key callback.
|
|
GLFWcharfun | glfwSetCharCallback (GLFWwindow *window, GLFWcharfun callback) |
| Sets the Unicode character callback.
|
|
GLFWcharmodsfun | glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun callback) |
| Sets the Unicode character with modifiers callback.
|
|
GLFWmousebuttonfun | glfwSetMouseButtonCallback (GLFWwindow *window, GLFWmousebuttonfun callback) |
| Sets the mouse button callback.
|
|
GLFWcursorposfun | glfwSetCursorPosCallback (GLFWwindow *window, GLFWcursorposfun callback) |
| Sets the cursor position callback.
|
|
GLFWcursorenterfun | glfwSetCursorEnterCallback (GLFWwindow *window, GLFWcursorenterfun callback) |
| Sets the cursor enter/leave callback.
|
|
GLFWscrollfun | glfwSetScrollCallback (GLFWwindow *window, GLFWscrollfun callback) |
| Sets the scroll callback.
|
|
GLFWdropfun | glfwSetDropCallback (GLFWwindow *window, GLFWdropfun callback) |
| Sets the path drop callback.
|
|
int | glfwJoystickPresent (int jid) |
| Returns whether the specified joystick is present.
|
|
const float * | glfwGetJoystickAxes (int jid, int *count) |
| Returns the values of all axes of the specified joystick.
|
|
const unsigned char * | glfwGetJoystickButtons (int jid, int *count) |
| Returns the state of all buttons of the specified joystick.
|
|
const unsigned char * | glfwGetJoystickHats (int jid, int *count) |
| Returns the state of all hats of the specified joystick.
|
|
const char * | glfwGetJoystickName (int jid) |
| Returns the name of the specified joystick.
|
|
const char * | glfwGetJoystickGUID (int jid) |
| Returns the SDL compatible GUID of the specified joystick.
|
|
void | glfwSetJoystickUserPointer (int jid, void *pointer) |
| Sets the user pointer of the specified joystick.
|
|
void * | glfwGetJoystickUserPointer (int jid) |
| Returns the user pointer of the specified joystick.
|
|
int | glfwJoystickIsGamepad (int jid) |
| Returns whether the specified joystick has a gamepad mapping.
|
|
GLFWjoystickfun | glfwSetJoystickCallback (GLFWjoystickfun callback) |
| Sets the joystick configuration callback.
|
|
int | glfwUpdateGamepadMappings (const char *string) |
| Adds the specified SDL_GameControllerDB gamepad mappings.
|
|
const char * | glfwGetGamepadName (int jid) |
| Returns the human-readable gamepad name for the specified joystick.
|
|
int | glfwGetGamepadState (int jid, GLFWgamepadstate *state) |
| Retrieves the state of the specified joystick remapped as a gamepad.
|
|
void | glfwSetClipboardString (GLFWwindow *window, const char *string) |
| Sets the clipboard to the specified string.
|
|
const char * | glfwGetClipboardString (GLFWwindow *window) |
| Returns the contents of the clipboard as a string.
|
|
double | glfwGetTime (void) |
| Returns the GLFW time.
|
|
void | glfwSetTime (double time) |
| Sets the GLFW time.
|
|
uint64_t | glfwGetTimerValue (void) |
| Returns the current value of the raw timer.
|
|
uint64_t | glfwGetTimerFrequency (void) |
| Returns the frequency, in Hz, of the raw timer.
|
|
void | glfwMakeContextCurrent (GLFWwindow *window) |
| Makes the context of the specified window current for the calling thread.
|
|
GLFWwindow * | glfwGetCurrentContext (void) |
| Returns the window whose context is current on the calling thread.
|
|
void | glfwSwapBuffers (GLFWwindow *window) |
| Swaps the front and back buffers of the specified window.
|
|
void | glfwSwapInterval (int interval) |
| Sets the swap interval for the current context.
|
|
int | glfwExtensionSupported (const char *extension) |
| Returns whether the specified extension is available.
|
|
GLFWglproc | glfwGetProcAddress (const char *procname) |
| Returns the address of the specified function for the current context.
|
|
int | glfwVulkanSupported (void) |
| Returns whether the Vulkan loader and an ICD have been found.
|
|
const char ** | glfwGetRequiredInstanceExtensions (uint32_t *count) |
| Returns the Vulkan instance extensions required by GLFW.
|
|
GLFWvkproc | glfwGetInstanceProcAddress (VkInstance instance, const char *procname) |
| Returns the address of the specified Vulkan instance function.
|
|
int | glfwGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily) |
| Returns whether the specified queue family can present images.
|
|
VkResult | glfwCreateWindowSurface (VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface) |
| Creates a Vulkan surface for the specified window.
|
|