Struct SpriteRendererComponent#

Struct Documentation#

struct SpriteRendererComponent#

Sprite renderer component. Optional component containing sprite renderer data.

Public Functions

constexpr SpriteRendererComponent() noexcept = default#

Constructor.

inline explicit constexpr SpriteRendererComponent(const TRAP::Math::Vec4 &color) noexcept#

Constructor.

Parameters:

color – Color to use.

Public Members

Math::Vec4 Color = {1.0f, 1.0f, 1.0f, 1.0f}#