aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h')
-rw-r--r--src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h b/src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h
new file mode 100644
index 0000000..b7f2359
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/include/IBillboardTextSceneNode.h
@@ -0,0 +1,62 @@
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
10namespace irr
11{
12namespace scene
13{
14
15//! A billboard text scene node.
16/** Acts like a billboard which displays the currently set text.
17 Due to the exclusion of RTTI in Irrlicht we have to avoid multiple
18 inheritance. Hence, changes to the ITextSceneNode interface have
19 to be copied here manually.
20*/
21class IBillboardTextSceneNode : public IBillboardSceneNode
22{
23public:
24
25 //! Constructor
26 IBillboardTextSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
27 const core::vector3df& position = core::vector3df(0,0,0))
28 : IBillboardSceneNode(parent, mgr, id, position) {}
29
30 //! Sets the size of the billboard.
31 virtual void setSize(const core::dimension2d<f32>& size) = 0;
32
33 //! Returns the size of the billboard.
34 virtual const core::dimension2d<f32>& getSize() const = 0;
35
36 //! Set the color of all vertices of the billboard
37 /** \param overallColor: the color to set */
38 virtual void setColor(const video::SColor & overallColor) = 0;
39
40 //! Set the color of the top and bottom vertices of the billboard
41 /** \param topColor: the color to set the top vertices
42 \param bottomColor: the color to set the bottom vertices */
43 virtual void setColor(const video::SColor & topColor, const video::SColor & bottomColor) = 0;
44
45 //! Gets the color of the top and bottom vertices of the billboard
46 /** \param topColor: stores the color of the top vertices
47 \param bottomColor: stores the color of the bottom vertices */
48 virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0;
49
50 //! sets the text string
51 virtual void setText(const wchar_t* text) = 0;
52
53 //! sets the color of the text
54 virtual void setTextColor(video::SColor color) = 0;
55};
56
57} // end namespace scene
58} // end namespace irr
59
60
61#endif
62