Macros

Error codes. More...

Collaboration diagram for Error codes:

Macros

#define GLFW_API_UNAVAILABLE   0x00010006
 GLFW could not find support for the requested API on the system. More...
 
#define GLFW_FORMAT_UNAVAILABLE   0x00010009
 The requested format is not supported or available. More...
 
#define GLFW_INVALID_ENUM   0x00010003
 One of the arguments to the function was an invalid enum value. More...
 
#define GLFW_INVALID_VALUE   0x00010004
 One of the arguments to the function was an invalid value. More...
 
#define GLFW_NO_CURRENT_CONTEXT   0x00010002
 No context is current for this thread. More...
 
#define GLFW_NO_ERROR   0
 No error has occurred. More...
 
#define GLFW_NO_WINDOW_CONTEXT   0x0001000A
 The specified window does not have an OpenGL or OpenGL ES context. More...
 
#define GLFW_NOT_INITIALIZED   0x00010001
 GLFW has not been initialized. More...
 
#define GLFW_OUT_OF_MEMORY   0x00010005
 A memory allocation failed. More...
 
#define GLFW_PLATFORM_ERROR   0x00010008
 A platform-specific error occurred that does not match any of the more specific categories. More...
 
#define GLFW_VERSION_UNAVAILABLE   0x00010007
 The requested OpenGL or OpenGL ES version is not available. More...
 

Detailed Description

Error codes.

See error handling for how these are used.

Macro Definition Documentation

#define GLFW_API_UNAVAILABLE   0x00010006

GLFW could not find support for the requested API on the system.

GLFW could not find support for the requested API on the system.

The installed graphics driver does not support the requested API, or does not support it via the chosen context creation backend. Below are a few examples.

Some pre-installed Windows graphics drivers do not support OpenGL. AMD only supports OpenGL ES via EGL, while Nvidia and Intel only support it via a WGL or GLX extension. macOS does not provide OpenGL ES at all. The Mesa EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary driver. Older graphics drivers do not support Vulkan.

Definition at line 698 of file glfw3.h.

#define GLFW_FORMAT_UNAVAILABLE   0x00010009

The requested format is not supported or available.

If emitted during window creation, the requested pixel format is not supported.

If emitted when querying the clipboard, the contents of the clipboard could not be converted to the requested format.

If emitted during window creation, one or more hard constraints did not match any of the available pixel formats. If your application is sufficiently flexible, downgrade your requirements and try again. Otherwise, inform the user that their machine does not match your requirements.

If emitted when querying the clipboard, ignore the error or report it to the user, as appropriate.

Definition at line 745 of file glfw3.h.

#define GLFW_INVALID_ENUM   0x00010003

One of the arguments to the function was an invalid enum value.

One of the arguments to the function was an invalid enum value, for example requesting GLFW_RED_BITS with glfwGetWindowAttrib.

Application programmer error. Fix the offending call.

Definition at line 663 of file glfw3.h.

#define GLFW_INVALID_VALUE   0x00010004

One of the arguments to the function was an invalid value.

One of the arguments to the function was an invalid value, for example requesting a non-existent OpenGL or OpenGL ES version like 2.7.

Requesting a valid but unavailable OpenGL or OpenGL ES version will instead result in a GLFW_VERSION_UNAVAILABLE error.

Application programmer error. Fix the offending call.

Definition at line 674 of file glfw3.h.

#define GLFW_NO_CURRENT_CONTEXT   0x00010002

No context is current for this thread.

This occurs if a GLFW function was called that needs and operates on the current OpenGL or OpenGL ES context but no context is current on the calling thread. One such function is glfwSwapInterval.

Application programmer error. Ensure a context is current before calling functions that require a current context.

Definition at line 655 of file glfw3.h.

#define GLFW_NO_ERROR   0

No error has occurred.

No error has occurred.

Yay.

Definition at line 636 of file glfw3.h.

#define GLFW_NO_WINDOW_CONTEXT   0x0001000A

The specified window does not have an OpenGL or OpenGL ES context.

A window that does not have an OpenGL or OpenGL ES context was passed to a function that requires it to have one.

Application programmer error. Fix the offending call.

Definition at line 753 of file glfw3.h.

#define GLFW_NOT_INITIALIZED   0x00010001

GLFW has not been initialized.

This occurs if a GLFW function was called that must not be called unless the library is initialized.

Application programmer error. Initialize GLFW before calling any function that requires initialization.

Definition at line 645 of file glfw3.h.

#define GLFW_OUT_OF_MEMORY   0x00010005

A memory allocation failed.

A memory allocation failed.

A bug in GLFW or the underlying operating system. Report the bug to our issue tracker.

Definition at line 682 of file glfw3.h.

#define GLFW_PLATFORM_ERROR   0x00010008

A platform-specific error occurred that does not match any of the more specific categories.

A platform-specific error occurred that does not match any of the more specific categories.

A bug or configuration error in GLFW, the underlying operating system or its drivers, or a lack of required resources. Report the issue to our issue tracker.

Definition at line 726 of file glfw3.h.

#define GLFW_VERSION_UNAVAILABLE   0x00010007

The requested OpenGL or OpenGL ES version is not available.

The requested OpenGL or OpenGL ES version (including any requested context or framebuffer hints) is not available on this machine.

The machine does not support your requirements. If your application is sufficiently flexible, downgrade your requirements and try again. Otherwise, inform the user that their machine does not match your requirements.

Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 comes out before the 4.x series gets that far, also fail with this error and not GLFW_INVALID_VALUE, because GLFW cannot know what future versions will exist.

Definition at line 715 of file glfw3.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31