#include "mapblock_nodemod.h"
#include "voxel.h"
+class IGameDef;
+
/*
Mesh making stuff
*/
core::array<PreMeshBuffer> m_prebuffers;
};
+// Helper functions
+video::SColor MapBlock_LightColor(u8 alpha, u8 light);
+
class MapBlock;
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