|
NoJobEngine 2.0.7
|
#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) |
Definition at line 21 of file AssetManager.h.
|
static |
Definition at line 55 of file AssetManager.cpp.
Referenced by NoJob::ProjectAssetOperations::CreateCppScript(), NoJob::ProjectAssetOperations::CreatePrefab(), NoJob::ProjectPanel::Draw(), NoJob::EditorLayer::Init(), and NoJob::ProjectScriptManager::Load().
|
static |
Definition at line 617 of file AssetManager.cpp.
Referenced by NoJob::NavMeshGeometryExtractor::Extract(), and NoJob::SceneSerializer::Save().
|
static |
Definition at line 50 of file AssetManager.cpp.
Referenced by NoJob::EditorLayer::Draw(), NoJob::ProjectPanel::Draw(), NoJob::EditorLayer::Init(), NoJob::ProjectPanel::Initialize(), and main().
|
static |
Definition at line 648 of file AssetManager.cpp.
Referenced by NoJob::MaterialSerializer::Save(), and NoJob::SceneSerializer::Save().
|
static |
Definition at line 133 of file AssetManager.cpp.
References NoJob::AssetRegistry::Load(), NoJob::Mesh, NoJob::AssetRegistry::Register(), NoJob::AssetRegistry::Save(), and ToProjectRelative().
|
static |
Definition at line 159 of file AssetManager.cpp.
References NoJob::AlphaClip, ImportTexture(), NoJob::AssetRegistry::Load(), LoadTexture(), NoJob::Material, NoJob::AssetRegistry::Register(), NoJob::AssetRegistry::Save(), NoJob::MaterialSerializer::Save(), NoJob::Texture2D, ToProjectRelative(), NoJob::Transparent, and NoJob::Log::Warn().
|
static |
Definition at line 381 of file AssetManager.cpp.
References NoJob::AlphaClip, ImportTexture(), NoJob::AssetRegistry::Load(), LoadTexture(), NoJob::Material, NoJob::AssetRegistry::Register(), NoJob::AssetRegistry::Save(), NoJob::MaterialSerializer::Save(), NoJob::Texture2D, ToProjectRelative(), NoJob::Transparent, and NoJob::Log::Warn().
|
static |
Definition at line 92 of file AssetManager.cpp.
References ToProjectRelative().
Referenced by ImportModelMaterial(), and ImportModelMaterials().
|
static |
Definition at line 37 of file AssetManager.cpp.
References NoJob::AssetRegistry::Load(), and NoJob::AssetRegistry::Scan().
Referenced by NoJob::EditorLayer::Init().
|
static |
Definition at line 611 of file AssetManager.cpp.
References NoJob::Mesh::LoadModel(), and ToProjectRelative().
Referenced by NoJob::PrefabSerializer::Instantiate(), and NoJob::SceneSerializer::Load().
|
static |
Definition at line 619 of file AssetManager.cpp.
References NoJob::Texture2D::Create(), and ToProjectRelative().
Referenced by ImportModelMaterial(), ImportModelMaterials(), NoJob::MaterialSerializer::Load(), and NoJob::SceneSerializer::Load().
|
static |
Definition at line 60 of file AssetManager.cpp.
Referenced by NoJob::NavMeshGeometryExtractor::Extract(), and NoJob::PrefabSerializer::Instantiate().
|
static |
Definition at line 661 of file AssetManager.cpp.
Referenced by NoJob::ProjectPanel::Draw(), ImportModel(), ImportModelMaterial(), ImportModelMaterials(), ImportTexture(), LoadMesh(), LoadTexture(), and NoJob::SceneSerializer::Save().