]> Shamusworld >> Repos - apple2/blob - src/video.h
Docs were missing GPLv3. Thanks to schampailler for the heads up. :-)
[apple2] / src / video.h
1 //
2 // Apple 2/host video support
3 //
4
5 #ifndef __VIDEO_H__
6 #define __VIDEO_H__
7
8 #include <SDL2/SDL.h>
9
10 // These are double the normal width because we use sub-pixel rendering.
11 #define VIRTUAL_SCREEN_WIDTH    (280 * 2)
12 #define VIRTUAL_SCREEN_HEIGHT   (192 * 2)
13
14 // Exported functions
15
16 void TogglePalette(void);
17 void CycleScreenTypes(void);
18 void SpawnMessage(const char * text, ...);
19 bool InitVideo(void);
20 void VideoDone(void);
21 void RenderAppleScreen(SDL_Renderer *);
22 void ToggleFullScreen(void);
23 void ToggleTickDisplay(void);
24
25 // Exported variables
26
27 extern bool flash;
28 extern bool textMode;
29 extern bool mixedMode;
30 extern bool displayPage2;
31 extern bool hiRes;
32 extern bool alternateCharset;
33 extern bool col80Mode;
34 extern SDL_Renderer * sdlRenderer;
35 extern SDL_Window * sdlWindow;
36
37 #endif  // __VIDEO_H__
38