aboutsummaryrefslogtreecommitdiff
path: root/advtrains/misc_nodes.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-07-17 21:02:01 +0200
committerorwell96 <orwell@bleipb.de>2018-07-17 21:02:01 +0200
commit5fc5eb9c2abd1cc30277cfda953b4696274ecd31 (patch)
treeabd897dd070b5954cacab4cab35566a41f24ebd7 /advtrains/misc_nodes.lua
parente3667b630c6c232f012bbebc3a72c751c085d416 (diff)
downloadadvtrains-5fc5eb9c2abd1cc30277cfda953b4696274ecd31.tar.gz
advtrains-5fc5eb9c2abd1cc30277cfda953b4696274ecd31.tar.bz2
advtrains-5fc5eb9c2abd1cc30277cfda953b4696274ecd31.zip
Change stuff on route programming, begin routesetting
Diffstat (limited to 'advtrains/misc_nodes.lua')
0 files changed, 0 insertions, 0 deletions
n> struct PreMeshBuffer { TileLayer layer; std::vector<u16> indices; std::vector<video::S3DVertex> vertices; PreMeshBuffer() = default; explicit PreMeshBuffer(const TileLayer &layer) : layer(layer) {} }; struct MeshCollector { std::array<std::vector<PreMeshBuffer>, MAX_TILE_LAYERS> prebuffers; // clang-format off 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); // clang-format on private: // clang-format off 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); // clang-format on PreMeshBuffer &findBuffer(const TileLayer &layer, u8 layernum, u32 numVertices); };