SpaceCadetPinballPPC/SpaceCadetPinball/fullscrn.h

37 lines
740 B
C
Raw Normal View History

2020-11-06 13:56:32 +00:00
#pragma once
struct resolution_info
{
int16_t ScreenWidth;
int16_t ScreenHeight;
int16_t TableWidth;
int16_t TableHeight;
int16_t ResolutionMenuId;
};
2020-11-06 13:56:32 +00:00
class fullscrn
{
public:
static int screen_mode;
static int display_changed;
static const resolution_info resolution_array[3];
2021-02-09 15:09:44 +00:00
static float ScaleX;
static float ScaleY;
static int OffsetX;
static int OffsetY;
2020-11-06 13:56:32 +00:00
static void init();
2020-11-16 14:12:31 +00:00
static void shutdown();
2020-11-06 13:56:32 +00:00
static int set_screen_mode(int isFullscreen);
2020-11-16 14:12:31 +00:00
static void activate(int flag);
static int GetResolution();
static void SetResolution(int value);
static int GetMaxResolution();
2021-02-09 15:09:44 +00:00
static void window_size_changed();
2020-11-06 13:56:32 +00:00
private :
static int resolution;
2020-11-16 14:12:31 +00:00
2020-11-06 13:56:32 +00:00
static int enableFullscreen();
2020-11-16 14:12:31 +00:00
static int disableFullscreen();
2020-11-06 13:56:32 +00:00
};