FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::opengl::ImageLoader Class Reference

#include <imageloader.hpp>

Inheritance diagram for fcn::opengl::ImageLoader:
fcn::sdl2::ImageLoader fcn::ImageLoader

Public Member Functions

fcn::Imageload (std::string const &filename, bool convertToDisplayFormat) override
Public Member Functions inherited from fcn::sdl2::ImageLoader
SDL_PixelFormat const & getSDLPixelFormat ()
Imageload (std::string const &filename)
fcn::Imageload (std::string const &filename, bool convertToDisplayFormat) override
void setRenderer (SDL_Renderer *renderer)
void setSDLPixelFormat (SDL_PixelFormat const &format)
Public Member Functions inherited from fcn::ImageLoader
 ImageLoader (ImageLoader &&)=default
 ImageLoader (ImageLoader const &)=default
Imageload (std::string const &filename)
ImageLoader & operator= (ImageLoader &&)=default
ImageLoader & operator= (ImageLoader const &)=default

Additional Inherited Members

Protected Member Functions inherited from fcn::sdl2::ImageLoader
virtual SDL_Surface * convertToStandardFormat (SDL_Surface *surface)
virtual SDL_Surface * loadSDLSurface (std::string const &filename)
virtual SDL_Texture * loadSDLTexture (std::string const &filename)

Detailed Description

OpenGL ImageLoader that loads images with SDL.

Definition at line 22 of file backends/opengl/imageloader.hpp.

Member Function Documentation

◆ load()

fcn::Image * fcn::opengl::ImageLoader::load ( std::string const & filename,
bool convertToDisplayFormat )
inlineoverridevirtual

Loads an image, optionally converting it to display format.

Parameters
filenameThe filename of the image to load.
convertToDisplayFormatTrue if the image should be converted to display format, false otherwise.

Implements fcn::ImageLoader.

Definition at line 25 of file backends/opengl/imageloader.hpp.

References fcn::sdl2::ImageLoader::convertToStandardFormat(), and fcn::sdl2::ImageLoader::loadSDLSurface().


The documentation for this class was generated from the following file: