#include <UpdateFuncObjects.h>
UpdateFuncObject::UpdateFuncObject |
( |
int |
framesPerUpdate, |
|
|
int |
updateLimit |
|
) |
| |
Create an update object
- Parameters
-
framesPerUpdate | only update every few frames |
updateLimit | only update this many times (< 0 for no limit) |
virtual void UpdateFuncObject::doUpdate |
( |
uint32_t |
particleId, |
|
|
ParticleGroupHandle * |
group, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
framesElapsed |
|
) |
| |
|
protectedpure virtual |
void UpdateFuncObject::update |
( |
uint32_t |
particleId, |
|
|
ParticleGroupHandle * |
group, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
framesElapsed |
|
) |
| |
Do something every frame.
- Parameters
-
group | the particle group to affect |
x | the x position of the particle to affect |
y | the y position of the particle to affect |
framesElapsed | how many frames have elapsed since the last update |
The documentation for this class was generated from the following files: