Table of Contents

Interface IBorderRenderer

Namespace
Map.Rendering.Border
Assembly
MapAssembly.dll

ENGINE: Interface for pluggable border rendering implementations. ENGINE provides defaults (DistanceField, PixelPerfect, MeshGeometry). GAME can register custom implementations via MapRendererRegistry.

public interface IBorderRenderer

Properties

DisplayName

Display name for UI/debugging

string DisplayName { get; }

Property Value

string

RendererId

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

string RendererId { get; }

Property Value

string

RequiresPerFrameUpdate

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

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.

void ApplyToMaterial(Material material, BorderStyleParams styleParams)

Parameters

material Material
styleParams BorderStyleParams

Dispose()

Cleanup resources when renderer is deactivated or destroyed.

void Dispose()

GenerateBorders(BorderGenerationParams)

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

void GenerateBorders(BorderGenerationParams parameters)

Parameters

parameters BorderGenerationParams

Initialize(MapTextureManager, BorderRendererContext)

Initialize the renderer with required resources. Called once when renderer is first activated.

void Initialize(MapTextureManager textureManager, BorderRendererContext context)

Parameters

textureManager MapTextureManager
context BorderRendererContext

OnRenderFrame()

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

void OnRenderFrame()