51 const video::S3DVertex *vertices, u32 numVertices,
52 const u16 *indices, u32 numIndices);
54 const video::S3DVertex *vertices, u32 numVertices,
55 const u16 *indices, u32 numIndices,
56 v3f pos, video::SColor c, u8 light_source);
60 const video::S3DVertex *vertices, u32 numVertices,
61 const u16 *indices, u32 numIndices,
62 u8 layernum,
bool use_scale =
false);
64 const video::S3DVertex *vertices, u32 numVertices,
65 const u16 *indices, u32 numIndices,
66 v3f pos, video::SColor c, u8 light_source,
67 u8 layernum,
bool use_scale =
false);
core::vector3df v3f
Definition irr_v3d.h:26
Definition collector.h:39
void append(const TileSpec &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices)
Definition collector.cpp:25
MeshCollector(const v3f center_pos, v3f offset=v3f())
Definition collector.h:48
v3f offset
Definition collector.h:44
v3f m_center_pos
Definition collector.h:43
std::array< std::vector< PreMeshBuffer >, MAX_TILE_LAYERS > prebuffers
Definition collector.h:40
PreMeshBuffer & findBuffer(const TileLayer &layer, u8 layernum, u32 numVertices)
Definition collector.cpp:98
f32 m_bounding_radius_sq
Definition collector.h:42
Definition collector.h:29
std::vector< video::S3DVertex > vertices
Definition collector.h:32
TileLayer layer
Definition collector.h:30
PreMeshBuffer(const TileLayer &layer)
Definition collector.h:35
std::vector< u16 > indices
Definition collector.h:31
Defines a layer of a tile.
Definition tile.h:73
#define MAX_TILE_LAYERS
Definition tile.h:69