Minetest  5.4.0
MeshCollector Struct Reference

#include <collector.h>

+ Collaboration diagram for MeshCollector:

Public Member Functions

void append (const TileSpec &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices)
 
void append (const TileSpec &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices, v3f pos, video::SColor c, u8 light_source)
 

Public Attributes

std::array< std::vector< PreMeshBuffer >, MAX_TILE_LAYERSprebuffers
 

Private Member Functions

void append (const TileLayer &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices, u8 layernum, bool use_scale=false)
 
void append (const TileLayer &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices, v3f pos, video::SColor c, u8 light_source, u8 layernum, bool use_scale=false)
 
PreMeshBufferfindBuffer (const TileLayer &layer, u8 layernum, u32 numVertices)
 

Member Function Documentation

◆ append() [1/4]

void MeshCollector::append ( const TileLayer material,
const video::S3DVertex *  vertices,
u32  numVertices,
const u16 *  indices,
u32  numIndices,
u8  layernum,
bool  use_scale = false 
)
private

References findBuffer(), p(), and TileLayer::scale.

+ Here is the call graph for this function:

◆ append() [2/4]

void MeshCollector::append ( const TileLayer material,
const video::S3DVertex *  vertices,
u32  numVertices,
const u16 *  indices,
u32  numIndices,
v3f  pos,
video::SColor  c,
u8  light_source,
u8  layernum,
bool  use_scale = false 
)
private

References applyFacesShading(), findBuffer(), p(), and TileLayer::scale.

+ Here is the call graph for this function:

◆ append() [3/4]

void MeshCollector::append ( const TileSpec material,
const video::S3DVertex *  vertices,
u32  numVertices,
const u16 *  indices,
u32  numIndices 
)

◆ append() [4/4]

void MeshCollector::append ( const TileSpec material,
const video::S3DVertex *  vertices,
u32  numVertices,
const u16 *  indices,
u32  numIndices,
v3f  pos,
video::SColor  c,
u8  light_source 
)

References append(), TileSpec::layers, MAX_TILE_LAYERS, TileLayer::texture_id, and TileSpec::world_aligned.

+ Here is the call graph for this function:

◆ findBuffer()

PreMeshBuffer & MeshCollector::findBuffer ( const TileLayer layer,
u8  layernum,
u32  numVertices 
)
private

References p(), prebuffers, and U16_MAX.

Referenced by append().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ prebuffers

std::array<std::vector<PreMeshBuffer>, MAX_TILE_LAYERS> MeshCollector::prebuffers

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