class
GUISpriteHelper
Provides helper functionality that automatically extracts necessary data from a GUIElement and builds render elements for one of the GUI*Sprites types.
Public
Methods
staticBuildSpriteRenderElements
static void BuildSpriteRenderElements(GUIInteractable &element, GUIElementState state, GUIBackgroundSprite &sprite, const Vector2I &offset = Vector2I::kZero, u32 depth = 1)
Builds sprite elements for GUIBackgroundSprites.
staticBuildSpriteRenderElements
static void BuildSpriteRenderElements(GUIInteractable &element, GUIElementState state, const GUIContent &content, GUIContentSprites &sprites, const Vector2I &offset = Vector2I::kZero, u32 depth = 0, bool wordWrap = false)
Builds sprite elements for GUIContentSprites.
staticBuildTextSpriteInformation
static TextSpriteInformation BuildTextSpriteInformation(const GUIInteractable &element, GUIElementState state, const String &text, float fontScale = 1.F, bool wordWrap = false)
Builds a struct used for initializing a TextSprite, required for rendering the provided contents from the provided GUI element.