Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
menu.h File Reference

Manages game main menu system, including rendering and user interactions. More...

Go to the source code of this file.

Functions

void Menu_PrepareTextures ()
 Prepares and loads all menu textures.
 
void Menu_Update ()
 Updates the menu state based on user input.
 
void Menu_Render ()
 Renders the menu to the screen.
 

Detailed Description

Manages game main menu system, including rendering and user interactions.

Author
Mango
Date
2025-03-12

Function Documentation

◆ Menu_PrepareTextures()

void Menu_PrepareTextures ( )

Prepares and loads all menu textures.

Returns
void

Prepares and loads all menu textures.

Initializes all resources needed for the main menu, including the background, title, and button elements.

◆ Menu_Render()

void Menu_Render ( )

Renders the menu to the screen.

Returns
void

Renders the menu to the screen.

Renders the background, title, and interactive button elements with appropriate hover effects.

◆ Menu_Update()

void Menu_Update ( )

Updates the menu state based on user input.

Returns
void

Updates the menu state based on user input.

Handles mouse hover and click events for the menu buttons, changing their appearance and triggering appropriate actions.