mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
update assets errors handling & add 'atlases' to preload
This commit is contained in:
parent
ed60bdc333
commit
f9df873382
7 changed files with 112 additions and 51 deletions
|
|
@ -19,16 +19,6 @@ namespace dynamic {
|
|||
class List;
|
||||
}
|
||||
|
||||
enum class AssetType {
|
||||
TEXTURE,
|
||||
SHADER,
|
||||
FONT,
|
||||
ATLAS,
|
||||
LAYOUT,
|
||||
SOUND,
|
||||
MODEL
|
||||
};
|
||||
|
||||
class ResPaths;
|
||||
class AssetsLoader;
|
||||
class Content;
|
||||
|
|
@ -50,7 +40,7 @@ struct SoundCfg : AssetCfg {
|
|||
};
|
||||
|
||||
using aloader_func = std::function<assetload::postfunc(
|
||||
AssetsLoader*, // redundant?
|
||||
AssetsLoader*,
|
||||
const ResPaths*,
|
||||
const std::string&,
|
||||
const std::string&,
|
||||
|
|
@ -93,7 +83,9 @@ public:
|
|||
);
|
||||
|
||||
bool hasNext() const;
|
||||
bool loadNext();
|
||||
|
||||
/// @throws assetload::error
|
||||
void loadNext();
|
||||
|
||||
std::shared_ptr<Task> startTask(runnable onDone);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue