Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
ParticleGenerator Class Reference
Inheritance diagram for ParticleGenerator:
IRenderComponent IComponent

Public Member Functions

 ParticleGenerator (Texture *texture, int amount, Camera *camera, chag::float4x4 modelMatrix, ParticleConf *conf)
 
void update (float dt)
 
void renderShadow (ShaderProgram *shaderProgram)
 
void render ()
 
void setScaleLod (bool value)
 
void setLooping (bool value)
 
- Public Member Functions inherited from IComponent
void bind (GameObject *owner)
 
virtual void beforeCollision (GameObject *collider)
 
virtual void duringCollision (GameObject *collider)
 
virtual void afterCollision (GameObject *collider)
 
virtual void onDeath ()
 

Additional Inherited Members

- Protected Attributes inherited from IRenderComponent
ShaderProgramshaderProgram
 
- Protected Attributes inherited from IComponent
GameObjectowner
 

Detailed Description

Definition at line 31 of file ParticleGenerator.h.

Member Function Documentation

void ParticleGenerator::render ( )
virtual

Render all the spawned Particles.

Implements IRenderComponent.

Definition at line 80 of file ParticleGenerator.cpp.

void ParticleGenerator::renderShadow ( ShaderProgram shaderProgram)
inlinevirtual

Render shadows from the spawned Particles.

Parameters
shaderProgramThe ShaderProgram used to render the shadows.

Implements IRenderComponent.

Definition at line 50 of file ParticleGenerator.h.

void ParticleGenerator::update ( float  dt)
virtual

Update the position of all spawned Particles.

Parameters
dtThe time in seconds since last update call.

Implements IComponent.

Definition at line 137 of file ParticleGenerator.cpp.


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