Struct OpenGlContextDescriptor
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
How a render session gets the OpenGL context that it renders with.
public readonly record struct OpenGlContextDescriptor : IEquatable<OpenGlContextDescriptor>
- Implements
- Inherited Members
Remarks
Keep the objects that it names alive until a detach or release of the session completes, or an abandon of it returns.
See mln_open_gl_context_descriptor in the C API reference.
Constructors
OpenGlContextDescriptor(OpenGlContextOwnership, DataValue)
[SetsRequiredMembers]
public OpenGlContextDescriptor(OpenGlContextOwnership Ownership, OpenGlContextDescriptor.DataValue Data)
Parameters
OwnershipOpenGlContextOwnershipDataOpenGlContextDescriptor.DataValue
Properties
Data
public required OpenGlContextDescriptor.DataValue Data { get; init; }
Property Value
Ownership
public OpenGlContextOwnership Ownership { get; init; }