comparison src/video/SDL_sysvideo.h @ 1673:624e1412fbba SDL-1.3

Keyboard code update in progress
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jun 2006 09:11:59 +0000
parents 89f7510fe17a
children d33dcfc3fde7
comparison
equal deleted inserted replaced
1672:8e754b82cecc 1673:624e1412fbba
211 or if the application is shutting down the video subsystem. 211 or if the application is shutting down the video subsystem.
212 */ 212 */
213 void (*VideoQuit) (_THIS); 213 void (*VideoQuit) (_THIS);
214 214
215 /* * * */ 215 /* * * */
216 /* Hardware acceleration functions */
217
218 /* The pixel format used when SDL_CreateRGBSurface creates SDL_HWSURFACEs with alpha */
219 SDL_PixelFormat *displayformatalphapixel;
220
221 /* Allocates a surface in video memory */
222 int (*AllocHWSurface) (_THIS, SDL_Surface * surface);
223
224 /* Sets the hardware accelerated blit function, if any, based
225 on the current flags of the surface (colorkey, alpha, etc.)
226 */
227 int (*CheckHWBlit) (_THIS, SDL_Surface * src, SDL_Surface * dst);
228
229 /* Fills a surface rectangle with the given color */
230 int (*FillHWRect) (_THIS, SDL_Surface * dst, SDL_Rect * rect,
231 Uint32 color);
232
233 /* Sets video mem colorkey and accelerated blit function */
234 int (*SetHWColorKey) (_THIS, SDL_Surface * surface, Uint32 key);
235
236 /* Sets per surface hardware alpha value */
237 int (*SetHWAlpha) (_THIS, SDL_Surface * surface, Uint8 value);
238
239 /* Returns a readable/writable surface */
240 int (*LockHWSurface) (_THIS, SDL_Surface * surface);
241 void (*UnlockHWSurface) (_THIS, SDL_Surface * surface);
242
243 /* Frees a previously allocated video surface */
244 void (*FreeHWSurface) (_THIS, SDL_Surface * surface);
245
246 /* * * */
247 /* Gamma support */ 216 /* Gamma support */
248 217
249 /* Set the gamma correction directly (emulated with gamma ramps) */ 218 /* Set the gamma correction directly (emulated with gamma ramps) */
250 int (*SetGamma) (_THIS, float red, float green, float blue); 219 int (*SetGamma) (_THIS, float red, float green, float blue);
251 220
300 */ 269 */
301 void (*CheckMouseMode) (_THIS); 270 void (*CheckMouseMode) (_THIS);
302 271
303 /* * * */ 272 /* * * */
304 /* Event manager functions */ 273 /* Event manager functions */
305
306 /* Initialize keyboard mapping for this driver */
307 void (*InitOSKeymap) (_THIS);
308 274
309 /* Handle any queued OS events */ 275 /* Handle any queued OS events */
310 void (*PumpEvents) (_THIS); 276 void (*PumpEvents) (_THIS);
311 277
312 /* * * */ 278 /* * * */