18 lines
442 B
C
18 lines
442 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/Texts.png");
|
|
TargetRect = (SDL_Rect){.x = 200,.y = 100, .w=1000, .h=256};
|
|
|
|
}
|
|
|
|
void Startmenu_Draw (SDL_Renderer* renderer) {
|
|
SDL_RenderCopy(renderer, TITLE_Texture, NULL, &TargetRect);
|
|
}
|