資源簡介
assimp 5.0.1已經測試通過編譯,編譯方式為Release x64,可自行選擇編譯,CMake測試編譯平臺為VS2017_x64
代碼片段和文件信息
/*
---------------------------------------------------------------------------
Open?Asset?Import?Library?(assimp)
---------------------------------------------------------------------------
Copyright?(c)?2006-2019?assimp?team
All?rights?reserved.
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
??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.
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
OWNER?OR?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL
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
OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
---------------------------------------------------------------------------
*/
/**?@file?Implementation?of?the?3ds?importer?class?*/
#ifndef?ASSIMP_BUILD_NO_3DS_IMPORTER
//?internal?headers
#include?“3DSLoader.h“
#include?“Common/TargetAnimation.h“
#include?
#include?
#include?
#include?
#include?
using?namespace?Assimp;
static?const?unsigned?int?NotSet?=?0xcdcdcdcd;
//?------------------------------------------------------------------------------------------------
//?Setup?final?material?indices?generae?a?default?material?if?necessary
void?Discreet3DSImporter::ReplaceDefaultMaterial()
{
????//?Try?to?find?an?existing?material?that?matches?the
????//?typical?default?material?setting:
????//?-?no?textures
????//?-?diffuse?color?(in?grey!)
????//?NOTE:?This?is?here?to?workaround?the?fact?that?some
????//?exporters?are?writing?a?default?material?too.
????unsigned?int?idx(?NotSet?);
????for?(unsigned?int?i?=?0;?i?mMaterials.size();++i)
????{
????????std::string?&s?=?mScene->mMaterials[i].mName;
????????for?(?std::string::iterator?it?=?s.begin();?it?!=?s.end();?++it?)?{
????????????*it?=?static_cast(?::tolower(?*it?)?);
????????}
????????if?(std::st
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-01-12?11:56??assimp-5.0.1\
?????文件?????????413??2020-01-12?11:56??assimp-5.0.1\.editorconfig
?????文件??????????75??2020-01-12?11:56??assimp-5.0.1\AssimpBuildTreeSettings.cmake.in
?????文件?????????436??2020-01-12?11:56??assimp-5.0.1\AssimpConfigVersion.cmake.in
?????文件?????????959??2020-01-12?11:56??assimp-5.0.1\BUILDBINARIES_EXAMPLE.bat
?????文件????????4433??2020-01-12?11:56??assimp-5.0.1\Build.md
?????文件???????25085??2020-01-12?11:56??assimp-5.0.1\CHANGES
?????文件???????28562??2020-01-12?11:56??assimp-5.0.1\CMakeLists.txt
?????文件?????????736??2020-01-12?11:56??assimp-5.0.1\CONTRIBUTING.md
?????文件????????4573??2020-01-12?11:56??assimp-5.0.1\CREDITS
?????文件?????????397??2020-01-12?11:56??assimp-5.0.1\CodeConventions.md
?????文件????????1628??2020-01-12?11:56??assimp-5.0.1\INSTALL
?????文件????????3791??2020-01-12?11:56??assimp-5.0.1\LICENSE
?????文件??????????14??2020-01-12?11:56??assimp-5.0.1\README
?????文件????????8160??2020-01-12?11:56??assimp-5.0.1\Readme.md
?????文件????????2351??2020-01-12?11:56??assimp-5.0.1\assimp-config-version.cmake.in
?????文件??????????55??2020-01-12?11:56??assimp-5.0.1\assimp-config.cmake.in
?????文件?????????462??2020-01-12?11:56??assimp-5.0.1\assimp.pc.in
?????文件????????4511??2020-01-12?11:56??assimp-5.0.1\assimpTargets-debug.cmake.in
?????文件????????4582??2020-01-12?11:56??assimp-5.0.1\assimpTargets-release.cmake.in
?????文件????????3663??2020-01-12?11:56??assimp-5.0.1\assimpTargets.cmake.in
?????目錄???????????0??2020-01-12?11:56??assimp-5.0.1\cmake-modules\
?????文件????????4959??2020-01-12?11:56??assimp-5.0.1\cmake-modules\Coveralls.cmake
?????文件????????1366??2020-01-12?11:56??assimp-5.0.1\cmake-modules\CoverallsClear.cmake
?????文件???????16928??2020-01-12?11:56??assimp-5.0.1\cmake-modules\CoverallsGenerateGcov.cmake
?????文件???????17425??2020-01-12?11:56??assimp-5.0.1\cmake-modules\DebSourcePPA.cmake
?????文件????????2423??2020-01-12?11:56??assimp-5.0.1\cmake-modules\FindDevIL.cmake
?????文件????????4067??2020-01-12?11:56??assimp-5.0.1\cmake-modules\FindDirectX.cmake
?????文件?????????521??2020-01-12?11:56??assimp-5.0.1\cmake-modules\FindIrrxm
?????文件????????5393??2020-01-12?11:56??assimp-5.0.1\cmake-modules\FindPkgMacros.cmake
?????文件?????????596??2020-01-12?11:56??assimp-5.0.1\cmake-modules\FindRT.cmake
............此處省略2427個文件信息
- 上一篇:CC++學習指南 - 應用篇線程與網絡)
- 下一篇:c++ Primer中文版第五版
評論
共有 條評論