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