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

#include <Chunk.hpp>

Inheritance diagram for Botcraft::Renderer::Chunk:
Botcraft::Renderer::BlockRenderable Botcraft::Renderer::TransparentChunk

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

Detailed Description

Definition at line 9 of file Chunk.hpp.

Constructor & Destructor Documentation

◆ Chunk()

Botcraft::Renderer::Chunk::Chunk ( )

Definition at line 9 of file Chunk.cpp.

◆ ~Chunk()

Botcraft::Renderer::Chunk::~Chunk ( )

Definition at line 14 of file Chunk.cpp.

Member Function Documentation

◆ AddFace()

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 
)

◆ Update()


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