mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
assets-related refactor
This commit is contained in:
parent
216e38e411
commit
befc9cf09c
14 changed files with 242 additions and 202 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef ASSETS_ASSET_LOADERS_H_
|
||||
#define ASSETS_ASSET_LOADERS_H_
|
||||
|
||||
#include "Assets.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
|
|
@ -12,7 +14,7 @@ struct AssetCfg;
|
|||
|
||||
/// @brief see AssetsLoader.h: aloader_func
|
||||
namespace assetload {
|
||||
bool texture(
|
||||
postfunc texture(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
@ -20,7 +22,7 @@ namespace assetload {
|
|||
const std::string name,
|
||||
std::shared_ptr<AssetCfg> settings
|
||||
);
|
||||
bool shader(
|
||||
postfunc shader(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
@ -28,7 +30,7 @@ namespace assetload {
|
|||
const std::string name,
|
||||
std::shared_ptr<AssetCfg> settings
|
||||
);
|
||||
bool atlas(
|
||||
postfunc atlas(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
@ -36,7 +38,7 @@ namespace assetload {
|
|||
const std::string name,
|
||||
std::shared_ptr<AssetCfg> settings
|
||||
);
|
||||
bool font(
|
||||
postfunc font(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
@ -44,7 +46,7 @@ namespace assetload {
|
|||
const std::string name,
|
||||
std::shared_ptr<AssetCfg> settings
|
||||
);
|
||||
bool layout(
|
||||
postfunc layout(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
@ -53,7 +55,7 @@ namespace assetload {
|
|||
std::shared_ptr<AssetCfg> settings
|
||||
);
|
||||
|
||||
bool sound(
|
||||
postfunc sound(
|
||||
AssetsLoader&,
|
||||
Assets*,
|
||||
const ResPaths* paths,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue