|
Botcraft 1.21.10
|
#include <Chunk.hpp>
Public Member Functions | |
| 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 |
Additional Inherited Members | |
Protected Member Functions inherited from Botcraft::Renderer::BlockRenderable | |
| void | GenerateOpenGLBuffer () |
| void | DeleteOpenGLBuffer () |
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 |
| void Botcraft::Renderer::Chunk::AddFace | ( | const Face & | f, |
| const std::array< unsigned int, 2 > & | texture_multipliers, | ||
| const float | offset_x, | ||
| const float | offset_y, | ||
| const float | offset_z | ||
| ) |
Definition at line 60 of file Chunk.cpp.
References Botcraft::Renderer::BlockRenderable::buffer_status, Botcraft::Renderer::Created, Botcraft::Renderer::BlockRenderable::faces, Botcraft::Renderer::Face::GetMatrix(), Botcraft::Renderer::BlockRenderable::mutex_faces, Botcraft::Renderer::Face::SetTextureMultipliers(), and Botcraft::Renderer::Updated.
| void Botcraft::Renderer::Chunk::Update | ( | ) |
Definition at line 19 of file Chunk.cpp.
References Botcraft::Renderer::BlockRenderable::buffer_status, Botcraft::Renderer::Created, Botcraft::Renderer::BlockRenderable::data_VBO, Botcraft::Renderer::BlockRenderable::DeleteOpenGLBuffer(), 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.