|
Botcraft 26.3
|
#include <TransparentChunk.hpp>
Public Member Functions | |
| TransparentChunk () | |
| ~TransparentChunk () | |
| void | MarkForSort () |
| void | Sort (const glm::vec3 &cam_pos) |
Public Member Functions inherited from Botcraft::Renderer::BlockRenderable | |
| BlockRenderable () | |
| virtual | ~BlockRenderable () |
| BlockRenderable (const BlockRenderable &)=delete | |
| BlockRenderable & | operator= (const BlockRenderable &)=delete |
| void | SetFaces (std::vector< Face > &&faces_) |
| void | Update () |
| void | ClearFaces () |
| const unsigned int | GetNumFace () const |
| void | Render () const |
Protected Member Functions | |
| void | OnUploadedLocked () override |
Protected Member Functions inherited from Botcraft::Renderer::BlockRenderable | |
| void | GenerateOpenGLBuffer () |
| void | DeleteOpenGLBuffer () |
Protected Attributes | |
| std::vector< Face > | display_faces_positions |
| std::atomic< bool > | needs_sort |
Protected Attributes inherited from Botcraft::Renderer::BlockRenderable | |
| unsigned int | faces_VAO |
| unsigned int | faces_VBO |
| unsigned int | data_VBO |
| unsigned int | face_number |
| std::vector< Face > | faces |
| bool | dirty |
| std::mutex | mutex_faces |
Definition at line 14 of file TransparentChunk.hpp.
| Botcraft::Renderer::TransparentChunk::TransparentChunk | ( | ) |
Definition at line 28 of file TransparentChunk.cpp.
References needs_sort.
| Botcraft::Renderer::TransparentChunk::~TransparentChunk | ( | ) |
Definition at line 33 of file TransparentChunk.cpp.
| void Botcraft::Renderer::TransparentChunk::MarkForSort | ( | ) |
Definition at line 38 of file TransparentChunk.cpp.
References needs_sort.
|
overrideprotectedvirtual |
Reimplemented from Botcraft::Renderer::BlockRenderable.
Definition at line 70 of file TransparentChunk.cpp.
References display_faces_positions, Botcraft::Renderer::BlockRenderable::faces, and needs_sort.
| void Botcraft::Renderer::TransparentChunk::Sort | ( | const glm::vec3 & | cam_pos | ) |
Definition at line 43 of file TransparentChunk.cpp.
References Botcraft::Renderer::BlockRenderable::data_VBO, display_faces_positions, Botcraft::Renderer::BlockRenderable::mutex_faces, and needs_sort.
|
protected |
Definition at line 27 of file TransparentChunk.hpp.
Referenced by OnUploadedLocked(), and Sort().
|
protected |
Definition at line 28 of file TransparentChunk.hpp.
Referenced by MarkForSort(), OnUploadedLocked(), Sort(), and TransparentChunk().