Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ITextSceneNode.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_TEXT_SCENE_NODE_HPP_INCLUDED
6#define NIRT_I_TEXT_SCENE_NODE_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/ISceneNode.hpp>
9
10namespace nirt
11{
12
13namespace gui
14{
15 class IGUIFont;
16}
17
18namespace scene
19{
20
23{
24public:
25
28 const core::vector3df& position = core::vector3df(0,0,0))
29 : ISceneNode(parent, mgr, id, position) {}
30
32 virtual void setText(const wchar_t* text) = 0;
33
35 virtual const wchar_t* getText() const = 0;
36
38 virtual void setTextColor(video::SColor color) = 0;
39
41 virtual video::SColor getTextColor() const = 0;
42
44 virtual void setFont(gui::IGUIFont* font) = 0;
45
47 virtual gui::IGUIFont* getFont() const = 0;
48};
49
50} // end namespace scene
51} // end namespace nirt
52
53#endif
Font interface.
Definition IGUIFont.hpp:40
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
Definition ISceneManager.hpp:160
Scene node interface.
Definition ISceneNode.hpp:43
A scene node for displaying 2d text at a position in three dimensional space.
Definition ITextSceneNode.hpp:23
virtual void setFont(gui::IGUIFont *font)=0
set the font used to draw the text
virtual void setTextColor(video::SColor color)=0
sets the color of the text
virtual gui::IGUIFont * getFont() const =0
Get the font used to draw the text.
virtual void setText(const wchar_t *text)=0
sets the text string
virtual const wchar_t * getText() const =0
get the text string
ITextSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
constructor
Definition ITextSceneNode.hpp:27
virtual video::SColor getTextColor() const =0
get the color of the text
Class representing a 32 bit ARGB color.
Definition SColor.hpp:317
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print