#include <Particle_Container.h>
Particle_Container::Particle_Container |
( |
Transform |
t, |
|
|
const std::string & |
texturePath, |
|
|
bool |
enable = true , |
|
|
int |
max_particles = 10000 , |
|
|
int |
particle_rate = 1000 , |
|
|
float |
particle_max_life = 5 |
|
) |
| |
Particle_Container::~Particle_Container |
( |
| ) |
|
void Particle_Container::Destroy |
( |
| ) |
|
|
overridevirtual |
void Particle_Container::Draw |
( |
| ) |
|
void Particle_Container::Draw |
( |
GLuint |
shader | ) |
|
|
overridevirtual |
Draws via the given shader.
- Parameters
-
Implements IGameObject.
void Particle_Container::DrawShadow |
( |
| ) |
|
|
inline |
void Particle_Container::DrawShadow |
( |
GLuint |
shader | ) |
|
|
inlineoverridevirtual |
Draw shadows via the given shader.
Implements IGameObject.
const GLuint Particle_Container::GetTexture |
( |
const std::string & |
textureName | ) |
const |
|
overridevirtual |
Gets a texture.
- Parameters
-
textureName | The name of the texture. |
- Returns
- The texture.
Implements IGameObject.
void Particle_Container::setMaxLife |
( |
float |
life | ) |
|
void Particle_Container::setMaxParticles |
( |
int |
n | ) |
|
void Particle_Container::setSpawnRate |
( |
int |
rate | ) |
|
void Particle_Container::SetTexture |
( |
const std::string & |
textureName, |
|
|
const TextureType & |
textureType, |
|
|
const GLuint & |
texture |
|
) |
| |
|
overridevirtual |
Adds a texture to an object.
- Parameters
-
textureName | Name of the texture. |
textureType | Type of the texture. |
texture | The texture id. |
Implements IGameObject.
void Particle_Container::Update |
( |
| ) |
|
|
overridevirtual |