diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 18:07:48 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 18:07:48 +0100 |
commit | a67c52325bc8cbd264293b9dcc217fc07bfbaf57 (patch) | |
tree | fd662601aab7218795d704cbbab99ac82e1dd4ac /src/example/rendering.cpp | |
parent | 91bb45fd6430cc353d2a57f2496c3e9945e98557 (diff) |
merge `master` into `loek/collision-system`
Diffstat (limited to 'src/example/rendering.cpp')
-rw-r--r-- | src/example/rendering.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp index 14ecaa9..9e3c8cc 100644 --- a/src/example/rendering.cpp +++ b/src/example/rendering.cpp @@ -30,13 +30,13 @@ int main() { // Normal adding components { Color color(0, 0, 0, 0); - obj.add_component<Sprite>(make_shared<Texture>("/home/jaro/crepe/asset/texture/green_square.png"), color, + obj.add_component<Sprite>(make_shared<Texture>("../asset/texture/green_square.png"), color, FlipSettings{false, false}); - obj.add_component<Camera>(Color::get_red()); + obj.add_component<Camera>(Color::RED); } { Color color(0, 0, 0, 0); - obj1.add_component<Sprite>(make_shared<Texture>("/home/jaro/crepe/asset/texture/green_square.png"), color, + obj1.add_component<Sprite>(make_shared<Texture>("../asset/texture/green_square.png"), color, FlipSettings{true, true}); } @@ -48,8 +48,12 @@ int main() { } */ + sys.update(); + /* + auto start = std::chrono::steady_clock::now(); while (std::chrono::steady_clock::now() - start < std::chrono::seconds(5)) { sys.update(); } + */ } |