Skip to content

Instantly share code, notes, and snippets.

@lethal-guitar
Created October 27, 2017 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lethal-guitar/900a1c3316dd32bf295152a6303b1380 to your computer and use it in GitHub Desktop.
Save lethal-guitar/900a1c3316dd32bf295152a6303b1380 to your computer and use it in GitHub Desktop.
struct Deleter {
void operator()(SDL_Window* ptr) {
SDL_DestroyWindow(ptr);
}
void operator()(SDL_Renderer* ptr) {
SDL_DestroyRenderer(ptr);
}
void operator()(SDL_Texture* ptr) {
SDL_DestroyTexture(ptr);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment