diff options
author | nerzhul <loic.blot@unix-experience.fr> | 2016-02-11 15:21:21 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-02-11 16:55:15 +0100 |
commit | fefa148d694364cb4c60fbb4ffdc0f8ae6388df6 (patch) | |
tree | 8755fd0d4ef196c23924ae2909a29681f9f77f05 /src/mesh.cpp | |
parent | 24b312cc085b7fae6477c8a47fffb57484b20f6e (diff) | |
download | minetest-fefa148d694364cb4c60fbb4ffdc0f8ae6388df6.tar.gz minetest-fefa148d694364cb4c60fbb4ffdc0f8ae6388df6.tar.bz2 minetest-fefa148d694364cb4c60fbb4ffdc0f8ae6388df6.zip |
v2d & aabbox3d<f32> & sky cleanups
* Sky: rename Box => m_box and inline getBoundingBox
* Uniformize aabbox3d<f32> to aabb3f
Diffstat (limited to 'src/mesh.cpp')
-rw-r--r-- | src/mesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp index 3c3932204..b5bf8660a 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -104,7 +104,7 @@ void scaleMesh(scene::IMesh *mesh, v3f scale) if (mesh == NULL) return; - core::aabbox3d<f32> bbox; + aabb3f bbox; bbox.reset(0, 0, 0); u32 mc = mesh->getMeshBufferCount(); @@ -132,7 +132,7 @@ void translateMesh(scene::IMesh *mesh, v3f vec) if (mesh == NULL) return; - core::aabbox3d<f32> bbox; + aabb3f bbox; bbox.reset(0, 0, 0); u32 mc = mesh->getMeshBufferCount(); @@ -346,7 +346,7 @@ void rotateMeshBy6dFacedir(scene::IMesh *mesh, int facedir) void recalculateBoundingBox(scene::IMesh *src_mesh) { - core::aabbox3d<f32> bbox; + aabb3f bbox; bbox.reset(0,0,0); for (u16 j = 0; j < src_mesh->getMeshBufferCount(); j++) { scene::IMeshBuffer *buf = src_mesh->getMeshBuffer(j); |