Mercurial > sdl-ios-xcode
comparison src/video/vgl/SDL_vglvideo.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 |
---|---|
33 #include "../SDL_sysvideo.h" | 33 #include "../SDL_sysvideo.h" |
34 | 34 |
35 /* Hidden "this" pointer for the video functions */ | 35 /* Hidden "this" pointer for the video functions */ |
36 #define _THIS SDL_VideoDevice *this | 36 #define _THIS SDL_VideoDevice *this |
37 | 37 |
38 typedef struct { | 38 typedef struct |
39 int ModeId; | 39 { |
40 int Depth; | 40 int ModeId; |
41 int Rmask; | 41 int Depth; |
42 int Gmask; | 42 int Rmask; |
43 int Bmask; | 43 int Gmask; |
44 VGLBitmap ModeInfo; | 44 int Bmask; |
45 VGLBitmap ModeInfo; | |
45 } VGLMode; | 46 } VGLMode; |
46 | 47 |
47 /* Private display data */ | 48 /* Private display data */ |
48 struct SDL_PrivateVideoData { | 49 struct SDL_PrivateVideoData |
49 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ | 50 { |
50 int SDL_nummodes[NUM_MODELISTS]; | 51 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ |
51 SDL_Rect **SDL_modelist[NUM_MODELISTS]; | 52 int SDL_nummodes[NUM_MODELISTS]; |
52 SDL_mutex *hw_lock; | 53 SDL_Rect **SDL_modelist[NUM_MODELISTS]; |
53 VGLMode *VGLCurMode; | 54 SDL_mutex *hw_lock; |
54 int flip_page; | 55 VGLMode *VGLCurMode; |
55 byte *flip_address[2]; | 56 int flip_page; |
57 byte *flip_address[2]; | |
56 }; | 58 }; |
57 /* Old variable names */ | 59 /* Old variable names */ |
58 #define SDL_nummodes (this->hidden->SDL_nummodes) | 60 #define SDL_nummodes (this->hidden->SDL_nummodes) |
59 #define SDL_modelist (this->hidden->SDL_modelist) | 61 #define SDL_modelist (this->hidden->SDL_modelist) |
60 #define hw_lock (this->hidden->hw_lock) | 62 #define hw_lock (this->hidden->hw_lock) |
61 #define VGLCurMode (this->hidden->VGLCurMode) | 63 #define VGLCurMode (this->hidden->VGLCurMode) |
62 #define flip_page (this->hidden->flip_page) | 64 #define flip_page (this->hidden->flip_page) |
63 #define flip_address (this->hidden->flip_address) | 65 #define flip_address (this->hidden->flip_address) |
64 | 66 |
65 #endif /* _SDL_vglvideo_h */ | 67 #endif /* _SDL_vglvideo_h */ |
68 /* vi: set ts=4 sw=4 expandtab: */ |