Maps common SFML resources to ResourceManager keys. More...
Maps common SFML resources to ResourceManager keys.
Used by ResourceManager. If its ResourceKey template argument isn't specified, it looks up the default key corresponding to the first argument Resource.
You can use the macro THOR_MAP_RESOURCEKEY to create a specialization. Five specialization of the traits template are already provided:
SFML resource | THOR resource key |
---|---|
sf::Image | thor::Resources::ImageKey |
sf::Font | thor::Resources::FontKey |
sf::Shader | thor::Resources::ShaderKey |
sf::SoundBuffer | thor::Resources::SoundBufferKey |
sf::Music | thor::Resources::MusicKey |