summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/assimp/code/MD4FileData.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/assimp/code/MD4FileData.h')
-rw-r--r--src/3rdparty/assimp/code/MD4FileData.h182
1 files changed, 91 insertions, 91 deletions
diff --git a/src/3rdparty/assimp/code/MD4FileData.h b/src/3rdparty/assimp/code/MD4FileData.h
index d5b037d2a..e515808ac 100644
--- a/src/3rdparty/assimp/code/MD4FileData.h
+++ b/src/3rdparty/assimp/code/MD4FileData.h
@@ -5,8 +5,8 @@ Open Asset Import Library (ASSIMP)
Copyright (c) 2006-2010, ASSIMP Development Team
All rights reserved.
-Redistribution and use of this software in source and binary forms,
-with or without modification, are permitted provided that the
+Redistribution and use of this software in source and binary forms,
+with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above
@@ -23,16 +23,16 @@ following conditions are met:
derived from this software without specific prior
written permission of the ASSIMP Development Team.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------
@@ -46,17 +46,17 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector>
#include <sstream>
-#include "../include/aiTypes.h"
-#include "../include/aiMesh.h"
-#include "../include/aiAnim.h"
+#include "../include/assimp/types.h"
+#include "../include/assimp/mesh.h"
+#include "../include/assimp/anim.h"
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
-# pragma pack(push,1)
-# define PACK_STRUCT
+#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
+# pragma pack(push,1)
+# define PACK_STRUCT
#elif defined( __GNUC__ )
-# define PACK_STRUCT __attribute__((packed))
+# define PACK_STRUCT __attribute__((packed))
#else
-# error Compiler not supported
+# error Compiler not supported
#endif
@@ -66,17 +66,17 @@ namespace Assimp
namespace MD4
{
-#define AI_MD4_MAGIC_NUMBER_BE 'IDP4'
-#define AI_MD4_MAGIC_NUMBER_LE '4PDI'
+#define AI_MD4_MAGIC_NUMBER_BE 'IDP4'
+#define AI_MD4_MAGIC_NUMBER_LE '4PDI'
// common limitations
-#define AI_MD4_VERSION 4
-#define AI_MD4_MAXQPATH 64
-#define AI_MD4_MAX_FRAMES 2028
-#define AI_MD4_MAX_SURFACES 32
-#define AI_MD4_MAX_BONES 256
-#define AI_MD4_MAX_VERTS 4096
-#define AI_MD4_MAX_TRIANGLES 8192
+#define AI_MD4_VERSION 4
+#define AI_MD4_MAXQPATH 64
+#define AI_MD4_MAX_FRAMES 2028
+#define AI_MD4_MAX_SURFACES 32
+#define AI_MD4_MAX_BONES 256
+#define AI_MD4_MAX_VERTS 4096
+#define AI_MD4_MAX_TRIANGLES 8192
// ---------------------------------------------------------------------------
/** \brief Data structure for the MD4 main header
@@ -84,35 +84,35 @@ namespace MD4
// ---------------------------------------------------------------------------
struct Header
{
- //! magic number
- int32_t magic;
+ //! magic number
+ int32_t magic;
- //! file format version
- int32_t version;
+ //! file format version
+ int32_t version;
- //! original name in .pak archive
- unsigned char name[ AI_MD4_MAXQPATH ];
+ //! original name in .pak archive
+ unsigned char name[ AI_MD4_MAXQPATH ];
- //! number of frames in the file
- int32_t NUM_FRAMES;
+ //! number of frames in the file
+ int32_t NUM_FRAMES;
- //! number of bones in the file
- int32_t NUM_BONES;
+ //! number of bones in the file
+ int32_t NUM_BONES;
- //! number of surfaces in the file
- int32_t NUM_SURFACES;
+ //! number of surfaces in the file
+ int32_t NUM_SURFACES;
- //! offset of the first frame
- int32_t OFS_FRAMES;
+ //! offset of the first frame
+ int32_t OFS_FRAMES;
- //! offset of the first bone
- int32_t OFS_BONES;
+ //! offset of the first bone
+ int32_t OFS_BONES;
- //! offset of the first surface
- int32_t OFS_SURFACES;
+ //! offset of the first surface
+ int32_t OFS_SURFACES;
- //! end of file
- int32_t OFS_EOF;
+ //! end of file
+ int32_t OFS_EOF;
} PACK_STRUCT;
// ---------------------------------------------------------------------------
@@ -120,8 +120,8 @@ struct Header
*/
// ---------------------------------------------------------------------------
struct BoneFrame
-{
- float matrix[3][4];
+{
+ float matrix[3][4];
} PACK_STRUCT;
// ---------------------------------------------------------------------------
@@ -129,10 +129,10 @@ struct BoneFrame
*/
// ---------------------------------------------------------------------------
struct BoneName
-{
- char name[32] ;
- int parent ;
- int flags ;
+{
+ char name[32] ;
+ int parent ;
+ int flags ;
} PACK_STRUCT;
// ---------------------------------------------------------------------------
@@ -140,22 +140,22 @@ struct BoneName
*/
// ---------------------------------------------------------------------------
struct Surface
-{
- int32_t ident;
- char name[64];
- char shader[64];
- int32_t shaderIndex;
- int32_t lodBias;
- int32_t minLod;
- int32_t ofsHeader;
- int32_t numVerts;
- int32_t ofsVerts;
- int32_t numTris;
- int32_t ofsTris;
- int32_t numBoneRefs;
- int32_t ofsBoneRefs;
- int32_t ofsCollapseMap;
- int32_t ofsEnd;
+{
+ int32_t ident;
+ char name[64];
+ char shader[64];
+ int32_t shaderIndex;
+ int32_t lodBias;
+ int32_t minLod;
+ int32_t ofsHeader;
+ int32_t numVerts;
+ int32_t ofsVerts;
+ int32_t numTris;
+ int32_t ofsTris;
+ int32_t numBoneRefs;
+ int32_t ofsBoneRefs;
+ int32_t ofsCollapseMap;
+ int32_t ofsEnd;
} PACK_STRUCT;
@@ -164,32 +164,32 @@ struct Surface
*/
// ---------------------------------------------------------------------------
struct Weight
-{
- int32_t boneIndex;
- float boneWeight;
- float offset[3];
-} PACK_STRUCT;
+{
+ int32_t boneIndex;
+ float boneWeight;
+ float offset[3];
+} PACK_STRUCT;
// ---------------------------------------------------------------------------
/** \brief Data structure for a vertex in a MD4 file
*/
// ---------------------------------------------------------------------------
struct Vertex
-{
- float vertex[3];
- float normal[3];
- float texCoords[2];
- int32_t numWeights;
- Weight weights[1];
-} PACK_STRUCT;
+{
+ float vertex[3];
+ float normal[3];
+ float texCoords[2];
+ int32_t numWeights;
+ Weight weights[1];
+} PACK_STRUCT;
// ---------------------------------------------------------------------------
/** \brief Data structure for a triangle in a MD4 file
*/
// ---------------------------------------------------------------------------
-struct Triangle
-{
- int32_t indexes[3];
+struct Triangle
+{
+ int32_t indexes[3];
} PACK_STRUCT;
// ---------------------------------------------------------------------------
@@ -197,17 +197,17 @@ struct Triangle
*/
// ---------------------------------------------------------------------------
struct Frame
-{
- float bounds[3][2];
- float localOrigin[3];
- float radius;
- BoneFrame bones[1];
-} PACK_STRUCT;
+{
+ float bounds[3][2];
+ float localOrigin[3];
+ float radius;
+ BoneFrame bones[1];
+} PACK_STRUCT;
// reset packing to the original value
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
-# pragma pack( pop )
+# pragma pack( pop )
#endif
#undef PACK_STRUCT
@@ -215,4 +215,4 @@ struct Frame
};
};
-#endif // !! AI_MD4FILEHELPER_H_INC \ No newline at end of file
+#endif // !! AI_MD4FILEHELPER_H_INC