Moved InitFromFile() from Geometry to MeshLoader, added MeshLoader function for USD files, added tinyusdz library
This commit is contained in:
21
openVulkanoCpp/Scene/MeshLoader.hpp
Normal file
21
openVulkanoCpp/Scene/MeshLoader.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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 "Scene/Geometry.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace OpenVulkano::Scene
|
||||
{
|
||||
class MeshLoader
|
||||
{
|
||||
static void parseAssimpFile(Geometry *geometry, const std::string& file);
|
||||
static void parseUSDFile(Geometry *geometry, const std::string& file);
|
||||
public:
|
||||
static Geometry* LoadFromFile(const std::string& file);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user