资源简介
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 < mScene->mMaterials.size();++i)
{
std::string &s = mScene->mMaterials[i].mName;
for ( std::string::iterator it = s.begin(); it != s.end(); ++it ) {
*it = static_cast< char >( ::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中文版第五版
评论
共有 条评论