![]() |
Botcraft 1.21.4
|
#include <BlockRenderable.hpp>
Public Member Functions | |
BlockRenderable () | |
~BlockRenderable () | |
void | Update () |
void | ClearFaces () |
const unsigned int | GetNumFace () const |
void | Render () const |
Protected Member Functions | |
void | GenerateOpenGLBuffer () |
void | DeleteOpenGLBuffer () |
Protected Attributes | |
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 |
Definition at line 20 of file BlockRenderable.hpp.
Botcraft::Renderer::BlockRenderable::BlockRenderable | ( | ) |
Definition at line 9 of file BlockRenderable.cpp.
References buffer_status, Botcraft::Renderer::Created, data_VBO, face_number, faces_VAO, and faces_VBO.
Botcraft::Renderer::BlockRenderable::~BlockRenderable | ( | ) |
Definition at line 19 of file BlockRenderable.cpp.
References DeleteOpenGLBuffer().
void Botcraft::Renderer::BlockRenderable::ClearFaces | ( | ) |
Definition at line 29 of file BlockRenderable.cpp.
References buffer_status, Botcraft::Renderer::Created, faces, mutex_faces, and Botcraft::Renderer::Updated.
|
protected |
Definition at line 118 of file BlockRenderable.cpp.
References data_VBO, faces_VAO, and faces_VBO.
Referenced by Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), Botcraft::Renderer::TransparentChunk::Update(), and ~BlockRenderable().
|
protected |
Definition at line 50 of file BlockRenderable.cpp.
References Botcraft::Renderer::Face::base_face, data_VBO, face_number, faces_VAO, and faces_VBO.
Referenced by Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), and Botcraft::Renderer::TransparentChunk::Update().
const unsigned int Botcraft::Renderer::BlockRenderable::GetNumFace | ( | ) | const |
Definition at line 39 of file BlockRenderable.cpp.
References face_number.
void Botcraft::Renderer::BlockRenderable::Render | ( | ) | const |
Definition at line 44 of file BlockRenderable.cpp.
References face_number, and faces_VAO.
void Botcraft::Renderer::BlockRenderable::Update | ( | ) |
Definition at line 24 of file BlockRenderable.cpp.
|
protected |
Definition at line 43 of file BlockRenderable.hpp.
Referenced by Botcraft::Renderer::Chunk::AddFace(), BlockRenderable(), ClearFaces(), Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), Botcraft::Renderer::TransparentChunk::Update(), and Botcraft::Renderer::Entity::UpdateFaces().
|
protected |
Definition at line 38 of file BlockRenderable.hpp.
Referenced by BlockRenderable(), DeleteOpenGLBuffer(), GenerateOpenGLBuffer(), Botcraft::Renderer::TransparentChunk::Sort(), Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), and Botcraft::Renderer::TransparentChunk::Update().
|
protected |
Definition at line 39 of file BlockRenderable.hpp.
Referenced by BlockRenderable(), Botcraft::Renderer::Entity::Entity(), GenerateOpenGLBuffer(), GetNumFace(), Render(), Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), and Botcraft::Renderer::TransparentChunk::Update().
|
protected |
Definition at line 41 of file BlockRenderable.hpp.
Referenced by Botcraft::Renderer::Chunk::AddFace(), ClearFaces(), Botcraft::Renderer::Entity::Entity(), Botcraft::Renderer::Entity::GetApproxPos(), Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), Botcraft::Renderer::TransparentChunk::Update(), and Botcraft::Renderer::Entity::UpdateFaces().
|
protected |
Definition at line 36 of file BlockRenderable.hpp.
Referenced by BlockRenderable(), DeleteOpenGLBuffer(), GenerateOpenGLBuffer(), and Render().
|
protected |
Definition at line 37 of file BlockRenderable.hpp.
Referenced by BlockRenderable(), DeleteOpenGLBuffer(), and GenerateOpenGLBuffer().
|
protected |
Definition at line 45 of file BlockRenderable.hpp.
Referenced by Botcraft::Renderer::Chunk::AddFace(), ClearFaces(), Botcraft::Renderer::Entity::GetApproxPos(), Botcraft::Renderer::TransparentChunk::Sort(), Botcraft::Renderer::Chunk::Update(), Botcraft::Renderer::Entity::Update(), Botcraft::Renderer::TransparentChunk::Update(), and Botcraft::Renderer::Entity::UpdateFaces().