VoxelEngine
 
Loading...
Searching...
No Matches
Contexts.h
1#pragma once
2
3#include "../input/InputTypes.h"
4#include "../utility/Algorithms.h"
5#include "Face.h"
6
7
8namespace engine {
9
10 class Chunk;
11 class BlockState;
12
14 Chunk* chunk;
16 glm::ivec3 position;
17 glm::vec3 normal;
18 FaceTag face;
19 GLFWKey button;
20 bool shiftPressed = false;
21 bool ctrlPressed = false;
22 bool altPressed = false;
23 void* data = nullptr;
24 };
25
27 Chunk* chunk;
29 glm::ivec3 position;
30 BlockState* state;
31 void* data = nullptr;
32 };
33} // namespace engine
Definition BlockState.h:17
Definition Chunk.h:37
Definition Contexts.h:26
glm::ivec3 position
The position of the block in the chunk.
Definition Contexts.h:29
Definition Contexts.h:13
glm::ivec3 position
The position of the block in the chunk.
Definition Contexts.h:16