diff --git a/bakara/src/bakara/core/application.cpp b/bakara/src/bakara/core/application.cpp index 753b1da..57fcc46 100644 --- a/bakara/src/bakara/core/application.cpp +++ b/bakara/src/bakara/core/application.cpp @@ -24,14 +24,11 @@ namespace Bk { bool Application::on_window_close(WindowCloseEvent& e) { - h_window->close(); - return true; } bool Application::on_window_resize(WindowResizeEvent& e) { - BK_CORE_INFO("Event : {0}", GET_EVENT_STRING(e)); return true; } diff --git a/bakara/src/bakara/core/application.h b/bakara/src/bakara/core/application.h index ff2e5aa..1c5a825 100644 --- a/bakara/src/bakara/core/application.h +++ b/bakara/src/bakara/core/application.h @@ -17,6 +17,9 @@ namespace Bk { class Application { public: + /*! \fn Bk::Application + Initializes the main window and binds the event callback + */ Application(); /*! \fn Bk::Application::~Application Virtual destructor enables subclasses to cleanup on termination @@ -73,7 +76,7 @@ namespace Bk { LayerStack p_layer_stack; //!< Layer stack of the application bool p_running = true; //!< Flag that indicates if the update loop should stop or not }; - /*! \fn Bk::create_app + /*! \fn std::unique_ptr Bk::create_app() Is used to retrive the user app class instance, made from inheritance. Must be defined in the user program @return User defined application