5#ifndef INCLUDE_FIFECHAN_BACKENDS_SDL_SDL_HPP_
6#define INCLUDE_FIFECHAN_BACKENDS_SDL_SDL_HPP_
13#include <fifechan/backends/sdl2/graphics.hpp>
14#include <fifechan/backends/sdl2/image.hpp>
15#include <fifechan/backends/sdl2/imageloader.hpp>
16#include <fifechan/backends/sdl2/input.hpp>
17#include <fifechan/backends/sdl2/truetypefont.hpp>
18#include <fifechan/platform.hpp>
42 return std::shared_ptr<SDL_Window>{window, [](SDL_Window* value) {
43 if (value !=
nullptr) {
44 SDL_DestroyWindow(value);
52 return std::shared_ptr<SDL_Renderer>{renderer, [](SDL_Renderer* value) {
53 if (value !=
nullptr) {
54 SDL_DestroyRenderer(value);
62 return std::shared_ptr<SDL_Surface>{surface, [](SDL_Surface* value) {
63 if (value !=
nullptr) {
64 SDL_FreeSurface(value);
72 return std::shared_ptr<SDL_Texture>{texture, [](SDL_Texture* value) {
73 if (value !=
nullptr) {
74 SDL_DestroyTexture(value);
SDL2 renderer-specific implementation of the Graphics interface.
SDL2-specific implementation of ImageLoader.
SDL2-specific implementation of Image.
SDL2/FreeType implementation for rendering TrueType fonts.
Unified header for the SDL backend.
std::shared_ptr< SDL_Window > makeSDLSharedPtr(SDL_Window *window)
Create a shared_ptr that will destroy the SDL_Window when released.