Struct QuadBoard
- Namespace
- RichHudFramework.UI.Rendering
- Assembly
- RichHudClient.dll
Defines the visual properties of a rectangular billboard, including its texture, color, texture coordinates, and skew.
public struct QuadBoard
Constructors
QuadBoard(MyStringId, BoundingBox2, Color, float)
public QuadBoard(MyStringId textureID, BoundingBox2 matFit, Color color, float skewRatio = 0)
Parameters
textureIDMyStringIdmatFitBoundingBox2colorColorskewRatiofloat
QuadBoard(MyStringId, BoundingBox2, Vector4, float)
public QuadBoard(MyStringId textureID, BoundingBox2 matFit, Vector4 bbColor, float skewRatio = 0)
Parameters
textureIDMyStringIdmatFitBoundingBox2bbColorVector4skewRatiofloat
Fields
Default
A default white, untextured quad definition.
public static readonly QuadBoard Default
Field Value
materialData
Contains the underlying material data, including the Texture ID, UV bounds, and color tint.
public BoundedQuadMaterial materialData
Field Value
skewRatio
Defines the horizontal skew applied to the quad, transforming the rectangle into a parallelogram (rhombus). Useful for italicized styling or oblique geometric shapes.
public float skewRatio