aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SDLApp.hpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 18:07:17 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 18:07:17 +0200
commit5f84969c851530ebc430be2cf8e99c945ff7a4a7 (patch)
tree9fcd2755dbfd456f20f0ad37c18c7281b81382b1 /src/crepe/SDLApp.hpp
parent5cf5cf64d6f9597849ed5558da4f1bc201165fed (diff)
improved particle system from 90ms to ~ 0.7ms
Diffstat (limited to 'src/crepe/SDLApp.hpp')
-rw-r--r--src/crepe/SDLApp.hpp5
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;