]> git.lizzy.rs Git - minetest.git/blobdiff - src/mapblock_mesh.h
Remove unnecessary delays from large data transfer unit test
[minetest.git] / src / mapblock_mesh.h
index 591172bc90e0ea8eac8ed46a78957a9a8629d939..4d3e7d29d1d73232bab8a3b5324a6241e6c95e72 100644 (file)
@@ -22,8 +22,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "common_irrlicht.h"
 #include "mapblock_nodemod.h"
+#include "tile.h"
 #include "voxel.h"
 
+class IGameDef;
+
 /*
        Mesh making stuff
 */
@@ -121,6 +124,11 @@ class MeshCollector
        core::array<PreMeshBuffer> m_prebuffers;
 };
 
+// Helper functions
+video::SColor MapBlock_LightColor(u8 alpha, u8 light);
+TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 face_dir,
+               NodeModMap *temp_mods, ITextureSource *tsrc, INodeDefManager *ndef);
+
 class MapBlock;
 
 struct MeshMakeData
@@ -135,9 +143,15 @@ struct MeshMakeData
                parent of block.
        */
        void fill(u32 daynight_ratio, MapBlock *block);
+
+       /*
+               Set up with only a single node at (1,1,1)
+       */
+       void fillSingleNode(u32 daynight_ratio, MapNode *node);
 };
 
-scene::SMesh* makeMapBlockMesh(MeshMakeData *data);
+// This is the highest-level function in here
+scene::SMesh* makeMapBlockMesh(MeshMakeData *data, IGameDef *gamedef);
 
 #endif