X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh.h;h=a89bea3856a8761ac4b2ad47522b749c8b70160a;hb=58e6d25e033c76dc91aaac18fdeda92ac23fe0e1;hp=33e072927fd1850780202d23938a25df5dceb125;hpb=392485aa454e871566a67afc61e11331f9d27397;p=oweals%2Fminetest.git diff --git a/src/mesh.h b/src/mesh.h index 33e072927..a89bea385 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -1,18 +1,18 @@ /* -Minetest-c55 -Copyright (C) 2010-2011 celeron55, Perttu Ahola +Minetest +Copyright (C) 2010-2013 celeron55, Perttu Ahola 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 +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 General Public License for more details. +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License along +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. */ @@ -20,7 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef MESH_HEADER #define MESH_HEADER -#include "common_irrlicht.h" +#include "irrlichttypes_extrabloated.h" +#include /* Create a new cube mesh. @@ -47,6 +48,11 @@ scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture, */ void scaleMesh(scene::IMesh *mesh, v3f scale); +/* + Translate each vertex coordinate by the specified vector. +*/ +void translateMesh(scene::IMesh *mesh, v3f vec); + /* Set a constant color for all vertices in the mesh */