Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Renderer::Entity Class Reference

#include <Entity.hpp>

Inheritance diagram for Botcraft::Renderer::Entity:
Botcraft::Renderer::BlockRenderable

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< Facefaces
 
BufferStatus buffer_status
 
std::mutex mutex_faces
 

Detailed Description

Definition at line 11 of file Entity.hpp.

Constructor & Destructor Documentation

◆ Entity()

Botcraft::Renderer::Entity::Entity ( const std::vector< Face > &  faces_)

◆ ~Entity()

Botcraft::Renderer::Entity::~Entity ( )

Definition at line 15 of file Entity.cpp.

Member Function Documentation

◆ GetApproxPos()

Vector3< float > Botcraft::Renderer::Entity::GetApproxPos ( )

Get an approximate position for this model.

Returns
The center of the first face of this entity

Definition at line 72 of file Entity.cpp.

References Botcraft::Renderer::BlockRenderable::faces, and Botcraft::Renderer::BlockRenderable::mutex_faces.

◆ Update()

◆ UpdateFaces()


The documentation for this class was generated from the following files: