NAP
fbxconverter.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 #include <string>
8 #include <memory>
9 #include <vector>
10 #include <utility/dllexport.h>
11 
12 namespace nap
13 {
14  class RenderService;
15  class MeshInstance;
16 
17  namespace utility
18  {
19  class ErrorState;
20  }
21 
26  {
29  };
30 
42  NAPAPI bool convertFBX(const std::string& fbxPath, const std::string& outputDirectory, EFBXConversionOptions convertOptions, std::vector<std::string>& convertedFiles, utility::ErrorState& errorState);
43 
53  NAPAPI std::unique_ptr<MeshInstance> loadMesh(RenderService& renderService, const std::string& meshPath, utility::ErrorState& errorState);
54 }
nap::convertFBX
NAPAPI bool convertFBX(const std::string &fbxPath, const std::string &outputDirectory, EFBXConversionOptions convertOptions, std::vector< std::string > &convertedFiles, utility::ErrorState &errorState)
nap::loadMesh
NAPAPI std::unique_ptr< MeshInstance > loadMesh(RenderService &renderService, const std::string &meshPath, utility::ErrorState &errorState)
nap::EFBXConversionOptions
EFBXConversionOptions
Definition: fbxconverter.h:25
nap::EFBXConversionOptions::CONVERT_ALWAYS
@ CONVERT_ALWAYS
Always convert FBX.
nap::EFBXConversionOptions::CONVERT_IF_NEWER
@ CONVERT_IF_NEWER
Only convert FBX if the destination does not exist or is older.
nap
Definition: templateapp.h:17