Table of Contents

Enum OpenGLContextOwnership

Namespace
Maplibre.NativeFfi.Render
Assembly
Maplibre.NativeFfi.dll

How a render session's OpenGL context relates to the thread that attached it. This is an open domain: a value may have no named member here, so a switch over it needs a default case. Unknown values keep their raw value.

public enum OpenGLContextOwnership : uint

Fields

Dedicated = 1

The session owns its thread's OpenGL context. It makes its context current once and keeps it current between renders, and it joins no share group.

Shared = 0

The session shares its thread with host graphics work. Every render makes the session context current and restores whatever was current before, and the session context joins the share group named by the descriptor.