From b43c7f6aeac866d2411e0ec818a948951782c145 Mon Sep 17 00:00:00 2001 From: Eli Gottlieb Date: Tue, 25 May 2010 00:23:41 -0400 Subject: [PATCH] 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. --- include/SDL_shape.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/SDL_shape.h b/include/SDL_shape.h index d8cb3b209..11ed77220 100644 --- a/include/SDL_shape.h +++ b/include/SDL_shape.h @@ -43,13 +43,9 @@ typedef struct SDL_Shaped_Window SDL_Shaped_Window; * * \sa SDL_DestroyWindow() */ -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); +extern DECLSPEC SDL_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); -extern DECLSPEC SDL_Surface * SDLCALL SDL_LockWindowShape(const SDL_Shaped_Window *window); -extern DECLSPEC void SDLCALL SDL_UnlockWindowShape(const SDL_Shaped_Window *window); -extern DECLSPEC int SDLCALL SDL_PresentWindowShape(const SDL_Shaped_Window *window); - -extern DECLSPEC SDL_Window * SDLCALL SDL_LockShapedWindow(const SDL_Shaped_Window *window); -extern DECLSPEC void SDLCALL SDL_UnlockShapedWindow(const SDL_Shaped_Window *window); +extern DECLSPE SDL_bool SDLCALL SDL_WindowIsShaped(const SDL_Window *window); +extern DECLSPEC int SDLCALL SDL_SelectShapeRenderer(const SDL_Window *window); extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window);