NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::AssetManager Class Reference

#include <AssetManager.h>

Static Public Member Functions

static void Init (const std::filesystem::path &projectRoot)
static const std::filesystem::path & GetProjectRoot ()
static const std::filesystem::path & GetAssetsDirectory ()
static std::filesystem::path ResolveProjectPath (const std::filesystem::path &path)
static std::filesystem::path ImportTexture (const std::filesystem::path &sourcePath)
static std::filesystem::path ImportModel (const std::filesystem::path &sourcePath)
static std::shared_ptr< Material > ImportModelMaterial (const std::filesystem::path &modelPath, const std::shared_ptr< Shader > &shader)
static std::vector< std::shared_ptr< Material > > ImportModelMaterials (const std::filesystem::path &modelPath, const std::shared_ptr< Shader > &shader)
static std::shared_ptr< Mesh > LoadMesh (const std::filesystem::path &path)
static std::filesystem::path GetMeshPath (const std::shared_ptr< Mesh > &mesh)
static std::shared_ptr< Texture2D > LoadTexture (const std::filesystem::path &path)
static std::filesystem::path ToProjectRelative (const std::filesystem::path &path)
static std::filesystem::path GetTexturePath (const std::shared_ptr< Texture2D > &texture)

Detailed Description

Definition at line 21 of file AssetManager.h.

Member Function Documentation

◆ GetAssetsDirectory()

const std::filesystem::path & NoJob::AssetManager::GetAssetsDirectory ( )
static

◆ GetMeshPath()

std::filesystem::path NoJob::AssetManager::GetMeshPath ( const std::shared_ptr< Mesh > & mesh)
static

◆ GetProjectRoot()

const std::filesystem::path & NoJob::AssetManager::GetProjectRoot ( )
static

◆ GetTexturePath()

std::filesystem::path NoJob::AssetManager::GetTexturePath ( const std::shared_ptr< Texture2D > & texture)
static

◆ ImportModel()

std::filesystem::path NoJob::AssetManager::ImportModel ( const std::filesystem::path & sourcePath)
static

◆ ImportModelMaterial()

std::shared_ptr< Material > NoJob::AssetManager::ImportModelMaterial ( const std::filesystem::path & modelPath,
const std::shared_ptr< Shader > & shader )
static

◆ ImportModelMaterials()

std::vector< std::shared_ptr< Material > > NoJob::AssetManager::ImportModelMaterials ( const std::filesystem::path & modelPath,
const std::shared_ptr< Shader > & shader )
static

◆ ImportTexture()

std::filesystem::path NoJob::AssetManager::ImportTexture ( const std::filesystem::path & sourcePath)
static

Definition at line 92 of file AssetManager.cpp.

References ToProjectRelative().

Referenced by ImportModelMaterial(), and ImportModelMaterials().

◆ Init()

void NoJob::AssetManager::Init ( const std::filesystem::path & projectRoot)
static

◆ LoadMesh()

std::shared_ptr< Mesh > NoJob::AssetManager::LoadMesh ( const std::filesystem::path & path)
static

◆ LoadTexture()

std::shared_ptr< Texture2D > NoJob::AssetManager::LoadTexture ( const std::filesystem::path & path)
static

◆ ResolveProjectPath()

std::filesystem::path NoJob::AssetManager::ResolveProjectPath ( const std::filesystem::path & path)
static

◆ ToProjectRelative()

std::filesystem::path NoJob::AssetManager::ToProjectRelative ( const std::filesystem::path & path)
static

The documentation for this class was generated from the following files: