src/video/SDL_shape.c
author Eli Gottlieb <eligottlieb@gmail.com>
Thu, 10 Jun 2010 17:37:19 -0400
changeset 4778 9838d3525a1b
parent 4776 29dcad9c58b3
child 4780 4f915a47b995
permissions -rw-r--r--
Stubbed out the new get/set parameter functions, added the start of the enum, union, and struct for those parameters themselves, and added doxygen comments throughout the SDL_shape.h header.
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@4769
    22
#include "SDL_config.h"
eligottlieb@4776
    23
eligottlieb@4769
    24
#include "SDL.h"
eligottlieb@4769
    25
#include "SDL_video.h"
eligottlieb@4769
    26
#include "SDL_sysvideo.h"
eligottlieb@4765
    27
#include "SDL_shape.h"
eligottlieb@4766
    28
eligottlieb@4769
    29
SDL_Window* SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
eligottlieb@4766
    30
	return NULL;
eligottlieb@4766
    31
}
eligottlieb@4766
    32
eligottlieb@4769
    33
SDL_bool SDL_WindowIsShaped(const SDL_Window *window) {
eligottlieb@4769
    34
	return SDL_FALSE;
eligottlieb@4769
    35
}
eligottlieb@4769
    36
eligottlieb@4769
    37
int SDL_SelectShapeRenderer(const SDL_Window *window) {
eligottlieb@4766
    38
	return -1;
eligottlieb@4766
    39
}
eligottlieb@4778
    40
eligottlieb@4778
    41
int SDL_SetShapeParameters(SDL_Window *window,SDL_WindowShapeMode shapeMode) {
eligottlieb@4778
    42
	if(window == NULL || !SDL_WindowIsShaped(window))
eligottlieb@4778
    43
		return -2;
eligottlieb@4778
    44
	return -3;
eligottlieb@4778
    45
}
eligottlieb@4778
    46
eligottlieb@4778
    47
int SDL_GetShapeParameters(SDL_Window *window,SDL_WindowShapeMode *shapeMode) {
eligottlieb@4778
    48
	if(shapeMode == NULL)
eligottlieb@4778
    49
		return -1;
eligottlieb@4778
    50
	if(window == NULL || !SDL_WindowIsShaped(window))
eligottlieb@4778
    51
		return -2;
eligottlieb@4778
    52
	return -3;
eligottlieb@4778
    53
}