]> git.lizzy.rs Git - minetest.git/blobdiff - src/client/mapblock_mesh.h
Generalize mesh chunking, and make it configurable. (#13179)
[minetest.git] / src / client / mapblock_mesh.h
index 82e9a0f22cf15b92e9432dda5900c43696d3014f..6d5f0dae3a9626b60f0c3ba44207c9e059db26d9 100644 (file)
@@ -43,6 +43,7 @@ struct MeshMakeData
        v3s16 m_blockpos = v3s16(-1337,-1337,-1337);
        v3s16 m_crack_pos_relative = v3s16(-1337,-1337,-1337);
        bool m_smooth_lighting = false;
+       MeshGrid m_mesh_grid;
        u16 side_length = MAP_BLOCKSIZE;
 
        Client *m_client;
@@ -54,7 +55,7 @@ struct MeshMakeData
                Copy block data manually (to allow optimizations by the caller)
        */
        void fillBlockDataBegin(const v3s16 &blockpos);
-       void fillBlockData(const v3s16 &block_offset, MapNode *data);
+       void fillBlockData(const v3s16 &bp, MapNode *data);
 
        /*
                Set the (node) position of a crack