Bubbers / Bubba-3D

3D game engine using OpenGL.
https://bubbers.github.io/Bubba-3D/
GNU Lesser General Public License v3.0
9 stars 1 forks source link

Refactoring ParticleGenerator #77

Closed DunderRoffe closed 8 years ago

DunderRoffe commented 8 years ago

Started to write documentation for ParticleGenerator and half way through I noticed that there were some parts that could easily be cleaned up, so I did.

The constructor no longer takes a model matrix. Instead the attached GameObjects model matrix is used instead.
There are no longer any traditional pointers used. Instead ParticleGenerator uses std::unique_ptr. This is especially nice since the Particles are automatically cleaned up which did not happen at all before.