~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to include/IBillboardSceneNode.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
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
 
 
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.
 
19
*/
 
20
class IBillboardSceneNode : public ISceneNode
 
21
{
 
22
public:
 
23
 
 
24
        //! Constructor
 
25
        IBillboardSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
 
26
                const core::vector3df& position = core::vector3df(0,0,0))
 
27
                : ISceneNode(parent, mgr, id, position) {}
 
28
 
 
29
        //! Sets the size of the billboard.
 
30
        virtual void setSize(const core::dimension2d<f32>& size) = 0;
 
31
 
 
32
        //! Returns the size of the billboard.
 
33
        virtual const core::dimension2d<f32>& getSize() const = 0;
 
34
 
 
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;
 
38
 
 
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;
 
43
 
 
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;
 
48
};
 
49
 
 
50
} // end namespace scene
 
51
} // end namespace irr
 
52
 
 
53
 
 
54
#endif
 
55