include/SDL_blendmode.h
changeset 4929 aa8888658021
child 5140 e743b9c3f6d6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL_blendmode.h	Sun Dec 12 15:19:05 2010 -0800
     1.3 @@ -0,0 +1,64 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2010 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +/**
    1.27 + *  \file SDL_blendmode.h
    1.28 + *  
    1.29 + *  Header file declaring the SDL_BlendMode enumeration
    1.30 + */
    1.31 +
    1.32 +#ifndef _SDL_blendmode_h
    1.33 +#define _SDL_blendmode_h
    1.34 +
    1.35 +#include "begin_code.h"
    1.36 +/* Set up for C function definitions, even when using C++ */
    1.37 +#ifdef __cplusplus
    1.38 +/* *INDENT-OFF* */
    1.39 +extern "C" {
    1.40 +/* *INDENT-ON* */
    1.41 +#endif
    1.42 +
    1.43 +/**
    1.44 + *  \brief The blend mode used in SDL_RenderCopy() and drawing operations.
    1.45 + */
    1.46 +typedef enum
    1.47 +{
    1.48 +    SDL_BLENDMODE_NONE = 0x00000000,     /**< No blending */
    1.49 +    SDL_BLENDMODE_MASK = 0x00000001,     /**< dst = A ? src : dst 
    1.50 +                                              (alpha is mask) */
    1.51 +    
    1.52 +    SDL_BLENDMODE_BLEND = 0x00000002,    /**< dst = (src * A) + (dst * (1-A)) */
    1.53 +    SDL_BLENDMODE_ADD = 0x00000004,      /**< dst = (src * A) + dst */
    1.54 +    SDL_BLENDMODE_MOD = 0x00000008       /**< dst = src * dst */
    1.55 +} SDL_BlendMode;
    1.56 +
    1.57 +/* Ends C function definitions when using C++ */
    1.58 +#ifdef __cplusplus
    1.59 +/* *INDENT-OFF* */
    1.60 +}
    1.61 +/* *INDENT-ON* */
    1.62 +#endif
    1.63 +#include "close_code.h"
    1.64 +
    1.65 +#endif /* _SDL_video_h */
    1.66 +
    1.67 +/* vi: set ts=4 sw=4 expandtab: */