]> Shamusworld >> Repos - apple2/blob - src/video.h
3adff990c3517a4025f8cbc0bb84dd63a20653e8
[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
12 #define VIRTUAL_SCREEN_WIDTH            560
13 //#define VIRTUAL_SCREEN_HEIGHT         192
14 #define VIRTUAL_SCREEN_HEIGHT           384
15
16 // Global variables (exported)
17
18 extern bool flash;
19 extern bool textMode;
20 extern bool mixedMode;
21 extern bool displayPage2;
22 extern bool hiRes;
23 extern bool alternateCharset;
24 extern bool col80Mode;
25 extern SDL_Renderer * sdlRenderer;
26
27 // Functions (exported)
28
29 //void SetupBlurTable(void);
30 void TogglePalette(void);
31 void CycleScreenTypes(void);
32 void SpawnMessage(const char * text, ...);
33 bool InitVideo(void);
34 void VideoDone(void);
35 void RenderAppleScreen(SDL_Renderer *);
36 void ToggleFullScreen(void);
37
38
39 // Exported crap
40
41 //extern uint32_t * scrBuffer;
42 //extern int scrPitch;
43
44 #endif  // __VIDEO_H__