aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/scene
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2023-09-17 22:38:12 -0500
committerAlexander M Pickering <alex@cogarr.net>2023-09-17 22:38:12 -0500
commit072690890fa67887f991ad48545c226e379773bc (patch)
tree7bf5a5727de267d7c5738ea1cd33e403e29394ab /src/client/lua_api/scene
parentc2e244a526bc69eaf543ec5c64786b00d0ee271d (diff)
downloadbrokengine-072690890fa67887f991ad48545c226e379773bc.tar.gz
brokengine-072690890fa67887f991ad48545c226e379773bc.tar.bz2
brokengine-072690890fa67887f991ad48545c226e379773bc.zip
Add documentation for creating a scene node
Diffstat (limited to 'src/client/lua_api/scene')
-rw-r--r--src/client/lua_api/scene/imesh.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/lua_api/scene/imesh.cpp b/src/client/lua_api/scene/imesh.cpp
index b3d32df..f148a56 100644
--- a/src/client/lua_api/scene/imesh.cpp
+++ b/src/client/lua_api/scene/imesh.cpp
@@ -23,6 +23,13 @@ using namespace video;
extern IrrlichtDevice* device;
+/***
+Create a mesh
+Creates a mesh in the scene.
+@function scene.newmesh(string path)
+@tparam string path The path to the model to load
+@treturn imesh The mesh that was created.
+*/
//{} :: scene.newmesh("/path/to/model")
static int newiscenemesh(lua_State* L){//"path/to"