1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +02:00
VVVVVV/desktop_version/src/Screen.h

49 lines
897 B
C
Raw Normal View History

2020-01-01 21:29:24 +01:00
#ifndef SCREEN_H
#define SCREEN_H
#include <SDL.h>
#include "ScreenSettings.h"
2020-01-01 21:29:24 +01:00
class Screen
{
public:
void init(const struct ScreenSettings* settings);
void destroy(void);
2020-01-01 21:29:24 +01:00
void GetSettings(struct ScreenSettings* settings);
void LoadIcon(void);
void ResizeScreen(int x, int y);
void ResizeToNearestMultiple(void);
void GetWindowSize(int* x, int* y);
2020-01-01 21:29:24 +01:00
void UpdateScaling(void);
void RenderPresent(void);
2020-01-01 21:29:24 +01:00
void toggleFullScreen(void);
void toggleScalingMode(void);
void toggleLinearFilter(void);
void toggleVSync(void);
2020-01-01 21:29:24 +01:00
void recacheTextures(void);
bool isForcedFullscreen(void);
bool isWindowed;
bool isFiltered;
bool badSignalEffect;
int scalingMode;
bool vsync;
2020-01-01 21:29:24 +01:00
SDL_Window *m_window;
SDL_Renderer *m_renderer;
2020-01-01 21:29:24 +01:00
};
#ifndef GAMESCREEN_DEFINITION
extern Screen gameScreen;
#endif
2020-01-01 21:29:24 +01:00
#endif /* SCREEN_H */