2015-05-19 03:48:29 +00:00
|
|
|
/*
|
|
|
|
Open Asset Import Library (assimp)
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2022-01-10 20:13:43 +00:00
|
|
|
Copyright (c) 2006-2022, assimp team
|
2018-01-28 18:42:05 +00:00
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
All rights reserved.
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
with or without modification, are permitted provided that the
|
2015-05-19 03:48:29 +00:00
|
|
|
following conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
|
|
|
* Neither the name of the assimp team, nor the names of its
|
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
derived from this software without specific prior
|
|
|
|
written permission of the assimp team.
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
2015-05-19 03:52:10 +00:00
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
2015-05-19 03:48:29 +00:00
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
2015-05-19 03:52:10 +00:00
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
2015-05-19 03:52:10 +00:00
|
|
|
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
|
2015-05-19 03:48:29 +00:00
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file SMDLoader.h
|
2016-04-03 00:38:00 +00:00
|
|
|
* @brief Definition of the Valve SMD file format
|
2015-05-19 03:48:29 +00:00
|
|
|
*/
|
|
|
|
|
2021-09-13 20:38:20 +00:00
|
|
|
#pragma once
|
2015-05-19 03:48:29 +00:00
|
|
|
#ifndef AI_SMDLOADER_H_INCLUDED
|
|
|
|
#define AI_SMDLOADER_H_INCLUDED
|
|
|
|
|
2018-01-06 00:18:33 +00:00
|
|
|
#include <assimp/BaseImporter.h>
|
|
|
|
#include <assimp/ParsingUtils.h>
|
2016-06-06 20:04:29 +00:00
|
|
|
#include <assimp/types.h>
|
|
|
|
#include <assimp/texture.h>
|
|
|
|
#include <assimp/anim.h>
|
|
|
|
#include <assimp/material.h>
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2021-09-13 20:38:20 +00:00
|
|
|
struct aiNode;
|
|
|
|
|
2018-09-21 14:07:09 +00:00
|
|
|
namespace Assimp {
|
|
|
|
namespace SMD {
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** Data structure for a vertex in a SMD file
|
|
|
|
*/
|
2018-09-21 14:07:09 +00:00
|
|
|
struct Vertex {
|
2021-09-13 20:38:20 +00:00
|
|
|
Vertex() AI_NO_EXCEPT : iParentNode(UINT_MAX) {
|
2018-09-21 14:07:09 +00:00
|
|
|
// empty
|
|
|
|
}
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Vertex position, normal and texture coordinate
|
|
|
|
aiVector3D pos,nor,uv;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Vertex parent node
|
|
|
|
unsigned int iParentNode;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Links to bones: pair.first is the bone index,
|
|
|
|
//! pair.second is the vertex weight.
|
|
|
|
//! WARN: The remaining weight (to reach 1.0f) is assigned
|
|
|
|
//! to the parent node/bone
|
|
|
|
std::vector<std::pair<unsigned int, float> > aiBoneLinks;
|
2015-05-19 03:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** Data structure for a face in a SMD file
|
|
|
|
*/
|
2018-09-21 14:07:09 +00:00
|
|
|
struct Face {
|
2021-09-13 20:38:20 +00:00
|
|
|
Face() AI_NO_EXCEPT :
|
2023-01-16 20:47:11 +00:00
|
|
|
iTexture(0x0) {
|
2018-09-21 14:07:09 +00:00
|
|
|
// empty
|
|
|
|
}
|
2023-01-16 08:12:35 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Texture index for the face
|
|
|
|
unsigned int iTexture;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! The three vertices of the face
|
|
|
|
Vertex avVertices[3];
|
2015-05-19 03:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** Data structure for a bone in a SMD file
|
|
|
|
*/
|
2018-09-21 14:07:09 +00:00
|
|
|
struct Bone {
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Default constructor
|
2021-09-13 20:38:20 +00:00
|
|
|
Bone() AI_NO_EXCEPT : iParent(UINT_MAX), bIsUsed(false) {
|
2018-09-21 14:07:09 +00:00
|
|
|
// empty
|
2015-05-19 03:57:13 +00:00
|
|
|
}
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Name of the bone
|
|
|
|
std::string mName;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Parent of the bone
|
|
|
|
uint32_t iParent;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Animation of the bone
|
2018-09-21 14:07:09 +00:00
|
|
|
struct Animation {
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Public default constructor
|
2021-09-13 20:38:20 +00:00
|
|
|
Animation() AI_NO_EXCEPT : iFirstTimeKey() {
|
2015-05-19 03:57:13 +00:00
|
|
|
asKeys.reserve(20);
|
|
|
|
}
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Data structure for a matrix key
|
2021-09-13 20:38:20 +00:00
|
|
|
struct MatrixKey {
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Matrix at this time
|
|
|
|
aiMatrix4x4 matrix;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Absolute transformation matrix
|
|
|
|
aiMatrix4x4 matrixAbsolute;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Position
|
|
|
|
aiVector3D vPos;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Rotation (euler angles)
|
|
|
|
aiVector3D vRot;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Current time. may be negative, this
|
|
|
|
//! will be fixed later
|
|
|
|
double dTime;
|
|
|
|
};
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Index of the key with the smallest time value
|
|
|
|
uint32_t iFirstTimeKey;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Array of matrix keys
|
|
|
|
std::vector<MatrixKey> asKeys;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
} sAnim;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! Offset matrix of the bone
|
|
|
|
aiMatrix4x4 mOffsetMatrix;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
//! true if the bone is referenced by at least one mesh
|
|
|
|
bool bIsUsed;
|
2015-05-19 03:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} //! namespace SMD
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** Used to load Half-life 1 and 2 SMD models
|
|
|
|
*/
|
2021-09-13 20:38:20 +00:00
|
|
|
class ASSIMP_API SMDImporter : public BaseImporter {
|
2015-05-19 03:48:29 +00:00
|
|
|
public:
|
2015-05-19 03:57:13 +00:00
|
|
|
SMDImporter();
|
2024-01-30 13:32:41 +00:00
|
|
|
~SMDImporter() override = default;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Returns whether the class can handle the format of the given file.
|
|
|
|
* See BaseImporter::CanRead() for details.
|
|
|
|
*/
|
|
|
|
bool CanRead( const std::string& pFile, IOSystem* pIOHandler,
|
2021-09-13 20:38:20 +00:00
|
|
|
bool checkSig) const override;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Called prior to ReadFile().
|
|
|
|
* The function is a request to the importer to update its configuration
|
|
|
|
* basing on the Importer's configuration property list.
|
|
|
|
*/
|
2021-09-13 20:38:20 +00:00
|
|
|
void SetupProperties(const Importer* pImp) override;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
protected:
|
2015-05-19 03:57:13 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Return importer meta information.
|
|
|
|
* See #BaseImporter::GetInfo for the details
|
|
|
|
*/
|
2021-09-13 20:38:20 +00:00
|
|
|
const aiImporterDesc* GetInfo () const override;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Imports the given file into the given scene structure.
|
|
|
|
* See BaseImporter::InternReadFile() for details
|
|
|
|
*/
|
|
|
|
void InternReadFile( const std::string& pFile, aiScene* pScene,
|
2021-09-13 20:38:20 +00:00
|
|
|
IOSystem* pIOHandler) override;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse the SMD file and create the output scene
|
|
|
|
*/
|
|
|
|
void ParseFile();
|
2018-11-30 01:47:29 +00:00
|
|
|
void ReadSmd(const std::string &pFile, IOSystem* pIOHandler);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse the triangles section of the SMD file
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives a pointer to the heading line of
|
|
|
|
* the next section (or to EOF)
|
|
|
|
*/
|
|
|
|
void ParseTrianglesSection(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse the vertex animation section in VTA files
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives a pointer to the heading line of
|
|
|
|
* the next section (or to EOF)
|
|
|
|
*/
|
|
|
|
void ParseVASection(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOu, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse the nodes section of the SMD file
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives a pointer to the heading line of
|
|
|
|
* the next section (or to EOF)
|
|
|
|
*/
|
|
|
|
void ParseNodesSection(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse the skeleton section of the SMD file
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives a pointer to the heading line of
|
|
|
|
* the next section (or to EOF)
|
|
|
|
*/
|
|
|
|
void ParseSkeletonSection(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a single triangle in the SMD file
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives the output cursor position
|
|
|
|
*/
|
|
|
|
void ParseTriangle(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a single vertex in the SMD file
|
|
|
|
* \param szCurrent Current position in the file. Points to the first
|
|
|
|
* data line of the section.
|
|
|
|
* \param szCurrentOut Receives the output cursor position
|
|
|
|
* \param vertex Vertex to be filled
|
|
|
|
*/
|
|
|
|
void ParseVertex(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end, SMD::Vertex &vertex,
|
2015-05-19 03:57:13 +00:00
|
|
|
bool bVASection = false);
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Get the index of a texture. If the texture was not yet known
|
|
|
|
* it will be added to the internal texture list.
|
|
|
|
* \param filename Name of the texture
|
|
|
|
* \return Value texture index
|
|
|
|
*/
|
|
|
|
unsigned int GetTextureIndex(const std::string& filename);
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a line in the skeleton section
|
|
|
|
*/
|
|
|
|
void ParseSkeletonElement(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end, int iTime);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a line in the nodes section
|
|
|
|
*/
|
|
|
|
void ParseNodeInfo(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a floating-point value
|
|
|
|
*/
|
|
|
|
bool ParseFloat(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end, float &out);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse an unsigned integer. There may be no sign!
|
|
|
|
*/
|
|
|
|
bool ParseUnsignedInt(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end, unsigned int &out);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Parse a signed integer. Signs (+,-) are handled.
|
|
|
|
*/
|
|
|
|
bool ParseSignedInt(const char* szCurrent,
|
2024-01-30 13:32:41 +00:00
|
|
|
const char **szCurrentOut, const char *end, int &out);
|
2015-05-19 03:57:13 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Fix invalid time values in the file
|
|
|
|
*/
|
|
|
|
void FixTimeValues();
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
2024-01-30 13:32:41 +00:00
|
|
|
/** Add all children of a bone as sub-nodes to a node
|
2015-05-19 03:57:13 +00:00
|
|
|
* \param pcNode Parent node
|
|
|
|
* \param iParent Parent bone index
|
|
|
|
*/
|
|
|
|
void AddBoneChildren(aiNode* pcNode, uint32_t iParent);
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Build output meshes/materials/nodes/animations
|
|
|
|
*/
|
|
|
|
void CreateOutputMeshes();
|
|
|
|
void CreateOutputNodes();
|
2018-11-30 01:47:29 +00:00
|
|
|
void CreateOutputAnimations(const std::string &pFile, IOSystem* pIOHandler);
|
|
|
|
void CreateOutputAnimation(int index, const std::string &name);
|
|
|
|
void GetAnimationFileList(const std::string &pFile, IOSystem* pIOHandler, std::vector<std::tuple<std::string, std::string>>& outList);
|
2015-05-19 03:57:13 +00:00
|
|
|
void CreateOutputMaterials();
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Print a log message together with the current line number
|
|
|
|
*/
|
|
|
|
void LogErrorNoThrow(const char* msg);
|
|
|
|
void LogWarning(const char* msg);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
2024-01-30 13:32:41 +00:00
|
|
|
inline bool SkipLine( const char* in, const char** out, const char *end) {
|
|
|
|
Assimp::SkipLine(in, out, end);
|
2015-05-19 03:57:13 +00:00
|
|
|
++iLineNumber;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
2024-01-30 13:32:41 +00:00
|
|
|
inline bool SkipSpacesAndLineEnd(const char *in, const char **out, const char *end) {
|
2015-05-19 03:57:13 +00:00
|
|
|
++iLineNumber;
|
2024-01-30 13:32:41 +00:00
|
|
|
return Assimp::SkipSpacesAndLineEnd(in, out, end);
|
2015-05-19 03:57:13 +00:00
|
|
|
}
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Configuration option: frame to be loaded */
|
|
|
|
unsigned int configFrameID;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Buffer to hold the loaded file */
|
2016-09-04 18:40:34 +00:00
|
|
|
std::vector<char> mBuffer;
|
2024-01-30 13:32:41 +00:00
|
|
|
char *mEnd;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Output scene to be filled
|
|
|
|
*/
|
|
|
|
aiScene* pScene;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Size of the input file in bytes
|
|
|
|
*/
|
|
|
|
unsigned int iFileSize;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Array of textures found in the file
|
|
|
|
*/
|
|
|
|
std::vector<std::string> aszTextures;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Array of triangles found in the file
|
|
|
|
*/
|
|
|
|
std::vector<SMD::Face> asTriangles;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Array of bones found in the file
|
|
|
|
*/
|
|
|
|
std::vector<SMD::Bone> asBones;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Smallest frame index found in the skeleton
|
|
|
|
*/
|
|
|
|
int iSmallestFrame;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Length of the whole animation, in frames
|
|
|
|
*/
|
|
|
|
double dLengthOfAnim;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2015-05-19 03:57:13 +00:00
|
|
|
/** Do we have texture coordinates?
|
|
|
|
*/
|
|
|
|
bool bHasUVs;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2021-09-13 20:38:20 +00:00
|
|
|
/** Current line number
|
2015-05-19 03:57:13 +00:00
|
|
|
*/
|
|
|
|
unsigned int iLineNumber;
|
2015-05-19 03:48:29 +00:00
|
|
|
|
2018-11-30 01:47:29 +00:00
|
|
|
bool bLoadAnimationList = true;
|
|
|
|
bool noSkeletonMesh = false;
|
2015-05-19 03:48:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace Assimp
|
|
|
|
|
|
|
|
#endif // AI_SMDIMPORTER_H_INC
|