]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/mesh.h
Remove unused ITextSceneNode header (#11476)
[dragonfireclient.git] / src / client / mesh.h
index 0c4094de2a7777e5138ceb47b99b188a0c945c6f..dbc091a06fd716ca64987ab5752d9f77d3fd717c 100644 (file)
@@ -58,6 +58,13 @@ void setMeshBufferColor(scene::IMeshBuffer *buf, const video::SColor &color);
 */
 void setMeshColor(scene::IMesh *mesh, const video::SColor &color);
 
+
+/*
+       Sets texture coords for vertices in the mesh buffer.
+       `uv[]` must have `count` elements
+*/
+void setMeshBufferTextureCoords(scene::IMeshBuffer *buf, const v2f *uv, u32 count);
+
 /*
        Set a constant color for an animated mesh
 */
@@ -121,6 +128,12 @@ scene::IMesh* convertNodeboxesToMesh(const std::vector<aabb3f> &boxes,
 */
 void recalculateBoundingBox(scene::IMesh *src_mesh);
 
+/*
+       Check if mesh has valid normals and return true if it does.
+       We assume normal to be valid when it's 0 < length < Inf. and not NaN
+ */
+bool checkMeshNormals(scene::IMesh *mesh);
+
 /*
        Vertex cache optimization according to the Forsyth paper:
        http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html