SOURCE DUMP v1

This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit fb20299e9d
53 changed files with 768360 additions and 0 deletions

View file

@ -0,0 +1,180 @@
using System.Runtime.InteropServices.Marshalling;
using System.Text;
namespace Brutal.GlfwApi;
/// <summary>
/// Marshaller for UTF-8 strings.
/// </summary>
[CustomMarshaller(typeof(string), MarshalMode.ManagedToUnmanagedIn, typeof(ManagedToUnmanagedIn))] // string parameter
[CustomMarshaller(typeof(string), MarshalMode.ManagedToUnmanagedOut, typeof(ManagedToUnmanagedOut))] // return string
//[CustomMarshaller(typeof(string), MarshalMode.ManagedToUnmanagedRef, typeof(ManagedToUnmanagedRef))]
//[CustomMarshaller(typeof(string), MarshalMode.UnmanagedToManagedIn, typeof(UnmanagedToManagedIn))]
//[CustomMarshaller(typeof(string), MarshalMode.UnmanagedToManagedRef, typeof(UnmanagedToManagedRef))]
//[CustomMarshaller(typeof(string), MarshalMode.UnmanagedToManagedOut, typeof(UnmanagedToManagedOut))]
//[CustomMarshaller(typeof(string), MarshalMode.ManagedToUnmanagedIn, typeof(ManagedToUnmanagedIn))]
public static unsafe class CustomStringMarshaller
{
/// <summary>
/// Custom marshaller to marshal a managed string as a UTF-8 unmanaged string.
/// </summary>
public ref struct ManagedToUnmanagedIn
{
/// <summary>
/// Gets the requested buffer size for optimized marshalling.
/// </summary>
public static int BufferSize => 0x100;
private byte* _unmanagedValue;
private bool _allocated;
/// <summary>
/// Initializes the marshaller with a managed string and requested buffer.
/// </summary>
/// <param name="managed">The managed string with which to initialize the marshaller.</param>
/// <param name="buffer">The request buffer whose size is at least <see cref="BufferSize"/>.</param>
public void FromManaged(string? managed, Span<byte> buffer)
{
_allocated = false;
if (managed is null)
{
_unmanagedValue = null;
return;
}
const int MaxUtf8BytesPerChar = 3;
// >= for null terminator
// Use the cast to long to avoid the checked operation
if ((long)MaxUtf8BytesPerChar * managed.Length >= buffer.Length)
{
// Calculate accurate byte count when the provided stack-allocated buffer is not sufficient
int exactByteCount = checked(Encoding.UTF8.GetByteCount(managed) + 1); // + 1 for null terminator
if (exactByteCount > buffer.Length)
{
buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
_allocated = true;
}
}
// Unsafe.AsPointer is safe since buffer must be pinned
_unmanagedValue = (byte*)Unsafe.AsPointer(ref MemoryMarshal.GetReference(buffer));
int byteCount = Encoding.UTF8.GetBytes(managed, buffer);
buffer[byteCount] = 0; // null-terminate
}
/// <summary>
/// Converts the current managed string to an unmanaged string.
/// </summary>
/// <returns>An unmanaged string.</returns>
public byte* ToUnmanaged() => _unmanagedValue;
/// <summary>
/// Frees any allocated unmanaged memory.
/// </summary>
public void Free()
{
if (_allocated)
NativeMemory.Free(_unmanagedValue);
}
}
public static class ManagedToUnmanagedOut
{
/// <summary>
/// Converts an unmanaged UTF-8 string to a managed string, preserving a NULL pointer as
/// <see langword="null"/>.
/// </summary>
/// <remarks>
/// Several GLFW functions return NULL to signal failure - e.g. <c>glfwGetClipboardString</c>
/// returns NULL on <c>FormatUnavailable</c>. Collapsing NULL to an empty string would make a
/// failed call indistinguishable from a legitimately empty result, so the NULL signal is
/// preserved and the return type is nullable.
/// </remarks>
/// <param name="unmanaged">The unmanaged UTF-8 string, or NULL.</param>
/// <returns>The managed string, or <see langword="null"/> if <paramref name="unmanaged"/> is NULL.</returns>
public static string? ConvertToManaged(byte* unmanaged)
{
if (unmanaged == null)
return null;
return Marshal.PtrToStringUTF8((IntPtr)unmanaged);
}
}
/*
public ref struct ManagedToUnmanagedRef
{
public void FromManaged(string managed) { }
public void FromUnmanaged(byte* unmanaged)
{
}
public string ToManaged()
{
return "";
}
public byte* ToUnmanaged()
{
return null;
}
public void Free() { }
}
public ref struct UnmanagedToManagedOut
{
public void FromManaged(string managed) { }
public byte* ToUnmanaged()
{
return null;
}
public void Free() { }
}
public ref struct UnmanagedToManagedRef
{
public void FromManaged(string managed) { }
public void FromUnmanaged(byte* unmanaged)
{
}
public string ToManaged()
{
return "";
}
public byte* ToUnmanaged()
{
return null;
}
public void Free() { }
}
public ref struct UnmanagedToManagedIn
{
private byte* _unmanagedValue;
public void FromUnmanaged(byte* unmanaged)
{
_unmanagedValue = unmanaged;
}
public string ToManaged()
{
return "";
}
public void Free() { }
}
*/
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwButtonAction
{
Release = GLFW_RELEASE,
Press = GLFW_PRESS,
}
}

