comparison src/video/SDL_shape.c @ 4780:4f915a47b995

Replaced the model of treating a window's shape as a render target with treating a window's shape as a surface passed into an SDL_SetWindowShape() function. I'll send this off to Andreas and Sam and start coding.
author Eli Gottlieb <eligottlieb@gmail.com>
date Sat, 19 Jun 2010 23:10:57 -0400
parents 9838d3525a1b
children fc4c775b468a
comparison
equal deleted inserted replaced
4779:bb179250fcb3 4780:4f915a47b995
32 32
33 SDL_bool SDL_WindowIsShaped(const SDL_Window *window) { 33 SDL_bool SDL_WindowIsShaped(const SDL_Window *window) {
34 return SDL_FALSE; 34 return SDL_FALSE;
35 } 35 }
36 36
37 int SDL_SelectShapeRenderer(const SDL_Window *window) { 37 int SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode parameters) {
38 return -1;
39 }
40
41 int SDL_SetShapeParameters(SDL_Window *window,SDL_WindowShapeMode shapeMode) {
42 if(window == NULL || !SDL_WindowIsShaped(window)) 38 if(window == NULL || !SDL_WindowIsShaped(window))
43 return -2; 39 return -2;
40 if(shape == NULL)
41 return -1;
44 return -3; 42 return -3;
45 } 43 }
46 44
47 int SDL_GetShapeParameters(SDL_Window *window,SDL_WindowShapeMode *shapeMode) { 45 int SDL_GetShapeParameters(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {
48 if(shapeMode == NULL) 46 if(shapeMode == NULL)