summaryrefslogtreecommitdiff
path: root/src/first_app.hpp
blob: 6fb63e166332190e6011b4d96d9122b7d531e0de (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
37
38
39
40
#pragma once

#include "xe_engine.hpp"

#include "keyboard_movement_controller.hpp"
#include "simple_renderer.hpp"

#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/constants.hpp>
#include <array>
#include <string>
#include <memory>
#include <vector>

namespace app {
class FirstApp {
  public:

    FirstApp();
    ~FirstApp();

    FirstApp(const FirstApp &) = delete;
    FirstApp operator=(const FirstApp &) = delete;

    void run();

  private:
  
    static constexpr int WIDTH = 800;
    static constexpr int HEIGHT = 600;

    void loadGameObjects();

    xe::Engine xeEngine;

    std::vector<xe::GameObject> gameObjects;
};
}