Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::TextureAssetManager Class Reference

#include <TextureAsset.h>

Inheritance diagram for EngineCore::TextureAssetManager:
Collaboration diagram for EngineCore::TextureAssetManager:

Public Member Functions

 TextureAssetManager ()
Public Member Functions inherited from Asset::AssetManager< std::filesystem::path, TextureAsset >
 AssetManager ()=default
virtual ~AssetManager ()=default
void declare (std::filesystem::path path, Args &&... args)
 Adds an asset to the list in its unloaded state.
void add (std::filesystem::path path, TextureAsset *asset)
 Adds or overwrites a previously declared asset at a key.
bool exists (std::filesystem::path path)
 Checks if an asset already exists. This means it is declared and there is content.
bool isDeclared (std::filesystem::path path)
 Checks if an asset has been declared. If it exists it is also declared.
CpuLoadingState getAssetLoadingState (const std::filesystem::path &path)
 Gets a loading state for an asset. If the asset is not yet declared it will return that it is UNLOADED.
std::optional< TextureAsset * > getAsset (const std::filesystem::path &path)
 Try's to get an asset. If the asset does not exist (can be checked with exists) it will return a std::nullopt.
virtual void clear ()
 Clears out all resources.
void forEachAsset (Func &&func) const
 Iterates over all assets and calls the provided callback for each.

Detailed Description

Definition at line 73 of file TextureAsset.h.

Constructor & Destructor Documentation

◆ TextureAssetManager()

EngineCore::TextureAssetManager::TextureAssetManager ( )

Definition at line 79 of file TextureAsset.cpp.


The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Texture/TextureAsset.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/Texture/TextureAsset.cpp