24 std::shared_ptr<game::core::Texture2D>
texture_;
56 explicit Sprite(std::shared_ptr<game::core::Texture2D>
texture);
99 void texture(
const std::shared_ptr<game::core::Texture2D> &
texture);
104 [[maybe_unused]] [[nodiscard]]
const std::shared_ptr<game::core::Texture2D> &
texture_object()
const;
109 [[nodiscard]] const ::Texture2D &
texture()
const;
114 [[nodiscard]] Vector2
position()
const;
119 [[nodiscard]]
const Rectangle &
frame()
const;
The Sprite class specifies position and degree of rotation on the screen for an associated VRAM textu...
std::shared_ptr< game::core::Texture2D > texture_
The sprites Texture2D.
Vector2 rotation_origin
The sprites rotation origin, centered by default.
const ::Texture2D & texture() const
bool visible
Visibility of the Sprite.
float rotation
The sprites rotation angle. Default is 0.
Rectangle frame_
The section of the associated VRAM texture to be displayed as Raylib Rectangle structure.
const std::shared_ptr< game::core::Texture2D > & texture_object() const
const Rectangle & frame() const
int pos_x
The sprites x position.
Color tint
The Raylib tint applied to the VRAM texture when drawing. Defulat ist Raylib WHITE.
int pos_y
The sprites y position.