diff options
Diffstat (limited to 'src/mesh.h')
| -rw-r--r-- | src/mesh.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mesh.h b/src/mesh.h index 57166235e..631dc0cca 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -33,6 +33,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. @@ -42,6 +51,16 @@ scene::IAnimatedMesh* createCubeMesh(v3f scale); scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture, video::IVideoDriver *driver, v3f scale); + +/* + Create a new plant style mesh. + Vertices are at (+-scale.X/2, +-scale.Y/2, +-scale.Z/2). + + The resulting mesh has 4 materials (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). |
