From 2ad609ac1b08894b607fb56d74f45fffaba6c9ed Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 4 Dec 2024 11:55:07 +0100 Subject: make format --- src/example/button.cpp | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/example') diff --git a/src/example/button.cpp b/src/example/button.cpp index be236ec..96e6571 100644 --- a/src/example/button.cpp +++ b/src/example/button.cpp @@ -1,20 +1,20 @@ -#include -#include +#include +#include #include +#include +#include +#include +#include #include +#include #include #include +#include #include -#include -#include -#include #include -#include -#include -#include -#include +#include +#include #include -#include #include using namespace crepe; using namespace std; @@ -22,7 +22,7 @@ using namespace std; int main(int argc, char * argv[]) { ComponentManager mgr; RenderSystem sys{mgr}; - EventManager& event_mgr = EventManager::get_instance(); + EventManager & event_mgr = EventManager::get_instance(); InputSystem input_sys{mgr}; AnimatorSystem asys{mgr}; GameObject camera_obj = mgr.new_object("", "", vec2{0, 0}, 0, 1); @@ -32,10 +32,8 @@ int main(int argc, char * argv[]) { auto s2 = Texture("asset/texture/test_ap43.png"); bool button_clicked = false; auto & sprite2 = button_obj.add_component( - s2, Color::GREEN, Sprite::FlipSettings{false, false}, 2, 1, 100); - std::function on_click = [&]() { - std::cout << "button clicked" << std::endl; - }; + s2, Color::GREEN, Sprite::FlipSettings{false, false}, 2, 1, 100); + std::function on_click = [&]() { std::cout << "button clicked" << std::endl; }; auto & button = button_obj.add_component