~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to include/IParticleMeshEmitter.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_PARTICLE_MESH_EMITTER_H_INCLUDED__
 
6
#define __I_PARTICLE_MESH_EMITTER_H_INCLUDED__
 
7
 
 
8
#include "IParticleEmitter.h"
 
9
#include "IMesh.h"
 
10
 
 
11
namespace irr
 
12
{
 
13
namespace scene
 
14
{
 
15
 
 
16
//! A particle emitter which emits from vertices of a mesh
 
17
class IParticleMeshEmitter : public IParticleEmitter
 
18
{
 
19
public:
 
20
 
 
21
        //! Set Mesh to emit particles from
 
22
        virtual void setMesh( IMesh* mesh ) = 0;
 
23
 
 
24
        //! Set whether to use vertex normal for direction, or direction specified
 
25
        virtual void setUseNormalDirection( bool useNormalDirection = true ) = 0;
 
26
 
 
27
        //! Set the amount that the normal is divided by for getting a particles direction
 
28
        virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) = 0;
 
29
 
 
30
        //! Sets whether to emit min<->max particles for every vertex or to pick min<->max vertices
 
31
        virtual void setEveryMeshVertex( bool everyMeshVertex = true ) = 0;
 
32
 
 
33
        //! Get Mesh we're emitting particles from
 
34
        virtual const IMesh* getMesh() const = 0;
 
35
 
 
36
        //! Get whether to use vertex normal for direction, or direction specified
 
37
        virtual bool isUsingNormalDirection() const = 0;
 
38
 
 
39
        //! Get the amount that the normal is divided by for getting a particles direction
 
40
        virtual f32 getNormalDirectionModifier() const = 0;
 
41
 
 
42
        //! Gets whether to emit min<->max particles for every vertex or to pick min<->max vertices
 
43
        virtual bool getEveryMeshVertex() const = 0;
 
44
 
 
45
        //! Get emitter type
 
46
        virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_MESH; }
 
47
};
 
48
 
 
49
} // end namespace scene
 
50
} // end namespace irr
 
51
 
 
52
 
 
53
#endif
 
54