diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-07 18:07:17 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-07 18:07:17 +0200 |
commit | 5f84969c851530ebc430be2cf8e99c945ff7a4a7 (patch) | |
tree | 9fcd2755dbfd456f20f0ad37c18c7281b81382b1 /src/crepe/SDLApp.hpp | |
parent | 5cf5cf64d6f9597849ed5558da4f1bc201165fed (diff) |
improved particle system from 90ms to ~ 0.7ms
Diffstat (limited to 'src/crepe/SDLApp.hpp')
-rw-r--r-- | src/crepe/SDLApp.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crepe/SDLApp.hpp b/src/crepe/SDLApp.hpp index 92a4e27..f95d4bc 100644 --- a/src/crepe/SDLApp.hpp +++ b/src/crepe/SDLApp.hpp @@ -2,6 +2,8 @@ #define SDLAPP_HPP #include <SDL2/SDL.h> +#include "Particle.hpp" +#include "ParticleEmitter.hpp" class SDLApp { public: @@ -14,7 +16,8 @@ public: void presentScreen(); void drawSquare(int x, int y, int size); void cleanUp(); - + void drawParticles(const std::vector<ParticleEmitter>& emitters); + void drawMultipleSquares(const std::vector<SDL_Rect>& squares); private: int windowWidth; int windowHeight; |