Interface IReadOnlyMaterialFrame
- Namespace
- RichHudFramework.UI.Rendering
- Assembly
- RichHudClient.dll
Read-only interface defining the mapping of a material to a quad.
public interface IReadOnlyMaterialFrame
Properties
Alignment
The alignment mode determining how the material is scaled or cropped to fit the element's aspect ratio.
MaterialAlignment Alignment { get; }
Property Value
Material
The texture and sprite data associated with the frame.
Material Material { get; }
Property Value
Methods
GetAlignmentScale(float)
Calculates the geometric scaling required to maintain the material's aspect ratio.
Vector2 GetAlignmentScale(float bbAspectRatio)
Parameters
bbAspectRatiofloat
Returns
GetMaterialAlignment(float)
Calculates the UV bounds required to align the material based on the given aspect ratio.
BoundingBox2 GetMaterialAlignment(float bbAspectRatio)
Parameters
bbAspectRatiofloat