5#ifndef INCLUDE_FIFECHAN_BACKENDS_SDL_SDLIMAGELOADER_HPP_
6#define INCLUDE_FIFECHAN_BACKENDS_SDL_SDLIMAGELOADER_HPP_
12#include "fifechan/imageloader.hpp"
13#include "fifechan/platform.hpp"
34 fcn::Image*
load(std::string
const & filename,
bool convertToDisplayFormat)
override;
57 SDL_PixelFormat mPixelFormat;
60 SDL_Renderer* mRenderer;
Abstract interface for loading image assets.
Image * load(std::string const &filename)
Loads an image.
Abstract holder for image data.
virtual SDL_Texture * loadSDLTexture(std::string const &filename)
Load an SDL_Texture from disk (internal).
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).
void setRenderer(SDL_Renderer *renderer)
Set the SDL renderer used when creating textures.
SDL_PixelFormat const & getSDLPixelFormat()
Return the current SDL pixel format used for conversions.
void setSDLPixelFormat(SDL_PixelFormat const &format)
Set the SDL pixel format used for conversions.
Unified header for the SDL backend.