mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Hello WWWWWWorld!
This commit is contained in:
40
desktop_version/src/Screen.h
Normal file
40
desktop_version/src/Screen.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef SCREEN_H
|
||||
#define SCREEN_H
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
class Screen
|
||||
{
|
||||
public:
|
||||
Screen();
|
||||
|
||||
void ResizeScreen(int x, int y);
|
||||
void GetWindowSize(int* x, int* y);
|
||||
|
||||
void UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect);
|
||||
void ClearScreen(int colour);
|
||||
void FlipScreen();
|
||||
|
||||
const SDL_PixelFormat* GetFormat();
|
||||
|
||||
void toggleFullScreen();
|
||||
void toggleStretchMode();
|
||||
void toggleLinearFilter();
|
||||
|
||||
bool isWindowed;
|
||||
bool isFiltered;
|
||||
bool badSignalEffect;
|
||||
bool glScreen;
|
||||
int stretchMode;
|
||||
|
||||
SDL_Window *m_window;
|
||||
SDL_Renderer *m_renderer;
|
||||
SDL_Texture *m_screenTexture;
|
||||
SDL_Surface* m_screen;
|
||||
|
||||
SDL_Rect filterSubrect;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* SCREEN_H */
|
||||
Reference in New Issue
Block a user