aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/renderSystem.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-22 15:37:00 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-22 15:37:00 +0200
commitf1857fc2d4ddec71b3f0395903f8446cf96b8d0c (patch)
treefeb0a1b4f80cb67ca9af89545ae67a2c03e2f23b /src/crepe/renderSystem.cpp
parentb151274f9009eb9f86e4df29ca2c75f5b01d4092 (diff)
fixed everything and can now work with new compiler, example rendering and made it work with component manager
Diffstat (limited to 'src/crepe/renderSystem.cpp')
-rw-r--r--src/crepe/renderSystem.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/crepe/renderSystem.cpp b/src/crepe/renderSystem.cpp
deleted file mode 100644
index a06aeba..0000000
--- a/src/crepe/renderSystem.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-#include "renderSystem.h"
-#include <vector>
-
-#include "api/Color.h"
-#include "api/Sprite.h"
-#include "api/Transform.h"
-#include "facade/SdlContext.h"
-#include "facade/Texture.h"
-
-using namespace crepe::api;
-
-
-static crepe::Texture player("../asset/texture/img.png");
-
-
-void RenderSystem::render(){
-
- Sprite sprite(player, Color::get_red(), {1,1});
- Transform transform ={
- .position = {0,0},
- .rotation = 0,
- .scale = 1,
- };
-
- // this will get changed to ecs getter of componets
- crepe::SdlContext& ctx = crepe::SdlContext::get_instance();
-
- ctx.draw(sprite, transform);
- /*
- for(const auto& S : test_objects){
- ctx.draw(S, const api::Transform &)
- }
- */
-}