Unravel Engine C++ Reference
|
Functions | |
auto | resolve_compiled_key (const std::string &key) -> std::string |
auto | resolve_compiled_path (const std::string &key) -> fs::path |
auto | resolve_path (const std::string &key) -> fs::path |
void | log_missing_compiled_asset_for_key (const std::string &key) |
void | log_missing_raw_asset_for_key (const std::string &key) |
void | log_unknown_protocol_for_key (const std::string &key) |
auto | validate (const std::string &key, const std::string &compiled_ext, std::string &out) -> bool |
template<> | |
auto | load_from_file< gfx::texture > (tpp::thread_pool &pool, asset_handle< gfx::texture > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< gfx::shader > (tpp::thread_pool &pool, asset_handle< gfx::shader > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< material > (tpp::thread_pool &pool, asset_handle< material > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< mesh > (tpp::thread_pool &pool, asset_handle< mesh > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< animation_clip > (tpp::thread_pool &pool, asset_handle< animation_clip > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< prefab > (tpp::thread_pool &pool, asset_handle< prefab > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< scene_prefab > (tpp::thread_pool &pool, asset_handle< scene_prefab > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< physics_material > (tpp::thread_pool &pool, asset_handle< physics_material > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< audio_clip > (tpp::thread_pool &pool, asset_handle< audio_clip > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< font > (tpp::thread_pool &pool, asset_handle< font > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< script > (tpp::thread_pool &pool, asset_handle< script > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< ui_tree > (tpp::thread_pool &pool, asset_handle< ui_tree > &output, const std::string &key) -> bool |
template<> | |
auto | load_from_file< style_sheet > (tpp::thread_pool &pool, asset_handle< style_sheet > &output, const std::string &key) -> bool |
template<typename T > | |
auto | load_from_file (tpp::thread_pool &pool, asset_handle< T > &output, const std::string &key) -> bool |
DECLARE_LOADER_SPEC (gfx::shader) | |
DECLARE_LOADER_SPEC (gfx::texture) | |
DECLARE_LOADER_SPEC (material) | |
DECLARE_LOADER_SPEC (mesh) | |
DECLARE_LOADER_SPEC (animation_clip) | |
DECLARE_LOADER_SPEC (prefab) | |
DECLARE_LOADER_SPEC (scene_prefab) | |
DECLARE_LOADER_SPEC (physics_material) | |
DECLARE_LOADER_SPEC (audio_clip) | |
DECLARE_LOADER_SPEC (font) | |
DECLARE_LOADER_SPEC (script) | |
DECLARE_LOADER_SPEC (ui_tree) | |
DECLARE_LOADER_SPEC (style_sheet) | |
template<typename T > | |
auto | get_job_name () -> std::string |
template<typename T > | |
auto | load_from_instance (tpp::thread_pool &pool, asset_handle< T > &output, std::shared_ptr< T > instance) -> bool |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | animation_clip | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | audio_clip | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | font | ) |
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 | ( | physics_material | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | prefab | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | scene_prefab | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | script | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | style_sheet | ) |
unravel::asset_reader::DECLARE_LOADER_SPEC | ( | ui_tree | ) |
|
inline |
Definition at line 56 of file asset_reader.h.
auto unravel::asset_reader::load_from_file | ( | tpp::thread_pool & | pool, |
asset_handle< T > & | output, | ||
const std::string & | key ) -> bool |
auto unravel::asset_reader::load_from_file< animation_clip > | ( | tpp::thread_pool & | pool, |
asset_handle< animation_clip > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 194 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< audio_clip > | ( | tpp::thread_pool & | pool, |
asset_handle< audio_clip > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 294 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< font > | ( | tpp::thread_pool & | pool, |
asset_handle< font > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 334 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< gfx::shader > | ( | tpp::thread_pool & | pool, |
asset_handle< gfx::shader > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 113 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< gfx::texture > | ( | tpp::thread_pool & | pool, |
asset_handle< gfx::texture > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 90 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< material > | ( | tpp::thread_pool & | pool, |
asset_handle< material > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 144 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< mesh > | ( | tpp::thread_pool & | pool, |
asset_handle< mesh > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 167 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< physics_material > | ( | tpp::thread_pool & | pool, |
asset_handle< physics_material > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 269 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< prefab > | ( | tpp::thread_pool & | pool, |
asset_handle< prefab > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 218 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< scene_prefab > | ( | tpp::thread_pool & | pool, |
asset_handle< scene_prefab > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 243 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< script > | ( | tpp::thread_pool & | pool, |
asset_handle< script > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 364 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< style_sheet > | ( | tpp::thread_pool & | pool, |
asset_handle< style_sheet > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 412 of file asset_reader.cpp.
auto unravel::asset_reader::load_from_file< ui_tree > | ( | tpp::thread_pool & | pool, |
asset_handle< ui_tree > & | output, | ||
const std::string & | key ) -> bool |
Definition at line 388 of file asset_reader.cpp.
|
inline |
Definition at line 62 of file asset_reader.h.
void unravel::asset_reader::log_missing_compiled_asset_for_key | ( | const std::string & | key | ) |
Definition at line 44 of file asset_reader.cpp.
void unravel::asset_reader::log_missing_raw_asset_for_key | ( | const std::string & | key | ) |
Definition at line 51 of file asset_reader.cpp.
void unravel::asset_reader::log_unknown_protocol_for_key | ( | const std::string & | key | ) |
Definition at line 56 of file asset_reader.cpp.
auto unravel::asset_reader::resolve_compiled_key | ( | const std::string & | key | ) | -> std::string |
Definition at line 28 of file asset_reader.cpp.
auto unravel::asset_reader::resolve_compiled_path | ( | const std::string & | key | ) | -> fs::path |
Definition at line 33 of file asset_reader.cpp.
auto unravel::asset_reader::resolve_path | ( | const std::string & | key | ) | -> fs::path |
Definition at line 39 of file asset_reader.cpp.
auto unravel::asset_reader::validate | ( | const std::string & | key, |
const std::string & | compiled_ext, | ||
std::string & | out ) -> bool |
Definition at line 61 of file asset_reader.cpp.