WHY_CPP  0.1
sdl_deleter.cpp
1 #include "sdl_deleter.h"
2 #include <SDL.h>
3 
4 void sdl_deleter::operator()(SDL_Window *p) const {
5  SDL_DestroyWindow(p);
6 }
7 void sdl_deleter::operator()(SDL_Renderer *p) const {
8  SDL_DestroyRenderer(p);
9 }
10 void sdl_deleter::operator()(SDL_Texture *p) const {
11  SDL_DestroyTexture(p);
12 }