Table of Contents

Struct OpenGlSurfaceDescriptor

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

An OpenGL surface to present to, for MapHandle.AttachOpenGlSurface().

public readonly record struct OpenGlSurfaceDescriptor : IEquatable<OpenGlSurfaceDescriptor>
Implements
Inherited Members

Remarks

The session uses the surface until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.

See mln_open_gl_surface_descriptor in the C API reference.

Constructors

OpenGlSurfaceDescriptor(LogicalSize, OpenGlContextDescriptor, NativePointer)

[SetsRequiredMembers]
public OpenGlSurfaceDescriptor(LogicalSize LogicalSize, OpenGlContextDescriptor Context, NativePointer Surface)

Parameters

LogicalSize LogicalSize
Context OpenGlContextDescriptor
Surface NativePointer

Properties

Context

public required OpenGlContextDescriptor Context { get; init; }

Property Value

OpenGlContextDescriptor

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize

Surface

Your EGLSurface with EGL, or your HDC with WGL. WebGL doesn't use it.

public NativePointer Surface { get; init; }

Property Value

NativePointer