View file

@ -0,0 +1,21 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwContextAttribute
{
ClientApi = GLFW_CLIENT_API,
CreationApi = GLFW_CONTEXT_CREATION_API,
NoError = GLFW_CONTEXT_NO_ERROR,
ReleaseBehavior = GLFW_CONTEXT_RELEASE_BEHAVIOR,
Revision = GLFW_CONTEXT_REVISION,
Robustness = GLFW_CONTEXT_ROBUSTNESS,
VersionMajor = GLFW_CONTEXT_VERSION_MAJOR,
VersionMinor = GLFW_CONTEXT_VERSION_MINOR,
OpenGlDebugContext = GLFW_OPENGL_DEBUG_CONTEXT,
OpenGlForwardCompat = GLFW_OPENGL_FORWARD_COMPAT,
OpenGlProfile = GLFW_OPENGL_PROFILE,
}
}

View file

@ -0,0 +1,14 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwCursorMode
{
Normal = GLFW_CURSOR_NORMAL,
Hidden = GLFW_CURSOR_HIDDEN,
Disabled = GLFW_CURSOR_DISABLED,
Captured = GLFW_CURSOR_CAPTURED,
}
}

View file

@ -0,0 +1,97 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
/// <summary>
/// More detailed documentation at: Error Codes (glfw.org).
/// </summary>
/// <seealso href="https://www.glfw.org/docs/latest/group__errors.html">Error Codes</seealso>
public enum GlfwErrorCode
{
/// <summary>
/// No error has occurred.
/// </summary>
NoError = GLFW_NO_ERROR,
/// <summary>
/// This occurs if a GLFW function was called that must not be called unless the library is initialized.
/// </summary>
NotInitialized = GLFW_NOT_INITIALIZED,
/// <summary>
/// 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 Glfw.GetCurrentContext.
/// </summary>
NoCurrentContext = GLFW_NO_CURRENT_CONTEXT,
/// <summary>
/// One of the arguments to the function was an invalid enum value.
/// </summary>
InvalidEnum = GLFW_INVALID_ENUM,
/// <summary>
/// One of the arguments to the function was an invalid value, for example requesting a non-existent OpenGL or
/// OpenGL ES version.
/// </summary>
InvalidValue = GLFW_INVALID_VALUE,
/// <summary>
/// A memory allocation failed.
/// </summary>
OutOfMemory = GLFW_OUT_OF_MEMORY,
/// <summary>
/// GLFW could not find support for the requested API on the system.
/// </summary>
ApiUnavailable = GLFW_API_UNAVAILABLE,
/// <summary>
/// The requested OpenGL or OpenGL ES version (including any requested context or framebuffer hints) is not
/// available on this machine.
/// </summary>
VersionUnavailable = GLFW_VERSION_UNAVAILABLE,
/// <summary>
/// A platform-specific error occurred that does not match any of the more specific categories.
/// </summary>
PlatformError = GLFW_PLATFORM_ERROR,
/// <summary>
/// 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.
/// </summary>
FormatUnavailable = GLFW_FORMAT_UNAVAILABLE,
/// <summary>
/// A window that does not have an OpenGL or OpenGL ES context was passed to a function that requires it to
/// have one.
/// </summary>
NoWindowContext = GLFW_NO_WINDOW_CONTEXT,
/// <summary>
/// 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.
/// </summary>
CursorUnavailable = GLFW_CURSOR_UNAVAILABLE,
/// <summary>
/// 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.
/// </summary>
FeatureUnavailable = GLFW_FEATURE_UNAVAILABLE,
/// <summary>
/// The requested feature has not yet been implemented in GLFW for this platform.
/// </summary>
FeatureUnimplemented = GLFW_FEATURE_UNIMPLEMENTED,
/// <summary>
/// The requested platform-specific functionality is not available on the current platform. Most commonly
/// emitted by a native-access function whose backend (Cocoa, Win32, X11, Wayland, WGL, NSGL, GLX, EGL,
/// OSMesa) is not the one GLFW was initialized for.
/// </summary>
PlatformUnavailable = GLFW_PLATFORM_UNAVAILABLE,
}
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwFocusEvent
{
LostFocus = GLFW_FALSE,
GainFocus = GLFW_TRUE,
}
}

