Finished application classe documentatioin

dev
anulax1225 ago%!(EXTRA string=1 year)
parent 788894ad18
commit e5207d98b7
  1. 3
      bakara/src/bakara/core/application.cpp
  2. 5
      bakara/src/bakara/core/application.h

@ -24,14 +24,11 @@ namespace Bk {
bool Application::on_window_close(WindowCloseEvent& e) bool Application::on_window_close(WindowCloseEvent& e)
{ {
h_window->close();
return true; return true;
} }
bool Application::on_window_resize(WindowResizeEvent& e) bool Application::on_window_resize(WindowResizeEvent& e)
{ {
BK_CORE_INFO("Event : {0}", GET_EVENT_STRING(e));
return true; return true;
} }

@ -17,6 +17,9 @@ namespace Bk {
class Application class Application
{ {
public: public:
/*! \fn Bk::Application
Initializes the main window and binds the event callback
*/
Application(); Application();
/*! \fn Bk::Application::~Application /*! \fn Bk::Application::~Application
Virtual destructor enables subclasses to cleanup on termination Virtual destructor enables subclasses to cleanup on termination
@ -73,7 +76,7 @@ namespace Bk {
LayerStack p_layer_stack; //!< Layer stack of the application LayerStack p_layer_stack; //!< Layer stack of the application
bool p_running = true; //!< Flag that indicates if the update loop should stop or not bool p_running = true; //!< Flag that indicates if the update loop should stop or not
}; };
/*! \fn Bk::create_app /*! \fn std::unique_ptr<Application> Bk::create_app()
Is used to retrive the user app class instance, made from inheritance. Is used to retrive the user app class instance, made from inheritance.
Must be defined in the user program Must be defined in the user program
@return User defined application @return User defined application

Loading…
Cancel
Save