Struct partio::ParticlesSimple [] [src]

pub struct ParticlesSimple {
    // some fields omitted
}

Methods

impl ParticlesSimple
[src]

fn num_particles(&self) -> u64

Number of particles in the structure.

fn num_attributes(&self) -> usize

Number of per-particle attributes.

fn num_fixed_attributes(&self) -> usize

Number of fixed attributes.

fn add_attribute(&mut self, attribute: &'static str, ptype: ParticleAttributeType, count: u8) -> ParticleAttribute

Adds an attribute to the particle with the provided name, type and count.

fn add_particle(&mut self) -> ParticleIndex

Adds a new particle and returns it's index.

fn write(&self, filename: &str) -> Result<()>

Write particle data to external file.

Trait Implementations

impl Debug for ParticlesSimple
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T> DataWriter<T> for ParticlesSimple
[src]

fn data_write(&mut self, data: &T)

Stores particle data of various types in vector of bytes.