Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
SpritePreview.hpp
Go to the documentation of this file.
1
8#ifndef RTYPE_ECS_COMPONENTS_UI_SPRITEPREVIEW_HPP_
9#define RTYPE_ECS_COMPONENTS_UI_SPRITEPREVIEW_HPP_
10
11#include <string>
12
14
24 std::string texturePath;
25 float x{0.0f};
26 float y{0.0f};
27 float scale{1.0f};
29 // Texture rectangle for sprite sheet extraction
30 int rectLeft{0};
31 int rectTop{0};
32 int rectWidth{0};
33 int rectHeight{0};
35 int zIndex{0};
36 };
37
38} // namespace rtp::ecs::components::ui
39
40#endif // RTYPE_ECS_COMPONENTS_UI_SPRITEPREVIEW_HPP_
File : SpritePreview.hpp License: MIT Author : GitHub Copilot Date : 14/01/2026.
Definition Button.hpp:14
Component for displaying a sprite preview in the UI.
float x
X position for rendering.
int rectHeight
Height of sprite in texture.
float scale
Scale factor for display.
int rectTop
Top coordinate in texture.
int rectWidth
Width of sprite in texture.
std::string texturePath
Path to the texture file.
float y
Y position for rendering.
int rectLeft
Left coordinate in texture.