_nl.engine  alpha 0.9
Nameless Engine C++ Opengl 3D Game Engine / Framework
_NL::Object::ParticleSystem Class Reference

#include <ParticleSystem.h>

Inheritance diagram for _NL::Object::ParticleSystem:
_NL::Core::Object

Classes

struct  SpwTransform
 

Public Types

enum  PARTICLE_SPAWN_MODE { CUBE = 0, SPHERE = 1, CONE = 2 }
 

Public Member Functions

 ParticleSystem ()
 
glm::vec3 coneClamp (glm::vec3 pos)
 
glm::quat getDirectionQuaternion (glm::vec3 dir, glm::vec3 newdir)
 
void SPAWN_ON ()
 
void SPAWN_OFF ()
 
void BEHAVIOUR_ON ()
 
void BEHAVIOUR_OFF ()
 
void TickSystem ()
 
char * getTypeName () override
 Every Sub Class must Overload this method. More...
 
- Public Member Functions inherited from _NL::Core::Object
 Object ()
 Default Empty Constructor. More...
 
virtual ~Object ()
 Default Destructor. More...
 
template<class ComponentType >
ComponentType * addComponent (ComponentType *C)
 
template<typename ComponentType >
ComponentType * getComponent ()
 

Public Attributes

std::vector< _NL::Object::ParticleObj * > ActiveParticles
 
_NL::Core::Script< _NL::Object::ParticleObj > * ParticlesBehavior = NULL
 
_NL::Object::ParticleObjParticle = NULL
 
_NL::Engine::WorldSpaceCurrentScene = NULL
 
_NL::Engine::TimeTimeScale = NULL
 
GLfloat SpawnPerFrame = 1
 
struct _NL::Object::ParticleSystem::SpwTransform SpawnerTransform
 
- Public Attributes inherited from _NL::Core::Object
char * name
 Object Name. More...
 
ObjectParent = 0
 Reference of Parent Object for this object. More...
 
bool bactive = true
 
std::vector< _NL::Core::Component * > Components
 

Member Enumeration Documentation

◆ PARTICLE_SPAWN_MODE

Enumerator
CUBE 
SPHERE 
CONE 

Constructor & Destructor Documentation

◆ ParticleSystem()

_NL::Object::ParticleSystem::ParticleSystem ( )

Member Function Documentation

◆ BEHAVIOUR_OFF()

void _NL::Object::ParticleSystem::BEHAVIOUR_OFF ( )

◆ BEHAVIOUR_ON()

void _NL::Object::ParticleSystem::BEHAVIOUR_ON ( )

◆ coneClamp()

glm::vec3 _NL::Object::ParticleSystem::coneClamp ( glm::vec3  pos)

◆ getDirectionQuaternion()

glm::quat _NL::Object::ParticleSystem::getDirectionQuaternion ( glm::vec3  dir,
glm::vec3  newdir 
)

◆ getTypeName()

char * _NL::Object::ParticleSystem::getTypeName ( )
overridevirtual

Every Sub Class must Overload this method.

e.g : " return "_NL::UI::subgetTypeName" "

Implements _NL::Core::Object.

◆ SPAWN_OFF()

void _NL::Object::ParticleSystem::SPAWN_OFF ( )

◆ SPAWN_ON()

void _NL::Object::ParticleSystem::SPAWN_ON ( )

◆ TickSystem()

void _NL::Object::ParticleSystem::TickSystem ( )

Member Data Documentation

◆ ActiveParticles

std::vector<_NL::Object::ParticleObj*> _NL::Object::ParticleSystem::ActiveParticles

◆ CurrentScene

_NL::Engine::WorldSpace* _NL::Object::ParticleSystem::CurrentScene = NULL

◆ Particle

_NL::Object::ParticleObj* _NL::Object::ParticleSystem::Particle = NULL

◆ ParticlesBehavior

_NL::Core::Script<_NL::Object::ParticleObj>* _NL::Object::ParticleSystem::ParticlesBehavior = NULL

◆ SpawnerTransform

struct _NL::Object::ParticleSystem::SpwTransform _NL::Object::ParticleSystem::SpawnerTransform

◆ SpawnPerFrame

GLfloat _NL::Object::ParticleSystem::SpawnPerFrame = 1

◆ TimeScale

_NL::Engine::Time* _NL::Object::ParticleSystem::TimeScale = NULL

The documentation for this class was generated from the following files: