mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 13:13:53 +00:00
Just the functional assimp lib rather than the entire assimp repository unnecessarily.
This commit is contained in:
parent
0f7641a282
commit
e9ea38eda3
1747 changed files with 9012 additions and 925008 deletions
|
|
@ -3,8 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2018, assimp team
|
||||
|
||||
Copyright (c) 2006-2017, assimp team
|
||||
|
||||
|
||||
All rights reserved.
|
||||
|
|
@ -49,9 +48,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
// internal headers
|
||||
#include "MD5Loader.h"
|
||||
#include "MaterialSystem.h"
|
||||
#include <assimp/fast_atof.h>
|
||||
#include <assimp/ParsingUtils.h>
|
||||
#include <assimp/StringComparison.h>
|
||||
#include "fast_atof.h"
|
||||
#include "ParsingUtils.h"
|
||||
#include "StringComparison.h"
|
||||
#include <assimp/DefaultLogger.hpp>
|
||||
#include <assimp/mesh.h>
|
||||
|
||||
|
|
@ -70,7 +69,7 @@ MD5Parser::MD5Parser(char* _buffer, unsigned int _fileSize )
|
|||
fileSize = _fileSize;
|
||||
lineNumber = 0;
|
||||
|
||||
ASSIMP_LOG_DEBUG("MD5Parser begin");
|
||||
DefaultLogger::get()->debug("MD5Parser begin");
|
||||
|
||||
// parse the file header
|
||||
ParseHeader();
|
||||
|
|
@ -88,7 +87,7 @@ MD5Parser::MD5Parser(char* _buffer, unsigned int _fileSize )
|
|||
if ( !DefaultLogger::isNullLogger()) {
|
||||
char szBuffer[128]; // should be sufficiently large
|
||||
::ai_snprintf(szBuffer,128,"MD5Parser end. Parsed %i sections",(int)mSections.size());
|
||||
ASSIMP_LOG_DEBUG(szBuffer);
|
||||
DefaultLogger::get()->debug(szBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +106,7 @@ MD5Parser::MD5Parser(char* _buffer, unsigned int _fileSize )
|
|||
{
|
||||
char szBuffer[1024];
|
||||
::sprintf(szBuffer,"[MD5] Line %u: %s",line,warn);
|
||||
ASSIMP_LOG_WARN(szBuffer);
|
||||
DefaultLogger::get()->warn(szBuffer);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
|
@ -130,7 +129,7 @@ void MD5Parser::ParseHeader()
|
|||
// FIX: can break the log length limit, so we need to be careful
|
||||
char* sz = buffer;
|
||||
while (!IsLineEnd( *buffer++));
|
||||
ASSIMP_LOG_INFO(std::string(sz,std::min((uintptr_t)MAX_LOG_MESSAGE_LENGTH, (uintptr_t)(buffer-sz))));
|
||||
DefaultLogger::get()->info(std::string(sz,std::min((uintptr_t)MAX_LOG_MESSAGE_LENGTH, (uintptr_t)(buffer-sz))));
|
||||
SkipSpacesAndLineEnd();
|
||||
}
|
||||
|
||||
|
|
@ -243,7 +242,7 @@ bool MD5Parser::ParseSection(Section& out)
|
|||
// .MD5MESH parsing function
|
||||
MD5MeshParser::MD5MeshParser(SectionList& mSections)
|
||||
{
|
||||
ASSIMP_LOG_DEBUG("MD5MeshParser begin");
|
||||
DefaultLogger::get()->debug("MD5MeshParser begin");
|
||||
|
||||
// now parse all sections
|
||||
for (SectionList::const_iterator iter = mSections.begin(), iterEnd = mSections.end();iter != iterEnd;++iter){
|
||||
|
|
@ -354,14 +353,14 @@ MD5MeshParser::MD5MeshParser(SectionList& mSections)
|
|||
}
|
||||
}
|
||||
}
|
||||
ASSIMP_LOG_DEBUG("MD5MeshParser end");
|
||||
DefaultLogger::get()->debug("MD5MeshParser end");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// .MD5ANIM parsing function
|
||||
MD5AnimParser::MD5AnimParser(SectionList& mSections)
|
||||
{
|
||||
ASSIMP_LOG_DEBUG("MD5AnimParser begin");
|
||||
DefaultLogger::get()->debug("MD5AnimParser begin");
|
||||
|
||||
fFrameRate = 24.0f;
|
||||
mNumAnimatedComponents = UINT_MAX;
|
||||
|
|
@ -445,14 +444,14 @@ MD5AnimParser::MD5AnimParser(SectionList& mSections)
|
|||
fast_atoreal_move<float>((*iter).mGlobalValue.c_str(),fFrameRate);
|
||||
}
|
||||
}
|
||||
ASSIMP_LOG_DEBUG("MD5AnimParser end");
|
||||
DefaultLogger::get()->debug("MD5AnimParser end");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// .MD5CAMERA parsing function
|
||||
MD5CameraParser::MD5CameraParser(SectionList& mSections)
|
||||
{
|
||||
ASSIMP_LOG_DEBUG("MD5CameraParser begin");
|
||||
DefaultLogger::get()->debug("MD5CameraParser begin");
|
||||
fFrameRate = 24.0f;
|
||||
|
||||
for (SectionList::const_iterator iter = mSections.begin(), iterEnd = mSections.end();iter != iterEnd;++iter) {
|
||||
|
|
@ -483,6 +482,6 @@ MD5CameraParser::MD5CameraParser(SectionList& mSections)
|
|||
}
|
||||
}
|
||||
}
|
||||
ASSIMP_LOG_DEBUG("MD5CameraParser end");
|
||||
DefaultLogger::get()->debug("MD5CameraParser end");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue