Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.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 |
---|---|
25 #define _SDL_dx5video_h | 25 #define _SDL_dx5video_h |
26 | 26 |
27 #include "directx.h" | 27 #include "directx.h" |
28 | 28 |
29 /* Private display data */ | 29 /* Private display data */ |
30 struct SDL_PrivateVideoData { | 30 struct SDL_PrivateVideoData |
31 { | |
31 LPDIRECTDRAW2 ddraw2; | 32 LPDIRECTDRAW2 ddraw2; |
32 LPDIRECTDRAWSURFACE3 SDL_primary; | 33 LPDIRECTDRAWSURFACE3 SDL_primary; |
33 LPDIRECTDRAWCLIPPER SDL_clipper; | 34 LPDIRECTDRAWCLIPPER SDL_clipper; |
34 LPDIRECTDRAWPALETTE SDL_palette; | 35 LPDIRECTDRAWPALETTE SDL_palette; |
35 PALETTEENTRY SDL_colors[256]; | 36 PALETTEENTRY SDL_colors[256]; |
36 int colorchange_expected; | 37 int colorchange_expected; |
37 | 38 |
38 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ | 39 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */ |
39 int SDL_nummodes[NUM_MODELISTS]; | 40 int SDL_nummodes[NUM_MODELISTS]; |
40 SDL_Rect **SDL_modelist[NUM_MODELISTS]; | 41 SDL_Rect **SDL_modelist[NUM_MODELISTS]; |
41 int SDL_modeindex[NUM_MODELISTS]; | 42 int SDL_modeindex[NUM_MODELISTS]; |
42 }; | 43 }; |
43 /* Old variable names */ | 44 /* Old variable names */ |
50 #define SDL_nummodes (this->hidden->SDL_nummodes) | 51 #define SDL_nummodes (this->hidden->SDL_nummodes) |
51 #define SDL_modelist (this->hidden->SDL_modelist) | 52 #define SDL_modelist (this->hidden->SDL_modelist) |
52 #define SDL_modeindex (this->hidden->SDL_modeindex) | 53 #define SDL_modeindex (this->hidden->SDL_modeindex) |
53 | 54 |
54 /* DirectX function pointers for video and events */ | 55 /* DirectX function pointers for video and events */ |
55 extern HRESULT (WINAPI *DDrawCreate)( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter ); | 56 extern HRESULT (WINAPI * DDrawCreate) (GUID FAR * lpGUID, |
56 extern HRESULT (WINAPI *DInputCreate)(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUT *ppDI, LPUNKNOWN punkOuter); | 57 LPDIRECTDRAW FAR * lplpDD, |
58 IUnknown FAR * pUnkOuter); | |
59 extern HRESULT (WINAPI * DInputCreate) (HINSTANCE hinst, DWORD dwVersion, | |
60 LPDIRECTINPUT * ppDI, | |
61 LPUNKNOWN punkOuter); | |
57 | 62 |
58 /* DirectDraw error reporting function */ | 63 /* DirectDraw error reporting function */ |
59 extern void SetDDerror(const char *function, int code); | 64 extern void SetDDerror (const char *function, int code); |
60 | 65 |
61 #endif /* _SDL_dx5video_h */ | 66 #endif /* _SDL_dx5video_h */ |
67 /* vi: set ts=4 sw=4 expandtab: */ |