2022-09-19 01:20:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-19 11:08:42 +00:00
|
|
|
#include "xe_engine.hpp"
|
2022-09-19 01:20:51 +00:00
|
|
|
#include "xe_game_object.hpp"
|
|
|
|
#include "xe_descriptors.hpp"
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace xe {
|
|
|
|
class FirstApp {
|
|
|
|
public:
|
|
|
|
static constexpr int WIDTH = 800;
|
|
|
|
static constexpr int HEIGHT = 600;
|
|
|
|
|
|
|
|
FirstApp();
|
|
|
|
~FirstApp();
|
|
|
|
|
|
|
|
FirstApp(const FirstApp &) = delete;
|
|
|
|
FirstApp operator=(const FirstApp &) = delete;
|
|
|
|
|
|
|
|
void run();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadGameObjects();
|
|
|
|
|
2022-09-19 11:08:42 +00:00
|
|
|
XeEngine xeEngine;
|
2022-09-19 01:20:51 +00:00
|
|
|
|
|
|
|
std::vector<XeGameObject> gameObjects;
|
|
|
|
};
|
|
|
|
}
|