Saga3D API Documentation  1.0-RC4
IBillboardSceneNode.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_SCENE_NODE_H_INCLUDED__
6 #define __I_BILLBOARD_SCENE_NODE_H_INCLUDED__
7 
8 #include "ISceneNode.h"
9 
10 namespace saga
11 {
12 namespace scene
13 {
14  class ICameraSceneNode;
15 
17 
22 {
23 public:
24 
26  IBillboardSceneNode(ISceneNode* parent, ISceneManager* mgr, std::int32_t id,
27  const glm::vec3& position = glm::vec3(0,0,0))
28  : ISceneNode(parent, mgr, id, position) {}
29 
31  virtual void setSize(const glm::vec2& size) = 0;
32 
34 
38  virtual void setSize(float height, float bottomEdgeWidth, float topEdgeWidth) = 0;
39 
41 
45  virtual const glm::vec2& getSize() const = 0;
46 
48 
52  virtual void getSize(float& height, float& bottomEdgeWidth, float& topEdgeWidth) const = 0;
53 
55 
56  virtual void setColor(const video::SColor& overallColor) = 0;
57 
59 
61  virtual void setColor(const video::SColor& topColor,
62  const video::SColor& bottomColor) = 0;
63 
65 
67  virtual void getColor(video::SColor& topColor,
68  video::SColor& bottomColor) const = 0;
69 
71 
77 };
78 
79 } // namespace scene
80 } // namespace saga
81 
82 
83 #endif
84 
saga::scene::ISceneNode
Type for list of scene node animators.
Definition: ISceneNode.h:41
saga::scene::IBillboardSceneNode::IBillboardSceneNode
IBillboardSceneNode(ISceneNode *parent, ISceneManager *mgr, std::int32_t id, const glm::vec3 &position=glm::vec3(0, 0, 0))
Constructor.
Definition: IBillboardSceneNode.h:26
saga::scene::ICameraSceneNode
Scene Node which is a (controllable) camera.
Definition: ICameraSceneNode.h:23
saga::scene::IBillboardSceneNode::setSize
virtual void setSize(const glm::vec2 &size)=0
Sets the size of the billboard, making it rectangular.
saga::scene::IBillboardSceneNode::getSize
virtual const glm::vec2 & getSize() const =0
Returns the size of the billboard.
ISceneNode.h
saga::scene::IBillboardSceneNode::setColor
virtual void setColor(const video::SColor &overallColor)=0
Set the color of all vertices of the billboard.
saga::core::aabbox3d< float >
saga::scene::IBillboardSceneNode::getColor
virtual void getColor(video::SColor &topColor, video::SColor &bottomColor) const =0
Gets the color of the top and bottom vertices of the billboard.
saga::scene::IBillboardSceneNode::getTransformedBillboardBoundingBox
virtual const core::aabbox3d< float > & getTransformedBillboardBoundingBox(const saga::scene::ICameraSceneNode *camera)=0
Get the real boundingbox used by the billboard, which can depend on the active camera.
saga::scene::IBillboardSceneNode
A billboard scene node.
Definition: IBillboardSceneNode.h:21
saga::scene::ISceneManager
Definition: ISceneManager.h:38
saga::video::SColor
Class representing a 32 bit ARGB color.
Definition: SColor.h:197
saga
Definition: aabbox3d.h:11