aboutsummaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
authorsapier <sapier at gmx dot net>2012-01-15 20:30:26 +0100
committersapier <sapier at gmx dot net>2012-01-15 20:30:26 +0100
commit3454e6779337d8523ae76c7fa16eb8c565aa2381 (patch)
tree01be686a28789d3238706cf570ecbd28a9ba6ae6 /src/mesh.h
parent0c78767754c5664373a3bf9fe8dc8a20c8a3ed7d (diff)
downloadminetest-3454e6779337d8523ae76c7fa16eb8c565aa2381.tar.xz
added new entity style irregular_cube
Diffstat (limited to 'src/mesh.h')
-rw-r--r--src/mesh.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h
index 78c0dc1e7..b22ccc318 100644
--- a/src/mesh.h
+++ b/src/mesh.h
@@ -32,6 +32,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
scene::IAnimatedMesh* createCubeMesh(v3f scale);
/*
+ Create a new cube mesh not linked to mapnode size.
+ Vertices are defined by given box.
+
+ The resulting mesh has 6 materials (up, down, right, left, back, front)
+ which must be defined by the caller.
+*/
+scene::IAnimatedMesh* createCubeMesh(v3f scale,core::aabbox3d<f32> box);
+
+/*
Create a new extruded mesh from a texture.
Maximum bounding box is (+-scale.X/2, +-scale.Y/2, +-scale.Z).
Thickness is in Z direction.