summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/assimp/include/assimp/mesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/assimp/include/assimp/mesh.h')
-rw-r--r--src/3rdparty/assimp/include/assimp/mesh.h32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/3rdparty/assimp/include/assimp/mesh.h b/src/3rdparty/assimp/include/assimp/mesh.h
index 5fd30bb02..c8648c778 100644
--- a/src/3rdparty/assimp/include/assimp/mesh.h
+++ b/src/3rdparty/assimp/include/assimp/mesh.h
@@ -3,7 +3,7 @@
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
-Copyright (c) 2006-2016, assimp team
+Copyright (c) 2006-2017, assimp team
All rights reserved.
@@ -43,8 +43,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* @brief Declares the data structures in which the imported geometry is
returned by ASSIMP: aiMesh, aiFace and aiBone data structures.
*/
-#ifndef INCLUDED_AI_MESH_H
-#define INCLUDED_AI_MESH_H
+#pragma once
+#ifndef AI_MESH_H_INC
+#define AI_MESH_H_INC
#include "types.h"
@@ -54,7 +55,7 @@ extern "C" {
// ---------------------------------------------------------------------------
// Limits. These values are required to match the settings Assimp was
-// compiled against. Therfore, do not redefine them unless you build the
+// compiled against. Therefore, do not redefine them unless you build the
// library from source using the same definitions.
// ---------------------------------------------------------------------------
@@ -376,8 +377,10 @@ struct aiAnimMesh
* from language bindings.
*/
unsigned int mNumVertices;
-
- /** Weight of the AnimMesh. */
+
+ /**
+ * Weight of the AnimMesh.
+ */
float mWeight;
#ifdef __cplusplus
@@ -388,6 +391,7 @@ struct aiAnimMesh
, mTangents( NULL )
, mBitangents( NULL )
, mNumVertices( 0 )
+ , mWeight( 0.0f )
{
// fixme consider moving this to the ctor initializer list as well
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++){
@@ -623,17 +627,20 @@ struct aiMesh
C_STRUCT aiString mName;
- /** NOT CURRENTLY IN USE. The number of attachment meshes */
+ /** The number of attachment meshes. Note! Currently only works with Collada loader. */
unsigned int mNumAnimMeshes;
- /** NOT CURRENTLY IN USE. Attachment meshes for this mesh, for vertex-based animation.
+ /** Attachment meshes for this mesh, for vertex-based animation.
* Attachment meshes carry replacement data for some of the
- * mesh'es vertex components (usually positions, normals). */
+ * mesh'es vertex components (usually positions, normals).
+ * Note! Currently only works with Collada loader.*/
C_STRUCT aiAnimMesh** mAnimMeshes;
- /** Method of morphing when animeshes are specified. */
+ /**
+ * Method of morphing when animeshes are specified.
+ */
unsigned int mMethod;
-
+
#ifdef __cplusplus
//! Default constructor. Initializes all members to 0
@@ -651,6 +658,7 @@ struct aiMesh
, mMaterialIndex( 0 )
, mNumAnimMeshes( 0 )
, mAnimMeshes( NULL )
+ , mMethod( 0 )
{
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++)
{
@@ -761,5 +769,5 @@ struct aiMesh
#ifdef __cplusplus
}
#endif //! extern "C"
-#endif // __AI_MESH_H_INC
+#endif // AI_MESH_H_INC