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
Bottom
Material board for the bottom face (-Y).
public MatBoard Bottom { get; }
Property Value
Faces
Gets all six faces of the block as a read only list.
public IReadOnlyList<MatBoard> Faces { get; }
Property Value
Front
Material board for the front face (-Z).
public MatBoard Front { get; }
Property Value
Left
Material board for the left face (-X).
public MatBoard Left { get; }
Property Value
Offset
Determines the distance of the block from the center of its transform.
public Vector3D Offset { get; set; }
Property Value
Right
Material board for the right face (+X).
public MatBoard Right { get; }
Property Value
Size
Gets/sets the dimensions of the block
public Vector3D Size { get; set; }
Property Value
Top
Material board for the top face (+Y).
public MatBoard Top { get; }
Property Value
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
matrixMatrixD
SetColor(Color)
Applies the given color to every face.
public void SetColor(Color color)
Parameters
colorColor
SetMaterial(Material)
Applies the given material to every face.
public void SetMaterial(Material material)
Parameters
materialMaterial
SetMaterialAlignment(MaterialAlignment)
Sets every face's material alignment.
public void SetMaterialAlignment(MaterialAlignment materialAlignment)
Parameters
materialAlignmentMaterialAlignment