aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering_particle.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 10:03:06 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 10:03:06 +0100
commit8cfb59093ce7b18c2b81cc8429a7568a3ba21a73 (patch)
treef4ac31b930ca47bab53fdf46b05d4444173028c9 /src/example/rendering_particle.cpp
parent20ff7753942de3f8eb95d4dee307dc643bc66153 (diff)
adjusted vector2 to vec2
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r--src/example/rendering_particle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index 49e8e9d..80726bc 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -2,7 +2,6 @@
#include "api/Camera.h"
#include "system/AnimatorSystem.h"
#include "system/ParticleSystem.h"
-#include "types.h"
#include <SDL2/SDL_timer.h>
#include <crepe/ComponentManager.h>
@@ -14,7 +13,7 @@
#include <crepe/api/Sprite.h>
#include <crepe/api/Texture.h>
#include <crepe/api/Transform.h>
-#include <crepe/api/Vector2.h>
+#include <crepe/types.h>
#include <crepe/system/RenderSystem.h>
#include <chrono>
@@ -25,7 +24,7 @@ using namespace std;
int main(int argc, char * argv[]) {
ComponentManager mgr;
- GameObject game_object = mgr.new_object("", "", Vector2{0, 0}, 0, 1);
+ GameObject game_object = mgr.new_object("", "", vec2{0, 0}, 0, 1);
RenderSystem sys{mgr};
ParticleSystem psys{mgr};
AnimatorSystem asys{mgr};