IParticleOutput
Description
- Derived from
- Extended by
-
ParticleOutput abstract
Base interface for classes that generate GPU data for rendering particles.
When preparing a frame, the Prepare method may be called to fetch the most up-to-data particle data from the given ParticleBuffer. When rendering a frame, the Output method may be used to generate GPU data for the particles.
Public / Methods
Output
Generates GPU data for the particles in the given buffer, using the simulation time that has been specified by the last call to Prepare.
- See also
Prepare
Updates the particle output for the given simulation time.
Calling this method periodically with the same ParticleBuffer object allows an implementation to perform time-based interpolation.
Public / Attributes
Origin
The origin to use for particle position when outputting particle data with subsequent calls to Output.
The origin is subtracted from the particle position before being output as GPU data. Defaults to Vec3D.Zero.
- See also