Core::ModelResourceFiles
A set a of 3D file format files located somewhere in the filesystem. More...
#include "Core/Resources/ModelResourceFiles.h"
Inherits from Core::ResourceFiles
Public Functions
| Name | |
|---|---|
| ModelResourceFiles(fs::path path, std::string name) | |
| virtual bool | fetchFiles() override<br>Derive and fetch all required files from the primary file path. |
| virtual bool | fetchFiles(void * data) override |
Additional inherited members
Public Functions inherited from Core::ResourceFiles
| Name | |
|---|---|
| ResourceFiles(fs::path path, std::string name) | |
| virtual | ~ResourceFiles() =default |
| void | addFile(fs::path filePath) |
| bool | changeLocation(fs::path newDir, bool deleteOriginals)<br>Change the location of the managed files. |
| bool | deleteFiles() |
| bool | operator!=(const ResourceFiles & rhs) const |
| bool | operator<(const ResourceFiles & rhs) const |
| bool | operator==(const ResourceFiles & rhs) const |
Public Attributes inherited from Core::ResourceFiles
| Name | |
|---|---|
| std::set< fs::path > | m_files |
| std::string | m_name <br>Arbitrary name, can be used as a name for the root subfolder. |
| fs::path | m_path <br>Path to the "primary" file, from which other paths are derived. |
| fs::path | m_rootDir <br>Root directory of the resource. Derived from m_path. |
Detailed Description
cpp
class Core::ModelResourceFiles;class Core::ModelResourceFiles;A set a of 3D file format files located somewhere in the filesystem.
The main identifier of such a resource is the primary 3D file format file like a .gltf, .obj or .fbx file.
Officially supported file formats:
- .GLTF (.bin)
- .GLB
- .OBJ (.mtl)
Public Functions Documentation
function ModelResourceFiles
cpp
ModelResourceFiles(
fs::path path,
std::string name
)ModelResourceFiles(
fs::path path,
std::string name
)function fetchFiles
cpp
virtual bool fetchFiles() overridevirtual bool fetchFiles() overrideDerive and fetch all required files from the primary file path.
Reimplements: Core::ResourceFiles::fetchFiles
function fetchFiles
cpp
virtual bool fetchFiles(
void * data
) overridevirtual bool fetchFiles(
void * data
) overrideParameters:
- data A Core::Mesh object
Reimplements: Core::ResourceFiles::fetchFiles
Updated on 2025-09-07 at 16:13:51 +0000