]> git.lizzy.rs Git - minetest.git/blobdiff - src/mesh.h
Remove ClientMap::m_camera_mutex
[minetest.git] / src / mesh.h
index 761842b0d744c618634802a4731c3f0aff499f8b..ad3f8db4b22eb08bb8c2424964131d4a41649247 100644 (file)
@@ -48,6 +48,12 @@ void translateMesh(scene::IMesh *mesh, v3f vec);
 */
 void setMeshColor(scene::IMesh *mesh, const video::SColor &color);
 
+/*
+       Shade mesh faces according to their normals
+*/
+
+void shadeMeshFaces(scene::IMesh *mesh);
+
 /*
        Set the color of all vertices in the mesh.
        For each vertex, determine the largest absolute entry in
@@ -77,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.