Loading...
Searching...
No Matches
IParticleAttractionAffector.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED__
#define __I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED__
#include "IParticleAffector.h"
namespace irr
{
namespace scene
{
class IParticleAttractionAffector : public IParticleAffector
{
public:
virtual void setPoint( const core::vector3df& point ) = 0;
virtual void setAttract( bool attract ) = 0;
virtual void setAffectX( bool affect ) = 0;
virtual void setAffectY( bool affect ) = 0;
virtual void setAffectZ( bool affect ) = 0;
virtual const core::vector3df& getPoint() const = 0;
virtual bool getAttract() const = 0;
virtual bool getAffectX() const = 0;
virtual bool getAffectY() const = 0;
virtual bool getAffectZ() const = 0;
virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_ATTRACT; }
};
} // end namespace scene
} // end namespace irr
#endif // __I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED__
IParticleAffector.h
irr::scene::IParticleAffector::IParticleAffector
IParticleAffector()
constructor
Definition IParticleAffector.h:46
irr::scene::IParticleAffector::affect
virtual void affect(u32 now, SParticle *particlearray, u32 count)=0
Affects an array of particles.
irr::scene::IParticleAttractionAffector
A particle affector which attracts or detracts particles.
Definition IParticleAttractionAffector.h:17
irr::scene::IParticleAttractionAffector::getAffectY
virtual bool getAffectY() const =0
Get whether or not the particles Y position are affected.
irr::scene::IParticleAttractionAffector::setPoint
virtual void setPoint(const core::vector3df &point)=0
Set the point that particles will attract to.
irr::scene::IParticleAttractionAffector::getType
virtual E_PARTICLE_AFFECTOR_TYPE getType() const
Get emitter type.
Definition IParticleAttractionAffector.h:51
irr::scene::IParticleAttractionAffector::setAffectZ
virtual void setAffectZ(bool affect)=0
Set whether or not this will affect particles in the Z direction.
irr::scene::IParticleAttractionAffector::getAffectZ
virtual bool getAffectZ() const =0
Get whether or not the particles Z position are affected.
irr::scene::IParticleAttractionAffector::setAttract
virtual void setAttract(bool attract)=0
Set whether or not the particles are attracting or detracting.
irr::scene::IParticleAttractionAffector::setAffectY
virtual void setAffectY(bool affect)=0
Set whether or not this will affect particles in the Y direction.
irr::scene::IParticleAttractionAffector::getAttract
virtual bool getAttract() const =0
Get whether or not the particles are attracting or detracting.
irr::scene::IParticleAttractionAffector::getAffectX
virtual bool getAffectX() const =0
Get whether or not the particles X position are affected.
irr::scene::IParticleAttractionAffector::setAffectX
virtual void setAffectX(bool affect)=0
Set whether or not this will affect particles in the X direction.
irr::scene::IParticleAttractionAffector::getPoint
virtual const core::vector3df & getPoint() const =0
Get the point that particles are attracted to.
irr::core::vector3df
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::E_PARTICLE_AFFECTOR_TYPE
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
Definition IParticleAffector.h:18
irr::scene::EPAT_ATTRACT
@ EPAT_ATTRACT
Definition IParticleAffector.h:20
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0