mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-24 02:29:43 +01:00
30bcc08bec
Just so it can be properly used globally like all the other classes.
38 lines
623 B
C++
38 lines
623 B
C++
#ifndef SCREEN_H
|
|
#define SCREEN_H
|
|
|
|
#include <SDL.h>
|
|
|
|
class Screen
|
|
{
|
|
public:
|
|
void init();
|
|
|
|
void ResizeScreen(int x, int y);
|
|
void GetWindowSize(int* x, int* y);
|
|
|
|
void UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect);
|
|
void FlipScreen();
|
|
|
|
const SDL_PixelFormat* GetFormat();
|
|
|
|
void toggleFullScreen();
|
|
void toggleStretchMode();
|
|
void toggleLinearFilter();
|
|
|
|
bool isWindowed;
|
|
bool isFiltered;
|
|
bool badSignalEffect;
|
|
int stretchMode;
|
|
|
|
SDL_Window *m_window;
|
|
SDL_Renderer *m_renderer;
|
|
SDL_Texture *m_screenTexture;
|
|
SDL_Surface* m_screen;
|
|
|
|
SDL_Rect filterSubrect;
|
|
};
|
|
|
|
extern Screen gameScreen;
|
|
|
|
#endif /* SCREEN_H */
|