Water Particle Simulator

class WaterParticleSimulator

Public Functions

void RestoreDeviceObjects(crossplatform::RenderPlatform *renderPlatform)

Platform-dependent function called when initializing the wavelets simulator.

void InvalidateDeviceObjects()

Platform-dependent function called when uninitializing the wavelets simulator.

void RecompileShaders()

Platform-dependent function to reload the shaders - only use this for debug purposes.

bool AddWaterParticleGenerator(const particleGeneratorValues *newGenerator, const particleGeneratorType newGeneratorType, crossplatform::Texture *customPlaneTexture)

Create a particle generator.

void UpdateWaterParticleGeneratorValues(const particleGeneratorValues *generator, const particleGeneratorType generatorType, crossplatform::Texture *customPlaneTexture)

Update the values of a specific water particle generator.

void RemoveWaterParticleGenerator(int ID)

Remove a particle generator.