Mercurial > sdl-ios-xcode
comparison include/SDL_shape.h @ 4768:4435e014eacc
Changed API for shaped windows to make it much, much simpler. A shaped window's shape mask is now accessed as a render target, which means we can get at it with blit and draw functions, as well as (most likely) OpenGL.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Tue, 25 May 2010 00:23:41 -0400 |
parents | dc3fd9b7fcbc |
children | 83f9b95da263 |
comparison
equal
deleted
inserted
replaced
4767:dc3fd9b7fcbc | 4768:4435e014eacc |
---|---|
41 * | 41 * |
42 * \return The id of the window created, or zero if window creation failed. | 42 * \return The id of the window created, or zero if window creation failed. |
43 * | 43 * |
44 * \sa SDL_DestroyWindow() | 44 * \sa SDL_DestroyWindow() |
45 */ | 45 */ |
46 extern DECLSPEC SDL_Shaped_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); | 46 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); |
47 | 47 |
48 extern DECLSPEC SDL_Surface * SDLCALL SDL_LockWindowShape(const SDL_Shaped_Window *window); | 48 extern DECLSPE SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window); |
49 extern DECLSPEC void SDLCALL SDL_UnlockWindowShape(const SDL_Shaped_Window *window); | 49 extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window); |
50 extern DECLSPEC int SDLCALL SDL_PresentWindowShape(const SDL_Shaped_Window *window); | |
51 | |
52 extern DECLSPEC SDL_Window * SDLCALL SDL_LockShapedWindow(const SDL_Shaped_Window *window); | |
53 extern DECLSPEC void SDLCALL SDL_UnlockShapedWindow(const SDL_Shaped_Window *window); | |
54 | 50 |
55 extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window); | 51 extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window); |