comparison 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
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
29 */ 29 */
30 30
31 #ifndef _SDL_epocvideo_h 31 #ifndef _SDL_epocvideo_h
32 #define _SDL_epocvideo_h 32 #define _SDL_epocvideo_h
33 33
34 extern "C" { 34 extern "C"
35 {
35 #include "SDL_mouse.h" 36 #include "SDL_mouse.h"
36 #include "../SDL_sysvideo.h" 37 #include "../SDL_sysvideo.h"
37 }; 38 };
38 39
39 #include <e32std.h> 40 #include <e32std.h>
40 #include <bitdev.h> 41 #include <bitdev.h>
41 #include <w32std.h> 42 #include <w32std.h>
42 43
43 /* Hidden "this" pointer for the video functions */ 44 /* Hidden "this" pointer for the video functions */
44 #define _THIS SDL_VideoDevice *_this 45 #define _THIS SDL_VideoDevice *_this
45 #define Private _this->hidden 46 #define Private _this->hidden
46 47
47 #define SDL_NUMMODES 4 48 #define SDL_NUMMODES 4
48 49
49 /* Private display data */ 50 /* Private display data */
50 struct SDL_PrivateVideoData { 51 struct SDL_PrivateVideoData
52 {
51 53
52 SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; 54 SDL_Rect *SDL_modelist[SDL_NUMMODES + 1];
53 55
54 /* Epoc window server info */ 56 /* Epoc window server info */
55 57
56 RWsSession EPOC_WsSession; 58 RWsSession EPOC_WsSession;
57 RWindowGroup EPOC_WsWindowGroup; 59 RWindowGroup EPOC_WsWindowGroup;
58 TInt EPOC_WsWindowGroupID; 60 TInt EPOC_WsWindowGroupID;
59 RWindow EPOC_WsWindow; 61 RWindow EPOC_WsWindow;
60 CWsScreenDevice* EPOC_WsScreen; 62 CWsScreenDevice *EPOC_WsScreen;
61 CWindowGc* EPOC_WindowGc; 63 CWindowGc *EPOC_WindowGc;
62 TRequestStatus EPOC_WsEventStatus; 64 TRequestStatus EPOC_WsEventStatus;
63 TRequestStatus EPOC_RedrawEventStatus; 65 TRequestStatus EPOC_RedrawEventStatus;
64 TWsEvent EPOC_WsEvent; 66 TWsEvent EPOC_WsEvent;
65 TWsRedrawEvent EPOC_RedrawEvent; 67 TWsRedrawEvent EPOC_RedrawEvent;
66 #ifdef __WINS__ 68 #ifdef __WINS__
67 CWsBitmap* EPOC_Bitmap; 69 CWsBitmap *EPOC_Bitmap;
68 #endif 70 #endif
69 TBool EPOC_IsWindowFocused; //!!Not used for anything yet! 71 TBool EPOC_IsWindowFocused; //!!Not used for anything yet!
70 72
71 /* Screen hardware frame buffer info */ 73 /* Screen hardware frame buffer info */
72 74
73 TBool EPOC_HasFrameBuffer; 75 TBool EPOC_HasFrameBuffer;
74 TInt EPOC_BytesPerPixel; 76 TInt EPOC_BytesPerPixel;
75 TInt EPOC_BytesPerScanLine; 77 TInt EPOC_BytesPerScanLine;
76 TDisplayMode EPOC_DisplayMode; 78 TDisplayMode EPOC_DisplayMode;
77 TSize EPOC_ScreenSize; 79 TSize EPOC_ScreenSize;
78 TUint8* EPOC_FrameBuffer; /* if NULL in HW we can't do direct screen access */ 80 TUint8 *EPOC_FrameBuffer; /* if NULL in HW we can't do direct screen access */
79 TInt EPOC_ScreenOffset; 81 TInt EPOC_ScreenOffset;
80 82
81 /* Simulate double screen height */ 83 /* Simulate double screen height */
82 TBool EPOC_ShrinkedHeight; 84 TBool EPOC_ShrinkedHeight;
83 }; 85 };
84 86
85 extern "C" { 87 extern "C"
86 extern void RedrawWindowL(_THIS); 88 {
89 extern void RedrawWindowL (_THIS);
87 }; 90 };
88 91
89 92
90 #endif /* _SDL_epocvideo_h */ 93 #endif /* _SDL_epocvideo_h */
94 /* vi: set ts=4 sw=4 expandtab: */