| 7 | namespace sfg { |
| 8 | |
| 9 | std::shared_ptr<const sf::Font> FileResourceLoader::LoadFont( const std::string& path ) const { |
| 10 | auto font = std::make_shared<sf::Font>(); |
| 11 | |
| 12 | if( !font->openFromFile( path ) ) { |
| 13 | return std::shared_ptr<const sf::Font>(); |
| 14 | } |
| 15 | |
| 16 | return font; |
| 17 | } |
| 18 | |
| 19 | std::shared_ptr<const sf::Image> FileResourceLoader::LoadImage( const std::string& path ) const { |
| 20 | auto image = std::make_shared<sf::Image>(); |
nothing calls this directly
no outgoing calls
no test coverage detected