Mercurial > sdl-ios-xcode
comparison src/video/bwindow/SDL_lowvideo.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 | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
30 | 30 |
31 /* Hidden "this" pointer for the video functions */ | 31 /* Hidden "this" pointer for the video functions */ |
32 #define _THIS SDL_VideoDevice *_this | 32 #define _THIS SDL_VideoDevice *_this |
33 | 33 |
34 /* Private display data */ | 34 /* Private display data */ |
35 struct SDL_PrivateVideoData { | 35 struct SDL_PrivateVideoData |
36 /* The main window */ | 36 { |
37 SDL_BWin *SDL_Win; | 37 /* The main window */ |
38 SDL_BWin *SDL_Win; | |
38 | 39 |
39 /* The fullscreen mode list */ | 40 /* The fullscreen mode list */ |
40 display_mode saved_mode; | 41 display_mode saved_mode; |
41 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ | 42 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ |
42 int SDL_nummodes[NUM_MODELISTS]; | 43 int SDL_nummodes[NUM_MODELISTS]; |
43 SDL_Rect **SDL_modelist[NUM_MODELISTS]; | 44 SDL_Rect **SDL_modelist[NUM_MODELISTS]; |
44 | 45 |
45 /* A completely clear cursor */ | 46 /* A completely clear cursor */ |
46 WMcursor *BlankCursor; | 47 WMcursor *BlankCursor; |
47 | 48 |
48 SDL_Overlay *overlay; | 49 SDL_Overlay *overlay; |
49 }; | 50 }; |
50 /* Old variable names */ | 51 /* Old variable names */ |
51 #define SDL_Win (_this->hidden->SDL_Win) | 52 #define SDL_Win (_this->hidden->SDL_Win) |
52 #define saved_mode (_this->hidden->saved_mode) | 53 #define saved_mode (_this->hidden->saved_mode) |
53 #define SDL_nummodes (_this->hidden->SDL_nummodes) | 54 #define SDL_nummodes (_this->hidden->SDL_nummodes) |
54 #define SDL_modelist (_this->hidden->SDL_modelist) | 55 #define SDL_modelist (_this->hidden->SDL_modelist) |
55 #define SDL_BlankCursor (_this->hidden->BlankCursor) | 56 #define SDL_BlankCursor (_this->hidden->BlankCursor) |
56 #define current_overlay (_this->hidden->overlay) | 57 #define current_overlay (_this->hidden->overlay) |
57 | 58 |
58 #endif /* _SDL_lowvideo_h */ | 59 #endif /* _SDL_lowvideo_h */ |
60 /* vi: set ts=4 sw=4 expandtab: */ |