Namespaces | Functions
Resources/SfmlLoaders.hpp File Reference

Functions to create resource loaders for SFML. More...

Go to the source code of this file.

Namespaces

namespace  thor::Resources
 Namespace for resource-related functionality.

Functions

template<class R >
ResourceLoader< R > thor::Resources::fromFile (const std::string &filename)
 Load the resource from a file on hard disk.
template<class R , typename T >
ResourceLoader< R > thor::Resources::fromFile (const std::string &filename, T arg1)
 Load the resource from a file on hard disk.
template<class R , typename T , typename U >
ResourceLoader< R > thor::Resources::fromMemory (T arg1, U arg2)
 Load the resource from a file in memory.
template<class R , typename T , typename U , typename V >
ResourceLoader< R > thor::Resources::fromMemory (T arg1, U arg2, V arg3)
 Load the resource from a file in memory.
template<class R >
ResourceLoader< R > thor::Resources::fromStream (sf::InputStream &stream)
 Load the resource from an input stream.
template<class R >
ResourceLoader< R > thor::Resources::fromStream (sf::InputStream &vertexShaderStream, sf::InputStream &fragmentShaderStream)
 Load the resource (usually sf::Shader) from two streams.
template<class R , typename T >
ResourceLoader< R > thor::Resources::fromStream (sf::InputStream &stream, T arg1)
 Load the resource from a stream with additional information.
template<class R >
ResourceLoader< R > thor::Resources::fromSamples (const sf::Int16 *samples, std::size_t sampleCount, unsigned int channelCount, unsigned int sampleRate)
 Load sf::SoundBuffer from array of audio samples in memory.
template<class R >
ResourceLoader< R > thor::Resources::fromPixels (unsigned int width, unsigned int height, const sf::Uint8 *pixels)
 Load resource (usually sf::Image) from array of pixels.
template<class R >
ResourceLoader< R > thor::Resources::fromColor (unsigned int width, unsigned int height, const sf::Color &color)
 Load resource (usually sf::Image) from size and fill color.
template<class R >
ResourceLoader< R > thor::Resources::fromImage (const sf::Image &image, const sf::IntRect area=sf::IntRect())
 Load the resource (usually sf::Texture) from a sf::Image.

Detailed Description

Functions to create resource loaders for SFML.