Show / Hide Table of Contents

Enum ErrorCode

Error codes, used in the error callback.

Namespace: OpenTK.Windowing.GraphicsLibraryFramework
Assembly: OpenTK.Windowing.GraphicsLibraryFramework.dll
Syntax
public enum ErrorCode

Fields

Name Description
ApiUnavailable

The requested API is not available on the system.

CursorUnavailable

The specified standard cursor shape is not available, either because the current platform cursor theme does not provide it or because it is not available on the platform.

Platform or system settings limitation. Pick another CursorShape or create a custom cursor.

FeatureUnavailable

The requested feature is not provided by the platform, so GLFW is unable to implement it. The documentation for each function notes if it could emit this error.

Platform or platform version limitation. The error can be ignored unless the feature is critical to the application.

A function call that emits this error has no effect other than the error and updating any existing out parameters.

FeatureUnimplemented

The requested feature has not yet been implemented in GLFW for this platform.

An incomplete implementation of GLFW for this platform, hopefully fixed in a future release. The error can be ignored unless the feature is critical to the application.

A function call that emits this error has no effect other than the error and updating any existing out parameters.

FormatUnavailable

The requested format is unavailable.

InvalidEnum

Used an invalid enum value on a function.

InvalidValue

Called a function with an invalid argument.

NoContext

No OpenGL/OpenGL ES context on this thread.

NoError

Everything is running as intended. Yay!

NotInitialized

Called a function before calling Init(). Initialize GLFW and then try again.

NoWindowContext

There is no OpenGL/OpenGL ES context attached to this window.

OutOfMemory

A memory allocation failed on GLFW's end.

PlatformError

A platform-specific error occurred that doesn't fit into any more specific category.

PlatformUnavailable

If emitted during initialization, no matching platform was found. If the Platform init hint was set to Any, GLFW could not detect any of the platforms supported by this library binary, except for the Null platform. If the init hint was set to a specific platform, it is either not supported by this library binary or GLFW was not able to detect it.

If emitted by a native access function, GLFW was initialized for a different platform than the function is for.

Failure to detect any platform usually only happens on non-macOS Unix systems, either when no window system is running or the program was run from a terminal that does not have the necessary environment variables. Fall back to a different platform if possible or notify the user that no usable platform was detected.

Failure to detect a specific platform may have the same cause as above or be because support for that platform was not compiled in. Call PlatformSupported(Platform) to check whether a specific platform is supported by a library binary.

VersionUnavailable

The requested OpenGL version is not available on the system.

In This Article
Back to top Generated by DocFX