mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-07 16:48:40 +00:00
added plantlike luaentity
This commit is contained in:
parent
285f5a0259
commit
f0679969b2
3 changed files with 108 additions and 18 deletions
10
src/mesh.h
10
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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue