Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_image_c.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 |
---|---|
27 #include "../../events/SDL_events_c.h" | 27 #include "../../events/SDL_events_c.h" |
28 #include "SDL_ph_video.h" | 28 #include "SDL_ph_video.h" |
29 | 29 |
30 struct private_hwdata | 30 struct private_hwdata |
31 { | 31 { |
32 PdOffscreenContext_t* offscreenctx; | 32 PdOffscreenContext_t *offscreenctx; |
33 PdOSCCreateLockParams_t crlockparam; | 33 PdOSCCreateLockParams_t crlockparam; |
34 PdOSCLockParams_t lockparam; | 34 PdOSCLockParams_t lockparam; |
35 Uint32 colorkey; | 35 Uint32 colorkey; |
36 }; | 36 }; |
37 | 37 |
38 extern int ph_SetupImage(_THIS, SDL_Surface* screen); | 38 extern int ph_SetupImage (_THIS, SDL_Surface * screen); |
39 extern void ph_DestroyImage(_THIS, SDL_Surface* screen); | 39 extern void ph_DestroyImage (_THIS, SDL_Surface * screen); |
40 extern int ph_SetupUpdateFunction(_THIS, SDL_Surface* screen, Uint32 flags); | 40 extern int ph_SetupUpdateFunction (_THIS, SDL_Surface * screen, Uint32 flags); |
41 | 41 |
42 extern int ph_AllocHWSurface(_THIS, SDL_Surface* surface); | 42 extern int ph_AllocHWSurface (_THIS, SDL_Surface * surface); |
43 extern void ph_FreeHWSurface(_THIS, SDL_Surface* surface); | 43 extern void ph_FreeHWSurface (_THIS, SDL_Surface * surface); |
44 extern int ph_CheckHWBlit(_THIS, SDL_Surface *src, SDL_Surface *dst); | 44 extern int ph_CheckHWBlit (_THIS, SDL_Surface * src, SDL_Surface * dst); |
45 extern int ph_FillHWRect(_THIS, SDL_Surface* surface, SDL_Rect* rect, Uint32 color); | 45 extern int ph_FillHWRect (_THIS, SDL_Surface * surface, SDL_Rect * rect, |
46 extern int ph_LockHWSurface(_THIS, SDL_Surface* surface); | 46 Uint32 color); |
47 extern void ph_UnlockHWSurface(_THIS, SDL_Surface* surface); | 47 extern int ph_LockHWSurface (_THIS, SDL_Surface * surface); |
48 extern int ph_FlipHWSurface(_THIS, SDL_Surface* surface); | 48 extern void ph_UnlockHWSurface (_THIS, SDL_Surface * surface); |
49 extern int ph_SetHWColorKey(_THIS, SDL_Surface* surface, Uint32 key); | 49 extern int ph_FlipHWSurface (_THIS, SDL_Surface * surface); |
50 extern int ph_SetHWAlpha(_THIS, SDL_Surface* surface, Uint8 alpha); | 50 extern int ph_SetHWColorKey (_THIS, SDL_Surface * surface, Uint32 key); |
51 extern int ph_HWAccelBlit(SDL_Surface* src, SDL_Rect *srcrect, SDL_Surface* dst, SDL_Rect* dstrect); | 51 extern int ph_SetHWAlpha (_THIS, SDL_Surface * surface, Uint8 alpha); |
52 extern int ph_UpdateHWInfo(_THIS); | 52 extern int ph_HWAccelBlit (SDL_Surface * src, SDL_Rect * srcrect, |
53 SDL_Surface * dst, SDL_Rect * dstrect); | |
54 extern int ph_UpdateHWInfo (_THIS); | |
53 | 55 |
54 extern void ph_NormalUpdate(_THIS, int numrects, SDL_Rect* rects); | 56 extern void ph_NormalUpdate (_THIS, int numrects, SDL_Rect * rects); |
55 extern void ph_OCUpdate(_THIS, int numrects, SDL_Rect* rects); | 57 extern void ph_OCUpdate (_THIS, int numrects, SDL_Rect * rects); |
56 extern void ph_OCDCUpdate(_THIS, int numrects, SDL_Rect* rects); | 58 extern void ph_OCDCUpdate (_THIS, int numrects, SDL_Rect * rects); |
57 extern void ph_OpenGLUpdate(_THIS, int numrects, SDL_Rect* rects); | 59 extern void ph_OpenGLUpdate (_THIS, int numrects, SDL_Rect * rects); |
58 | 60 |
59 #endif /* __SDL_PH_IMAGE_H__ */ | 61 #endif /* __SDL_PH_IMAGE_H__ */ |
62 /* vi: set ts=4 sw=4 expandtab: */ |