View file

@ -0,0 +1,17 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwGamepadAxis
{
LeftX = GLFW_GAMEPAD_AXIS_LEFT_X,
LeftY = GLFW_GAMEPAD_AXIS_LEFT_Y,
RightX = GLFW_GAMEPAD_AXIS_RIGHT_X,
RightY = GLFW_GAMEPAD_AXIS_RIGHT_Y,
LeftTrigger = GLFW_GAMEPAD_AXIS_LEFT_TRIGGER,
RightTrigger = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER,
Last = GLFW_GAMEPAD_AXIS_LAST,
}
}

View file

@ -0,0 +1,30 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwGamepadButton
{
A = GLFW_GAMEPAD_BUTTON_A,
B = GLFW_GAMEPAD_BUTTON_B,
X = GLFW_GAMEPAD_BUTTON_X,
Y = GLFW_GAMEPAD_BUTTON_Y,
LeftBumper = GLFW_GAMEPAD_BUTTON_LEFT_BUMPER,
RightBumper = GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER,
Back = GLFW_GAMEPAD_BUTTON_BACK,
Start = GLFW_GAMEPAD_BUTTON_START,
Guide = GLFW_GAMEPAD_BUTTON_GUIDE,
LeftThumb = GLFW_GAMEPAD_BUTTON_LEFT_THUMB,
RightThumb = GLFW_GAMEPAD_BUTTON_RIGHT_THUMB,
DpadUp = GLFW_GAMEPAD_BUTTON_DPAD_UP,
DpadRight = GLFW_GAMEPAD_BUTTON_DPAD_RIGHT,
DpadDown = GLFW_GAMEPAD_BUTTON_DPAD_DOWN,
DpadLeft = GLFW_GAMEPAD_BUTTON_DPAD_LEFT,
Last = GLFW_GAMEPAD_BUTTON_LAST,
Cross = GLFW_GAMEPAD_BUTTON_CROSS,
Circle = GLFW_GAMEPAD_BUTTON_CIRCLE,
Square = GLFW_GAMEPAD_BUTTON_SQUARE,
Triangle = GLFW_GAMEPAD_BUTTON_TRIANGLE,
}
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwIconifyEvent
{
Restored = GLFW_FALSE,
Iconified = GLFW_TRUE,
}
}

View file

@ -0,0 +1,15 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwInitHint
{
Platform = GLFW_PLATFORM,
JoystickHatButtons = GLFW_JOYSTICK_HAT_BUTTONS,
CocoaChdirResources = GLFW_COCOA_CHDIR_RESOURCES,
CocoaMenubar = GLFW_COCOA_MENUBAR,
WaylandLibdecor = GLFW_WAYLAND_LIBDECOR,
}
}

View file

@ -0,0 +1,16 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwInputMode
{
Cursor = GLFW_CURSOR,
StickyKeys = GLFW_STICKY_KEYS,
StickyMouseButtons = GLFW_STICKY_MOUSE_BUTTONS,
LockKeyMods = GLFW_LOCK_KEY_MODS,
RawMouseMotion = GLFW_RAW_MOUSE_MOTION,
UnlimitedMouseButtons = GLFW_UNLIMITED_MOUSE_BUTTONS,
}
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwJoystickEvent
{
Connected = GLFW_CONNECTED,
Disconnected = GLFW_DISCONNECTED,
}
}

View file

@ -0,0 +1,20 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
[Flags]
public enum GlfwJoystickHat : byte
{
Centered = GLFW_HAT_CENTERED,
Up = GLFW_HAT_UP,
Right = GLFW_HAT_RIGHT,
Down = GLFW_HAT_DOWN,
Left = GLFW_HAT_LEFT,
RightUp = GLFW_HAT_RIGHT_UP,
RightDown = GLFW_HAT_RIGHT_DOWN,
LeftUp = GLFW_HAT_LEFT_UP,
LeftDown = GLFW_HAT_LEFT_DOWN,
}
}

