Struct WglContextDescriptor
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
The WGL objects that a render session makes its OpenGL context from.
public readonly record struct WglContextDescriptor : IEquatable<WglContextDescriptor>
- Implements
- Inherited Members
Remarks
See mln_wgl_context_descriptor in the C API reference.
Constructors
WglContextDescriptor(NativePointer, NativePointer, NativePointer)
[SetsRequiredMembers]
public WglContextDescriptor(NativePointer DeviceContext, NativePointer ShareContext, NativePointer GetProcAddress)
Parameters
DeviceContextNativePointerShareContextNativePointerGetProcAddressNativePointer
Properties
DeviceContext
An HDC.
public required NativePointer DeviceContext { get; init; }
Property Value
GetProcAddress
Your wglGetProcAddress, or null to use the system's.
public NativePointer GetProcAddress { get; init; }
Property Value
ShareContext
Your HGLRC, for a shared context.
public NativePointer ShareContext { get; init; }