diff options
Diffstat (limited to 'src/client/mesh.h')
-rw-r--r-- | src/client/mesh.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/client/mesh.h b/src/client/mesh.h index 103c61e45..1698026e8 100644 --- a/src/client/mesh.h +++ b/src/client/mesh.h @@ -35,7 +35,7 @@ void applyFacesShading(video::SColor &color, const v3f &normal); The resulting mesh has 6 materials (up, down, right, left, back, front) which must be defined by the caller. */ -scene::IAnimatedMesh* createCubeMesh(v3f scale); +scene::IAnimatedMesh *createCubeMesh(v3f scale); /* Multiplies each vertex coordinate by the specified scaling factors @@ -61,7 +61,8 @@ void setMeshColor(scene::IMesh *mesh, const video::SColor &color); /* Set a constant color for an animated mesh */ -void setAnimatedMeshColor(scene::IAnimatedMeshSceneNode *node, const video::SColor &color); +void setAnimatedMeshColor( + scene::IAnimatedMeshSceneNode *node, const video::SColor &color); /*! * Overwrites the color of a mesh buffer. @@ -75,13 +76,11 @@ void colorizeMeshBuffer(scene::IMeshBuffer *buf, const video::SColor *buffercolo the normal vector, and choose one of colorX, colorY or colorZ accordingly. */ -void setMeshColorByNormalXYZ(scene::IMesh *mesh, - const video::SColor &colorX, - const video::SColor &colorY, - const video::SColor &colorZ); +void setMeshColorByNormalXYZ(scene::IMesh *mesh, const video::SColor &colorX, + const video::SColor &colorY, const video::SColor &colorZ); -void setMeshColorByNormal(scene::IMesh *mesh, const v3f &normal, - const video::SColor &color); +void setMeshColorByNormal( + scene::IMesh *mesh, const v3f &normal, const video::SColor &color); /* Rotate the mesh by 6d facedir value. @@ -92,20 +91,20 @@ 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); +void rotateMeshXYby(scene::IMesh *mesh, f64 degrees); +void rotateMeshXZby(scene::IMesh *mesh, f64 degrees); +void rotateMeshYZby(scene::IMesh *mesh, f64 degrees); /* * Clone the mesh buffer. * The returned pointer should be dropped. */ -scene::IMeshBuffer* cloneMeshBuffer(scene::IMeshBuffer *mesh_buffer); +scene::IMeshBuffer *cloneMeshBuffer(scene::IMeshBuffer *mesh_buffer); /* Clone the mesh. */ -scene::SMesh* cloneMesh(scene::IMesh *src_mesh); +scene::SMesh *cloneMesh(scene::IMesh *src_mesh); /* Convert nodeboxes to mesh. Each tile goes into a different buffer. @@ -113,7 +112,7 @@ scene::SMesh* cloneMesh(scene::IMesh *src_mesh); uv_coords[24] - table of texture uv coords for each cuboid face expand - factor by which cuboids will be resized */ -scene::IMesh* convertNodeboxesToMesh(const std::vector<aabb3f> &boxes, +scene::IMesh *convertNodeboxesToMesh(const std::vector<aabb3f> &boxes, const f32 *uv_coords = NULL, float expand = 0); /* @@ -132,4 +131,4 @@ bool checkMeshNormals(scene::IMesh *mesh); http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html Ported from irrlicht 1.8 */ -scene::IMesh* createForsythOptimizedMesh(const scene::IMesh *mesh); +scene::IMesh *createForsythOptimizedMesh(const scene::IMesh *mesh); |