aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_base.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2016-01-15 02:16:21 +0100
committerKahrl <kahrl@gmx.net>2016-01-15 04:18:32 +0100
commitda686160c33069b77a7b4c31fd97da5fa5b59baa (patch)
treeeb09f1990688c228c964d627c1980a6dce7ff01b /src/script/lua_api/l_base.h
parent3c6b2ffb10e053ad0b585347275034c4d889530d (diff)
downloadminetest-da686160c33069b77a7b4c31fd97da5fa5b59baa.tar.gz
minetest-da686160c33069b77a7b4c31fd97da5fa5b59baa.tar.bz2
minetest-da686160c33069b77a7b4c31fd97da5fa5b59baa.zip
Make all mesh manipulators in mesh.cpp work with any vertex type
cloneMesh() has to use a switch in order to create a different mesh buffer type depending on vertex type. (Credit: the new cloneMesh was written by RealBadAngel.) To avoid repetitive code, all other methods use getVertexPitchFromType() to automatically adapt the indexing to the vertex type at runtime.
Diffstat (limited to 'src/script/lua_api/l_base.h')
0 files changed, 0 insertions, 0 deletions