diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IBillboardTextSceneNode.h | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/libraries/irrlicht-1.8/include/IBillboardTextSceneNode.h b/libraries/irrlicht-1.8/include/IBillboardTextSceneNode.h index b7f2359..30925da 100644 --- a/libraries/irrlicht-1.8/include/IBillboardTextSceneNode.h +++ b/libraries/irrlicht-1.8/include/IBillboardTextSceneNode.h | |||
@@ -1,62 +1,62 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__ | 5 | #ifndef __I_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__ |
6 | #define __I_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__ | 6 | #define __I_BILLBOARD_TEXT_SCENE_NODE_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IBillboardSceneNode.h" | 8 | #include "IBillboardSceneNode.h" |
9 | 9 | ||
10 | namespace irr | 10 | namespace irr |
11 | { | 11 | { |
12 | namespace scene | 12 | namespace scene |
13 | { | 13 | { |
14 | 14 | ||
15 | //! A billboard text scene node. | 15 | //! A billboard text scene node. |
16 | /** Acts like a billboard which displays the currently set text. | 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 | 17 | Due to the exclusion of RTTI in Irrlicht we have to avoid multiple |
18 | inheritance. Hence, changes to the ITextSceneNode interface have | 18 | inheritance. Hence, changes to the ITextSceneNode interface have |
19 | to be copied here manually. | 19 | to be copied here manually. |
20 | */ | 20 | */ |
21 | class IBillboardTextSceneNode : public IBillboardSceneNode | 21 | class IBillboardTextSceneNode : public IBillboardSceneNode |
22 | { | 22 | { |
23 | public: | 23 | public: |
24 | 24 | ||
25 | //! Constructor | 25 | //! Constructor |
26 | IBillboardTextSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id, | 26 | IBillboardTextSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id, |
27 | const core::vector3df& position = core::vector3df(0,0,0)) | 27 | const core::vector3df& position = core::vector3df(0,0,0)) |
28 | : IBillboardSceneNode(parent, mgr, id, position) {} | 28 | : IBillboardSceneNode(parent, mgr, id, position) {} |
29 | 29 | ||
30 | //! Sets the size of the billboard. | 30 | //! Sets the size of the billboard. |
31 | virtual void setSize(const core::dimension2d<f32>& size) = 0; | 31 | virtual void setSize(const core::dimension2d<f32>& size) = 0; |
32 | 32 | ||
33 | //! Returns the size of the billboard. | 33 | //! Returns the size of the billboard. |
34 | virtual const core::dimension2d<f32>& getSize() const = 0; | 34 | virtual const core::dimension2d<f32>& getSize() const = 0; |
35 | 35 | ||
36 | //! Set the color of all vertices of the billboard | 36 | //! Set the color of all vertices of the billboard |
37 | /** \param overallColor: the color to set */ | 37 | /** \param overallColor: the color to set */ |
38 | virtual void setColor(const video::SColor & overallColor) = 0; | 38 | virtual void setColor(const video::SColor & overallColor) = 0; |
39 | 39 | ||
40 | //! Set the color of the top and bottom vertices of the billboard | 40 | //! Set the color of the top and bottom vertices of the billboard |
41 | /** \param topColor: the color to set the top vertices | 41 | /** \param topColor: the color to set the top vertices |
42 | \param bottomColor: the color to set the bottom vertices */ | 42 | \param bottomColor: the color to set the bottom vertices */ |
43 | virtual void setColor(const video::SColor & topColor, const video::SColor & bottomColor) = 0; | 43 | virtual void setColor(const video::SColor & topColor, const video::SColor & bottomColor) = 0; |
44 | 44 | ||
45 | //! Gets the color of the top and bottom vertices of the billboard | 45 | //! Gets the color of the top and bottom vertices of the billboard |
46 | /** \param topColor: stores the color of the top vertices | 46 | /** \param topColor: stores the color of the top vertices |
47 | \param bottomColor: stores the color of the bottom vertices */ | 47 | \param bottomColor: stores the color of the bottom vertices */ |
48 | virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0; | 48 | virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0; |
49 | 49 | ||
50 | //! sets the text string | 50 | //! sets the text string |
51 | virtual void setText(const wchar_t* text) = 0; | 51 | virtual void setText(const wchar_t* text) = 0; |
52 | 52 | ||
53 | //! sets the color of the text | 53 | //! sets the color of the text |
54 | virtual void setTextColor(video::SColor color) = 0; | 54 | virtual void setTextColor(video::SColor color) = 0; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | } // end namespace scene | 57 | } // end namespace scene |
58 | } // end namespace irr | 58 | } // end namespace irr |
59 | 59 | ||
60 | 60 | ||
61 | #endif | 61 | #endif |
62 | 62 | ||