// // ErrorCode.cs // // Copyright (C) 2019 OpenTK // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // namespace OpenToolkit.GraphicsLibraryFramework { /// /// Error codes, used in the error callback. /// public enum ErrorCode { /// /// Everything is running as intended. Yay! /// NoError = 0, /// /// Called a function before calling . Initialize GLFW and then try again. /// NotInitialized = 0x00010001, /// /// No OpenGL/OpenGL ES context on this thread. /// NoContext = 0x00010002, /// /// Used an invalid enum value on a function. /// /// /// /// This should hopefully never happen in the bindings, due to the added type safety of C# enums VS. GLFW's native #defines /// /// InvalidEnum = 0x00010003, /// /// Called a function with an invalid argument. /// /// /// /// This can happen if you request an OpenGL version that doesn't exist, like 2.7. /// /// /// If you request a version of OpenGL that exists, but isn't supported by this graphics card, it will return VersionUnavailable instead. /// /// InvalidValue = 0x00010004, /// /// A memory allocation failed on GLFW's end. /// /// /// /// Report this to the GLFW issue tracker if encountered. /// /// OutOfMemory = 0x00010005, /// /// The requested API is not available on the system. /// ApiUnavailable = 0x00010006, /// /// The requested OpenGL version is not available on the system. /// VersionUnavailable = 0x00010007, /// /// A platform-specific error occurred that doesn't fit into any more specific category. /// /// /// /// Report this to the GLFW issue tracker if encountered. /// /// PlatformError = 0x00010008, /// /// The requested format is unavailable. /// /// /// /// If emitted during window creation, the requested pixel format isn't available. /// /// /// If emitted when using the clipboard, the contents of the clipboard couldn't be converted to the requested format. /// /// FormatUnavailable = 0x00010009, /// /// There is no OpenGL/OpenGL ES context attached to this window. /// NoWindowContext = 0x0001000A } }