ToolDefManager serialization
[oweals/minetest.git] / src / mapblock_mesh.h
index 591172bc90e0ea8eac8ed46a78957a9a8629d939..36cc9be24d271c6fc6222aa0df9139f9af08e8d3 100644 (file)
@@ -24,6 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "mapblock_nodemod.h"
 #include "voxel.h"
 
+class IGameDef;
+
 /*
        Mesh making stuff
 */
@@ -121,6 +123,9 @@ private:
        core::array<PreMeshBuffer> m_prebuffers;
 };
 
+// Helper functions
+video::SColor MapBlock_LightColor(u8 alpha, u8 light);
+
 class MapBlock;
 
 struct MeshMakeData
@@ -137,7 +142,8 @@ struct MeshMakeData
        void fill(u32 daynight_ratio, MapBlock *block);
 };
 
-scene::SMesh* makeMapBlockMesh(MeshMakeData *data);
+// This is the highest-level function in here
+scene::SMesh* makeMapBlockMesh(MeshMakeData *data, IGameDef *gamedef);
 
 #endif