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

#include <AssetRegistry.h>

Collaboration diagram for Engine::Core::AudioClipStore:

Classes

struct  Record

Public Member Functions

 AudioClipStore (AssetManager *assetManager=nullptr)
void setAssetManager (AssetManager *assetManager)
Assets::AudioClipHandle load (const Asset::Path &source)
Assets::AudioClipHandle load (const std::filesystem::path &source)
bool isValid (Assets::AudioClipHandle handle) const
const Asset::PathsourcePath (Assets::AudioClipHandle handle) const
Assets::AudioAssetRef ref (Assets::AudioClipHandle handle) const

Static Private Member Functions

static std::string keyFor (const Asset::Path &source)

Private Attributes

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

Detailed Description

Definition at line 134 of file AssetRegistry.h.

Constructor & Destructor Documentation

◆ AudioClipStore()

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

Member Function Documentation

◆ isValid()

bool Engine::Core::AudioClipStore::isValid ( Assets::AudioClipHandle handle) const
nodiscard

◆ keyFor()

std::string Engine::Core::AudioClipStore::keyFor ( const Asset::Path & source)
staticnodiscardprivate

◆ load() [1/2]

Assets::AudioClipHandle Engine::Core::AudioClipStore::load ( const Asset::Path & source)
nodiscard

◆ load() [2/2]

Assets::AudioClipHandle Engine::Core::AudioClipStore::load ( const std::filesystem::path & source)
nodiscard

◆ ref()

Assets::AudioAssetRef Engine::Core::AudioClipStore::ref ( Assets::AudioClipHandle handle) const
nodiscard

◆ setAssetManager()

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

◆ sourcePath()

const Asset::Path * Engine::Core::AudioClipStore::sourcePath ( Assets::AudioClipHandle handle) const
nodiscard

Member Data Documentation

◆ assetManager_

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

Definition at line 158 of file AssetRegistry.h.

◆ records_

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

Definition at line 159 of file AssetRegistry.h.

◆ sourceToIndex_

std::unordered_map<std::string, uint32_t> Engine::Core::AudioClipStore::sourceToIndex_
private

Definition at line 160 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