arsa  2.7
ITextSceneNode.h
Go to the documentation of this file.
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 irrlicht.h
4 
5 #ifndef __I_TEXT_SCENE_NODE_H_INCLUDED__
6 #define __I_TEXT_SCENE_NODE_H_INCLUDED__
7 
8 #include "ISceneNode.h"
9 
10 namespace irr
11 {
12 
13 namespace gui
14 {
15  class IGUIFont;
16 }
17 
18 namespace scene
19 {
20 
22 class ITextSceneNode : public ISceneNode
23 {
24 public:
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 irr
52 
53 
54 #endif
55 
GLuint id
virtual void setText(const wchar_t *text)=0
sets the text string
Scene node interface.
Definition: ISceneNode.h:40
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual video::SColor getTextColor() const =0
get the color of the text
A scene node for displaying 2d text at a position in three dimensional space.
Font interface.
Definition: IGUIFont.h:39
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
virtual void setFont(gui::IGUIFont *font)=0
set the font used to draw the text
Class representing a 32 bit ARGB color.
Definition: SColor.h:316
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
virtual gui::IGUIFont * getFont() const =0
Get the font used to draw the text.
GLuint color
ITextSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
constructor
virtual void setTextColor(video::SColor color)=0
sets the color of the text
virtual const wchar_t * getText() const =0
get the text string