]> Shamusworld >> Repos - legend/blob - src/video.h
Initial commit for the Legend of A... project!
[legend] / 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 //#define VIRTUAL_SCREEN_WIDTH          280
12 #define VIRTUAL_SCREEN_WIDTH            16*32
13 //#define VIRTUAL_SCREEN_HEIGHT         192
14 #define VIRTUAL_SCREEN_HEIGHT           16*24
15
16 bool InitVideo(void);
17 void VideoDone(void);
18 void RenderScreenBuffer(void);
19 void ToggleFullScreen(void);
20
21 // Exported crap
22
23 extern SDL_Renderer * sdlRenderer;
24 extern uint32_t scrBuffer[];
25 extern uint32_t mainScrBuffer[];
26
27 #endif  // __VIDEO_H__
28