Skip to content
Snippets Groups Projects
Commit 8e098173 authored by Taha Belkhiri's avatar Taha Belkhiri
Browse files

init render branch

parent 44f19ffa
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,11 @@ void drawBackground(){
SDL_RenderCopy(renderer, backgroundTexture, NULL, &rect);
}
void drawPlayButton(){
SDL_Rect rect = {screenDimension.w/2 - playButtonSurface->w/2, screenDimension.h/2 - playButtonSurface->h/2, playButtonSurface->w, playButtonSurface->h};
SDL_RenderCopy(renderer, playButtonTexture, NULL, &rect);
}
void drawMap(){
int i, j;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment