aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/default_shader/opengl_vertex.glsl
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-03-29 21:08:42 +0100
committerGitHub <noreply@github.com>2018-03-29 21:08:42 +0100
commit2c490dddc037d7d1cf211bbf28309e31b0abdadd (patch)
tree486b4ae32cd8039276d363425152b9c2d042815a /client/shaders/default_shader/opengl_vertex.glsl
parent8f827ee6800974ee451f0e82ac5eafdff63b835e (diff)
downloadminetest-2c490dddc037d7d1cf211bbf28309e31b0abdadd.tar.gz
minetest-2c490dddc037d7d1cf211bbf28309e31b0abdadd.tar.bz2
minetest-2c490dddc037d7d1cf211bbf28309e31b0abdadd.zip
Mgcarpathian: Mapgen loop optimisations. fabs() -> std::fabs()
* Mgcarpathian: ZYX -> ZXY mapgen loop optimisation. * 'pow(n, 3)' to 'n * n * n' type optimisations. * fabs() -> std::fabs().
Diffstat (limited to 'client/shaders/default_shader/opengl_vertex.glsl')
0 files changed, 0 insertions, 0 deletions
4'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
/*
Minetest-c55
Copyright (C) 2010 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 General Public License as published by
the Free Software Foundation; either version 2 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 General Public License for more details.

You should have received a copy of the GNU 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.
*/

#include "guiTextInputMenu.h"
#include "debug.h"
#include "serialization.h"
#include <string>

#include "gettext.h"

GUITextInputMenu::GUITextInputMenu(gui::IGUIEnvironment* env,
		gui::IGUIElement* parent, s32 id,
		IMenuManager *menumgr,
		TextDest *dest,
		std::wstring initial_text
):
	GUIModalMenu(env, parent, id, menumgr),
	m_dest(dest),
	m_initial_text(initial_text)
{
}

GUITextInputMenu::~GUITextInputMenu()
{
	removeChildren();
	if(m_dest)
		delete m_dest;
}

void GUITextInputMenu::removeChildren()
{
	{