hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::Particle Class Reference

Poolable 2D/3D particle. More...

#include <particle.hpp>

Public Member Functions

void setTexture (const Ptr< Texture > &texture)
 Set the texture. More...
 
void update (const float delta)
 Update the particle. More...
 
void draw (Batch &batch)
 Draw the particle. More...
 
virtual void reset () override
 Reset the element.
 
- Public Member Functions inherited from hx3d::Poolable
void setId (const unsigned int id)
 Change the poolable ID. More...
 
unsigned int getId () const
 Get the poolable ID. More...
 

Detailed Description

Poolable 2D/3D particle.

Definition at line 37 of file particle.hpp.

Member Function Documentation

void hx3d::graphics::Particle::draw ( Batch batch)

Draw the particle.

Parameters
batchBatch

Definition at line 69 of file particle.cpp.

void hx3d::graphics::Particle::setTexture ( const Ptr< Texture > &  texture)

Set the texture.

Parameters
textureTexture (Ptr)

Definition at line 40 of file particle.cpp.

void hx3d::graphics::Particle::update ( const float  delta)

Update the particle.

Parameters
deltaDelta time

Definition at line 44 of file particle.cpp.


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