2020-11-05 16:44:34 +01:00
|
|
|
#pragma once
|
2020-11-29 16:50:49 +01:00
|
|
|
#include "gdrv.h"
|
2020-11-05 16:44:34 +01:00
|
|
|
|
2020-11-07 16:41:14 +01:00
|
|
|
class winmain
|
|
|
|
{
|
|
|
|
public:
|
2021-09-16 09:57:46 +02:00
|
|
|
static std::string DatFileName;
|
2020-12-02 18:12:34 +01:00
|
|
|
static int single_step;
|
2021-09-01 10:02:57 +02:00
|
|
|
static SDL_Window* MainWindow;
|
|
|
|
static SDL_Renderer* Renderer;
|
2021-09-05 09:47:05 +02:00
|
|
|
static ImGuiIO* ImIO;
|
2021-09-06 15:27:58 +02:00
|
|
|
static bool LaunchBallEnabled;
|
|
|
|
static bool HighScoresEnabled;
|
|
|
|
static bool DemoActive;
|
2021-09-14 14:33:18 +02:00
|
|
|
static char* BasePath;
|
2020-12-02 18:12:34 +01:00
|
|
|
|
2021-09-01 10:02:57 +02:00
|
|
|
static int WinMain(LPCSTR lpCmdLine);
|
2021-08-27 12:29:41 +02:00
|
|
|
static int event_handler(const SDL_Event* event);
|
2020-11-07 16:41:14 +01:00
|
|
|
static void memalloc_failure();
|
|
|
|
static int ProcessWindowMessages();
|
2021-09-05 09:47:05 +02:00
|
|
|
static void a_dialog();
|
2020-12-02 18:12:34 +01:00
|
|
|
static void end_pause();
|
|
|
|
static void new_game();
|
|
|
|
static void pause();
|
2021-09-06 15:27:58 +02:00
|
|
|
static void help_introduction();
|
2021-02-06 14:53:47 +01:00
|
|
|
static void Restart();
|
2020-11-07 16:41:14 +01:00
|
|
|
private:
|
2020-12-02 18:12:34 +01:00
|
|
|
static int return_value, bQuit, DispFrameRate, DispGRhistory, activated;
|
|
|
|
static int has_focus, mouse_down, last_mouse_x, last_mouse_y, no_time_loss;
|
2020-11-29 16:50:49 +01:00
|
|
|
static DWORD then, now;
|
|
|
|
static gdrv_bitmap8 gfr_display;
|
2021-02-06 14:53:47 +01:00
|
|
|
static bool restart;
|
2021-09-05 09:47:05 +02:00
|
|
|
static bool ShowAboutDialog;
|
|
|
|
static bool ShowImGuiDemo;
|
|
|
|
|
|
|
|
static void RenderUi();
|
2020-11-07 16:41:14 +01:00
|
|
|
};
|