Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::AssetManager Class Reference

Data Structures

struct  Asset
 
struct  AssetOwned
 
struct  HotReloadItem
 

Public Types

enum class  AssetType {
  Model , Texture , Material , Scene ,
  Shader , Font , Sound
}
 
using AssetId = std::string
 

Static Public Member Functions

template<typename T >
static tenno::shared_ptr< T > new_asset (const AssetId &id, typename T::Builder &builder)
 
template<typename T >
static tenno::shared_ptr< T > get (const AssetId &id)
 
template<typename T >
static bool reload (const AssetId &id)
 
static void clear ()
 
static void hotreload_activate ()
 
static void hotreload_deactivate ()
 
static void hotreload_update ()
 
template<>
tenno::shared_ptr< Modelnew_asset (const AssetId &id, Model::Builder &builder)
 
template<>
tenno::shared_ptr< Texturenew_asset (const AssetId &id, Texture::Builder &builder)
 
template<>
tenno::shared_ptr< Materialnew_asset (const AssetId &id, Material::Builder &builder)
 
template<>
tenno::shared_ptr< Fontnew_asset (const AssetId &id, Font::Builder &builder)
 
template<>
tenno::shared_ptr< Scenenew_asset (const AssetId &id, Scene::Builder &builder)
 
template<>
tenno::shared_ptr< Shadernew_asset (const AssetId &id, Shader::Builder &builder)
 
template<>
tenno::shared_ptr< SoundAssetnew_asset (const AssetId &id, SoundAsset::Builder &builder)
 
template<>
tenno::shared_ptr< Textureget (const AssetId &id)
 
template<>
tenno::shared_ptr< Modelget (const AssetId &id)
 
template<>
tenno::shared_ptr< Shaderget (const AssetId &id)
 
template<>
tenno::shared_ptr< Materialget (const AssetId &id)
 
template<>
tenno::shared_ptr< Sceneget (const AssetId &id)
 
template<>
tenno::shared_ptr< Fontget (const AssetId &id)
 
template<>
tenno::shared_ptr< SoundAssetget (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 
template<>
bool reload (const AssetId &id)
 

Friends

class Gui
 

Detailed Description

Definition at line 51 of file asset.hpp.

Member Typedef Documentation

◆ AssetId

using brenta::AssetManager::AssetId = std::string

Definition at line 55 of file asset.hpp.

Member Enumeration Documentation

◆ AssetType

enum class brenta::AssetManager::AssetType
strong

Definition at line 65 of file asset.hpp.

Member Function Documentation

◆ clear()

void AssetManager::clear ( )
static

Definition at line 369 of file asset.cpp.

◆ get() [1/7]

template<>
tenno::shared_ptr< Texture > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [2/7]

template<>
tenno::shared_ptr< SoundAsset > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [3/7]

template<>
tenno::shared_ptr< Font > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [4/7]

template<>
tenno::shared_ptr< Scene > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [5/7]

template<>
tenno::shared_ptr< Material > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [6/7]

template<>
tenno::shared_ptr< Shader > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ get() [7/7]

template<>
tenno::shared_ptr< Model > brenta::AssetManager::get ( const AssetId &  id)
static

Definition at line 43 of file asset.cpp.

◆ hotreload_activate()

void AssetManager::hotreload_activate ( )
static

Definition at line 382 of file asset.cpp.

◆ hotreload_deactivate()

void AssetManager::hotreload_deactivate ( )
static

Definition at line 421 of file asset.cpp.

◆ hotreload_update()

void AssetManager::hotreload_update ( )
static

Definition at line 433 of file asset.cpp.

◆ new_asset() [1/7]

template<>
tenno::shared_ptr< Font > brenta::AssetManager::new_asset ( const AssetId &  id,
Font::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [2/7]

template<>
tenno::shared_ptr< Material > brenta::AssetManager::new_asset ( const AssetId &  id,
Material::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [3/7]

template<>
tenno::shared_ptr< Model > brenta::AssetManager::new_asset ( const AssetId &  id,
Model::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [4/7]

template<>
tenno::shared_ptr< Scene > brenta::AssetManager::new_asset ( const AssetId &  id,
Scene::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [5/7]

template<>
tenno::shared_ptr< Shader > brenta::AssetManager::new_asset ( const AssetId &  id,
Shader::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [6/7]

template<>
tenno::shared_ptr< SoundAsset > brenta::AssetManager::new_asset ( const AssetId &  id,
SoundAsset::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ new_asset() [7/7]

template<>
tenno::shared_ptr< Texture > brenta::AssetManager::new_asset ( const AssetId &  id,
Texture::Builder builder 
)
static

Definition at line 43 of file asset.cpp.

◆ reload() [1/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 258 of file asset.cpp.

◆ reload() [2/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 273 of file asset.cpp.

◆ reload() [3/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 288 of file asset.cpp.

◆ reload() [4/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 303 of file asset.cpp.

◆ reload() [5/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 318 of file asset.cpp.

◆ reload() [6/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 333 of file asset.cpp.

◆ reload() [7/7]

template<>
bool brenta::AssetManager::reload ( const AssetId &  id)
static

Definition at line 351 of file asset.cpp.

Friends And Related Symbol Documentation

◆ Gui

friend class Gui
friend

Definition at line 63 of file asset.hpp.


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