5#ifndef LOADERFUNCTIONS_H
6#define LOADERFUNCTIONS_H
14 template <
typename Resource>
15 bool fileLoader(Resource& r,
const std::string& path) {
return r.loadFromFile(path);}
17 template <
typename Resource>
18 bool fileOpener(Resource& r,
const std::string& path){
return r.openFromFile(path);}
20 template <
typename Resource>
21 bool returnTrue(Resource& r,
const std::string& path){
return true;}
bool fileLoader(Resource &r, const std::string &path)
bool returnTrue(Resource &r, const std::string &path)
bool fileOpener(Resource &r, const std::string &path)