affection-0.0.0.0: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Particle

Description

This module introduces a simple particle system to Affection

Synopsis

Documentation

updateParticle #

Arguments

:: Double

Elapsed time in seconds

-> (Double -> Particle -> Affection us Particle)

Update function for a single Particle This Function should take the elapsed time in seconds and the initial particle as arguments. -> [Maybe Particle]

-> Particle

Particle to be processed -> Affection us [Maybe Particle]

-> Affection us (Maybe Particle)

resulting Particle

drawParticles :: (Particle -> Affection us ()) -> [Particle] -> Affection us () #

updateParticleSystem :: ParticleSystem -> Double -> (Double -> Particle -> Affection us Particle) -> (GeglBuffer -> GeglNode -> Particle -> Affection us ()) -> Affection us ParticleSystem #

insertParticle #

Arguments

:: ParticleSystem

ParticleSystem to insert into

-> Particle

Particle to insert

-> Affection us ParticleSystem

resulting new ParticleSystem

Function for inserting a new Particle into its PartileSystem