|
typedef void(* | GLFWglproc) (void) |
| Client API function pointer type. More...
|
|
typedef void(* | GLFWvkproc) (void) |
| Vulkan 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 error_code, const char *description) |
| The function pointer type for error callbacks. More...
|
|
typedef void(* | GLFWwindowposfun) (GLFWwindow *window, int xpos, int ypos) |
| The function pointer type for window position callbacks. More...
|
|
typedef void(* | GLFWwindowsizefun) (GLFWwindow *window, int width, int height) |
| The function pointer type for window size callbacks. More...
|
|
typedef void(* | GLFWwindowclosefun) (GLFWwindow *window) |
| The function pointer type for window close callbacks. More...
|
|
typedef void(* | GLFWwindowrefreshfun) (GLFWwindow *window) |
| The function pointer type for window content refresh callbacks. More...
|
|
typedef void(* | GLFWwindowfocusfun) (GLFWwindow *window, int focused) |
| The function pointer type for window focus callbacks. More...
|
|
typedef void(* | GLFWwindowiconifyfun) (GLFWwindow *window, int iconified) |
| The function pointer type for window iconify callbacks. More...
|
|
typedef void(* | GLFWwindowmaximizefun) (GLFWwindow *window, int maximized) |
| The function pointer type for window maximize callbacks. More...
|
|
typedef void(* | GLFWframebuffersizefun) (GLFWwindow *window, int width, int height) |
| The function pointer type for framebuffer size callbacks. More...
|
|
typedef void(* | GLFWwindowcontentscalefun) (GLFWwindow *window, float xscale, float yscale) |
| The function pointer type for window content scale callbacks. More...
|
|
typedef void(* | GLFWmousebuttonfun) (GLFWwindow *window, int button, int action, int mods) |
| The function pointer type for mouse button callbacks. More...
|
|
typedef void(* | GLFWcursorposfun) (GLFWwindow *window, double xpos, double ypos) |
| The function pointer type for cursor position callbacks. More...
|
|
typedef void(* | GLFWcursorenterfun) (GLFWwindow *window, int entered) |
| The function pointer type for cursor enter/leave callbacks. More...
|
|
typedef void(* | GLFWscrollfun) (GLFWwindow *window, double xoffset, double yoffset) |
| The function pointer type for scroll callbacks. More...
|
|
typedef void(* | GLFWkeyfun) (GLFWwindow *window, int key, int scancode, int action, int mods) |
| The function pointer type for keyboard key callbacks. More...
|
|
typedef void(* | GLFWcharfun) (GLFWwindow *window, unsigned int codepoint) |
| The function pointer type for Unicode character callbacks. More...
|
|
typedef void(* | GLFWcharmodsfun) (GLFWwindow *window, unsigned int codepoint, int mods) |
| The function pointer type for Unicode character with modifiers callbacks. More...
|
|
typedef void(* | GLFWdropfun) (GLFWwindow *window, int path_count, const char *paths[]) |
| The function pointer type for path drop callbacks. More...
|
|
typedef void(* | GLFWmonitorfun) (GLFWmonitor *monitor, int event) |
| The function pointer type for monitor configuration callbacks. More...
|
|
typedef void(* | GLFWjoystickfun) (int jid, int event) |
| The function pointer type for joystick 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...
|
|
typedef struct GLFWgamepadstate | GLFWgamepadstate |
| Gamepad input state. More...
|
|
|
int | glfwInit (void) |
| Initializes the GLFW library. More...
|
|
void | glfwTerminate (void) |
| Terminates the GLFW library. More...
|
|
void | glfwInitHint (int hint, int value) |
| Sets the specified init hint to the desired value. 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...
|
|
int | glfwGetError (const char **description) |
| Returns and clears the last error for the calling thread. More...
|
|
GLFWerrorfun | glfwSetErrorCallback (GLFWerrorfun callback) |
| 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 | glfwGetMonitorWorkarea (GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height) |
| Retrieves the work area of the monitor. More...
|
|
void | glfwGetMonitorPhysicalSize (GLFWmonitor *monitor, int *widthMM, int *heightMM) |
| Returns the physical size of the monitor. More...
|
|
void | glfwGetMonitorContentScale (GLFWmonitor *monitor, float *xscale, float *yscale) |
| Retrieves the content scale for the specified monitor. More...
|
|
const char * | glfwGetMonitorName (GLFWmonitor *monitor) |
| Returns the name of the specified monitor. More...
|
|
void | glfwSetMonitorUserPointer (GLFWmonitor *monitor, void *pointer) |
| Sets the user pointer of the specified monitor. More...
|
|
void * | glfwGetMonitorUserPointer (GLFWmonitor *monitor) |
| Returns the user pointer of the specified monitor. More...
|
|
GLFWmonitorfun | glfwSetMonitorCallback (GLFWmonitorfun callback) |
| 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 hint, int value) |
| Sets the specified window hint to the desired value. More...
|
|
void | glfwWindowHintString (int hint, const char *value) |
| 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 | glfwSetWindowIcon (GLFWwindow *window, int count, const GLFWimage *images) |
| Sets the icon for the specified window. More...
|
|
void | glfwGetWindowPos (GLFWwindow *window, int *xpos, int *ypos) |
| Retrieves the position of the content area of the specified window. More...
|
|
void | glfwSetWindowPos (GLFWwindow *window, int xpos, int ypos) |
| Sets the position of the content area of the specified window. More...
|
|
void | glfwGetWindowSize (GLFWwindow *window, int *width, int *height) |
| Retrieves the size of the content area of the specified window. More...
|
|
void | glfwSetWindowSizeLimits (GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight) |
| Sets the size limits of the specified window. More...
|
|
void | glfwSetWindowAspectRatio (GLFWwindow *window, int numer, int denom) |
| Sets the aspect ratio of the specified window. More...
|
|
void | glfwSetWindowSize (GLFWwindow *window, int width, int height) |
| Sets the size of the content 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 | glfwGetWindowContentScale (GLFWwindow *window, float *xscale, float *yscale) |
| Retrieves the content scale for the specified window. More...
|
|
float | glfwGetWindowOpacity (GLFWwindow *window) |
| Returns the opacity of the whole window. More...
|
|
void | glfwSetWindowOpacity (GLFWwindow *window, float opacity) |
| Sets the opacity of the whole window. More...
|
|
void | glfwIconifyWindow (GLFWwindow *window) |
| Iconifies the specified window. More...
|
|
void | glfwRestoreWindow (GLFWwindow *window) |
| Restores the specified window. More...
|
|
void | glfwMaximizeWindow (GLFWwindow *window) |
| Maximizes the specified window. More...
|
|
void | glfwShowWindow (GLFWwindow *window) |
| Makes the specified window visible. More...
|
|
void | glfwHideWindow (GLFWwindow *window) |
| Hides the specified window. More...
|
|
void | glfwFocusWindow (GLFWwindow *window) |
| Brings the specified window to front and sets input focus. More...
|
|
void | glfwRequestWindowAttention (GLFWwindow *window) |
| Requests user attention to the specified window. More...
|
|
GLFWmonitor * | glfwGetWindowMonitor (GLFWwindow *window) |
| Returns the monitor that the window uses for full screen mode. More...
|
|
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. More...
|
|
int | glfwGetWindowAttrib (GLFWwindow *window, int attrib) |
| Returns an attribute of the specified window. More...
|
|
void | glfwSetWindowAttrib (GLFWwindow *window, int attrib, int value) |
| Sets 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 callback) |
| Sets the position callback for the specified window. More...
|
|
GLFWwindowsizefun | glfwSetWindowSizeCallback (GLFWwindow *window, GLFWwindowsizefun callback) |
| Sets the size callback for the specified window. More...
|
|
GLFWwindowclosefun | glfwSetWindowCloseCallback (GLFWwindow *window, GLFWwindowclosefun callback) |
| Sets the close callback for the specified window. More...
|
|
GLFWwindowrefreshfun | glfwSetWindowRefreshCallback (GLFWwindow *window, GLFWwindowrefreshfun callback) |
| Sets the refresh callback for the specified window. More...
|
|
GLFWwindowfocusfun | glfwSetWindowFocusCallback (GLFWwindow *window, GLFWwindowfocusfun callback) |
| Sets the focus callback for the specified window. More...
|
|
GLFWwindowiconifyfun | glfwSetWindowIconifyCallback (GLFWwindow *window, GLFWwindowiconifyfun callback) |
| Sets the iconify callback for the specified window. More...
|
|
GLFWwindowmaximizefun | glfwSetWindowMaximizeCallback (GLFWwindow *window, GLFWwindowmaximizefun callback) |
| Sets the maximize callback for the specified window. More...
|
|
GLFWframebuffersizefun | glfwSetFramebufferSizeCallback (GLFWwindow *window, GLFWframebuffersizefun callback) |
| Sets the framebuffer resize callback for the specified window. More...
|
|
GLFWwindowcontentscalefun | glfwSetWindowContentScaleCallback (GLFWwindow *window, GLFWwindowcontentscalefun callback) |
| Sets the window content scale 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 | glfwWaitEventsTimeout (double timeout) |
| Waits with timeout 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 | glfwRawMouseMotionSupported (void) |
| Returns whether raw mouse motion is supported. More...
|
|
const char * | glfwGetKeyName (int key, int scancode) |
| Returns the layout-specific name of the specified printable key. More...
|
|
int | glfwGetKeyScancode (int key) |
| Returns the platform-specific scancode of the specified key. 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 content area of the window. More...
|
|
void | glfwSetCursorPos (GLFWwindow *window, double xpos, double ypos) |
| Sets the position of the cursor, relative to the content 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 callback) |
| Sets the key callback. More...
|
|
GLFWcharfun | glfwSetCharCallback (GLFWwindow *window, GLFWcharfun callback) |
| Sets the Unicode character callback. More...
|
|
GLFWcharmodsfun | glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun callback) |
| Sets the Unicode character with modifiers callback. More...
|
|
GLFWmousebuttonfun | glfwSetMouseButtonCallback (GLFWwindow *window, GLFWmousebuttonfun callback) |
| Sets the mouse button callback. More...
|
|
GLFWcursorposfun | glfwSetCursorPosCallback (GLFWwindow *window, GLFWcursorposfun callback) |
| Sets the cursor position callback. More...
|
|
GLFWcursorenterfun | glfwSetCursorEnterCallback (GLFWwindow *window, GLFWcursorenterfun callback) |
| Sets the cursor enter/leave callback. More...
|
|
GLFWscrollfun | glfwSetScrollCallback (GLFWwindow *window, GLFWscrollfun callback) |
| Sets the scroll callback. More...
|
|
GLFWdropfun | glfwSetDropCallback (GLFWwindow *window, GLFWdropfun callback) |
| Sets the path drop callback. More...
|
|
int | glfwJoystickPresent (int jid) |
| Returns whether the specified joystick is present. More...
|
|
const float * | glfwGetJoystickAxes (int jid, int *count) |
| Returns the values of all axes of the specified joystick. More...
|
|
const unsigned char * | glfwGetJoystickButtons (int jid, int *count) |
| Returns the state of all buttons of the specified joystick. More...
|
|
const unsigned char * | glfwGetJoystickHats (int jid, int *count) |
| Returns the state of all hats of the specified joystick. More...
|
|
const char * | glfwGetJoystickName (int jid) |
| Returns the name of the specified joystick. More...
|
|
const char * | glfwGetJoystickGUID (int jid) |
| Returns the SDL compatible GUID of the specified joystick. More...
|
|
void | glfwSetJoystickUserPointer (int jid, void *pointer) |
| Sets the user pointer of the specified joystick. More...
|
|
void * | glfwGetJoystickUserPointer (int jid) |
| Returns the user pointer of the specified joystick. More...
|
|
int | glfwJoystickIsGamepad (int jid) |
| Returns whether the specified joystick has a gamepad mapping. More...
|
|
GLFWjoystickfun | glfwSetJoystickCallback (GLFWjoystickfun callback) |
| Sets the joystick configuration callback. More...
|
|
int | glfwUpdateGamepadMappings (const char *string) |
| Adds the specified SDL_GameControllerDB gamepad mappings. More...
|
|
const char * | glfwGetGamepadName (int jid) |
| Returns the human-readable gamepad name for the specified joystick. More...
|
|
int | glfwGetGamepadState (int jid, GLFWgamepadstate *state) |
| Retrieves the state of the specified joystick remapped as a gamepad. 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 GLFW time. More...
|
|
void | glfwSetTime (double time) |
| Sets the GLFW time. More...
|
|
uint64_t | glfwGetTimerValue (void) |
| Returns the current value of the raw timer. More...
|
|
uint64_t | glfwGetTimerFrequency (void) |
| Returns the frequency, in Hz, of the raw 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...
|
|
int | glfwVulkanSupported (void) |
| Returns whether the Vulkan loader and an ICD have been found. More...
|
|
const char ** | glfwGetRequiredInstanceExtensions (uint32_t *count) |
| Returns the Vulkan instance extensions required by GLFW. More...
|
|
GLFWvkproc | glfwGetInstanceProcAddress (VkInstance instance, const char *procname) |
| Returns the address of the specified Vulkan instance function. More...
|
|
int | glfwGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily) |
| Returns whether the specified queue family can present images. More...
|
|
VkResult | glfwCreateWindowSurface (VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface) |
| Creates a Vulkan surface for the specified window. More...
|
|