Table of Contents

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

Display NativePointer
Config NativePointer
ShareContext NativePointer
ClientApi OpenGlClientApi
GetProcAddress NativePointer

Properties

ClientApi

The API of a dedicated context. A shared context uses the API of yours.

public OpenGlClientApi ClientApi { get; init; }

Property Value

OpenGlClientApi

Config

An EGLConfig.

public required NativePointer Config { get; init; }

Property Value

NativePointer

Display

An EGLDisplay.

public required NativePointer Display { get; init; }

Property Value

NativePointer

GetProcAddress

Your eglGetProcAddress, or null to use the system's.

public NativePointer GetProcAddress { get; init; }

Property Value

NativePointer

ShareContext

Your EGLContext, for a shared context.

public NativePointer ShareContext { get; init; }

Property Value

NativePointer