1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __I_BILLBOARD_SCENE_NODE_H_INCLUDED__
6
#define __I_BILLBOARD_SCENE_NODE_H_INCLUDED__
8
#include "ISceneNode.h"
15
//! A billboard scene node.
16
/** A billboard is like a 3d sprite: A 2d element,
17
which always looks to the camera. It is usually used for explosions, fire,
18
lensflares, particles and things like that.
20
class IBillboardSceneNode : public ISceneNode
25
IBillboardSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
26
const core::vector3df& position = core::vector3df(0,0,0))
27
: ISceneNode(parent, mgr, id, position) {}
29
//! Sets the size of the billboard.
30
virtual void setSize(const core::dimension2d<f32>& size) = 0;
32
//! Returns the size of the billboard.
33
virtual const core::dimension2d<f32>& getSize() const = 0;
35
//! Set the color of all vertices of the billboard
36
/** \param overallColor: the color to set */
37
virtual void setColor(const video::SColor & overallColor) = 0;
39
//! Set the color of the top and bottom vertices of the billboard
40
/** \param topColor: the color to set the top vertices
41
\param bottomColor: the color to set the bottom vertices */
42
virtual void setColor(const video::SColor & topColor, const video::SColor & bottomColor) = 0;
44
//! Gets the color of the top and bottom vertices of the billboard
45
/** \param topColor: stores the color of the top vertices
46
\param bottomColor: stores the color of the bottom vertices */
47
virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0;
50
} // end namespace scene
51
} // end namespace irr