]> Shamusworld >> Repos - apple2/blob - src/video.h
bd510d58d1b94dc5a9c668db28561b9db426d860
[apple2] / src / video.h
1 //
2 // VIDEO.H: Header file
3 //
4
5 #ifndef __VIDEO_H__
6 #define __VIDEO_H__
7
8 #include <SDL2/SDL.h>
9 #include <stdint.h>                                                     // For uint32_t
10
11 // These are double the normal width because we use sub-pixel rendering.
12 //#define VIRTUAL_SCREEN_WIDTH          280
13 #define VIRTUAL_SCREEN_WIDTH            560
14 //#define VIRTUAL_SCREEN_HEIGHT         192
15 #define VIRTUAL_SCREEN_HEIGHT           384
16
17 bool InitVideo(void);
18 void VideoDone(void);
19 void RenderScreenBuffer(void);
20 void ToggleFullScreen(void);
21
22 // Exported crap
23
24 extern SDL_Renderer * sdlRenderer;
25 extern uint32_t scrBuffer[];
26 extern uint32_t mainScrBuffer[];
27
28 #endif  // __VIDEO_H__
29