From 807a0d313ba667356ee8af8ef5ae82b6c4881d15 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Tue, 13 Mar 2012 18:56:12 +0100 Subject: MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric light, removed footprints --- src/mapblock.h | 109 ++------------------------------------------------------- 1 file changed, 3 insertions(+), 106 deletions(-) (limited to 'src/mapblock.h') diff --git a/src/mapblock.h b/src/mapblock.h index c9ff36679..272da8ce3 100644 --- a/src/mapblock.h +++ b/src/mapblock.h @@ -31,13 +31,12 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "constants.h" #include "voxel.h" #include "staticobject.h" -#include "mapblock_nodemod.h" #include "modifiedstate.h" class Map; class NodeMetadataList; class IGameDef; -class IWritableNodeDefManager; +class MapBlockMesh; #define BLOCK_TIMESTAMP_UNDEFINED 0xffffffff @@ -193,18 +192,6 @@ public: raiseModified(MOD_STATE_WRITE_NEEDED, "setIsUnderground"); } -#ifndef SERVER - void setMeshExpired(bool expired) - { - m_mesh_expired = expired; - } - - bool getMeshExpired() - { - return m_mesh_expired; - } -#endif - void setLightingExpired(bool expired) { if(expired != m_lighting_expired){ @@ -359,33 +346,6 @@ public: setNode(x0+x, y0+y, z0+z, node); } - /* - Graphics-related methods - */ - -#ifndef SERVER // Only on client - - u8 getFaceLight2(u32 daynight_ratio, v3s16 p, v3s16 face_dir, - INodeDefManager *nodemgr) - { - return getFaceLight(daynight_ratio, - getNodeParentNoEx(p), - getNodeParentNoEx(p + face_dir), - face_dir, nodemgr); - } - -#if 1 - /* - Thread-safely updates the whole mesh of the mapblock. - NOTE: Prefer generating the mesh separately and then using - replaceMesh(). - */ - void updateMesh(u32 daynight_ratio); -#endif - // Replace the mesh with a new one - void replaceMesh(scene::SMesh *mesh_new); -#endif - // See comments in mapblock.cpp bool propagateSunlight(core::map & light_sources, bool remove_light=false, bool *black_air_left=NULL); @@ -395,59 +355,10 @@ public: // Copies data from VoxelManipulator getPosRelative() void copyFrom(VoxelManipulator &dst); -#ifndef SERVER // Only on client - /* - Methods for setting temporary modifications to nodes for - drawing - - returns true if the mod was different last time - */ - bool setTempMod(v3s16 p, const NodeMod &mod) - { - /*dstream<<"setTempMod called on block" - <<" ("<