DarthSharkie / Apel-Mod

Apel is a library that brings particle animations to the table with flexible behaviour and a clean developer interface. It promises also lots of predefined shapes & paths to help the developer on their particle scene
Other
0 stars 0 forks source link

Move the `draw...` methods into the respective `Instruction` records. #38

Open DarthSharkie opened 5 months ago

DarthSharkie commented 5 months ago

See discussion: https://github.com/DarthSharkie/Apel-Mod/issues/11#issuecomment-2195670525

If the Instruction had a draw method that accepted a renderer, the instruction knows enough to call drawParticle when needed. Need to experiment to see if that inversion makes sense or not.