VoxelEngine
 
Loading...
Searching...
No Matches
Globals.h
1#pragma once
2
3#include <cstdint>
4#include <iosfwd>
5#include <limits>
6
7
8// OpenGL Defaults
9#define UP glm::vec3{0, 1, 0}
10#define NORTH glm::vec3{0, 0, 1}
11#define EAST glm::vec3{1, 0, 0}
12
13#define IUP glm::ivec3{0, 1, 0}
14#define INORTH glm::ivec3{0, 0, 1}
15#define IEAST glm::ivec3{1, 0, 0}
16
17
18namespace engine {
19 using TexID = unsigned int;
20 using BlockID = uint32_t;
21 using Layer = uint8_t;
22
23 struct ChunkID;
24
25 constexpr BlockID InvalidBlockID = std::numeric_limits<BlockID>::max();
26
27 // Render layer constants
28 namespace Layers {
29 constexpr Layer Any = 0;
30 constexpr Layer Opaque = 1;
31 constexpr Layer Transparent = 2;
32 } // namespace Layers
33
34
35} // namespace engine
36
37std::ostream& operator<<(std::ostream& os, const engine::ChunkID& chID);
Definition ChunkID.h:8