From 016448331061f87a63b8f9ef33671d81e8922ad1 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Fri, 21 Nov 2014 08:41:21 +0100 Subject: Port createForsythOptimizedMesh from Irrlicht 1.8 Mesh rotation helpers. --- src/mesh.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mesh.h') diff --git a/src/mesh.h b/src/mesh.h index 29f5ec76c..761842b0d 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -64,6 +64,13 @@ void setMeshColorByNormalXYZ(scene::IMesh *mesh, */ void rotateMeshBy6dFacedir(scene::IMesh *mesh, int facedir); +/* + Rotate the mesh around the axis and given angle in degrees. +*/ +void rotateMeshXYby (scene::IMesh *mesh, f64 degrees); +void rotateMeshXZby (scene::IMesh *mesh, f64 degrees); +void rotateMeshYZby (scene::IMesh *mesh, f64 degrees); + /* Clone the mesh. */ @@ -79,4 +86,11 @@ scene::IMesh* convertNodeboxNodeToMesh(ContentFeatures *f); */ void recalculateBoundingBox(scene::IMesh *src_mesh); +/* + Vertex cache optimization according to the Forsyth paper: + http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html + Ported from irrlicht 1.8 +*/ +scene::IMesh* createForsythOptimizedMesh(const scene::IMesh *mesh); + #endif -- cgit v1.2.3