arsa  2.7
IBillboardTextSceneNode.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_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__
6 #define __I_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__
7 
8 #include "IBillboardSceneNode.h"
9 
10 namespace irr
11 {
12 
13 namespace gui
14 {
15  class IGUIFont;
16 }
17 
18 namespace scene
19 {
20 
22 
28 {
29 public:
30 
33  const core::vector3df& position = core::vector3df(0,0,0))
34  : IBillboardSceneNode(parent, mgr, id, position) {}
35 
37  virtual void setSize(const core::dimension2d<f32>& size) = 0;
38 
40  virtual const core::dimension2d<f32>& getSize() const = 0;
41 
43 
44  virtual void setColor(const video::SColor & overallColor) = 0;
45 
47 
49  virtual void setColor(const video::SColor & topColor, const video::SColor & bottomColor) = 0;
50 
52 
54  virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0;
55 
57  virtual void setText(const wchar_t* text) = 0;
58 
60  virtual const wchar_t* getText() const = 0;
61 
65  {
66  setColor(color);
67  }
68 
70  virtual gui::IGUIFont* getFont() const = 0;
71 };
72 
73 } // end namespace scene
74 } // end namespace irr
75 
76 
77 #endif
78 
virtual const wchar_t * getText() const =0
get the text string
GLuint id
virtual void getColor(video::SColor &topColor, video::SColor &bottomColor) const =0
Gets the color of the top and bottom vertices of the billboard.
virtual gui::IGUIFont * getFont() const =0
Get the font used to draw the text.
Scene node interface.
Definition: ISceneNode.h:40
virtual void setText(const wchar_t *text)=0
sets the text string
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
GLsizeiptr size
Specifies a 2 dimensional size.
Definition: dimension2d.h:20
virtual void setSize(const core::dimension2d< f32 > &size)=0
Sets the size of the billboard.
IBillboardTextSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
Constructor.
Font interface.
Definition: IGUIFont.h:39
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
virtual const core::dimension2d< f32 > & getSize() const =0
Returns the size of the billboard.
virtual void setColor(const video::SColor &overallColor)=0
Set the color of all vertices of the billboard.
virtual void setTextColor(video::SColor color)
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.
GLuint color