5#include "entt/entt.hpp"
60 void Init(
Registry& registry,
const float virtualWidth,
const float virtualHeight);
64 Renderer(
Registry& registry,
const float virtualWidth,
const float virtualHeight);
91 bool m_needSort =
false;
93 float m_virtualWidth = 0;
94 float m_virtualHeight = 0;
Engine entt::registry wrapper.
Wraps entt::registry with a safer, callback-aware API.
Definition Registry.hpp:29
void Init(Registry ®istry, const float virtualWidth, const float virtualHeight)
Initialises the renderer and registers sprite change callbacks.
Definition Renderer.cpp:103
static void RemoveSprite(const Entity entity)
Removes the Sprite component from an entity.
Definition Renderer.cpp:31
static bool SetSprite(const Entity entity, const Component::Sprite &sprite)
Assigns or replaces the Sprite component on an entity.
Definition Renderer.cpp:10
Texture, source rectangle, tint, scale and render layer.
Definition Components.hpp:39