mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Assets loading refactor
This commit is contained in:
parent
2ebaad6cb6
commit
8c261efbd4
3 changed files with 110 additions and 62 deletions
24
src/assets/asset_loaders.h
Normal file
24
src/assets/asset_loaders.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef ASSETS_ASSET_LOADERS_H_
|
||||
#define ASSETS_ASSET_LOADERS_H_
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
class Assets;
|
||||
|
||||
namespace assetload {
|
||||
bool texture(Assets* assets,
|
||||
const std::filesystem::path& filename,
|
||||
const std::string& name);
|
||||
bool shader(Assets* assets,
|
||||
const std::filesystem::path& filename,
|
||||
const std::string& name);
|
||||
bool atlas(Assets* assets,
|
||||
const std::filesystem::path& directory,
|
||||
const std::string& name);
|
||||
bool font(Assets* assets,
|
||||
const std::filesystem::path& filename,
|
||||
const std::string& name);
|
||||
}
|
||||
|
||||
#endif // ASSETS_ASSET_LOADERS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue