New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module Final touch * NDK/SDK: Bring back initialization of Utility
This commit is contained in:
committed by
Jérôme Leclercq
parent
41a1b5d493
commit
5aa072cee3
23
tests/Engine/Platform/EventHandler/Text.hpp
Normal file
23
tests/Engine/Platform/EventHandler/Text.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __TEXT_HPP__
|
||||
#define __TEXT_HPP__
|
||||
|
||||
#include <Nazara/Graphics/TextSprite.hpp>
|
||||
#include <NDK/Entity.hpp>
|
||||
#include "StateContext.hpp"
|
||||
|
||||
class Text
|
||||
{
|
||||
public:
|
||||
Text(StateContext& context);
|
||||
~Text();
|
||||
|
||||
void SetContent(const Nz::String& string, unsigned int size = 36);
|
||||
void SetVisible(bool shouldBeVisible = true);
|
||||
|
||||
private:
|
||||
StateContext& m_context;
|
||||
Ndk::EntityHandle m_text;
|
||||
Nz::TextSpriteRef m_textSprite;
|
||||
};
|
||||
|
||||
#endif // __TEXT_HPP__
|
||||
Reference in New Issue
Block a user