Table of Contents

Class BlockBoard

Namespace
RichHudFramework.UI.Rendering
Assembly
RichHudClient.dll

Draws a 3D rectangular prism using billboards in world space. Useful for drawing bounding boxes.

public class BlockBoard
Inheritance
BlockBoard

Constructors

BlockBoard()

public BlockBoard()

Properties

Back

Material board for the back face (+Z).

public MatBoard Back { get; }

Property Value

MatBoard

Bottom

Material board for the bottom face (-Y).

public MatBoard Bottom { get; }

Property Value

MatBoard

Faces

Gets all six faces of the block as a read only list.

public IReadOnlyList<MatBoard> Faces { get; }

Property Value

IReadOnlyList<MatBoard>

Front

Material board for the front face (-Z).

public MatBoard Front { get; }

Property Value

MatBoard

Left

Material board for the left face (-X).

public MatBoard Left { get; }

Property Value

MatBoard

Offset

Determines the distance of the block from the center of its transform.

public Vector3D Offset { get; set; }

Property Value

Vector3D

Right

Material board for the right face (+X).

public MatBoard Right { get; }

Property Value

MatBoard

Size

Gets/sets the dimensions of the block

public Vector3D Size { get; set; }

Property Value

Vector3D

Top

Material board for the top face (+Y).

public MatBoard Top { get; }

Property Value

MatBoard

Methods

Draw(ref MatrixD)

Draws a block made of billboards in world space using the given matrix transform.

public void Draw(ref MatrixD matrix)

Parameters

matrix MatrixD

SetColor(Color)

Applies the given color to every face.

public void SetColor(Color color)

Parameters

color Color

SetMaterial(Material)

Applies the given material to every face.

public void SetMaterial(Material material)

Parameters

material Material

SetMaterialAlignment(MaterialAlignment)

Sets every face's material alignment.

public void SetMaterialAlignment(MaterialAlignment materialAlignment)

Parameters

materialAlignment MaterialAlignment