Updated game structure
This commit is contained in:
22
src/ui/MenuWrappers.h
Normal file
22
src/ui/MenuWrappers.h
Normal file
@ -0,0 +1,22 @@
|
||||
// MenuWrappers.h - function prototypes for menu helper wrappers implemented in main.cpp
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <string>
|
||||
|
||||
class FontAtlas;
|
||||
|
||||
// Draw fireworks using the provided blocks texture (may be nullptr)
|
||||
void menu_drawFireworks(SDL_Renderer* renderer, SDL_Texture* blocksTex);
|
||||
void menu_updateFireworks(double frameMs);
|
||||
double menu_getLogoAnimCounter();
|
||||
int menu_getHoveredButton();
|
||||
|
||||
void menu_drawEnhancedButton(SDL_Renderer* renderer, FontAtlas& font, float cx, float cy, float w, float h,
|
||||
const std::string& label, bool isHovered, bool isSelected);
|
||||
|
||||
void menu_drawMenuButton(SDL_Renderer* renderer, FontAtlas& font, float cx, float cy, float w, float h,
|
||||
const std::string& label, SDL_Color bgColor, SDL_Color borderColor);
|
||||
|
||||
void menu_drawLevelSelectionPopup(SDL_Renderer* renderer, FontAtlas& font, SDL_Texture* bgTex, int selectedLevel);
|
||||
void menu_drawSettingsPopup(SDL_Renderer* renderer, FontAtlas& font, bool musicEnabled);
|
||||
Reference in New Issue
Block a user