33 void setEngine(
const std::shared_ptr<Engine>& engine) { _engine = engine; }
46 std::shared_ptr<Mesh> mesh;
47 std::shared_ptr<StandardMaterial> material;
48 std::string cachedText;
49 int cachedFontSize = 0;
50 float cachedWidth = 0.0f;
51 float cachedHeight = 0.0f;
54 bool cachedWrap =
false;
56 bool activeFrame =
false;
59 bool computeElementRect(
const ElementComponent* element, SDL_FRect& outRect)
const;
61 std::shared_ptr<Engine> _engine;
62 SDL_Renderer* _sdlRenderer =
nullptr;
63 std::unordered_map<ElementComponent*, TextVisual> _textVisuals;