comparison src/video/ps2gs/SDL_gsvideo.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
36 /* Hidden "this" pointer for the video functions */ 36 /* Hidden "this" pointer for the video functions */
37 #define _THIS SDL_VideoDevice *this 37 #define _THIS SDL_VideoDevice *this
38 38
39 39
40 /* Private display data */ 40 /* Private display data */
41 struct SDL_PrivateVideoData { 41 struct SDL_PrivateVideoData
42 /* Gotta love that simple PS2 graphics interface. :) */ 42 {
43 int console_fd; 43 /* Gotta love that simple PS2 graphics interface. :) */
44 int memory_fd; 44 int console_fd;
45 struct ps2_screeninfo saved_vinfo; 45 int memory_fd;
46 struct ps2_screeninfo saved_vinfo;
46 47
47 /* Ye olde linux keyboard code */ 48 /* Ye olde linux keyboard code */
48 int current_vt; 49 int current_vt;
49 int saved_vt; 50 int saved_vt;
50 int keyboard_fd; 51 int keyboard_fd;
51 int saved_kbd_mode; 52 int saved_kbd_mode;
52 struct termios saved_kbd_termios; 53 struct termios saved_kbd_termios;
53 54
54 /* Ye olde linux mouse code */ 55 /* Ye olde linux mouse code */
55 int mouse_fd; 56 int mouse_fd;
56 int cursor_drawn; 57 int cursor_drawn;
57 58
58 /* The memory mapped DMA area and associated variables */ 59 /* The memory mapped DMA area and associated variables */
59 caddr_t mapped_mem; 60 caddr_t mapped_mem;
60 int pixels_len; 61 int pixels_len;
61 int mapped_len; 62 int mapped_len;
62 struct ps2_image screen_image; 63 struct ps2_image screen_image;
63 int screen_image_size; 64 int screen_image_size;
64 unsigned long long *head_tags_mem; 65 unsigned long long *head_tags_mem;
65 unsigned long long *image_tags_mem; 66 unsigned long long *image_tags_mem;
66 unsigned long long *tex_tags_mem; 67 unsigned long long *tex_tags_mem;
67 unsigned long long *scale_tags_mem; 68 unsigned long long *scale_tags_mem;
68 int dma_pending; 69 int dma_pending;
69 }; 70 };
70 /* Old variable names */ 71 /* Old variable names */
71 #define console_fd (this->hidden->console_fd) 72 #define console_fd (this->hidden->console_fd)
72 #define memory_fd (this->hidden->memory_fd) 73 #define memory_fd (this->hidden->memory_fd)
73 #define saved_vinfo (this->hidden->saved_vinfo) 74 #define saved_vinfo (this->hidden->saved_vinfo)
88 #define tex_tags_mem (this->hidden->tex_tags_mem) 89 #define tex_tags_mem (this->hidden->tex_tags_mem)
89 #define scale_tags_mem (this->hidden->scale_tags_mem) 90 #define scale_tags_mem (this->hidden->scale_tags_mem)
90 #define dma_pending (this->hidden->dma_pending) 91 #define dma_pending (this->hidden->dma_pending)
91 92
92 /* Shared between the mouse and video code for screen update scaling */ 93 /* Shared between the mouse and video code for screen update scaling */
93 extern int scaleimage_nonblock(int fd, 94 extern int scaleimage_nonblock (int fd,
94 unsigned long long *tm, unsigned long long *sm); 95 unsigned long long *tm,
96 unsigned long long *sm);
95 #endif /* _SDL_gsvideo_h */ 97 #endif /* _SDL_gsvideo_h */
98 /* vi: set ts=4 sw=4 expandtab: */