~vladh/peony

peony/src/state.hpp -rw-r--r-- 911 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
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
41
42
43
44
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

#pragma once

#include "types.hpp"
#include "anim.hpp"
#include "gui.hpp"
#include "cameras.hpp"
#include "debugdraw.hpp"
#include "tasks.hpp"
#include "anim.hpp"
#include "memory.hpp"
#include "engine.hpp"
#include "renderer.hpp"
#include "behavior.hpp"
#include "array.hpp"
#include "stackarray.hpp"
#include "queue.hpp"
#include "core.hpp"

struct State {
  GLFWwindow *window;
  WindowSize window_size;
  EngineState engine_state;
  RendererState renderer_state;
  CamerasState cameras_state;
  InputState input_state;
  GuiState gui_state;
  LightsState lights_state;
  AnimState anim_state;
  MaterialsState materials_state;
  TasksState tasks_state;
  DebugDrawState debug_draw_state;
  BehaviorState behavior_state;
};

struct MemoryAndState {
  MemoryPool *asset_memory_pool;
  State *state;
};