Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IParticleMeshEmitter.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_PARTICLE_MESH_EMITTER_HPP_INCLUDED
6#define NIRT_I_PARTICLE_MESH_EMITTER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IParticleEmitter.hpp>
9#include <nirtcpp/core/engine/IMesh.hpp>
10
11namespace nirt
12{
13namespace scene
14{
15
18{
19public:
20
22 virtual void setMesh( IMesh* mesh ) = 0;
23
25 virtual void setUseNormalDirection( bool useNormalDirection = true ) = 0;
26
28 virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) = 0;
29
31 virtual void setEveryMeshVertex( bool everyMeshVertex = true ) = 0;
32
34 virtual const IMesh* getMesh() const = 0;
35
37 virtual bool isUsingNormalDirection() const = 0;
38
40 virtual f32 getNormalDirectionModifier() const = 0;
41
43 virtual bool getEveryMeshVertex() const = 0;
44
46 virtual E_PARTICLE_EMITTER_TYPE getType() const override { return EPET_MESH; }
47};
48
49} // end namespace scene
50} // end namespace nirt
51
52#endif
Class which holds the geometry of an object.
Definition IMesh.hpp:72
A particle emitter for using with particle systems.
Definition IParticleEmitter.hpp:46
A particle emitter which emits from vertices of a mesh.
Definition IParticleMeshEmitter.hpp:18
virtual f32 getNormalDirectionModifier() const =0
Get the amount that the normal is divided by for getting a particles direction.
virtual void setUseNormalDirection(bool useNormalDirection=true)=0
Set whether to use vertex normal for direction, or direction specified.
virtual E_PARTICLE_EMITTER_TYPE getType() const override
Get emitter type.
Definition IParticleMeshEmitter.hpp:46
virtual const IMesh * getMesh() const =0
Get Mesh we're emitting particles from.
virtual void setNormalDirectionModifier(f32 normalDirectionModifier)=0
Set the amount that the normal is divided by for getting a particles direction.
virtual void setEveryMeshVertex(bool everyMeshVertex=true)=0
Sets whether to emit min<->max particles for every vertex or to pick min<->max vertices.
virtual void setMesh(IMesh *mesh)=0
Set Mesh to emit particles from.
virtual bool getEveryMeshVertex() const =0
Gets whether to emit min<->max particles for every vertex or to pick min<->max vertices.
virtual bool isUsingNormalDirection() const =0
Get whether to use vertex normal for direction, or direction specified.
E_PARTICLE_EMITTER_TYPE
Types of built in particle emitters.
Definition IParticleEmitter.hpp:18
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print