src/video/x11/SDL_x11shape.h
author Sam Lantinga
Tue, 08 Feb 2011 16:50:51 -0800
changeset 5229 c015d3e63631
parent 4809 329708ffe2a7
child 5535 96594ac5fd1a
permissions -rw-r--r--
Fixed setting the texture unit, still doesn't work.
eligottlieb@4783
     1
/*
eligottlieb@4783
     2
    SDL - Simple DirectMedia Layer
eligottlieb@4783
     3
    Copyright (C) 2010 Eli Gottlieb
eligottlieb@4783
     4
eligottlieb@4783
     5
    This library is free software; you can redistribute it and/or
eligottlieb@4783
     6
    modify it under the terms of the GNU Lesser General Public
eligottlieb@4783
     7
    License as published by the Free Software Foundation; either
eligottlieb@4783
     8
    version 2.1 of the License, or (at your option) any later version.
eligottlieb@4783
     9
eligottlieb@4783
    10
    This library is distributed in the hope that it will be useful,
eligottlieb@4783
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
eligottlieb@4783
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
eligottlieb@4783
    13
    Lesser General Public License for more details.
eligottlieb@4783
    14
eligottlieb@4783
    15
    You should have received a copy of the GNU Lesser General Public
eligottlieb@4783
    16
    License along with this library; if not, write to the Free Software
eligottlieb@4783
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
eligottlieb@4783
    18
eligottlieb@4783
    19
    Eli Gottlieb
eligottlieb@4783
    20
    eligottlieb@gmail.com
eligottlieb@4783
    21
*/
eligottlieb@4783
    22
#include "SDL_config.h"
eligottlieb@4783
    23
eligottlieb@4783
    24
#ifndef _SDL_x11shape_h
eligottlieb@4783
    25
#define _SDL_x11shape_h
eligottlieb@4783
    26
eligottlieb@4783
    27
#include "SDL_video.h"
eligottlieb@4783
    28
#include "SDL_shape.h"
eligottlieb@4783
    29
#include "../SDL_sysvideo.h"
eligottlieb@4783
    30
eligottlieb@4783
    31
typedef struct {
eligottlieb@4783
    32
	void* bitmap;
eligottlieb@4783
    33
	Uint32 bitmapsize;
eligottlieb@4783
    34
} SDL_ShapeData;
eligottlieb@4783
    35
eligottlieb@4809
    36
extern SDL_Window* X11_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
eligottlieb@4783
    37
extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
eligottlieb@4783
    38
extern int X11_ResizeWindowShape(SDL_Window* window);
eligottlieb@4783
    39
extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);	
eligottlieb@4783
    40
eligottlieb@4783
    41
#endif /* _SDL_x11shape_h */