Tuxánci 2
Successor to Tuxánci
Loading...
Searching...
No Matches
menu.h
Go to the documentation of this file.
1
/*
2
* Tuxánci 2 - Successor to Tuxánci
3
* Copyright (C) 2026 Connor Thomson
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
23
24
#ifndef MENU_SCREEN_H
25
#define MENU_SCREEN_H
26
27
#include "raylib.h"
28
29
typedef
enum
{
30
NO_MENU
,
31
PLAY
,
32
SINGLEPLAYER
33
}
GameMenu
;
34
35
extern
GameMenu
currentMenu
;
36
37
void
menuUpdate
(
void
);
38
void
menuDraw
(
const
char
* title);
39
40
void
setupMenuScreen
(
void
);
41
void
drawMenuScreen
(
void
);
42
void
drawMenuScreen3D
(
void
);
43
void
enterMenuScreen
(
void
);
44
void
updateMenuScreen
(
void
);
45
46
#endif
// MENU_SCREEN_H
currentMenu
GameMenu currentMenu
Set the starting menu.
Definition
menu.c:35
drawMenuScreen3D
void drawMenuScreen3D(void)
Unused.
Definition
menu.c:102
menuDraw
void menuDraw(const char *title)
Draw menu window.
Definition
menu.c:53
menuUpdate
void menuUpdate(void)
Update/Tick menu.
Definition
menu.c:44
setupMenuScreen
void setupMenuScreen(void)
Setup menu screen (only use in screen.h)
Definition
menu.c:38
enterMenuScreen
void enterMenuScreen(void)
Unused.
Definition
menu.c:105
updateMenuScreen
void updateMenuScreen(void)
Update menu screen (use only in screen.c)
Definition
menu.c:108
drawMenuScreen
void drawMenuScreen(void)
Draw menu screen (use only in screen.c)
Definition
menu.c:78
GameMenu
GameMenu
Definition
menu.h:29
PLAY
@ PLAY
Play menu.
Definition
menu.h:31
NO_MENU
@ NO_MENU
No menu.
Definition
menu.h:30
SINGLEPLAYER
@ SINGLEPLAYER
Singleplayer menu.
Definition
menu.h:32
include
menu.h
Generated by
1.13.2