comparison src/video/nanox/SDL_nxvideo.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
40 40
41 // Hidden "this" pointer for the video functions 41 // Hidden "this" pointer for the video functions
42 #define _THIS SDL_VideoDevice * this 42 #define _THIS SDL_VideoDevice * this
43 43
44 // Private display data 44 // Private display data
45 typedef struct NX_SDL_VISUAL { 45 typedef struct NX_SDL_VISUAL
46 int bpp ; 46 {
47 Uint32 red_mask ; 47 int bpp;
48 Uint32 green_mask ; 48 Uint32 red_mask;
49 Uint32 blue_mask ; 49 Uint32 green_mask;
50 } nx_sdl_visual_t ; 50 Uint32 blue_mask;
51 } nx_sdl_visual_t;
51 52
52 struct SDL_PrivateVideoData { 53 struct SDL_PrivateVideoData
53 GR_WINDOW_ID SDL_Window ; 54 {
54 GR_WINDOW_ID FSwindow ; 55 GR_WINDOW_ID SDL_Window;
56 GR_WINDOW_ID FSwindow;
55 // Flag: true if we have been passed a window 57 // Flag: true if we have been passed a window
56 char * SDL_windowid ; 58 char *SDL_windowid;
57 GR_GC_ID GC ; 59 GR_GC_ID GC;
58 unsigned char * Image ; 60 unsigned char *Image;
59 unsigned char * Image_buff ; /* for GrArea*/ 61 unsigned char *Image_buff; /* for GrArea */
60 unsigned char * Clientfb; /* for DirectFB*/ 62 unsigned char *Clientfb; /* for DirectFB */
61 nx_sdl_visual_t SDL_Visual ; 63 nx_sdl_visual_t SDL_Visual;
62 // The current list of available video modes 64 // The current list of available video modes
63 SDL_Rect ** modelist ; 65 SDL_Rect **modelist;
64 int currently_fullscreen ; 66 int currently_fullscreen;
65 // for fullscreen 67 // for fullscreen
66 int OffsetX, OffsetY ; 68 int OffsetX, OffsetY;
67 // for GammaRamp 69 // for GammaRamp
68 Uint16 * GammaRamp_R, * GammaRamp_G, * GammaRamp_B ; 70 Uint16 *GammaRamp_R, *GammaRamp_G, *GammaRamp_B;
69 // for GrArea, r_mask, g_mask, b_mask 71 // for GrArea, r_mask, g_mask, b_mask
70 int pixel_type ; 72 int pixel_type;
71 #ifdef ENABLE_NANOX_DIRECT_FB 73 #ifdef ENABLE_NANOX_DIRECT_FB
72 GR_WINDOW_FB_INFO fbinfo; 74 GR_WINDOW_FB_INFO fbinfo;
73 #endif 75 #endif
74 } ; 76 };
75 77
76 #define SDL_Window (this -> hidden -> SDL_Window) 78 #define SDL_Window (this -> hidden -> SDL_Window)
77 #define FSwindow (this -> hidden -> FSwindow) 79 #define FSwindow (this -> hidden -> FSwindow)
78 #define SDL_windowid (this -> hidden -> SDL_windowid) 80 #define SDL_windowid (this -> hidden -> SDL_windowid)
79 #define SDL_GC (this -> hidden -> GC) 81 #define SDL_GC (this -> hidden -> GC)
89 #define GammaRamp_G (this -> hidden -> GammaRamp_G) 91 #define GammaRamp_G (this -> hidden -> GammaRamp_G)
90 #define GammaRamp_B (this -> hidden -> GammaRamp_B) 92 #define GammaRamp_B (this -> hidden -> GammaRamp_B)
91 #define pixel_type (this -> hidden -> pixel_type) 93 #define pixel_type (this -> hidden -> pixel_type)
92 #define fbinfo (this -> hidden -> fbinfo) 94 #define fbinfo (this -> hidden -> fbinfo)
93 95
94 #define CI_SIZE 256 // color index size 96 #define CI_SIZE 256 // color index size
95 97
96 #endif // _SDL_nxvideo_h 98 #endif // _SDL_nxvideo_h
99 /* vi: set ts=4 sw=4 expandtab: */