WriteAsFBX and WriteAsSTL refactoring
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#if __has_include("assimp/Exporter.hpp")
|
||||
#include <assimp/scene.h>
|
||||
#endif
|
||||
|
||||
namespace OpenVulkano::Scene
|
||||
{
|
||||
class Geometry;
|
||||
@@ -20,5 +24,10 @@ namespace OpenVulkano::Scene
|
||||
static void WriteAsUSDZ(Geometry* geometry, const std::string& texturePath, const std::string& usdzPath);
|
||||
static void WriteAsFBX(Geometry* geometry, const std::string& texturePath, const std::string& fbxPath);
|
||||
static void WriteAsSTL(Geometry* geometry, const std::string& filePath, bool binary);
|
||||
private:
|
||||
#if __has_include("assimp/Exporter.hpp")
|
||||
static void SetupAssimpScene(Geometry* geometry, aiScene& scene, aiNode& rootNode, aiMesh& mesh,
|
||||
bool withTexCoords, float scaling);
|
||||
#endif
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user