Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_ph_image_c.h @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | d910939febfa |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
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_HWAccelBlit(SDL_Surface * src, SDL_Rect * srcrect, | |
53 SDL_Surface * dst, SDL_Rect * dstrect); | |
52 extern int ph_UpdateHWInfo(_THIS); | 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: */ |