include/SDL_blendmode.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 31 Jan 2011 23:23:57 -0800
changeset 5140 e743b9c3f6d6
parent 4929 aa8888658021
child 5184 d976b67150c5
permissions -rw-r--r--
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /**
    24  *  \file SDL_blendmode.h
    25  *  
    26  *  Header file declaring the SDL_BlendMode enumeration
    27  */
    28 
    29 #ifndef _SDL_blendmode_h
    30 #define _SDL_blendmode_h
    31 
    32 #include "begin_code.h"
    33 /* Set up for C function definitions, even when using C++ */
    34 #ifdef __cplusplus
    35 /* *INDENT-OFF* */
    36 extern "C" {
    37 /* *INDENT-ON* */
    38 #endif
    39 
    40 /**
    41  *  \brief The blend mode used in SDL_RenderCopy() and drawing operations.
    42  */
    43 typedef enum
    44 {
    45     SDL_BLENDMODE_NONE = 0x00000000,     /**< No blending */
    46     SDL_BLENDMODE_BLEND = 0x00000001,    /**< dst = (src * A) + (dst * (1-A)) */
    47     SDL_BLENDMODE_ADD = 0x00000002,      /**< dst = (src * A) + dst */
    48 } SDL_BlendMode;
    49 
    50 /* Ends C function definitions when using C++ */
    51 #ifdef __cplusplus
    52 /* *INDENT-OFF* */
    53 }
    54 /* *INDENT-ON* */
    55 #endif
    56 #include "close_code.h"
    57 
    58 #endif /* _SDL_video_h */
    59 
    60 /* vi: set ts=4 sw=4 expandtab: */