breakout/startmenu.c
2018-01-15 13:55:57 +01:00

18 lines
451 B
C

#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
SDL_Texture* TITLE_Texture;
SDL_Rect TargetRect;
void Load_Textures (SDL_Renderer* renderer) {
TITLE_Texture = IMG_LoadTexture(renderer, "assets/images/breaking_button.png");
TargetRect = (SDL_Rect){.x = 583,.y = 100, .w=754, .h=334};
}
void Startmenu_Draw (SDL_Renderer* renderer) {
SDL_RenderCopy(renderer, TITLE_Texture, NULL, &TargetRect);
}