aboutsummaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
authorsapier <sapier at gmx dot net>2012-01-15 20:22:41 +0100
committersapier <sapier at gmx dot net>2012-01-15 20:22:41 +0100
commitf0679969b2d512c0093c31608172425a2ac0f740 (patch)
tree7d09a3417933b555efd835135e2149cde68f9a54 /src/mesh.h
parent285f5a025975207f9251165e82dadb50d4744991 (diff)
downloadminetest-f0679969b2d512c0093c31608172425a2ac0f740.tar.xz
added plantlike luaentity
Diffstat (limited to 'src/mesh.h')
-rw-r--r--src/mesh.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h
index 33e072927..d9268267b 100644
--- a/src/mesh.h
+++ b/src/mesh.h
@@ -41,6 +41,16 @@ scene::IAnimatedMesh* createCubeMesh(v3f scale);
scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture,
video::IVideoDriver *driver, v3f scale);
+
+/*
+ Create a new cube mesh.
+ Vertices are at (+-scale.X/2, +-scale.Y/2, +-scale.Z/2).
+
+ The resulting mesh has 6 materials (up, down, right, left, back, front)
+ which must be defined by the caller.
+*/
+scene::IAnimatedMesh* createPlantMesh(v3f scale);
+
/*
Multiplies each vertex coordinate by the specified scaling factors
(componentwise vector multiplication).