forked from mswlandi/megamania
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.h
23 lines (20 loc) · 839 Bytes
/
layout.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LAYOUT_H_INCLUDED
#define LAYOUT_H_INCLUDED
// Default headers
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// CSFML header
#include <SFML/Graphics.h>
// Our headers
#include "structs.h"
#include "utility.h"
// This creates a button with some text
TYPE_BUTTON Layout_CreateButton(char stringText[50], float textSize, sfVector2f position, sfVector2f baseSize, sfColor cBase);
// This function returns 1 if mouse is on the button. Else, returns 0.
int Layout_isOnButton(TYPE_BUTTON *button, sfRenderWindow* window);
// This function shows the screen when you click on highscores button
void Layout_Highscores(sfRenderWindow* window, sfSprite* background);
// This function shows the credits screen
void Layout_Credits(sfRenderWindow* window, sfSprite* background);
#endif // LAYOUT_H_INCLUDED