|
Botcraft 1.21.10
|
#include <Entity.hpp>
Public Member Functions | |
| Entity (const std::vector< Face > &faces_) | |
| ~Entity () | |
| void | Update () |
| void | UpdateFaces (const std::vector< Face > &faces_) |
| Vector3< float > | GetApproxPos () |
| Get an approximate position for this model. | |
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 |
Definition at line 11 of file Entity.hpp.
| Botcraft::Renderer::Entity::Entity | ( | const std::vector< Face > & | faces_ | ) |
Definition at line 9 of file Entity.cpp.
References Botcraft::Renderer::BlockRenderable::face_number, and Botcraft::Renderer::BlockRenderable::faces.
| Botcraft::Renderer::Entity::~Entity | ( | ) |
Definition at line 15 of file Entity.cpp.
| Vector3< float > Botcraft::Renderer::Entity::GetApproxPos | ( | ) |
Get an approximate position for this model.
Definition at line 72 of file Entity.cpp.
References Botcraft::Renderer::BlockRenderable::faces, and Botcraft::Renderer::BlockRenderable::mutex_faces.
| void Botcraft::Renderer::Entity::Update | ( | ) |
Definition at line 20 of file Entity.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.
| void Botcraft::Renderer::Entity::UpdateFaces | ( | const std::vector< Face > & | faces_ | ) |
Definition at line 61 of file Entity.cpp.
References Botcraft::Renderer::BlockRenderable::buffer_status, Botcraft::Renderer::Created, Botcraft::Renderer::BlockRenderable::faces, Botcraft::Renderer::BlockRenderable::mutex_faces, and Botcraft::Renderer::Updated.