Skip to content

Commit 1b042a3

Browse files
authored
Added comments
1 parent 95e43af commit 1b042a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Line Drawing/memory.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//this function initializes SDL video subsystem
12
void init(void) {
23
SDL_Init(SDL_INIT_VIDEO);
34
}
@@ -39,6 +40,7 @@ void destroyRenderer(SDL_Renderer **ren) {
3940
SDL_DestroyRenderer(*ren);
4041
}
4142

43+
//this function deallocates memory allocated at the beginning of the program
4244
void cleanup(SDL_Window **win, SDL_Renderer **ren) {
4345
destroyWindow(win);
4446
destroyRenderer(ren);

0 commit comments

Comments
 (0)