Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::asset_compiler Namespace Reference

Classes

struct  asset_manifest
 Manifest data for compiled assets. More...
 
struct  script_compilation_entry
 

Functions

template<>
auto compile< gfx::shader > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto read_importer< gfx::texture > (asset_manager &am, const fs::path &key) -> std::shared_ptr< asset_importer_meta >
 
template<>
auto compile< gfx::texture > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< material > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto read_importer< mesh > (asset_manager &am, const fs::path &key) -> std::shared_ptr< asset_importer_meta >
 
template<>
auto compile< mesh > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto read_importer< animation_clip > (asset_manager &am, const fs::path &key) -> std::shared_ptr< asset_importer_meta >
 
template<>
auto compile< animation_clip > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< font > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< prefab > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< scene_prefab > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< physics_material > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< ui_tree > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< style_sheet > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto read_importer< audio_clip > (asset_manager &am, const fs::path &key) -> std::shared_ptr< asset_importer_meta >
 
template<>
auto compile< audio_clip > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
auto parse_compilation_errors (const std::string &log) -> std::vector< script_compilation_entry >
 
auto parse_compilation_warnings (const std::string &log) -> std::vector< script_compilation_entry >
 
template<>
auto compile< script_library > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<>
auto compile< script > (asset_manager &am, const fs::path &key, const fs::path &output, uint32_t flags) -> bool
 
template<typename T >
auto compile (asset_manager &am, const fs::path &key, const fs::path &output_key, uint32_t flags=0) -> bool
 
template<typename T >
auto read_importer (asset_manager &am, const fs::path &key) -> std::shared_ptr< asset_importer_meta >
 
auto get_manifest_path (const fs::path &compiled_asset_path) -> fs::path
 Generate manifest file path from compiled asset path.
 
auto save_manifest (const fs::path &manifest_path, const asset_manifest &manifest) -> bool
 Save manifest to file.
 
auto load_manifest (const fs::path &manifest_path, asset_manifest &manifest) -> bool
 Load manifest from file.
 
auto is_source_file_changed (const fs::path &source_path, const asset_manifest &manifest) -> bool
 Check if source file has changed compared to manifest.
 

Function Documentation

◆ compile()

template<typename T >
auto unravel::asset_compiler::compile ( asset_manager & am,
const fs::path & key,
const fs::path & output_key,
uint32_t flags = 0 ) -> bool

◆ compile< animation_clip >()

template<>
auto unravel::asset_compiler::compile< animation_clip > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 833 of file asset_compiler.cpp.

◆ compile< audio_clip >()

template<>
auto unravel::asset_compiler::compile< audio_clip > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 1078 of file asset_compiler.cpp.

◆ compile< font >()

template<>
auto unravel::asset_compiler::compile< font > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 884 of file asset_compiler.cpp.

◆ compile< gfx::shader >()

template<>
auto unravel::asset_compiler::compile< gfx::shader > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 541 of file asset_compiler.cpp.

◆ compile< gfx::texture >()

template<>
auto unravel::asset_compiler::compile< gfx::texture > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 603 of file asset_compiler.cpp.

◆ compile< material >()

template<>
auto unravel::asset_compiler::compile< material > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 646 of file asset_compiler.cpp.

◆ compile< mesh >()

template<>
auto unravel::asset_compiler::compile< mesh > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 707 of file asset_compiler.cpp.

◆ compile< physics_material >()

template<>
auto unravel::asset_compiler::compile< physics_material > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 935 of file asset_compiler.cpp.

◆ compile< prefab >()

template<>
auto unravel::asset_compiler::compile< prefab > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 901 of file asset_compiler.cpp.

◆ compile< scene_prefab >()

template<>
auto unravel::asset_compiler::compile< scene_prefab > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 918 of file asset_compiler.cpp.

◆ compile< script >()

template<>
auto unravel::asset_compiler::compile< script > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 1316 of file asset_compiler.cpp.

◆ compile< script_library >()

template<>
auto unravel::asset_compiler::compile< script_library > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 1195 of file asset_compiler.cpp.

◆ compile< style_sheet >()

template<>
auto unravel::asset_compiler::compile< style_sheet > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 1011 of file asset_compiler.cpp.

◆ compile< ui_tree >()

template<>
auto unravel::asset_compiler::compile< ui_tree > ( asset_manager & am,
const fs::path & key,
const fs::path & output,
uint32_t flags ) -> bool

Definition at line 970 of file asset_compiler.cpp.

◆ get_manifest_path()

auto unravel::asset_compiler::get_manifest_path ( const fs::path & compiled_asset_path) -> fs::path

Generate manifest file path from compiled asset path.

Definition at line 49 of file asset_manifest.cpp.

◆ is_source_file_changed()

auto unravel::asset_compiler::is_source_file_changed ( const fs::path & source_path,
const asset_manifest & manifest ) -> bool

Check if source file has changed compared to manifest.

Definition at line 113 of file asset_manifest.cpp.

◆ load_manifest()

auto unravel::asset_compiler::load_manifest ( const fs::path & manifest_path,
asset_manifest & manifest ) -> bool

Load manifest from file.

Definition at line 80 of file asset_manifest.cpp.

◆ parse_compilation_errors()

auto unravel::asset_compiler::parse_compilation_errors ( const std::string & log) -> std::vector<script_compilation_entry>

Definition at line 1140 of file asset_compiler.cpp.

◆ parse_compilation_warnings()

auto unravel::asset_compiler::parse_compilation_warnings ( const std::string & log) -> std::vector<script_compilation_entry>

Definition at line 1167 of file asset_compiler.cpp.

◆ read_importer()

template<typename T >
auto unravel::asset_compiler::read_importer ( asset_manager & am,
const fs::path & key ) -> std::shared_ptr< asset_importer_meta >

◆ read_importer< animation_clip >()

template<>
auto unravel::asset_compiler::read_importer< animation_clip > ( asset_manager & am,
const fs::path & key ) -> std::shared_ptr<asset_importer_meta>

Definition at line 807 of file asset_compiler.cpp.

◆ read_importer< audio_clip >()

template<>
auto unravel::asset_compiler::read_importer< audio_clip > ( asset_manager & am,
const fs::path & key ) -> std::shared_ptr<asset_importer_meta>

Definition at line 1052 of file asset_compiler.cpp.

◆ read_importer< gfx::texture >()

template<>
auto unravel::asset_compiler::read_importer< gfx::texture > ( asset_manager & am,
const fs::path & key ) -> std::shared_ptr<asset_importer_meta>

Definition at line 577 of file asset_compiler.cpp.

◆ read_importer< mesh >()

template<>
auto unravel::asset_compiler::read_importer< mesh > ( asset_manager & am,
const fs::path & key ) -> std::shared_ptr<asset_importer_meta>

Definition at line 681 of file asset_compiler.cpp.

◆ save_manifest()

auto unravel::asset_compiler::save_manifest ( const fs::path & manifest_path,
const asset_manifest & manifest ) -> bool

Save manifest to file.

Definition at line 54 of file asset_manifest.cpp.