Mercurial > sdl-ios-xcode
diff src/video/epoc/SDL_epocvideo.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 |
line wrap: on
line diff
--- a/src/video/epoc/SDL_epocvideo.h Sun May 21 17:27:13 2006 +0000 +++ b/src/video/epoc/SDL_epocvideo.h Sun May 28 13:04:16 2006 +0000 @@ -31,13 +31,14 @@ #ifndef _SDL_epocvideo_h #define _SDL_epocvideo_h -extern "C" { +extern "C" +{ #include "SDL_mouse.h" #include "../SDL_sysvideo.h" }; #include <e32std.h> -#include <bitdev.h> +#include <bitdev.h> #include <w32std.h> /* Hidden "this" pointer for the video functions */ @@ -47,44 +48,47 @@ #define SDL_NUMMODES 4 /* Private display data */ -struct SDL_PrivateVideoData { +struct SDL_PrivateVideoData +{ - SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; + SDL_Rect *SDL_modelist[SDL_NUMMODES + 1]; + + /* Epoc window server info */ - /* Epoc window server info */ - - RWsSession EPOC_WsSession; - RWindowGroup EPOC_WsWindowGroup; - TInt EPOC_WsWindowGroupID; - RWindow EPOC_WsWindow; - CWsScreenDevice* EPOC_WsScreen; - CWindowGc* EPOC_WindowGc; - TRequestStatus EPOC_WsEventStatus; - TRequestStatus EPOC_RedrawEventStatus; - TWsEvent EPOC_WsEvent; - TWsRedrawEvent EPOC_RedrawEvent; - #ifdef __WINS__ - CWsBitmap* EPOC_Bitmap; - #endif - TBool EPOC_IsWindowFocused; //!!Not used for anything yet! + RWsSession EPOC_WsSession; + RWindowGroup EPOC_WsWindowGroup; + TInt EPOC_WsWindowGroupID; + RWindow EPOC_WsWindow; + CWsScreenDevice *EPOC_WsScreen; + CWindowGc *EPOC_WindowGc; + TRequestStatus EPOC_WsEventStatus; + TRequestStatus EPOC_RedrawEventStatus; + TWsEvent EPOC_WsEvent; + TWsRedrawEvent EPOC_RedrawEvent; +#ifdef __WINS__ + CWsBitmap *EPOC_Bitmap; +#endif + TBool EPOC_IsWindowFocused; //!!Not used for anything yet! /* Screen hardware frame buffer info */ - TBool EPOC_HasFrameBuffer; - TInt EPOC_BytesPerPixel; - TInt EPOC_BytesPerScanLine; - TDisplayMode EPOC_DisplayMode; - TSize EPOC_ScreenSize; - TUint8* EPOC_FrameBuffer; /* if NULL in HW we can't do direct screen access */ - TInt EPOC_ScreenOffset; + TBool EPOC_HasFrameBuffer; + TInt EPOC_BytesPerPixel; + TInt EPOC_BytesPerScanLine; + TDisplayMode EPOC_DisplayMode; + TSize EPOC_ScreenSize; + TUint8 *EPOC_FrameBuffer; /* if NULL in HW we can't do direct screen access */ + TInt EPOC_ScreenOffset; /* Simulate double screen height */ - TBool EPOC_ShrinkedHeight; + TBool EPOC_ShrinkedHeight; }; -extern "C" { -extern void RedrawWindowL(_THIS); +extern "C" +{ + extern void RedrawWindowL (_THIS); }; #endif /* _SDL_epocvideo_h */ +/* vi: set ts=4 sw=4 expandtab: */