comparison src/video/maccommon/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 0801c9fdbdd6
children
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
43 #include "../SDL_sysvideo.h" 43 #include "../SDL_sysvideo.h"
44 44
45 /* Hidden "this" pointer for the video functions */ 45 /* Hidden "this" pointer for the video functions */
46 #define _THIS SDL_VideoDevice *this 46 #define _THIS SDL_VideoDevice *this
47 47
48 #if !TARGET_API_MAC_CARBON /* not available in OS X (or more accurately, Carbon) */ 48 #if !TARGET_API_MAC_CARBON /* not available in OS X (or more accurately, Carbon) */
49 /* Global QuickDraw data */ 49 /* Global QuickDraw data */
50 extern QDGlobals *theQD; 50 extern QDGlobals *theQD;
51 #endif 51 #endif
52 52
53 /* Private display data */ 53 /* Private display data */
54 struct SDL_PrivateVideoData { 54 struct SDL_PrivateVideoData
55 GDevice **SDL_Display; 55 {
56 WindowRef SDL_Window; 56 GDevice **SDL_Display;
57 SDL_Rect **SDL_modelist; 57 WindowRef SDL_Window;
58 CTabHandle SDL_CTab; 58 SDL_Rect **SDL_modelist;
59 PaletteHandle SDL_CPal; 59 CTabHandle SDL_CTab;
60 PaletteHandle SDL_CPal;
60 61
61 #if TARGET_API_MAC_CARBON 62 #if TARGET_API_MAC_CARBON
62 /* For entering and leaving fullscreen mode */ 63 /* For entering and leaving fullscreen mode */
63 Ptr fullscreen_ctx; 64 Ptr fullscreen_ctx;
64 #endif 65 #endif
65 66
66 /* The current window document style */ 67 /* The current window document style */
67 int current_style; 68 int current_style;
68 69
69 /* Information about the last cursor position */ 70 /* Information about the last cursor position */
70 Point last_where; 71 Point last_where;
71 72
72 /* Information about the last keys down */ 73 /* Information about the last keys down */
73 EventModifiers last_mods; 74 EventModifiers last_mods;
74 KeyMap last_keys; 75 KeyMap last_keys;
75 76
76 /* A handle to the Apple Menu */ 77 /* A handle to the Apple Menu */
77 MenuRef apple_menu; 78 MenuRef apple_menu;
78 79
79 /* Information used by DrawSprocket driver */ 80 /* Information used by DrawSprocket driver */
80 struct DSpInfo *dspinfo; 81 struct DSpInfo *dspinfo;
81 82
82 #if SDL_VIDEO_OPENGL 83 #if SDL_VIDEO_OPENGL
83 AGLContext appleGLContext; 84 AGLContext appleGLContext;
84 85
85 void *libraryHandle; 86 void *libraryHandle;
86 #endif 87 #endif
87 }; 88 };
88 /* Old variable names */ 89 /* Old variable names */
89 #define SDL_Display (this->hidden->SDL_Display) 90 #define SDL_Display (this->hidden->SDL_Display)
90 #define SDL_Window (this->hidden->SDL_Window) 91 #define SDL_Window (this->hidden->SDL_Window)
98 #define last_keys (this->hidden->last_keys) 99 #define last_keys (this->hidden->last_keys)
99 #define apple_menu (this->hidden->apple_menu) 100 #define apple_menu (this->hidden->apple_menu)
100 #define glContext (this->hidden->appleGLContext) 101 #define glContext (this->hidden->appleGLContext)
101 102
102 #endif /* _SDL_lowvideo_h */ 103 #endif /* _SDL_lowvideo_h */
104 /* vi: set ts=4 sw=4 expandtab: */