Mercurial > sdl-ios-xcode
comparison src/video/svga/SDL_svgavideo.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 | 011b633fa0c9 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
29 | 29 |
30 /* Hidden "this" pointer for the video functions */ | 30 /* Hidden "this" pointer for the video functions */ |
31 #define _THIS SDL_VideoDevice *this | 31 #define _THIS SDL_VideoDevice *this |
32 | 32 |
33 /* Private display data */ | 33 /* Private display data */ |
34 struct SDL_PrivateVideoData { | 34 struct SDL_PrivateVideoData |
35 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ | 35 { |
36 int SDL_nummodes[NUM_MODELISTS]; | 36 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ |
37 SDL_Rect **SDL_modelist[NUM_MODELISTS]; | 37 int SDL_nummodes[NUM_MODELISTS]; |
38 int *SDL_vgamode[NUM_MODELISTS]; | 38 SDL_Rect **SDL_modelist[NUM_MODELISTS]; |
39 int *SDL_vgamode[NUM_MODELISTS]; | |
39 | 40 |
40 /* information for double-buffering */ | 41 /* information for double-buffering */ |
41 int flip_page; | 42 int flip_page; |
42 int flip_offset[2]; | 43 int flip_offset[2]; |
43 Uint8 *flip_address[2]; | 44 Uint8 *flip_address[2]; |
44 | 45 |
45 /* Set to 1 if we're in banked video mode */ | 46 /* Set to 1 if we're in banked video mode */ |
46 int banked; | 47 int banked; |
47 }; | 48 }; |
48 /* Old variable names */ | 49 /* Old variable names */ |
49 #define SDL_nummodes (this->hidden->SDL_nummodes) | 50 #define SDL_nummodes (this->hidden->SDL_nummodes) |
50 #define SDL_modelist (this->hidden->SDL_modelist) | 51 #define SDL_modelist (this->hidden->SDL_modelist) |
51 #define SDL_vgamode (this->hidden->SDL_vgamode) | 52 #define SDL_vgamode (this->hidden->SDL_vgamode) |
53 #define flip_offset (this->hidden->flip_offset) | 54 #define flip_offset (this->hidden->flip_offset) |
54 #define flip_address (this->hidden->flip_address) | 55 #define flip_address (this->hidden->flip_address) |
55 #define banked (this->hidden->banked) | 56 #define banked (this->hidden->banked) |
56 | 57 |
57 #endif /* _SDL_svgavideo_h */ | 58 #endif /* _SDL_svgavideo_h */ |
58 | 59 /* vi: set ts=4 sw=4 expandtab: */ |