Table of Contents

Class MatBoard

Namespace
RichHudFramework.UI.Rendering
Assembly
RichHudClient.dll

A high-level wrapper for drawing textured, colored, and optionally clipped rectangular billboards. Utilizes MyTransparentGeometry for rendering.

public class MatBoard
Inheritance
MatBoard

Constructors

MatBoard()

Initializes a new MatBoard with zero size and a default white material.

public MatBoard()

Properties

Color

The color tint applied to the material.

public Color Color { get; set; }

Property Value

Color

MatAlignment

Determines how the texture is scaled or cropped relative to the billboard's dimensions.

public MaterialAlignment MatAlignment { get; set; }

Property Value

MaterialAlignment

Material

The texture or sprite atlas region applied to the billboard.

public Material Material { get; set; }

Property Value

Material

Methods

Draw(ref CroppedBox, MatrixD[])

Renders the billboard in world space, facing the +Z direction of the provided matrix. Handles masking (cropping) if a mask is provided in the box.

public void Draw(ref CroppedBox box, MatrixD[] matrixRef)

Parameters

box CroppedBox

Defines the bounds and the optional mask for the billboard.

matrixRef MatrixD[]

Matrix defining position and orientation.

Draw(ref MyQuadD)

Renders the billboard in world space using a pre-calculated quad.

public void Draw(ref MyQuadD quad)

Parameters

quad MyQuadD