VOX
A little voxel engine
Loading...
Searching...
No Matches
BlockUpdateThread.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "define.hpp"
4#include "ClientWorld.hpp"
5#include "RenderAPI.hpp"
6#include "DebugGui.hpp"
7#include "Tracy.hpp"
8#include "tracy_globals.hpp"
9
21{
22public:
23
25 ClientWorld & world
26 );
28
32
33private:
34
35 ClientWorld & m_world;
36
37 std::jthread m_thread;
38
43 void launch();
44
48 void init();
49
53 void loop();
54};
An implementation of the thread wrapper for the thread that handles block updates.
Definition: BlockUpdateThread.hpp:21
~BlockUpdateThread()
Definition: BlockUpdateThread.cpp:13
BlockUpdateThread(BlockUpdateThread &other)=delete
BlockUpdateThread & operator=(BlockUpdateThread &other)=delete
BlockUpdateThread(BlockUpdateThread &&other)=delete
Definition: ClientWorld.hpp:26