Struct EglContextDescriptor
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
The EGL objects that a render session makes its OpenGL context from.
public readonly record struct EglContextDescriptor : IEquatable<EglContextDescriptor>
- Implements
- Inherited Members
Remarks
See mln_egl_context_descriptor in the C API reference.
Constructors
EglContextDescriptor(NativePointer, NativePointer, NativePointer, OpenGlClientApi, NativePointer)
[SetsRequiredMembers]
public EglContextDescriptor(NativePointer Display, NativePointer Config, NativePointer ShareContext, OpenGlClientApi ClientApi, NativePointer GetProcAddress)
Parameters
DisplayNativePointerConfigNativePointerShareContextNativePointerClientApiOpenGlClientApiGetProcAddressNativePointer
Properties
ClientApi
The API of a dedicated context. A shared context uses the API of yours.
public OpenGlClientApi ClientApi { get; init; }
Property Value
Config
An EGLConfig.
public required NativePointer Config { get; init; }
Property Value
Display
An EGLDisplay.
public required NativePointer Display { get; init; }
Property Value
GetProcAddress
Your eglGetProcAddress, or null to use the system's.
public NativePointer GetProcAddress { get; init; }
Property Value
ShareContext
Your EGLContext, for a shared context.
public NativePointer ShareContext { get; init; }