Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IParticleAnimatedMeshSceneNodeEmitter.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_ANIMATED_MESH_SCENE_NODE_EMITTER_HPP_INCLUDED
6#define NIRT_I_PARTICLE_ANIMATED_MESH_SCENE_NODE_EMITTER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IParticleEmitter.hpp>
9#include <nirtcpp/core/engine/IAnimatedMeshSceneNode.hpp>
10
11namespace nirt
12{
13namespace scene
14{
15
18{
19public:
20
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
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_ANIMATED_MESH; }
47};
48
49} // end namespace scene
50} // end namespace nirt
51
52#endif // NIRT_I_PARTICLE_ANIMATED_MESH_SCENE_NODE_EMITTER_HPP_INCLUDED
Scene node capable of displaying an animated mesh.
Definition IAnimatedMeshSceneNode.hpp:52
A particle emitter which emits particles from mesh vertices.
Definition IParticleAnimatedMeshSceneNodeEmitter.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 IParticleAnimatedMeshSceneNodeEmitter.hpp:46
virtual const IAnimatedMeshSceneNode * getAnimatedMeshSceneNode() 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 setAnimatedMeshSceneNode(IAnimatedMeshSceneNode *node)=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.
A particle emitter for using with particle systems.
Definition IParticleEmitter.hpp:46
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

Esvcpp    esv::print