Go to the documentation of this file.
116 const size_t length = strlen(source);
117 char* result = calloc(
length + 1, 1);
118 strcpy(result, source);
162 va_start(vl, format);
171 strcpy(
description,
"The GLFW library is not initialized");
173 strcpy(
description,
"There is no current context");
175 strcpy(
description,
"Invalid argument for enum parameter");
177 strcpy(
description,
"Invalid value for parameter");
181 strcpy(
description,
"The requested API is unavailable");
183 strcpy(
description,
"The requested API version is unavailable");
185 strcpy(
description,
"A platform-specific error occurred");
187 strcpy(
description,
"The requested format is unavailable");
189 strcpy(
description,
"The specified window has no context");
291 "Invalid init hint 0x%08X", hint);
struct _GLFWlibrary::@7 timer
float _glfw_fmaxf(float a, float b)
const char * _glfwDefaultMappings[]
struct _GLFWlibrary::@9 callbacks
GLFWAPI void glfwTerminate(void)
Terminates the GLFW library.
static _GLFWerror _glfwMainThreadError
void _glfwPlatformTerminate(void)
const GLFWAPI char * glfwGetVersionString(void)
Returns a string describing the compile-time configuration.
void(* GLFWerrorfun)(int, const char *)
The function signature for error callbacks.
#define GLFW_INVALID_VALUE
One of the arguments to the function was an invalid value.
#define GLFW_FORMAT_UNAVAILABLE
The requested format is not supported or available.
struct GLFWwindow GLFWwindow
Opaque window object.
void _glfwPlatformLockMutex(_GLFWmutex *mutex)
struct _GLFWlibrary::@6 hints
void _glfwPlatformSetTls(_GLFWtls *tls, void *value)
error
Error code indicating why parse failed.
void _glfwInputError(int code, const char *format,...)
GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
Sets the error callback.
#define GLFW_VERSION_UNAVAILABLE
The requested OpenGL or OpenGL ES version is not available.
#define GLFW_NO_WINDOW_CONTEXT
The specified window does not have an OpenGL or OpenGL ES context.
void _glfwFreeMonitor(_GLFWmonitor *monitor)
GLFWAPI void glfwDefaultWindowHints(void)
Resets all window hints to their default values.
void _glfwPlatformSetGammaRamp(_GLFWmonitor *monitor, const GLFWgammaramp *ramp)
#define GLFW_API_UNAVAILABLE
GLFW could not find support for the requested API on the system.
void _glfwPlatformDestroyMutex(_GLFWmutex *mutex)
static GLFWerrorfun _glfwErrorCallback
#define GLFW_OUT_OF_MEMORY
A memory allocation failed.
GLenum GLuint GLenum GLsizei length
#define GLFW_COCOA_CHDIR_RESOURCES
macOS specific init hint.
void * _glfwPlatformGetTls(_GLFWtls *tls)
#define GLFW_COCOA_MENUBAR
macOS specific init hint.
GLFWAPI int glfwInit(void)
Initializes the GLFW library.
static void terminate(void)
#define GLFW_VERSION_MINOR
The minor version number of the GLFW library.
char * _glfw_strdup(const char *source)
#define GLFW_VERSION_REVISION
The revision number of the GLFW library.
GLFWAPI void glfwDestroyWindow(GLFWwindow *window)
Destroys the specified window and its context.
#define GLFW_NOT_INITIALIZED
GLFW has not been initialized.
static _GLFWinitconfig _glfwInitHints
#define GLFW_JOYSTICK_HAT_BUTTONS
Joystick hat buttons init hint.
#define _GLFW_SWAP_POINTERS(x, y)
_GLFWerror * errorListHead
GLFWbool _glfwPlatformCreateMutex(_GLFWmutex *mutex)
int _glfwPlatformInit(void)
#define GLFW_PLATFORM_ERROR
A platform-specific error occurred that does not match any of the more specific categories.
#define GLFW_VERSION_MAJOR
The major version number of the GLFW library.
float _glfw_fminf(float a, float b)
#define GLFW_INVALID_ENUM
One of the arguments to the function was an invalid enum value.
const char * _glfwPlatformGetVersionString(void)
void _glfwPlatformDestroyTls(_GLFWtls *tls)
GLFWbool _glfwPlatformCreateTls(_GLFWtls *tls)
GLFWAPI void glfwInitHint(int hint, int value)
Sets the specified init hint to the desired value.
uint64_t _glfwPlatformGetTimerValue(void)
_GLFWwindow * windowListHead
_GLFWcursor * cursorListHead
GLFWAPI void glfwGetVersion(int *major, int *minor, int *rev)
Retrieves the version of the GLFW library.
GLFWgammaramp originalRamp
#define GLFW_NO_CURRENT_CONTEXT
No context is current for this thread.
void _glfwPlatformUnlockMutex(_GLFWmutex *mutex)
struct _GLFWinitconfig::@1 ns
void _glfwTerminateVulkan(void)
#define _GLFW_MESSAGE_SIZE
#define GLFW_NO_ERROR
No error has occurred.
GLFWAPI int glfwGetError(const char **description)
Returns and clears the last error for the calling thread.
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08