estrella del bmp

main
fanta 3 weeks ago
parent c42457a6c5
commit 3e72683a68

BIN
bocm

Binary file not shown.

@ -47,10 +47,17 @@ int loadBackgroundColor(void){
return 0; return 0;
} }
int presentLogo(void){ int locLogo(void){
SDL_Rect rect = {10, 10, 100, 73}; SDL_Rect srcrect = {0, 0, 100, 73};
SDL_RenderCopy(renderer, texture, NULL, &rect); SDL_Rect dstrect = {10, 10, 100, 73};
SDL_RenderPresent(renderer); SDL_RenderCopy(renderer, texture, &srcrect, &dstrect);
return 0;
}
int locStars(void){
SDL_Rect srcrect = {1, 32, 22, 21};
SDL_Rect dstrect = {100, 100, 22, 21};
SDL_RenderCopy(renderer, texture, &srcrect, &dstrect);
return 0; return 0;
} }

@ -10,7 +10,11 @@ int windowLoop(void){
} }
loadBackgroundColor(); loadBackgroundColor();
presentLogo(); locLogo();
locStars();
SDL_RenderPresent(renderer);
} }
return 0; return 0;
} }

Loading…
Cancel
Save