aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientmap.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-12-12 14:00:10 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-12-12 14:00:10 +0100
commit7250cf2c1c29b685b8ac3552c296f11c8178b0a0 (patch)
tree8a36316aaa95e5355f35229f816b52db0fd7eac0 /src/client/clientmap.h
parentf783f59392f5e86c5645195521b2fa008ffe4fe7 (diff)
parentaf073438fd70833955a30bcbe1c22e6f344ec41c (diff)
downloaddragonfireclient-7250cf2c1c29b685b8ac3552c296f11c8178b0a0.tar.xz
Merge branch 'master' of https://github.com/minetest/minetest
Diffstat (limited to 'src/client/clientmap.h')
-rw-r--r--src/client/clientmap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client/clientmap.h b/src/client/clientmap.h
index 172e3a1d6..57cc4427e 100644
--- a/src/client/clientmap.h
+++ b/src/client/clientmap.h
@@ -35,6 +35,25 @@ struct MapDrawControl
bool show_wireframe = false;
};
+struct MeshBufList
+{
+ video::SMaterial m;
+ std::vector<std::pair<v3s16,scene::IMeshBuffer*>> bufs;
+};
+
+struct MeshBufListList
+{
+ /*!
+ * Stores the mesh buffers of the world.
+ * The array index is the material's layer.
+ * The vector part groups vertices by material.
+ */
+ std::vector<MeshBufList> lists[MAX_TILE_LAYERS];
+
+ void clear();
+ void add(scene::IMeshBuffer *buf, v3s16 position, u8 layer);
+};
+
class Client;
class ITextureSource;