Files
OpenVulkano/openVulkanoCpp/Scene/Export/MeshWriter.hpp
2025-02-11 20:29:04 +02:00

24 lines
982 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <filesystem>
namespace OpenVulkano::Scene
{
class Geometry;
class MeshWriter
{
public:
static void WriteAsOBJ(Geometry* geometry, const std::filesystem::path& filePath);
static void WriteAsUSD(Geometry* geometry, const std::filesystem::path& filePath);
static void WriteObjAsZip(Geometry* geometry, const std::filesystem::path& texturePath, const std::filesystem::path& zipPath);
static void WriteAsUSDZ(Geometry* geometry, const std::filesystem::path& texturePath, const std::filesystem::path& usdzPath);
static void WriteAsFBX(Geometry* geometry, const std::filesystem::path& texturePath, const std::filesystem::path& fbxPath);
static void WriteAsSTL(Geometry* geometry, const std::filesystem::path& filePath, bool binary);
};
}