MeshWriter that can save both in .usd and .obj formats

This commit is contained in:
Vladyslav Baranovskyi
2024-09-04 21:24:31 +03:00
parent 96b6a5634b
commit fa3a7a7fb7
2 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/*
* 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 <string>
namespace OpenVulkano::Scene
{
class Geometry;
class MeshWriter
{
public:
static void WriteAsOBJ(Geometry *geometry, const std::string &filePath);
static void WriteAsUSD(Geometry *geometry, const std::string &filePath);
};
}