-
-
Save lethal-guitar/e854f18e9a85dc5a9b077c6dcc5da812 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
template<> | |
struct Deleter<SDL_Window> { | |
void operator()(SDL_Window* ptr) { | |
SDL_DestroyWindow(ptr); | |
} | |
}; | |
template<> | |
struct Deleter<SDL_Renderer> { | |
void operator()(SDL_Renderer* ptr) { | |
SDL_DestroyRenderer(ptr); | |
} | |
}; | |
template<> | |
struct Deleter<SDL_Texture> { | |
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