View file

@ -0,0 +1,132 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwKey
{
Unknown = GLFW_KEY_UNKNOWN,
Space = GLFW_KEY_SPACE,
Apostrophe = GLFW_KEY_APOSTROPHE,
Comma = GLFW_KEY_COMMA,
Minus = GLFW_KEY_MINUS,
Period = GLFW_KEY_PERIOD,
Slash = GLFW_KEY_SLASH,
Number0 = GLFW_KEY_0,
Number1 = GLFW_KEY_1,
Number2 = GLFW_KEY_2,
Number3 = GLFW_KEY_3,
Number4 = GLFW_KEY_4,
Number5 = GLFW_KEY_5,
Number6 = GLFW_KEY_6,
Number7 = GLFW_KEY_7,
Number8 = GLFW_KEY_8,
Number9 = GLFW_KEY_9,
Semicolon = GLFW_KEY_SEMICOLON,
Equal = GLFW_KEY_EQUAL,
A = GLFW_KEY_A,
B = GLFW_KEY_B,
C = GLFW_KEY_C,
D = GLFW_KEY_D,
E = GLFW_KEY_E,
F = GLFW_KEY_F,
G = GLFW_KEY_G,
H = GLFW_KEY_H,
I = GLFW_KEY_I,
J = GLFW_KEY_J,
K = GLFW_KEY_K,
L = GLFW_KEY_L,
M = GLFW_KEY_M,
N = GLFW_KEY_N,
O = GLFW_KEY_O,
P = GLFW_KEY_P,
Q = GLFW_KEY_Q,
R = GLFW_KEY_R,
S = GLFW_KEY_S,
T = GLFW_KEY_T,
U = GLFW_KEY_U,
V = GLFW_KEY_V,
W = GLFW_KEY_W,
X = GLFW_KEY_X,
Y = GLFW_KEY_Y,
Z = GLFW_KEY_Z,
LeftBracket = GLFW_KEY_LEFT_BRACKET,
Backslash = GLFW_KEY_BACKSLASH,
RightBracket = GLFW_KEY_RIGHT_BRACKET,
GraveAccent = GLFW_KEY_GRAVE_ACCENT,
World1 = GLFW_KEY_WORLD_1,
World2 = GLFW_KEY_WORLD_2,
Escape = GLFW_KEY_ESCAPE,
Enter = GLFW_KEY_ENTER,
Tab = GLFW_KEY_TAB,
Backspace = GLFW_KEY_BACKSPACE,
Insert = GLFW_KEY_INSERT,
Delete = GLFW_KEY_DELETE,
Right = GLFW_KEY_RIGHT,
Left = GLFW_KEY_LEFT,
Down = GLFW_KEY_DOWN,
Up = GLFW_KEY_UP,
PageUp = GLFW_KEY_PAGE_UP,
PageDown = GLFW_KEY_PAGE_DOWN,
Home = GLFW_KEY_HOME,
End = GLFW_KEY_END,
CapsLock = GLFW_KEY_CAPS_LOCK,
ScrollLock = GLFW_KEY_SCROLL_LOCK,
NumLock = GLFW_KEY_NUM_LOCK,
PrintScreen = GLFW_KEY_PRINT_SCREEN,
Pause = GLFW_KEY_PAUSE,
F1 = GLFW_KEY_F1,
F2 = GLFW_KEY_F2,
F3 = GLFW_KEY_F3,
F4 = GLFW_KEY_F4,
F5 = GLFW_KEY_F5,
F6 = GLFW_KEY_F6,
F7 = GLFW_KEY_F7,
F8 = GLFW_KEY_F8,
F9 = GLFW_KEY_F9,
F10 = GLFW_KEY_F10,
F11 = GLFW_KEY_F11,
F12 = GLFW_KEY_F12,
F13 = GLFW_KEY_F13,
F14 = GLFW_KEY_F14,
F15 = GLFW_KEY_F15,
F16 = GLFW_KEY_F16,
F17 = GLFW_KEY_F17,
F18 = GLFW_KEY_F18,
F19 = GLFW_KEY_F19,
F20 = GLFW_KEY_F20,
F21 = GLFW_KEY_F21,
F22 = GLFW_KEY_F22,
F23 = GLFW_KEY_F23,
F24 = GLFW_KEY_F24,
F25 = GLFW_KEY_F25,
Kp0 = GLFW_KEY_KP_0,
Kp1 = GLFW_KEY_KP_1,
Kp2 = GLFW_KEY_KP_2,
Kp3 = GLFW_KEY_KP_3,
Kp4 = GLFW_KEY_KP_4,
Kp5 = GLFW_KEY_KP_5,
Kp6 = GLFW_KEY_KP_6,
Kp7 = GLFW_KEY_KP_7,
Kp8 = GLFW_KEY_KP_8,
Kp9 = GLFW_KEY_KP_9,
KpDecimal = GLFW_KEY_KP_DECIMAL,
KpDivide = GLFW_KEY_KP_DIVIDE,
KpMultiply = GLFW_KEY_KP_MULTIPLY,
KpSubtract = GLFW_KEY_KP_SUBTRACT,
KpAdd = GLFW_KEY_KP_ADD,
KpEnter = GLFW_KEY_KP_ENTER,
KpEqual = GLFW_KEY_KP_EQUAL,
LeftShift = GLFW_KEY_LEFT_SHIFT,
LeftControl = GLFW_KEY_LEFT_CONTROL,
LeftAlt = GLFW_KEY_LEFT_ALT,
LeftSuper = GLFW_KEY_LEFT_SUPER,
RightShift = GLFW_KEY_RIGHT_SHIFT,
RightControl = GLFW_KEY_RIGHT_CONTROL,
RightAlt = GLFW_KEY_RIGHT_ALT,
RightSuper = GLFW_KEY_RIGHT_SUPER,
Menu = GLFW_KEY_MENU,
Last = GLFW_KEY_LAST,
}
}

