SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
authorkwolekr <kwolekr@minetest.net>
Sun, 17 May 2015 07:38:39 +0000 (03:38 -0400)
committerkwolekr <kwolekr@minetest.net>
Sun, 17 May 2015 08:04:17 +0000 (04:04 -0400)
commit4c9a8a91c4988b3567a38af622a3eb0d0ec19f6b
tree1be726a192c20df25e44ff799102199a29ff6744
parentc0edb8e313590efcf473e02ab46dd967774386d0
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function

This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.
doc/lua_api.txt
src/irr_v3d.h
src/script/common/c_converter.cpp
src/script/common/c_converter.h
src/script/lua_api/l_noise.cpp
src/script/lua_api/l_noise.h