parent
4186d26db2
commit
c716fc57d1
5 changed files with 74 additions and 31 deletions
@ -0,0 +1,11 @@ |
|||||||
|
#include "application.h" |
||||||
|
|
||||||
|
namespace Bk { |
||||||
|
Application::Application() { } |
||||||
|
Application::~Application() { } |
||||||
|
|
||||||
|
void Application::run()
|
||||||
|
{ |
||||||
|
while (true); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
#pragma once |
||||||
|
|
||||||
|
#include <bkpch.h> |
||||||
|
|
||||||
|
namespace Bk { |
||||||
|
class Application
|
||||||
|
{ |
||||||
|
public: |
||||||
|
Application(); |
||||||
|
virtual ~Application(); |
||||||
|
|
||||||
|
void run(); |
||||||
|
}; |
||||||
|
|
||||||
|
std::unique_ptr<Application> create_app(); |
||||||
|
} |
@ -0,0 +1,16 @@ |
|||||||
|
#pragma once |
||||||
|
|
||||||
|
#include <bkpch.h> |
||||||
|
#include "log.h" |
||||||
|
#include "application.h" |
||||||
|
|
||||||
|
|
||||||
|
extern std::unique_ptr<Bk::Application> Bk::create_app(); |
||||||
|
|
||||||
|
int main(int argc, char** argv) { |
||||||
|
Bk::Log::init(); |
||||||
|
BK_INFO("Bienvenue dans la sandbox {0}", "bakara"); |
||||||
|
std::unique_ptr<Bk::Application> app = Bk::create_app(); |
||||||
|
app->run(); |
||||||
|
return 0; |
||||||
|
} |
Loading…
Reference in New Issue