comparison src/video/nanox/SDL_nxvideo.h @ 471:26dafefeebb2

Date: Sat, 24 Aug 2002 22:20:01 -0600 From: "Greg Haerr" Subject: Announce: sdl-nanox-patch Sam, I've created an update patch for enhanced Nano-X support with SDL. I've created the patch against SDL-1.2.4. I'd appreciate it if you would apply it to the next SDL version. Enhancements include: 1. Small bugfixes to compile without errors 2. Support for direct client-side framebuffer access with configure option 3. Add dynamic pixel type support for hardware framebuffer; eliminating the need for compile-time configuration option. I've updated the README.NanoX file with the details. This version has been tested with Microwindows v0.89pre9 CVS and SMPEG 0.4.4. I've added multi-threading support to Microwindows to support the multi-threaded SMPEG, and all works fine. To turn on thread safety in Microwindows, use THREADSAFE=Y in the Microwindows config file. Thanks! Regards, Greg Founder, The Microwindows Project http://microwindows.org
author Sam Lantinga <slouken@libsdl.org>
date Sun, 25 Aug 2002 06:21:49 +0000
parents f6ffac90895c
children b8d311d90021
comparison
equal deleted inserted replaced
470:877b992f2d0c 471:26dafefeebb2
53 GR_WINDOW_ID FSwindow ; 53 GR_WINDOW_ID FSwindow ;
54 // Flag: true if we have been passed a window 54 // Flag: true if we have been passed a window
55 char * SDL_windowid ; 55 char * SDL_windowid ;
56 GR_GC_ID GC ; 56 GR_GC_ID GC ;
57 unsigned char * Image ; 57 unsigned char * Image ;
58 unsigned char * Image_buff ; 58 unsigned char * Image_buff ; /* for GrArea*/
59 unsigned char * Clientfb; /* for DirectFB*/
59 nx_sdl_visual_t SDL_Visual ; 60 nx_sdl_visual_t SDL_Visual ;
60 // The current list of available video modes 61 // The current list of available video modes
61 SDL_Rect ** modelist ; 62 SDL_Rect ** modelist ;
62 int currently_fullscreen ; 63 int currently_fullscreen ;
63 // for fullscreen 64 // for fullscreen
64 int OffsetX, OffsetY ; 65 int OffsetX, OffsetY ;
65 // for GammaRamp 66 // for GammaRamp
66 Uint16 * GammaRamp_R, * GammaRamp_G, * GammaRamp_B ; 67 Uint16 * GammaRamp_R, * GammaRamp_G, * GammaRamp_B ;
67 // for GrArea, r_mask, g_mask, b_mask 68 // for GrArea, r_mask, g_mask, b_mask
68 int pixel_type ; 69 int pixel_type ;
70 #ifdef ENABLE_NANOX_DIRECT_FB
71 GR_WINDOW_FB_INFO fbinfo;
72 #endif
69 } ; 73 } ;
70 74
71 #define SDL_Window (this -> hidden -> SDL_Window) 75 #define SDL_Window (this -> hidden -> SDL_Window)
72 #define FSwindow (this -> hidden -> FSwindow) 76 #define FSwindow (this -> hidden -> FSwindow)
73 #define SDL_windowid (this -> hidden -> SDL_windowid) 77 #define SDL_windowid (this -> hidden -> SDL_windowid)
74 #define SDL_GC (this -> hidden -> GC) 78 #define SDL_GC (this -> hidden -> GC)
75 #define SDL_Image (this -> hidden -> Image) 79 #define SDL_Image (this -> hidden -> Image)
76 #define Image_buff (this -> hidden -> Image_buff) 80 #define Image_buff (this -> hidden -> Image_buff)
81 #define Clientfb (this -> hidden -> Clientfb)
77 #define SDL_Visual (this -> hidden -> SDL_Visual) 82 #define SDL_Visual (this -> hidden -> SDL_Visual)
78 #define SDL_modelist (this -> hidden -> modelist) 83 #define SDL_modelist (this -> hidden -> modelist)
79 #define currently_fullscreen (this -> hidden -> currently_fullscreen) 84 #define currently_fullscreen (this -> hidden -> currently_fullscreen)
80 #define OffsetX (this -> hidden -> OffsetX) 85 #define OffsetX (this -> hidden -> OffsetX)
81 #define OffsetY (this -> hidden -> OffsetY) 86 #define OffsetY (this -> hidden -> OffsetY)
82 #define GammaRamp_R (this -> hidden -> GammaRamp_R) 87 #define GammaRamp_R (this -> hidden -> GammaRamp_R)
83 #define GammaRamp_G (this -> hidden -> GammaRamp_G) 88 #define GammaRamp_G (this -> hidden -> GammaRamp_G)
84 #define GammaRamp_B (this -> hidden -> GammaRamp_B) 89 #define GammaRamp_B (this -> hidden -> GammaRamp_B)
85 #define pixel_type (this -> hidden -> pixel_type) 90 #define pixel_type (this -> hidden -> pixel_type)
91 #define fbinfo (this -> hidden -> fbinfo)
86 92
87 #define CI_SIZE 256 // color index size 93 #define CI_SIZE 256 // color index size
88 94
89 #endif // _SDL_nxvideo_h 95 #endif // _SDL_nxvideo_h