diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2016-02-07 04:08:43 +0100 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-02-08 03:57:42 -0500 |
commit | b44da4916aa09b27155ce6675cccbcc128b5a66c (patch) | |
tree | be51c3a097e1371cb126bf1516e81aaad20bb768 /src/mesh.h | |
parent | 430195381d8d7254a7b8cdcf6b50769c2c598329 (diff) | |
download | minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.tar.gz minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.tar.bz2 minetest-b44da4916aa09b27155ce6675cccbcc128b5a66c.zip |
Cleanup selection mesh code, add shaders for halo and selection boxes
Diffstat (limited to 'src/mesh.h')
-rw-r--r-- | src/mesh.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesh.h b/src/mesh.h index ec109e9e9..ad3f8db4b 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -83,9 +83,12 @@ void rotateMeshYZby (scene::IMesh *mesh, f64 degrees); scene::IMesh* cloneMesh(scene::IMesh *src_mesh); /* - Convert nodebox drawtype node to mesh. + Convert nodeboxes to mesh. + boxes - set of nodeboxes to be converted into cuboids + uv_coords[24] - table of texture uv coords for each cuboid face */ -scene::IMesh* convertNodeboxNodeToMesh(ContentFeatures *f); +scene::IMesh* convertNodeboxesToMesh(const std::vector<aabb3f> &boxes, + const f32 *uv_coords = NULL); /* Update bounding box for a mesh. |