0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 09:03:42 +00:00
SDL_Minigame/include/PopupWindow.h
2024-01-29 20:55:50 -06:00

33 lines
536 B
C++

#ifndef SDL_MINIGAME_POPUPWINDOW_H
#define SDL_MINIGAME_POPUPWINDOW_H
#include <SDL.h>
#include <SDL_ttf.h>
#include <string>
class Game;
class PopupWindow {
public:
PopupWindow(const char* title, const std::string& message);
~PopupWindow();
void handleWinnerEvents();
bool shouldContinue() const;
bool interacted;
void renderWinnerPopup(bool winner);
private:
SDL_Renderer* renderer;
SDL_Window* window;
SDL_Texture* texture;
bool continueGame;
};
#endif //SDL_MINIGAME_POPUPWINDOW_H