8#ifndef RTYPE_ECS_COMPONENTS_UI_SPRITEPREVIEW_HPP_
9#define RTYPE_ECS_COMPONENTS_UI_SPRITEPREVIEW_HPP_
File : SpritePreview.hpp License: MIT Author : GitHub Copilot Date : 14/01/2026.
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 zIndex
Rendering order.
int rectLeft
Left coordinate in texture.