Skip to content

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 boolfetchFiles() override<br>Derive and fetch all required files from the primary file path.
virtual boolfetchFiles(void * data) override

Additional inherited members

Public Functions inherited from Core::ResourceFiles

Name
ResourceFiles(fs::path path, std::string name)
virtual~ResourceFiles() =default
voidaddFile(fs::path filePath)
boolchangeLocation(fs::path newDir, bool deleteOriginals)
booldeleteFiles()
booloperator!=(const ResourceFiles & rhs) const
booloperator<(const ResourceFiles & rhs) const
booloperator==(const ResourceFiles & rhs) const

Public Attributes inherited from Core::ResourceFiles

Name
std::set< fs::path >m_files
std::stringm_name <br>Arbitrary name, can be used as a name for the root subfolder.
fs::pathm_path <br>Path to the "primary" file, from which other paths are derived.
fs::pathm_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() override
virtual bool fetchFiles() override

Derive and fetch all required files from the primary file path.

Reimplements: Core::ResourceFiles::fetchFiles

function fetchFiles

cpp
virtual bool fetchFiles(
    void * data
) override
virtual bool fetchFiles(
    void * data
) override

Parameters:

Reimplements: Core::ResourceFiles::fetchFiles


Updated on 2024-03-16 at 19:15:01 +0000