31 glm::vec4
color = { 1.0f, 1.0f, 1.0f, 1.0f };
#define REGISTER_COMPONENT(Type, MenuPath)
Definition ComponentReflection.hpp:156
#define ENGINE_API
Definition EngineAPI.hpp:10
Definition Application.hpp:16
Component that renders a textured 2D quad (sprite) on an entity.
Definition SpriteRenderer.hpp:24
uint32_t _managedMatId
GPU material ID of the managed sprite material (0 = not yet created).
Definition SpriteRenderer.hpp:51
std::string texturePath
Path to the sprite texture asset (PNG, JPG, TGA).
Definition SpriteRenderer.hpp:27
int sortOrder
Depth-sorting order relative to other sprites. Lower values render behind higher values.
Definition SpriteRenderer.hpp:43
bool _lastFlipY
The flip state that was last applied — used to detect changes requiring mesh rebuild.
Definition SpriteRenderer.hpp:60
uint32_t _managedMeshId
GPU mesh ID of the managed unit quad (0 = not yet created).
Definition SpriteRenderer.hpp:48
std::string _loadedTexturePath
The texture path that was last uploaded — used to detect dirty texture changes.
Definition SpriteRenderer.hpp:54
bool flipY
Flip UV vertically (mirrors sprite around the horizontal axis).
Definition SpriteRenderer.hpp:39
bool _lastFlipX
The flip state that was last applied — used to detect changes requiring mesh rebuild.
Definition SpriteRenderer.hpp:57
bool _dirty
Whether this sprite needs full setup on the next update.
Definition SpriteRenderer.hpp:66
bool flipX
Flip UV horizontally (mirrors sprite around the vertical axis).
Definition SpriteRenderer.hpp:35
glm::vec4 color
RGBA tint multiplied with the sampled texture colour.
Definition SpriteRenderer.hpp:31
int _lastSortOrder
sortOrder value that was last applied.
Definition SpriteRenderer.hpp:63