-
-
Save lethal-guitar/900a1c3316dd32bf295152a6303b1380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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