src/video/SDL_shape.c
author Eli Gottlieb <eligottlieb@gmail.com>
Fri, 21 May 2010 17:28:12 -0400
changeset 4766 7b50faf23907
parent 4765 5ff305de5834
child 4769 83f9b95da263
permissions -rw-r--r--
Moved SDL_shape.h, and building out the API as needed by SDL_Eyes.
eligottlieb@4765
     1
/*
eligottlieb@4765
     2
    SDL - Simple DirectMedia Layer
eligottlieb@4765
     3
    Copyright (C) 2010 Eli Gottlieb
eligottlieb@4765
     4
eligottlieb@4765
     5
    This library is free software; you can redistribute it and/or
eligottlieb@4765
     6
    modify it under the terms of the GNU Lesser General Public
eligottlieb@4765
     7
    License as published by the Free Software Foundation; either
eligottlieb@4765
     8
    version 2.1 of the License, or (at your option) any later version.
eligottlieb@4765
     9
eligottlieb@4765
    10
    This library is distributed in the hope that it will be useful,
eligottlieb@4765
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
eligottlieb@4765
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
eligottlieb@4765
    13
    Lesser General Public License for more details.
eligottlieb@4765
    14
eligottlieb@4765
    15
    You should have received a copy of the GNU Lesser General Public
eligottlieb@4765
    16
    License along with this library; if not, write to the Free Software
eligottlieb@4765
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
eligottlieb@4765
    18
eligottlieb@4765
    19
    Eli Gottlieb
eligottlieb@4765
    20
    eligottlieb@gmail.com
eligottlieb@4765
    21
*/
eligottlieb@4765
    22
eligottlieb@4765
    23
#include "SDL_shape.h"
eligottlieb@4766
    24
eligottlieb@4766
    25
struct SDL_Shaped_Window {
eligottlieb@4766
    26
	SDL_Window *window;
eligottlieb@4766
    27
	SDL_Surface *shape_mask;
eligottlieb@4766
    28
}
eligottlieb@4766
    29
eligottlieb@4766
    30
SDL_Shaped_Window * SDLCALL SDL_CreateShapedWindow(const char *title,
eligottlieb@4766
    31
						   unsigned int x,unsigned int y,
eligottlieb@4766
    32
						   unsigned int w,unsigned int h,
eligottlieb@4766
    33
						   Uint32 flags) {
eligottlieb@4766
    34
	//TODO: Fill in stub of SDL_CreatedShapedWindow
eligottlieb@4766
    35
	return NULL;
eligottlieb@4766
    36
}
eligottlieb@4766
    37
eligottlieb@4766
    38
int SDLCALL SDL_PresentShape(const SDL_Shaped_Window *window) {
eligottlieb@4766
    39
	//TODO: Fill in stub of SDL_PresentShape
eligottlieb@4766
    40
	return -1;
eligottlieb@4766
    41
}
eligottlieb@4766
    42
eligottlieb@4766
    43
void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window) {
eligottlieb@4766
    44
	//TODO: Fill in stub of SDL_DestroyShapedWindow
eligottlieb@4766
    45
	return;
eligottlieb@4766
    46
}