summaryrefslogtreecommitdiff
path: root/src/voxelalgorithms.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-27 13:24:06 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-27 19:01:51 +0300
commit0f3c2f65414f332fad510fb8651dd59d506aad2e (patch)
treedda3c34cf10d3e3458830cb53820866f4d535c3a /src/voxelalgorithms.h
parent56496ad5d8a7662b0ae5c9f25d1348cb7b677b65 (diff)
downloadminetest-0f3c2f65414f332fad510fb8651dd59d506aad2e.tar.gz
minetest-0f3c2f65414f332fad510fb8651dd59d506aad2e.tar.bz2
minetest-0f3c2f65414f332fad510fb8651dd59d506aad2e.zip
voxalgo::clearLightAndCollectSources
Diffstat (limited to 'src/voxelalgorithms.h')
-rw-r--r--src/voxelalgorithms.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/voxelalgorithms.h b/src/voxelalgorithms.h
index 3dea233dc..9c90e18a9 100644
--- a/src/voxelalgorithms.h
+++ b/src/voxelalgorithms.h
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define VOXELALGORITHMS_HEADER
#include "voxel.h"
+#include "mapnode.h"
namespace voxalgo
{
@@ -30,6 +31,11 @@ namespace voxalgo
void setLight(VoxelManipulator &v, VoxelArea a, u8 light,
INodeDefManager *ndef);
+void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a,
+ enum LightBank bank, INodeDefManager *ndef,
+ core::map<v3s16, bool> & light_sources,
+ core::map<v3s16, u8> & unlight_from);
+
struct SunlightPropagateResult
{
bool bottom_sunlight_valid;