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
8
#include "
botcraft/Renderer/BlockRenderable.hpp
"
9
10
namespace
Botcraft
11
{
12
namespace
Renderer
13
{
14
class
TransparentChunk
:
public
BlockRenderable
15
{
16
public
:
17
TransparentChunk
();
18
~TransparentChunk
();
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
BlockRenderable.hpp
Botcraft::Renderer::BlockRenderable
Definition
BlockRenderable.hpp:13
Botcraft::Renderer::TransparentChunk
Definition
TransparentChunk.hpp:15
Botcraft::Renderer::TransparentChunk::Sort
void Sort(const glm::vec3 &cam_pos)
Definition
TransparentChunk.cpp:43
Botcraft::Renderer::TransparentChunk::needs_sort
std::atomic< bool > needs_sort
Definition
TransparentChunk.hpp:28
Botcraft::Renderer::TransparentChunk::~TransparentChunk
~TransparentChunk()
Definition
TransparentChunk.cpp:33
Botcraft::Renderer::TransparentChunk::OnUploadedLocked
void OnUploadedLocked() override
Definition
TransparentChunk.cpp:70
Botcraft::Renderer::TransparentChunk::TransparentChunk
TransparentChunk()
Definition
TransparentChunk.cpp:28
Botcraft::Renderer::TransparentChunk::display_faces_positions
std::vector< Face > display_faces_positions
Definition
TransparentChunk.hpp:27
Botcraft::Renderer::TransparentChunk::MarkForSort
void MarkForSort()
Definition
TransparentChunk.cpp:38
Botcraft
Definition
BaseNode.hpp:6
botcraft
private_include
botcraft
Renderer
TransparentChunk.hpp
Generated by
1.9.8