| 1191 | } |
| 1192 | |
| 1193 | static int eval_perlin_1(lua_State *L) |
| 1194 | { |
| 1195 | auto &gen = *(PerlinNoise1D<float>*)lua_touserdata(L, lua_upvalueindex(1)); |
| 1196 | lua_pushnumber(L, gen(luaL_checknumber(L, 1))); |
| 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)); |
nothing calls this directly
no test coverage detected