mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
* Use GLFW instead of OpenTK windows * Seems to work pretty well now. * Fix stackalloc issue on Framework. * Add GLFW project to sln. * Fix package downgrade. * Fix SLN more. * Please work. * Fix C# version error.
104 lines
3.1 KiB
C#
104 lines
3.1 KiB
C#
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// Error codes, used in the error callback.
|
|
/// </summary>
|
|
public enum ErrorCode
|
|
{
|
|
/// <summary>
|
|
/// Everything is running as intended. Yay!
|
|
/// </summary>
|
|
NoError = 0,
|
|
|
|
/// <summary>
|
|
/// Called a function before calling <see cref="GLFW.Init"/>. Initialize GLFW and then try again.
|
|
/// </summary>
|
|
NotInitialized = 0x00010001,
|
|
|
|
/// <summary>
|
|
/// No OpenGL/OpenGL ES context on this thread.
|
|
/// </summary>
|
|
NoContext = 0x00010002,
|
|
|
|
/// <summary>
|
|
/// Used an invalid enum value on a function.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This should hopefully never happen in the bindings, due to the added type safety of C# enums VS. GLFW's native #defines
|
|
/// </para>
|
|
/// </remarks>
|
|
InvalidEnum = 0x00010003,
|
|
|
|
/// <summary>
|
|
/// Called a function with an invalid argument.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This can happen if you request an OpenGL version that doesn't exist, like 2.7.
|
|
/// </para>
|
|
/// <para>
|
|
/// If you request a version of OpenGL that exists, but isn't supported by this graphics card, it will return VersionUnavailable instead.
|
|
/// </para>
|
|
/// </remarks>
|
|
InvalidValue = 0x00010004,
|
|
|
|
/// <summary>
|
|
/// A memory allocation failed on GLFW's end.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Report this to the GLFW issue tracker if encountered.
|
|
/// </para>
|
|
/// </remarks>
|
|
OutOfMemory = 0x00010005,
|
|
|
|
/// <summary>
|
|
/// The requested API is not available on the system.
|
|
/// </summary>
|
|
ApiUnavailable = 0x00010006,
|
|
|
|
/// <summary>
|
|
/// The requested OpenGL version is not available on the system.
|
|
/// </summary>
|
|
VersionUnavailable = 0x00010007,
|
|
|
|
/// <summary>
|
|
/// A platform-specific error occurred that doesn't fit into any more specific category.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Report this to the GLFW issue tracker if encountered.
|
|
/// </para>
|
|
/// </remarks>
|
|
PlatformError = 0x00010008,
|
|
|
|
/// <summary>
|
|
/// The requested format is unavailable.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If emitted during window creation, the requested pixel format isn't available.
|
|
/// </para>
|
|
/// <para>
|
|
/// If emitted when using the clipboard, the contents of the clipboard couldn't be converted to the requested format.
|
|
/// </para>
|
|
/// </remarks>
|
|
FormatUnavailable = 0x00010009,
|
|
|
|
/// <summary>
|
|
/// There is no OpenGL/OpenGL ES context attached to this window.
|
|
/// </summary>
|
|
NoWindowContext = 0x0001000A
|
|
}
|
|
}
|