MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Text

Method Text

tests/Engine/Platform/EventHandler/Text.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <NDK/Components/NodeComponent.hpp>
9
10Text::Text(StateContext& stateContext) :
11m_context(stateContext)
12{
13 m_text = m_context.world.CreateEntity();
14 m_text->AddComponent<Ndk::NodeComponent>();
15 Ndk::GraphicsComponent& graphicsComponent = m_text->AddComponent<Ndk::GraphicsComponent>();
16
17 m_textSprite = Nz::TextSprite::New();
18 graphicsComponent.Attach(m_textSprite);
19}
20
21Text::~Text()
22{

Callers

nothing calls this directly

Calls 1

AttachMethod · 0.80

Tested by

no test coverage detected