View file

@ -0,0 +1,13 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwKeyAction
{
Release = GLFW_RELEASE,
Press = GLFW_PRESS,
Repeat = GLFW_REPEAT,
}
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwMaximizeEvent
{
Restored = GLFW_FALSE,
Maximised = GLFW_TRUE,
}
}

View file

@ -0,0 +1,17 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
[Flags]
public enum GlfwModifier
{
Shift = GLFW_MOD_SHIFT,
Control = GLFW_MOD_CONTROL,
Alt = GLFW_MOD_ALT,
Super = GLFW_MOD_SUPER,
CapsLock = GLFW_MOD_CAPS_LOCK,
NumLock = GLFW_MOD_NUM_LOCK,
}
}

View file

@ -0,0 +1,12 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwMonitorEvent
{
Connected = GLFW_CONNECTED,
Disconnected = GLFW_DISCONNECTED,
}
}

View file

@ -0,0 +1,22 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public enum GlfwMouseButton
{
Number1 = GLFW_MOUSE_BUTTON_1,
Number2 = GLFW_MOUSE_BUTTON_2,
Number3 = GLFW_MOUSE_BUTTON_3,
Number4 = GLFW_MOUSE_BUTTON_4,
Number5 = GLFW_MOUSE_BUTTON_5,
Number6 = GLFW_MOUSE_BUTTON_6,
Number7 = GLFW_MOUSE_BUTTON_7,
Number8 = GLFW_MOUSE_BUTTON_8,
Last = GLFW_MOUSE_BUTTON_LAST,
Left = GLFW_MOUSE_BUTTON_LEFT,
Right = GLFW_MOUSE_BUTTON_RIGHT,
Middle = GLFW_MOUSE_BUTTON_MIDDLE,
}
}

View file

@ -0,0 +1,38 @@
// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
/// <summary>
/// The platform GLFW was initialized for.
/// </summary>
/// <seealso href="https://www.glfw.org/docs/latest/intro_guide.html#platform">Runtime platform selection</seealso>
public enum GlfwPlatform
{
/// <summary>
/// The Win32 platform.
/// </summary>
Win32 = GLFW_PLATFORM_WIN32,
/// <summary>
/// The Cocoa platform (macOS).
/// </summary>
Cocoa = GLFW_PLATFORM_COCOA,
/// <summary>
/// The Wayland platform (Linux/BSD).
/// </summary>
Wayland = GLFW_PLATFORM_WAYLAND,
/// <summary>
/// The X11 platform (Linux/BSD).
/// </summary>
X11 = GLFW_PLATFORM_X11,
/// <summary>
/// The Null platform — useful for headless / testing builds.
/// </summary>
Null = GLFW_PLATFORM_NULL,
}
}

Some files were not shown because too many files have changed in this diff Show more