comparison src/video/wscons/SDL_wsconsvideo.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
30 30
31 #include "SDL_mouse.h" 31 #include "SDL_mouse.h"
32 #include "SDL_mutex.h" 32 #include "SDL_mutex.h"
33 #include "../SDL_sysvideo.h" 33 #include "../SDL_sysvideo.h"
34 34
35 void WSCONS_ReportError(char *fmt, ...); 35 void WSCONS_ReportError (char *fmt, ...);
36 36
37 /* Hidden "this" pointer for the video functions */ 37 /* Hidden "this" pointer for the video functions */
38 #define _THIS SDL_VideoDevice *this 38 #define _THIS SDL_VideoDevice *this
39 #define private (this->hidden) 39 #define private (this->hidden)
40 40
41 /* Private display data */ 41 /* Private display data */
42 42
43 typedef void WSCONS_bitBlit(Uint8 *src_pos, 43 typedef void WSCONS_bitBlit (Uint8 * src_pos, int srcRightDelta, // pixels, not bytes
44 int srcRightDelta, // pixels, not bytes 44 int srcDownDelta, // pixels, not bytes
45 int srcDownDelta, // pixels, not bytes 45 Uint8 * dst_pos,
46 Uint8 *dst_pos, 46 int dst_linebytes, int width, int height);
47 int dst_linebytes,
48 int width,
49 int height);
50 47
51 struct SDL_PrivateVideoData { 48 struct SDL_PrivateVideoData
52 int fd; /* file descriptor of open device */ 49 {
53 struct wsdisplay_fbinfo info; /* frame buffer characteristics */ 50 int fd; /* file descriptor of open device */
54 int physlinebytes; /* number of bytes per row */ 51 struct wsdisplay_fbinfo info; /* frame buffer characteristics */
55 int redMask, greenMask, blueMask; 52 int physlinebytes; /* number of bytes per row */
53 int redMask, greenMask, blueMask;
56 54
57 Uint8 *fbstart; /* These refer to the surface used, */ 55 Uint8 *fbstart; /* These refer to the surface used, */
58 int fblinebytes; /* physical frame buffer or shadow. */ 56 int fblinebytes; /* physical frame buffer or shadow. */
59 57
60 size_t fbmem_len; 58 size_t fbmem_len;
61 Uint8 *physmem; 59 Uint8 *physmem;
62 Uint8 *shadowmem; 60 Uint8 *shadowmem;
63 int rotate; 61 int rotate;
64 int shadowFB; /* Tells whether a shadow is being used. */ 62 int shadowFB; /* Tells whether a shadow is being used. */
65 63
66 WSCONS_bitBlit *blitFunc; 64 WSCONS_bitBlit *blitFunc;
67 65
68 SDL_Rect *SDL_modelist[2]; 66 SDL_Rect *SDL_modelist[2];
69 67
70 unsigned int kbdType; 68 unsigned int kbdType;
71 int did_save_tty; 69 int did_save_tty;
72 struct termios saved_tty; 70 struct termios saved_tty;
73 }; 71 };
74 72
75 73
76 #endif /* _SDL_wsconsvideo_h */ 74 #endif /* _SDL_wsconsvideo_h */
75 /* vi: set ts=4 sw=4 expandtab: */