Struct OpenGlSurfaceReplacement
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A new OpenGL surface for
RenderSessionHandle.SetOpenGlSurfaceTargetAsync().
public readonly record struct OpenGlSurfaceReplacement : IEquatable<OpenGlSurfaceReplacement>
- Implements
- Inherited Members
Remarks
The session presents to it with the context that it attached with. It 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_replacement in the C API reference.
Constructors
OpenGlSurfaceReplacement(LogicalSize, NativePointer)
[SetsRequiredMembers]
public OpenGlSurfaceReplacement(LogicalSize LogicalSize, NativePointer Surface)
Parameters
LogicalSizeLogicalSizeSurfaceNativePointer
Properties
LogicalSize
public required LogicalSize LogicalSize { get; init; }
Property Value
Surface
Your EGLSurface with EGL, or your HDC with WGL. WebGL doesn't use it, so leave it null.
public NativePointer Surface { get; init; }