Botcraft 26.3
Loading...
Searching...
No Matches
TransparentChunk.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <atomic>
4#include <vector>
5
6#include <glm/vec3.hpp>
7
9
10namespace Botcraft
11{
12 namespace Renderer
13 {
15 {
16 public:
19
20 void MarkForSort();
21 void Sort(const glm::vec3& cam_pos);
22
23 protected:
24 void OnUploadedLocked() override;
25
26 protected:
27 std::vector<Face> display_faces_positions;
28 std::atomic<bool> needs_sort;
29 };
30 } // Renderer
31} // Botcraft
void Sort(const glm::vec3 &cam_pos)