58 return "The GLFW library is not initialized";
60 return "There is no current context";
62 return "Invalid argument for enum parameter";
64 return "Invalid value for parameter";
66 return "Out of memory";
68 return "The requested client API is unavailable";
70 return "The requested client API version is unavailable";
72 return "A platform-specific error occurred";
74 return "The requested format is unavailable";
77 return "ERROR: UNKNOWN ERROR TOKEN PASSED TO glfwErrorString";
90 const char* description;
98 count = vsnprintf(buffer,
sizeof(buffer), format, vl);
102 buffer[
sizeof(
buffer) - 1] =
'\0';
123 memset(&_glfw, 0,
sizeof(_glfw));
168 memset(&_glfw, 0,
sizeof(_glfw));
struct GLFWcursor GLFWcursor
Opaque cursor object.
struct _GLFWlibrary::@3 callbacks
GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
Sets the error callback.
#define GLFW_API_UNAVAILABLE
GLFW could not find support for the requested client API on the system.
#define GLFW_FORMAT_UNAVAILABLE
The requested format is not supported or available.
_GLFWwindow * windowListHead
_GLFWlibrary _glfw
All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit t...
struct GLFWwindow GLFWwindow
Opaque window object.
#define _GLFW_SWAP_POINTERS(x, y)
_GLFWcursor * cursorListHead
#define GLFW_NO_CURRENT_CONTEXT
No context is current for this thread.
GLFWAPI int glfwInit(void)
Initializes the GLFW library.
static const char * getErrorString(int error)
typedef GLboolean(APIENTRYP PFNGLISQUERYPROC)(GLuint id)
#define GLFW_PLATFORM_ERROR
A platform-specific error occurred that does not match any of the more specific categories.
GLuint GLuint GLsizei count
GLFWAPI const char * glfwGetVersionString(void)
Returns a string describing the compile-time configuration.
GLFWAPI void glfwGetVersion(int *major, int *minor, int *rev)
Retrieves the version of the GLFW library.
GLFWAPI void glfwDefaultWindowHints(void)
Resets all window hints to their default values.
void _glfwFreeMonitors(_GLFWmonitor **monitors, int count)
#define GLFW_VERSION_UNAVAILABLE
The requested OpenGL or OpenGL ES version is not available.
GLFWgammaramp originalRamp
#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.
#define GLFW_VERSION_REVISION
The revision number of the GLFW library.
#define GLFW_OUT_OF_MEMORY
A memory allocation failed.
GLFWAPI void glfwDestroyWindow(GLFWwindow *window)
Destroys the specified window and its context.
#define GLFW_VERSION_MINOR
The minor version number of the GLFW library.
#define GLFW_NOT_INITIALIZED
GLFW has not been initialized.
GLFWAPI void glfwTerminate(void)
Terminates the GLFW library.
void _glfwInputError(int error, const char *format,...)
Notifies shared code of an error.
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
static GLFWerrorfun _glfwErrorCallback
#define GLFW_VERSION_MAJOR
The major version number of the GLFW library.
void(* GLFWerrorfun)(int, const char *)
The function signature for error callbacks.
GLboolean _glfwInitialized
Flag indicating whether GLFW has been successfully initialized.