30 if (tc == video::SColor(0xFFFFFFFF))
33 video::SColor *c = &vertex.Color;
35 c->getRed() * tc.getRed() / 255U,
36 c->getGreen() * tc.getGreen() / 255U,
37 c->getBlue() * tc.getBlue() / 255U);
59 const video::S3DVertex *vertices, u32 numVertices,
60 const u16 *indices, u32 numIndices);
64 const video::S3DVertex *vertices, u32 numVertices,
65 const u16 *indices, u32 numIndices,
core::vector3df v3f
Definition irr_v3d.h:11
Definition collector.h:47
void append(const TileSpec &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices)
Definition collector.cpp:23
MeshCollector(const v3f center_pos, v3f offset=v3f())
Definition collector.h:56
v3f offset
Definition collector.h:52
v3f m_center_pos
Definition collector.h:51
std::array< std::vector< PreMeshBuffer >, MAX_TILE_LAYERS > prebuffers
Definition collector.h:48
PreMeshBuffer & findBuffer(const TileLayer &layer, u8 layernum, u32 numVertices)
Definition collector.cpp:54
f32 m_bounding_radius_sq
Definition collector.h:50
Definition collector.h:14
std::vector< video::S3DVertex > vertices
Definition collector.h:17
TileLayer layer
Definition collector.h:15
PreMeshBuffer(const TileLayer &layer)
Definition collector.h:20
bool empty() const
Definition collector.h:22
std::vector< u16 > indices
Definition collector.h:16
bool append(const PreMeshBuffer &other)
Append another buffer to this one.
Definition collector.cpp:9
void applyTileColor()
Colorizes vertices as indicated by tile layer.
Definition collector.h:27
Defines a layer of a tile.
Definition tile.h:75
video::SColor color
Definition tile.h:164
#define MAX_TILE_LAYERS
We have two tile layers: layer 0 = base layer 1 = overlay.
Definition tile.h:71