Unravel Engine C++ Reference
Loading...
Searching...
No Matches
asset_reader.h File Reference

Go to the source code of this file.

Namespaces

namespace  gfx
 
namespace  unravel
 
namespace  unravel::asset_reader
 

Macros

#define DECLARE_LOADER_SPEC(T)
 

Functions

auto unravel::asset_reader::resolve_compiled_key (const std::string &key) -> std::string
 
auto unravel::asset_reader::resolve_compiled_path (const std::string &key) -> fs::path
 
template<typename T >
auto unravel::asset_reader::load_from_file (tpp::thread_pool &pool, asset_handle< T > &output, const std::string &key) -> bool
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (gfx::shader)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (gfx::texture)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (material)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (mesh)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (animation_clip)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (prefab)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (scene_prefab)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (physics_material)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (audio_clip)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (font)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (script)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (ui_tree)
 
 unravel::asset_reader::DECLARE_LOADER_SPEC (style_sheet)
 
template<typename T >
auto unravel::asset_reader::get_job_name () -> std::string
 
template<typename T >
auto unravel::asset_reader::load_from_instance (tpp::thread_pool &pool, asset_handle< T > &output, std::shared_ptr< T > instance) -> bool
 

Macro Definition Documentation

◆ DECLARE_LOADER_SPEC

#define DECLARE_LOADER_SPEC ( T)
Value:
template<>\
auto load_from_file<T>(tpp::thread_pool& pool, asset_handle<T>& output, const std::string& key) -> bool
Represents a handle to an asset, providing access and management functions.

Definition at line 37 of file asset_reader.h.