1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-06-26 15:52:11 +02:00
SpaceCadetPinball/SpaceCadetPinball/winmain.h
Muzychenko Andrey 2fe6d6d33a Removed windows.h dependency.
Added support for music in MDS format.
2021-09-06 16:27:58 +03:00

37 lines
934 B
C++

#pragma once
#include "gdrv.h"
class winmain
{
public:
static char DatFileName[300];
static int single_step;
static SDL_Window* MainWindow;
static SDL_Renderer* Renderer;
static ImGuiIO* ImIO;
static bool LaunchBallEnabled;
static bool HighScoresEnabled;
static bool DemoActive;
static int WinMain(LPCSTR lpCmdLine);
static int event_handler(const SDL_Event* event);
static void memalloc_failure();
static int ProcessWindowMessages();
static void a_dialog();
static void end_pause();
static void new_game();
static void pause();
static void help_introduction();
static void Restart();
private:
static int return_value, bQuit, DispFrameRate, DispGRhistory, activated;
static int has_focus, mouse_down, last_mouse_x, last_mouse_y, no_time_loss;
static DWORD then, now;
static gdrv_bitmap8 gfr_display;
static bool restart;
static bool ShowAboutDialog;
static bool ShowImGuiDemo;
static void RenderUi();
};