application scaffolding
This commit is contained in:
26
src/app/App.cpp
Normal file
26
src/app/App.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
#include "App.hpp"
|
||||
|
||||
#include "utils/utils.hpp"
|
||||
|
||||
App::App() {
|
||||
|
||||
utils::debugPrint(__FUNCTION__, __LINE__, "App constructor.");
|
||||
|
||||
init();
|
||||
|
||||
}
|
||||
|
||||
void App::init() {
|
||||
|
||||
utils::debugPrint(__FUNCTION__, __LINE__, "Init app.");
|
||||
|
||||
}
|
||||
|
||||
int App::run() {
|
||||
|
||||
utils::debugPrint(__FUNCTION__, __LINE__, "Run app.");
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
19
src/app/App.hpp
Normal file
19
src/app/App.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class App {
|
||||
|
||||
public:
|
||||
|
||||
App();
|
||||
~App() = default;
|
||||
|
||||
// excecute, called from main()
|
||||
int run();
|
||||
|
||||
private:
|
||||
|
||||
// things like creating a window, creating the rendering engine, etc.
|
||||
void init();
|
||||
|
||||
};
|
||||
0
src/app/Window.cpp
Normal file
0
src/app/Window.cpp
Normal file
15
src/app/Window.hpp
Normal file
15
src/app/Window.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class Window {
|
||||
|
||||
public:
|
||||
|
||||
Window();
|
||||
~Window() = default;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user