Saga3D API Documentation  1.0-RC4
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 saga
11 {
12 
13 namespace gui
14 {
15  class IGUIFont;
16 }
17 
18 namespace scene
19 {
20 
22 
28 {
29 public:
30 
32  IBillboardTextSceneNode(ISceneNode* parent, ISceneManager* mgr, std::int32_t id,
33  const glm::vec3& position = glm::vec3(0,0,0))
34  : IBillboardSceneNode(parent, mgr, id, position) {}
35 
37  virtual void setSize(const glm::vec2& size) = 0;
38 
40  virtual const glm::vec2& 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 char* text) = 0;
58 
60  virtual const char* getText() const = 0;
61 
64  virtual void setTextColor(video::SColor color)
65  {
66  setColor(color);
67  }
68 
70  virtual gui::IGUIFont* getFont() const = 0;
71 };
72 
73 } // namespace scene
74 } // namespace saga
75 
76 
77 #endif
78 
saga::scene::IBillboardTextSceneNode::getSize
virtual const glm::vec2 & getSize() const =0
Returns the size of the billboard.
saga::scene::ISceneNode
Type for list of scene node animators.
Definition: ISceneNode.h:41
saga::scene::IBillboardTextSceneNode::getColor
virtual void getColor(video::SColor &topColor, video::SColor &bottomColor) const =0
Gets the color of the top and bottom vertices of the billboard.
IBillboardSceneNode.h
saga::scene::IBillboardTextSceneNode::setColor
virtual void setColor(const video::SColor &overallColor)=0
Set the color of all vertices of the billboard.
saga::scene::IBillboardTextSceneNode::setSize
virtual void setSize(const glm::vec2 &size)=0
Sets the size of the billboard.
saga::scene::IBillboardTextSceneNode::setText
virtual void setText(const char *text)=0
sets the text string
saga::scene::IBillboardSceneNode
A billboard scene node.
Definition: IBillboardSceneNode.h:21
saga::scene::IBillboardTextSceneNode::IBillboardTextSceneNode
IBillboardTextSceneNode(ISceneNode *parent, ISceneManager *mgr, std::int32_t id, const glm::vec3 &position=glm::vec3(0, 0, 0))
Constructor.
Definition: IBillboardTextSceneNode.h:32
saga::scene::IBillboardTextSceneNode::getText
virtual const char * getText() const =0
get the text string
saga::scene::ISceneManager
Definition: ISceneManager.h:38
saga::video::SColor
Class representing a 32 bit ARGB color.
Definition: SColor.h:197
saga::scene::IBillboardTextSceneNode::getFont
virtual gui::IGUIFont * getFont() const =0
Get the font used to draw the text.
saga::scene::IBillboardTextSceneNode::setTextColor
virtual void setTextColor(video::SColor color)
Definition: IBillboardTextSceneNode.h:64
saga
Definition: aabbox3d.h:11
saga::scene::IBillboardTextSceneNode
A billboard text scene node.
Definition: IBillboardTextSceneNode.h:27