5#ifndef INCLUDE_FIFECHAN_BACKENDS_SDL_SDLIMAGELOADER_HPP_
6#define INCLUDE_FIFECHAN_BACKENDS_SDL_SDLIMAGELOADER_HPP_
12#include "fifechan/platform.hpp"
18#include "fifechan/imageloader.hpp"
40 fcn::Image*
load(std::string
const & filename,
bool convertToDisplayFormat)
override;
63 SDL_PixelFormat mPixelFormat{};
66 SDL_Renderer* mRenderer{
nullptr};
Abstract interface for loading image assets.
Image * load(std::string const &filename)
Loads an image.
Abstract holder for image data.
SDL_PixelFormat const & getSDLPixelFormat()
Return the current SDL pixel format used for conversions.
virtual SDL_Surface * convertToStandardFormat(SDL_Surface *surface)
Convert a surface to a standard internal format (internal).
fcn::Image * load(std::string const &filename, bool convertToDisplayFormat) override
Load an image from filename.
virtual SDL_Surface * loadSDLSurface(std::string const &filename)
Load an SDL_Surface from disk (internal).
virtual SDL_Texture * loadSDLTexture(std::string const &filename)
Load an SDL_Texture from disk (internal).
void setSDLPixelFormat(SDL_PixelFormat const &format)
Set the SDL pixel format used for conversions.
void setRenderer(SDL_Renderer *renderer)
Set the SDL renderer used when creating textures.
Used replacement tokens by configure_file():