Loïc Blot
3fe2ed00ed
Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat ( #5541 )
...
We are bundling Lua5.1 which has same macro
2017-04-08 09:28:37 +02:00
kwolekr
72809172eb
Change internal type for seeds to s32
...
This fixes value truncation (and therefore incompatibility) on platforms
with an LP32 data model, such as VAX or MS-DOS.
2016-06-04 01:51:44 -04:00
est31
a61208d92d
Add LuaSecureRandom
2015-11-08 15:57:15 -05:00
kwolekr
be8bbbe82f
SAPI: Fix seed parameter truncation for LuaPseudoRandom constructor
...
Also fix a potential seed truncation issue on platforms where the
range of ptrdiff_t (the underlying type of lua_Integer) is too small.
2015-10-26 04:04:52 -04:00
kwolekr
47189162aa
SAPI: Mark all Lua API functions requiring envlock
2015-10-25 23:06:48 -04:00
kwolekr
793f960e04
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.
2015-05-17 04:04:17 -04:00
kwolekr
f560198cd7
Add optional buffer param for bulk data array writes in Lua
2015-05-17 00:07:45 -04:00
kwolekr
144d1ce2a0
Add 'persistence' alias for Lua noiseparams and validate more vector parameters
2015-04-19 21:42:40 -04:00
kwolekr
16407b9f46
Add support for the PCG32 PRNG algo (and associated script APIs)
2015-03-22 00:48:08 -04:00
kwolekr
b9b9df261b
LuaPerlinNoiseMap: Fix 3d noise safety check
2014-12-12 22:58:44 -05:00
kwolekr
d8ab7d2124
LuaPerlinNoiseMap: Prevent invalid memory access when attempting to generate 3d noise with a buffer created for 2d
2014-12-12 02:46:52 -05:00
kwolekr
a3e54044a9
Add support for NoiseParams in minetest.get_perlin() and add docs on NoiseParams to lua_api.txt
2014-12-12 02:02:44 -05:00
kwolekr
6f398af64f
Noise: Automatically transform noise maps if needed
2014-12-10 23:35:37 -05:00
kwolekr
180c455ab1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
22b22968a1
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
kwolekr
019cb29665
noise: Throw exception on noise allocation failure
2014-11-29 16:52:45 -05:00
SmallJoker
d3141906d2
Add option 'eased' to NoiseParams
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
ShadowNinja
ce942de6ed
Remove lua_State parameter from LuaError::LuaError
2014-03-15 16:28:59 -04:00
ShadowNinja
4a8e393a79
Handle LuaErrors in Lua -> C++ calls on LuaJIT
2013-12-18 16:35:55 -05:00
ShadowNinja
5cb34cf9dd
Pass a errfunc to lua_pcall to get a traceback
2013-11-15 14:13:31 -05:00
Kahrl
ee90d438b8
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
kwolekr
700c16fba1
Add Lua PerlinNoiseMap:get#dMap_flat API
2013-06-27 22:35:35 -04:00
sapier
2dceda8890
Move scriptapi to separate folder (by sapier)
...
On the lua side, notably minetest.env:<function>(<args>) should now
be replaced by minetest.<function>(<args>).
The old way is and will stay supported for a long time.
Also:
Update and clean up lua_api.txt (by celeron55)
Move EnvRef to lua and remove add_rat and add_firefly (by kahrl)
Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
2013-05-25 00:51:02 +02:00