1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-18 08:59:42 +01:00
VVVVVV/desktop_version/src/Screen.h

46 lines
799 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 ScreenSettings& settings);
2020-01-01 21:29:24 +01:00
void GetSettings(ScreenSettings* settings);
void LoadIcon();
void ResizeScreen(int x, int y);
void ResizeToNearestMultiple();
2020-01-01 21:29:24 +01:00
void GetWindowSize(int* x, int* y);
void UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect);
void FlipScreen();
const SDL_PixelFormat* GetFormat();
void toggleFullScreen();
2020-01-01 21:29:24 +01:00
void toggleStretchMode();
void toggleLinearFilter();
void resetRendererWorkaround();
2020-01-01 21:29:24 +01:00
bool isWindowed;
bool isFiltered;
bool badSignalEffect;
int stretchMode;
bool vsync;
2020-01-01 21:29:24 +01:00
SDL_Window *m_window;
SDL_Renderer *m_renderer;
SDL_Texture *m_screenTexture;
SDL_Surface* m_screen;
SDL_Rect filterSubrect;
};
#endif /* SCREEN_H */