Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
PartialMeshBuffer Class Reference

#include <mapblock_mesh.h>

Public Member Functions

 PartialMeshBuffer (scene::SMeshBuffer *buffer, std::vector< u16 > &&vertex_indices)
 
auto * getBuffer () const
 
void draw (video::IVideoDriver *driver) const
 

Private Attributes

scene::SMeshBuffer * m_buffer
 
irr_ptr< scene::SIndexBuffer > m_indices
 

Constructor & Destructor Documentation

◆ PartialMeshBuffer()

PartialMeshBuffer::PartialMeshBuffer ( scene::SMeshBuffer * buffer,
std::vector< u16 > && vertex_indices )
inline

References m_indices.

Member Function Documentation

◆ draw()

void PartialMeshBuffer::draw ( video::IVideoDriver * driver) const

References m_buffer, and m_indices.

◆ getBuffer()

auto * PartialMeshBuffer::getBuffer ( ) const
inline

References m_buffer.

Referenced by ClientMap::DrawDescriptor::getMaterial().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_buffer

scene::SMeshBuffer* PartialMeshBuffer::m_buffer
private

Referenced by draw(), and getBuffer().

◆ m_indices

irr_ptr<scene::SIndexBuffer> PartialMeshBuffer::m_indices
private

Referenced by PartialMeshBuffer(), and draw().


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