mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
audio::reset_channel + minor refactor
This commit is contained in:
parent
9fbf46169f
commit
0ab39fa06f
9 changed files with 62 additions and 40 deletions
|
|
@ -20,6 +20,14 @@
|
|||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
static bool animation(
|
||||
Assets* assets,
|
||||
const ResPaths* paths,
|
||||
const std::string directory,
|
||||
const std::string name,
|
||||
Atlas* dstAtlas
|
||||
);
|
||||
|
||||
bool assetload::texture(
|
||||
AssetsLoader&,
|
||||
Assets* assets,
|
||||
|
|
@ -102,7 +110,7 @@ bool assetload::atlas(
|
|||
Atlas* atlas = builder.build(2);
|
||||
assets->store(atlas, name);
|
||||
for (const auto& file : builder.getNames()) {
|
||||
assetload::animation(assets, paths, "textures", file, atlas);
|
||||
animation(assets, paths, "textures", file, atlas);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -172,7 +180,7 @@ bool assetload::sound(
|
|||
return true;
|
||||
}
|
||||
|
||||
bool assetload::animation(
|
||||
static bool animation(
|
||||
Assets* assets,
|
||||
const ResPaths* paths,
|
||||
const std::string directory,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue