Water Particle Simulator¶
-
class WaterParticleSimulator¶
Class for containing a set of particle generators. Currently a work in progress.
Public Functions
-
void RestoreDeviceObjects(platform::crossplatform::RenderPlatform *renderPlatform)¶
Platform-dependent function called when initializing the wavelets simulator.
-
void InvalidateDeviceObjects()¶
Platform-dependent function called when uninitializing the wavelets simulator.
-
void LoadShaders()¶
Platform-dependent function to reload the shaders - only use this for debug purposes.
-
bool AddWaterParticleGenerator(const particleGeneratorValues *newGenerator, const particleGeneratorType newGeneratorType, platform::crossplatform::Texture *customPlaneTexture)¶
Create a particle generator.
-
void UpdateWaterParticleGeneratorValues(const particleGeneratorValues *generator, const particleGeneratorType generatorType, platform::crossplatform::Texture *customPlaneTexture)¶
Update the values of a specific water particle generator.
-
void RemoveWaterParticleGenerator(int ID)¶
Remove a particle generator.
-
void RestoreDeviceObjects(platform::crossplatform::RenderPlatform *renderPlatform)¶