#include "../include/GLFW/glfw3.h"
Go to the source code of this file.
Classes | |
struct | _GLFWctxconfig |
Context configuration. More... | |
struct | _GLFWcursor |
Cursor structure. More... | |
struct | _GLFWfbconfig |
Framebuffer configuration. More... | |
struct | _GLFWlibrary |
Library global data. More... | |
struct | _GLFWmonitor |
Monitor structure. More... | |
struct | _GLFWwindow |
Window and context structure. More... | |
struct | _GLFWwndconfig |
Window configuration. More... | |
Defines | |
#define | _GLFW_REQUIRE_INIT() |
#define | _GLFW_REQUIRE_INIT_OR_RETURN(x) |
#define | _GLFW_SWAP_POINTERS(x, y) |
#define | _GLFW_VERSION_NUMBER "3.1.2" |
#define | GL_GLEXT_LEGACY |
Typedefs | |
typedef struct _GLFWctxconfig | _GLFWctxconfig |
typedef struct _GLFWcursor | _GLFWcursor |
typedef struct _GLFWfbconfig | _GLFWfbconfig |
typedef struct _GLFWlibrary | _GLFWlibrary |
typedef struct _GLFWmonitor | _GLFWmonitor |
typedef struct _GLFWwindow | _GLFWwindow |
typedef struct _GLFWwndconfig | _GLFWwndconfig |
typedef void(APIENTRY * | PFNGLCLEARPROC )(GLbitfield) |
typedef void(APIENTRY * | PFNGLGETINTEGERVPROC )(GLenum, GLint *) |
typedef const GLubyte *(APIENTRY * | PFNGLGETSTRINGPROC )(GLenum) |
Functions | |
void | _glfwAllocGammaArrays (GLFWgammaramp *ramp, unsigned int size) |
_GLFWmonitor * | _glfwAllocMonitor (const char *name, int widthMM, int heightMM) |
Allocates and returns a monitor object with the specified name and dimensions. | |
const _GLFWfbconfig * | _glfwChooseFBConfig (const _GLFWfbconfig *desired, const _GLFWfbconfig *alternatives, unsigned int count) |
Chooses the framebuffer config that best matches the desired one. | |
const GLFWvidmode * | _glfwChooseVideoMode (_GLFWmonitor *monitor, const GLFWvidmode *desired) |
int | _glfwCompareVideoModes (const GLFWvidmode *first, const GLFWvidmode *second) |
Performs lexical comparison between two GLFWvidmode structures. | |
void | _glfwFreeGammaArrays (GLFWgammaramp *ramp) |
void | _glfwFreeMonitor (_GLFWmonitor *monitor) |
Frees a monitor object and any data associated with it. | |
void | _glfwFreeMonitors (_GLFWmonitor **monitors, int count) |
void | _glfwInputChar (_GLFWwindow *window, unsigned int codepoint, int mods, int plain) |
Notifies shared code of a Unicode character input event. | |
void | _glfwInputCursorEnter (_GLFWwindow *window, int entered) |
Notifies shared code of a cursor enter/leave event. | |
void | _glfwInputCursorMotion (_GLFWwindow *window, double x, double y) |
Notifies shared code of a cursor motion event. | |
void | _glfwInputDrop (_GLFWwindow *window, int count, const char **names) |
Notifies dropped object over window. | |
void | _glfwInputError (int error, const char *format,...) |
Notifies shared code of an error. | |
void | _glfwInputFramebufferSize (_GLFWwindow *window, int width, int height) |
Notifies shared code of a framebuffer resize event. | |
void | _glfwInputKey (_GLFWwindow *window, int key, int scancode, int action, int mods) |
Notifies shared code of a physical key event. | |
void | _glfwInputMonitorChange (void) |
void | _glfwInputMouseClick (_GLFWwindow *window, int button, int action, int mods) |
Notifies shared code of a mouse button click event. | |
void | _glfwInputScroll (_GLFWwindow *window, double x, double y) |
Notifies shared code of a scroll event. | |
void | _glfwInputWindowCloseRequest (_GLFWwindow *window) |
Notifies shared code of a window close request event. | |
void | _glfwInputWindowDamage (_GLFWwindow *window) |
Notifies shared code of a window damage event. | |
void | _glfwInputWindowFocus (_GLFWwindow *window, GLboolean focused) |
Notifies shared code of a window focus event. | |
void | _glfwInputWindowIconify (_GLFWwindow *window, int iconified) |
Notifies shared code of a window iconification event. | |
void | _glfwInputWindowPos (_GLFWwindow *window, int xpos, int ypos) |
Notifies shared code of a window movement event. | |
void | _glfwInputWindowSize (_GLFWwindow *window, int width, int height) |
Notifies shared code of a window resize event. | |
GLboolean | _glfwIsValidContext (const _GLFWctxconfig *ctxconfig) |
Checks whether the current context fulfils the specified hard constraints. | |
GLboolean | _glfwIsValidContextConfig (const _GLFWctxconfig *ctxconfig) |
Checks whether the desired context attributes are valid. | |
void | _glfwPlatformApplyCursorMode (_GLFWwindow *window) |
Applies the cursor mode of the specified window to the system. | |
int | _glfwPlatformCreateCursor (_GLFWcursor *cursor, const GLFWimage *image, int xhot, int yhot) |
int | _glfwPlatformCreateStandardCursor (_GLFWcursor *cursor, int shape) |
int | _glfwPlatformCreateWindow (_GLFWwindow *window, const _GLFWwndconfig *wndconfig, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig) |
void | _glfwPlatformDestroyCursor (_GLFWcursor *cursor) |
void | _glfwPlatformDestroyWindow (_GLFWwindow *window) |
int | _glfwPlatformExtensionSupported (const char *extension) |
const char * | _glfwPlatformGetClipboardString (_GLFWwindow *window) |
_GLFWwindow * | _glfwPlatformGetCurrentContext (void) |
void | _glfwPlatformGetCursorPos (_GLFWwindow *window, double *xpos, double *ypos) |
void | _glfwPlatformGetFramebufferSize (_GLFWwindow *window, int *width, int *height) |
void | _glfwPlatformGetGammaRamp (_GLFWmonitor *monitor, GLFWgammaramp *ramp) |
const float * | _glfwPlatformGetJoystickAxes (int joy, int *count) |
const unsigned char * | _glfwPlatformGetJoystickButtons (int joy, int *count) |
const char * | _glfwPlatformGetJoystickName (int joy) |
void | _glfwPlatformGetMonitorPos (_GLFWmonitor *monitor, int *xpos, int *ypos) |
_GLFWmonitor ** | _glfwPlatformGetMonitors (int *count) |
GLFWglproc | _glfwPlatformGetProcAddress (const char *procname) |
double | _glfwPlatformGetTime (void) |
const char * | _glfwPlatformGetVersionString (void) |
void | _glfwPlatformGetVideoMode (_GLFWmonitor *monitor, GLFWvidmode *mode) |
GLFWvidmode * | _glfwPlatformGetVideoModes (_GLFWmonitor *monitor, int *count) |
void | _glfwPlatformGetWindowFrameSize (_GLFWwindow *window, int *left, int *top, int *right, int *bottom) |
void | _glfwPlatformGetWindowPos (_GLFWwindow *window, int *xpos, int *ypos) |
void | _glfwPlatformGetWindowSize (_GLFWwindow *window, int *width, int *height) |
void | _glfwPlatformHideWindow (_GLFWwindow *window) |
void | _glfwPlatformIconifyWindow (_GLFWwindow *window) |
int | _glfwPlatformInit (void) |
Initializes the platform-specific part of the library. | |
GLboolean | _glfwPlatformIsSameMonitor (_GLFWmonitor *first, _GLFWmonitor *second) |
Checks whether two monitor objects represent the same monitor. | |
int | _glfwPlatformJoystickPresent (int joy) |
void | _glfwPlatformMakeContextCurrent (_GLFWwindow *window) |
void | _glfwPlatformPollEvents (void) |
void | _glfwPlatformPostEmptyEvent (void) |
void | _glfwPlatformRestoreWindow (_GLFWwindow *window) |
void | _glfwPlatformSetClipboardString (_GLFWwindow *window, const char *string) |
void | _glfwPlatformSetCursor (_GLFWwindow *window, _GLFWcursor *cursor) |
void | _glfwPlatformSetCursorPos (_GLFWwindow *window, double xpos, double ypos) |
void | _glfwPlatformSetGammaRamp (_GLFWmonitor *monitor, const GLFWgammaramp *ramp) |
void | _glfwPlatformSetTime (double time) |
void | _glfwPlatformSetWindowPos (_GLFWwindow *window, int xpos, int ypos) |
void | _glfwPlatformSetWindowSize (_GLFWwindow *window, int width, int height) |
void | _glfwPlatformSetWindowTitle (_GLFWwindow *window, const char *title) |
void | _glfwPlatformShowWindow (_GLFWwindow *window) |
void | _glfwPlatformSwapBuffers (_GLFWwindow *window) |
void | _glfwPlatformSwapInterval (int interval) |
void | _glfwPlatformTerminate (void) |
Terminates the platform-specific part of the library. | |
void | _glfwPlatformUnhideWindow (_GLFWwindow *window) |
void | _glfwPlatformWaitEvents (void) |
int | _glfwPlatformWindowFocused (_GLFWwindow *window) |
Returns whether the window is focused. | |
int | _glfwPlatformWindowIconified (_GLFWwindow *window) |
Returns whether the window is iconified. | |
int | _glfwPlatformWindowVisible (_GLFWwindow *window) |
Returns whether the window is visible. | |
GLboolean | _glfwRefreshContextAttribs (const _GLFWctxconfig *ctxconfig) |
Retrieves the attributes of the current context. | |
void | _glfwSplitBPP (int bpp, int *red, int *green, int *blue) |
Splits a color depth into red, green and blue bit depths. | |
int | _glfwStringInExtensionString (const char *string, const char *extensions) |
Searches an extension string for the specified extension. | |
Variables | |
_GLFWlibrary | _glfw |
All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit that has not been followed by a call to glfwTerminate. | |
GLboolean | _glfwInitialized |
Flag indicating whether GLFW has been successfully initialized. |
#define _GLFW_REQUIRE_INIT | ( | ) |
if (!_glfwInitialized) \ { \ _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ return; \ }
Definition at line 131 of file internal.h.
#define _GLFW_REQUIRE_INIT_OR_RETURN | ( | x | ) |
if (!_glfwInitialized) \ { \ _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ return x; \ }
Definition at line 137 of file internal.h.
#define _GLFW_SWAP_POINTERS | ( | x, | |
y | |||
) |
#define _GLFW_VERSION_NUMBER "3.1.2" |
Definition at line 36 of file internal.h.
#define GL_GLEXT_LEGACY |
Definition at line 61 of file internal.h.
typedef struct _GLFWctxconfig _GLFWctxconfig |
Definition at line 77 of file internal.h.
typedef struct _GLFWcursor _GLFWcursor |
Definition at line 82 of file internal.h.
typedef struct _GLFWfbconfig _GLFWfbconfig |
Definition at line 78 of file internal.h.
typedef struct _GLFWlibrary _GLFWlibrary |
Definition at line 80 of file internal.h.
typedef struct _GLFWmonitor _GLFWmonitor |
Definition at line 81 of file internal.h.
typedef struct _GLFWwindow _GLFWwindow |
Definition at line 79 of file internal.h.
typedef struct _GLFWwndconfig _GLFWwndconfig |
Definition at line 76 of file internal.h.
typedef void(APIENTRY * PFNGLCLEARPROC)(GLbitfield) |
Definition at line 72 of file internal.h.
typedef void(APIENTRY * PFNGLGETINTEGERVPROC)(GLenum, GLint *) |
Definition at line 74 of file internal.h.
typedef const GLubyte*(APIENTRY * PFNGLGETSTRINGPROC)(GLenum) |
Definition at line 73 of file internal.h.
void _glfwInputWindowDamage | ( | _GLFWwindow * | window | ) |
All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit that has not been followed by a call to glfwTerminate.
Definition at line 43 of file examples/third_party/glfw/src/init.c.
Flag indicating whether GLFW has been successfully initialized.
Definition at line 42 of file examples/third_party/glfw/src/init.c.