| 1197 | return 1; |
| 1198 | } |
| 1199 | static int eval_perlin_2(lua_State *L) |
| 1200 | { |
| 1201 | auto &gen = *(PerlinNoise2D<float>*)lua_touserdata(L, lua_upvalueindex(1)); |
| 1202 | lua_pushnumber(L, gen(luaL_checknumber(L, 1), luaL_checknumber(L, 2))); |
| 1203 | return 1; |
| 1204 | } |
| 1205 | static int eval_perlin_3(lua_State *L) |
| 1206 | { |
| 1207 | auto &gen = *(PerlinNoise3D<float>*)lua_touserdata(L, lua_upvalueindex(1)); |
nothing calls this directly
no test coverage detected