Table of Contents

Class MeshGeometryBorderRenderer

Namespace
Map.Rendering.Border
Assembly
MapAssembly.dll

ENGINE: Mesh-based border renderer implementation. Generates actual geometry for borders using CPU curve extraction.

Best for 3D map effects where borders need depth/thickness. Requires per-frame rendering via OnRenderFrame().

public class MeshGeometryBorderRenderer : BorderRendererBase, IBorderRenderer
Inheritance
object
MeshGeometryBorderRenderer
Implements
Inherited Members

Constructors

MeshGeometryBorderRenderer(float)

public MeshGeometryBorderRenderer(float width = 1)

Parameters

width float

Properties

DisplayName

Display name for UI/debugging

public override string DisplayName { get; }

Property Value

string

RendererId

Unique identifier for this renderer (e.g., "DistanceField", "PixelPerfect", "MyCustom")

public override string RendererId { get; }

Property Value

string

RequiresPerFrameUpdate

Whether this renderer requires per-frame updates (e.g., MeshGeometry needs OnRenderFrame)

public override bool RequiresPerFrameUpdate { get; }

Property Value

bool

Methods

ApplyToMaterial(Material, BorderStyleParams)

Apply visual parameters to the material (colors, widths, etc.) Called when visual style parameters change.

public override void ApplyToMaterial(Material material, BorderStyleParams styleParams)

Parameters

material Material
styleParams BorderStyleParams

Dispose()

Cleanup resources when renderer is deactivated or destroyed.

public override void Dispose()

GenerateBorders(BorderGenerationParams)

Generate/update borders. Called when borders are dirty or ownership changes.

public override void GenerateBorders(BorderGenerationParams parameters)

Parameters

parameters BorderGenerationParams

OnInitialize()

Override for custom initialization logic. Called after textureManager and context are set.

protected override void OnInitialize()

OnRenderFrame()

Called per-frame for renderers that need continuous updates. Only called if RequiresPerFrameUpdate is true.

public override void OnRenderFrame()

SetBorderWidth(float)

Set the border width for mesh generation.

public void SetBorderWidth(float width)

Parameters

width float

UpdateBorderStyles()

Update border styles when ownership changes.

public void UpdateBorderStyles()