]> Shamusworld >> Repos - stargem2/blob - src/video.h
Moving to trunk...
[stargem2] / src / video.h
1 //
2 // VIDEO.H: Header file
3 //
4
5 #ifndef __VIDEO_H__
6 #define __VIDEO_H__
7
8
9 #if 0
10
11 #define VIRTUAL_SCREEN_WIDTH            320
12 #define VIRTUAL_SCREEN_HEIGHT           240
13
14 bool InitVideo(void);
15 void VideoDone(void);
16 void RenderBackbuffer(void);
17 void ResizeScreen(uint32 width, uint32 height);
18 uint32 GetSDLScreenPitch(void);
19 void ToggleFullscreen(void);
20 void RenderBackbuffer2(void);
21
22 // Exported crap
23
24 extern uint8 * backbuffer;
25 extern uint8 color[16];
26 //extern uint32 palette[256];
27
28 #endif
29
30
31 #include "SDL.h"                                                        // For SDL_Surface
32 #include "types.h"                                                      // For uint32
33
34 #define VIRTUAL_SCREEN_WIDTH            320
35 #define VIRTUAL_SCREEN_HEIGHT           240
36
37 bool InitVideo(void);
38 void VideoDone(void);
39 void RenderScreenBuffer(void);
40 void RenderScreenBuffer2(void);
41 //void ResizeScreen(uint32 width, uint32 height);
42 //uint32 GetSDLScreenPitch(void);
43 //void ToggleFullscreen(void);
44
45 // Exported crap
46
47 extern uint32 * scrBuffer;
48 extern SDL_Surface * surface;
49
50 #endif  // __VIDEO_H__