Table of Contents

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

MaterialAlignment

Material

The texture and sprite data associated with the frame.

Material Material { get; }

Property Value

Material

Methods

GetAlignmentScale(float)

Calculates the geometric scaling required to maintain the material's aspect ratio.

Vector2 GetAlignmentScale(float bbAspectRatio)

Parameters

bbAspectRatio float

Returns

Vector2

GetMaterialAlignment(float)

Calculates the UV bounds required to align the material based on the given aspect ratio.

BoundingBox2 GetMaterialAlignment(float bbAspectRatio)

Parameters

bbAspectRatio float

Returns

BoundingBox2