Scene Lab
An open source project by
FPL.
|
AssetLoader struct, basically a tuple of directory, file extension, and loader function. More...
#include <util.h>
AssetLoader struct, basically a tuple of directory, file extension, and loader function.
The purpose of this is so you can scan for all the files in a given folder matching the file extension, and load them via whatever method you wish.
Public Types | |
typedef std::function< void(const char *filename)> | load_function_t |
Public Member Functions | |
AssetLoader (const std::string &dir, const std::string &file_ext, const load_function_t &load_func) | |
Public Attributes | |
std::string | directory |
std::string | file_extension |
load_function_t | load_function |