blob: bcdf33eaad86871d657fb8699212ed145549295d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "xe_renderer.hpp"
#include "xe_window.hpp"
#include "xe_device.hpp"
#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();
XeWindow xeWindow{WIDTH, HEIGHT, "Hello Vulkan!"};
XeDevice xeDevice{xeWindow};
XeRenderer xeRenderer{xeWindow, xeDevice};
std::unique_ptr<XeDescriptorPool> globalPool{};
std::vector<XeGameObject> gameObjects;
};
}
|