![]() |
ChessPlusPlus
WIP
cplusplus.com Community Project
|
Wrap an SFML class for use with the ResourceManager as a file resource. More...
#include <SfmlFileResource.hpp>
Public Member Functions | |
| SfmlFileResource (std::string const &file_path) noexcept | |
| Construct the wrapper from a file. More... | |
| operator sfmlT & () noexcept | |
| Implicitly cast the wrapper to the wrapped resource instance. More... | |
| operator sfmlT const & () const noexcept | |
| Implicitly cast the wrapper to the wrapped resource instance. More... | |
Public Member Functions inherited from chesspp::res::ResourceManager::Resource | |
| virtual | ~Resource ()=0 |
Public Attributes | |
| sfmlT | res |
| The wrapped SFML class instance. More... | |
Wrap an SFML class for use with the ResourceManager as a file resource.
Any SFML class which supports .loadFromFile() can be used, such as sf::Sprite and sf::Font.
| The | SFML class to wrap. |
|
inlinenoexcept |
Construct the wrapper from a file.
| file_path | The file path. |
|
inlinenoexcept |
Implicitly cast the wrapper to the wrapped resource instance.
|
inlinenoexcept |
Implicitly cast the wrapper to the wrapped resource instance.
| sfmlT chesspp::res::SfmlFileResource< sfmlT >::res |
The wrapped SFML class instance.