From 444ec7306c8ef43d36f7c6d6e767571b30d10484 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sat, 23 Nov 2024 19:50:01 +0100 Subject: Fixing PR --- src/example/rendering.cpp | 59 ----------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 src/example/rendering.cpp (limited to 'src/example/rendering.cpp') diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp deleted file mode 100644 index 9e3c8cc..0000000 --- a/src/example/rendering.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "api/Camera.h" -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include - -using namespace std; -using namespace crepe; - -int main() { - dbg_trace(); - - ComponentManager mgr{}; - RenderSystem sys{mgr}; - - GameObject obj = mgr.new_object("name", "tag", Vector2{0, 0}, 1, 1); - GameObject obj1 = mgr.new_object("name", "tag", Vector2{500, 0}, 1, 0.1); - GameObject obj2 = mgr.new_object("name", "tag", Vector2{800, 0}, 1, 0.1); - - // Normal adding components - { - Color color(0, 0, 0, 0); - obj.add_component(make_shared("../asset/texture/green_square.png"), color, - FlipSettings{false, false}); - obj.add_component(Color::RED); - } - { - Color color(0, 0, 0, 0); - obj1.add_component(make_shared("../asset/texture/green_square.png"), color, - FlipSettings{true, true}); - } - - /* - { - Color color(0, 0, 0, 0); - auto img = mgr.cache("../asset/texture/second.png"); - obj2.add_component(img, color, FlipSettings{true, true}); - } - */ - - sys.update(); - /* - - auto start = std::chrono::steady_clock::now(); - while (std::chrono::steady_clock::now() - start < std::chrono::seconds(5)) { - sys.update(); - } - */ -} -- cgit v1.2.3