aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_util.h
diff options
context:
space:
mode:
authorSamuel Sieb <samuel@sieb.net>2016-04-06 00:38:11 -0700
committerkwolekr <kwolekr@minetest.net>2016-04-07 03:55:17 -0400
commitecdd5921a14a8e61ab1bd1338d61373ad96d5d3d (patch)
tree0af6eebecec6be9b66930d09ca1b35c576c204e1 /src/script/lua_api/l_util.h
parent15e1dcc020ca5c64e4b5b306529e513cb2b97bef (diff)
downloadminetest-ecdd5921a14a8e61ab1bd1338d61373ad96d5d3d.tar.gz
minetest-ecdd5921a14a8e61ab1bd1338d61373ad96d5d3d.tar.bz2
minetest-ecdd5921a14a8e61ab1bd1338d61373ad96d5d3d.zip
Clearer explanation of [colorize with alpha
Diffstat (limited to 'src/script/lua_api/l_util.h')
0 files changed, 0 insertions, 0 deletions
/a> 121 122 123 124 125 126 127
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef L_NOISE_H_
#define L_NOISE_H_

#include "lua_api/l_base.h"
#include "irr_v3d.h"
#include "noise.h"

/*
	LuaPerlinNoise
*/
class LuaPerlinNoise : public ModApiBase {
private:
	int seed;
	int octaves;
	float persistence;
	float scale;
	static const char className[];
	static const luaL_reg methods[];

	// Exported functions

	// garbage collector
	static int gc_object(lua_State *L);