Irrlicht 3D Engine
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 irr
11 {
12 namespace scene
13 {
14 
16 
21 {
22 public:
23 
26  const core::vector3df& position = core::vector3df(0,0,0))
27  : ISceneNode(parent, mgr, id, position) {}
28 
30  virtual void setSize(const core::dimension2d<f32>& size) = 0;
31 
33 
37  virtual void setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWidth) = 0;
38 
40 
44  virtual const core::dimension2d<f32>& getSize() const = 0;
45 
47 
51  virtual void getSize(f32& height, f32& bottomEdgeWidth, f32& topEdgeWidth) const =0;
52 
54 
55  virtual void setColor(const video::SColor& overallColor) = 0;
56 
58 
60  virtual void setColor(const video::SColor& topColor,
61  const video::SColor& bottomColor) = 0;
62 
64 
66  virtual void getColor(video::SColor& topColor,
67  video::SColor& bottomColor) const = 0;
68 };
69 
70 } // end namespace scene
71 } // end namespace irr
72 
73 
74 #endif
75 
Specifies a 2 dimensional size.
Definition: dimension2d.h:21
3d vector template class with lots of operators and methods.
Definition: vector3d.h:23
virtual void getColor(video::SColor &topColor, video::SColor &bottomColor) const =0
Gets the color of the top and bottom vertices of the billboard.
virtual void setColor(const video::SColor &topColor, const video::SColor &bottomColor)=0
Set the color of the top and bottom vertices of the billboard.
IBillboardSceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0))
Constructor.
virtual const core::dimension2d< f32 > & getSize() const =0
Returns the size of the billboard.
virtual void getSize(f32 &height, f32 &bottomEdgeWidth, f32 &topEdgeWidth) const =0
Gets the size of the the billboard and handles independent top and bottom edge widths correctly.
virtual void setColor(const video::SColor &overallColor)=0
Set the color of all vertices of the billboard.
virtual void setSize(const core::dimension2d< f32 > &size)=0
Sets the size of the billboard, making it rectangular.
virtual void setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWidth)=0
Sets the size of the billboard with independent widths of the bottom and top edges.
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
Scene node interface.
Definition: ISceneNode.h:41
Class representing a 32 bit ARGB color.
Definition: SColor.h:202
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:13
float f32
32 bit floating point variable.
Definition: irrTypes.h:104
signed int s32
32 bit signed variable.
Definition: irrTypes.h:66