We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e43af commit 1b042a3Copy full SHA for 1b042a3
Line Drawing/memory.h
@@ -1,3 +1,4 @@
1
+//this function initializes SDL video subsystem
2
void init(void) {
3
SDL_Init(SDL_INIT_VIDEO);
4
}
@@ -39,6 +40,7 @@ void destroyRenderer(SDL_Renderer **ren) {
39
40
SDL_DestroyRenderer(*ren);
41
42
43
+//this function deallocates memory allocated at the beginning of the program
44
void cleanup(SDL_Window **win, SDL_Renderer **ren) {
45
destroyWindow(win);
46
destroyRenderer(ren);
0 commit comments