2018-01-15 13:19:51 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
#include <SDL2/SDL_image.h>
|
|
|
|
|
|
|
|
SDL_Texture* TITLE_Texture;
|
2018-01-15 14:08:09 +01:00
|
|
|
SDL_Texture* PLAYBUTTON_Texture;
|
|
|
|
|
|
|
|
SDL_Rect TITLE_Rect;
|
|
|
|
SDL_Rect PLAYBUTTON_Rect;
|
2018-01-15 13:19:51 +01:00
|
|
|
|
|
|
|
void Load_Textures (SDL_Renderer* renderer) {
|
2018-01-15 13:55:57 +01:00
|
|
|
TITLE_Texture = IMG_LoadTexture(renderer, "assets/images/breaking_button.png");
|
2018-01-15 14:08:09 +01:00
|
|
|
TITLE_Rect = (SDL_Rect){.x = 710,.y = 200, .w=500, .h=223};
|
2018-01-15 13:19:51 +01:00
|
|
|
|
2018-01-15 14:08:09 +01:00
|
|
|
PLAYBUTTON_Texture = IMG_LoadTexture(renderer, "assets/images/play_button.png");
|
|
|
|
PLAYBUTTON_Rect = (SDL_Rect){.x = 710, .y = 500, .w=391, .h=223};
|
2018-01-15 13:19:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void Startmenu_Draw (SDL_Renderer* renderer) {
|
2018-01-15 14:08:09 +01:00
|
|
|
SDL_RenderCopy(renderer, TITLE_Texture, NULL, &TITLE_Rect);
|
|
|
|
SDL_RenderCopy(renderer, PLAYBUTTON_Texture, NULL, &PLAYBUTTON_Rect);
|
2018-01-15 13:19:51 +01:00
|
|
|
}
|