Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::GeometryMeshStore Class Reference

#include <AssetRegistry.h>

Collaboration diagram for Engine::Core::GeometryMeshStore:

Classes

struct  Record

Public Member Functions

 GeometryMeshStore (AssetManager *assetManager=nullptr)
void setAssetManager (AssetManager *assetManager)
Assets::GeometryMeshHandle load (const Asset::MeshPath &meshPath)
bool isValid (Assets::GeometryMeshHandle handle) const
const Asset::MeshPathpath (Assets::GeometryMeshHandle handle) const
Assets::MeshAssetRef ref (Assets::GeometryMeshHandle handle) const

Static Private Member Functions

static std::string keyFor (const Asset::MeshPath &meshPath)

Private Attributes

AssetManagerassetManager_ = nullptr
std::vector< Recordrecords_
std::unordered_map< std::string, uint32_t > pathToIndex_

Detailed Description

Definition at line 44 of file AssetRegistry.h.

Constructor & Destructor Documentation

◆ GeometryMeshStore()

Engine::Core::GeometryMeshStore::GeometryMeshStore ( AssetManager * assetManager = nullptr)
explicit

Member Function Documentation

◆ isValid()

bool Engine::Core::GeometryMeshStore::isValid ( Assets::GeometryMeshHandle handle) const
nodiscard

◆ keyFor()

std::string Engine::Core::GeometryMeshStore::keyFor ( const Asset::MeshPath & meshPath)
staticnodiscardprivate

◆ load()

Assets::GeometryMeshHandle Engine::Core::GeometryMeshStore::load ( const Asset::MeshPath & meshPath)
nodiscard

◆ path()

const Asset::MeshPath * Engine::Core::GeometryMeshStore::path ( Assets::GeometryMeshHandle handle) const
nodiscard

◆ ref()

Assets::MeshAssetRef Engine::Core::GeometryMeshStore::ref ( Assets::GeometryMeshHandle handle) const
nodiscard

◆ setAssetManager()

void Engine::Core::GeometryMeshStore::setAssetManager ( AssetManager * assetManager)

Member Data Documentation

◆ assetManager_

AssetManager* Engine::Core::GeometryMeshStore::assetManager_ = nullptr
private

Definition at line 67 of file AssetRegistry.h.

◆ pathToIndex_

std::unordered_map<std::string, uint32_t> Engine::Core::GeometryMeshStore::pathToIndex_
private

Definition at line 69 of file AssetRegistry.h.

◆ records_

std::vector<Record> Engine::Core::GeometryMeshStore::records_
private

Definition at line 68 of file AssetRegistry.h.


The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Asset/AssetRegistry.h