asge::game::utils
Functions
#
std::optional< math::Rect > SpriteGetDstRect(components::Sprite const &inSprite, components::Transform const &inT) noexceptinSprite's on-screen destination rect at inT's world position/scale, or nullopt if it has no texture yet.
#
std::optional< math::Rect > SpriteGetLocalRect(components::Sprite const &inSprite, components::Transform const &inT) noexceptLike SpriteGetDstRect but from inT's m_Local* values: its top-left and size (native size * local scale).