Updated game structure
Some checks failed
Build and Package Tetris / build-windows (push) Has been cancelled
Build and Package Tetris / build-linux (push) Has been cancelled

This commit is contained in:
2025-08-16 12:10:19 +02:00
parent 71648fbaeb
commit 2afaea7fd3
36 changed files with 665 additions and 382 deletions

22
src/ui/MenuWrappers.h Normal file
View 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);