|
Botcraft 1.21.10
|
#include <TransparentChunk.hpp>
Public Member Functions | |
| TransparentChunk () | |
| ~TransparentChunk () | |
| void | SetDisplayStatus (const BufferStatus s) |
| void | Sort (const glm::vec3 &cam_pos) |
| void | Update () |
Public Member Functions inherited from Botcraft::Renderer::Chunk | |
| Chunk () | |
| ~Chunk () | |
| void | Update () |
| void | AddFace (const Face &f, const std::array< unsigned int, 2 > &texture_multipliers, const float offset_x, const float offset_y, const float offset_z) |
Public Member Functions inherited from Botcraft::Renderer::BlockRenderable | |
| BlockRenderable () | |
| ~BlockRenderable () | |
| void | Update () |
| void | ClearFaces () |
| const unsigned int | GetNumFace () const |
| void | Render () const |
Protected Attributes | |
| std::vector< Face > | display_faces_positions |
| BufferStatus | display_buffer_status |
Protected Attributes inherited from Botcraft::Renderer::BlockRenderable | |
| unsigned int | faces_VAO |
| unsigned int | faces_VBO |
| unsigned int | data_VBO |
| unsigned int | face_number |
| std::deque< Face > | faces |
| BufferStatus | buffer_status |
| std::mutex | mutex_faces |
Additional Inherited Members | |
Protected Member Functions inherited from Botcraft::Renderer::BlockRenderable | |
| void | GenerateOpenGLBuffer () |
| void | DeleteOpenGLBuffer () |
Definition at line 13 of file TransparentChunk.hpp.
| Botcraft::Renderer::TransparentChunk::TransparentChunk | ( | ) |
Definition at line 25 of file TransparentChunk.cpp.
References display_buffer_status, and Botcraft::Renderer::UpToDate.
| Botcraft::Renderer::TransparentChunk::~TransparentChunk | ( | ) |
Definition at line 30 of file TransparentChunk.cpp.
| void Botcraft::Renderer::TransparentChunk::SetDisplayStatus | ( | const BufferStatus | s | ) |
Definition at line 78 of file TransparentChunk.cpp.
References display_buffer_status.
| void Botcraft::Renderer::TransparentChunk::Sort | ( | const glm::vec3 & | cam_pos | ) |
Definition at line 83 of file TransparentChunk.cpp.
References Botcraft::Renderer::BlockRenderable::data_VBO, display_buffer_status, display_faces_positions, Botcraft::Renderer::BlockRenderable::mutex_faces, and Botcraft::Renderer::UpToDate.
| void Botcraft::Renderer::TransparentChunk::Update | ( | ) |
Definition at line 35 of file TransparentChunk.cpp.
References Botcraft::Renderer::BlockRenderable::buffer_status, Botcraft::Renderer::Created, Botcraft::Renderer::BlockRenderable::data_VBO, Botcraft::Renderer::BlockRenderable::DeleteOpenGLBuffer(), display_buffer_status, display_faces_positions, Botcraft::Renderer::BlockRenderable::face_number, Botcraft::Renderer::BlockRenderable::faces, Botcraft::Renderer::BlockRenderable::GenerateOpenGLBuffer(), Botcraft::Renderer::BlockRenderable::mutex_faces, Botcraft::Renderer::Updated, and Botcraft::Renderer::UpToDate.
|
protected |
Definition at line 25 of file TransparentChunk.hpp.
Referenced by SetDisplayStatus(), Sort(), TransparentChunk(), and Update().
|
protected |
Definition at line 24 of file TransparentChunk.hpp.