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

#include <TransparentChunk.hpp>

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

Public Member Functions

 TransparentChunk ()
 
 ~TransparentChunk ()
 
void SetDisplayStatus (const BufferStatus s)
 
void Sort (const glm::vec3 &cam_pos)
 
void Update ()
 
- Public Member Functions inherited from Botcraft::Renderer::Chunk
 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
 

Protected Attributes

std::vector< Facedisplay_faces_positions
 
BufferStatus display_buffer_status
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from Botcraft::Renderer::BlockRenderable
void GenerateOpenGLBuffer ()
 
void DeleteOpenGLBuffer ()
 

Detailed Description

Definition at line 13 of file TransparentChunk.hpp.

Constructor & Destructor Documentation

◆ TransparentChunk()

Botcraft::Renderer::TransparentChunk::TransparentChunk ( )

Definition at line 25 of file TransparentChunk.cpp.

References display_buffer_status, and Botcraft::Renderer::UpToDate.

◆ ~TransparentChunk()

Botcraft::Renderer::TransparentChunk::~TransparentChunk ( )

Definition at line 30 of file TransparentChunk.cpp.

Member Function Documentation

◆ SetDisplayStatus()

void Botcraft::Renderer::TransparentChunk::SetDisplayStatus ( const BufferStatus  s)

Definition at line 78 of file TransparentChunk.cpp.

References display_buffer_status.

◆ Sort()

void Botcraft::Renderer::TransparentChunk::Sort ( const glm::vec3 &  cam_pos)

◆ Update()

Member Data Documentation

◆ display_buffer_status

BufferStatus Botcraft::Renderer::TransparentChunk::display_buffer_status
protected

Definition at line 25 of file TransparentChunk.hpp.

Referenced by SetDisplayStatus(), Sort(), TransparentChunk(), and Update().

◆ display_faces_positions

std::vector<Face> Botcraft::Renderer::TransparentChunk::display_faces_positions
protected

Definition at line 24 of file TransparentChunk.hpp.

Referenced by Sort(), and Update().


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