include/SDL_blendmode.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 15 Feb 2013 08:47:44 -0800
changeset 6885 700f1b25f77f
parent 6138 4c64952a58fb
child 7191 75360622e65f
permissions -rw-r--r--
Happy New Year!
slouken@4929
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@6885
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
slouken@4929
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
slouken@4929
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
slouken@4929
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@4929
    20
*/
slouken@4929
    21
slouken@4929
    22
/**
slouken@4929
    23
 *  \file SDL_blendmode.h
slouken@4929
    24
 *  
slouken@4929
    25
 *  Header file declaring the SDL_BlendMode enumeration
slouken@4929
    26
 */
slouken@4929
    27
slouken@4929
    28
#ifndef _SDL_blendmode_h
slouken@4929
    29
#define _SDL_blendmode_h
slouken@4929
    30
slouken@4929
    31
#include "begin_code.h"
slouken@4929
    32
/* Set up for C function definitions, even when using C++ */
slouken@4929
    33
#ifdef __cplusplus
slouken@4929
    34
/* *INDENT-OFF* */
slouken@4929
    35
extern "C" {
slouken@4929
    36
/* *INDENT-ON* */
slouken@4929
    37
#endif
slouken@4929
    38
slouken@4929
    39
/**
slouken@4929
    40
 *  \brief The blend mode used in SDL_RenderCopy() and drawing operations.
slouken@4929
    41
 */
slouken@4929
    42
typedef enum
slouken@4929
    43
{
slouken@4929
    44
    SDL_BLENDMODE_NONE = 0x00000000,     /**< No blending */
slouken@5140
    45
    SDL_BLENDMODE_BLEND = 0x00000001,    /**< dst = (src * A) + (dst * (1-A)) */
slouken@5140
    46
    SDL_BLENDMODE_ADD = 0x00000002,      /**< dst = (src * A) + dst */
slouken@5184
    47
    SDL_BLENDMODE_MOD = 0x00000004       /**< dst = src * dst */
slouken@4929
    48
} SDL_BlendMode;
slouken@4929
    49
slouken@4929
    50
/* Ends C function definitions when using C++ */
slouken@4929
    51
#ifdef __cplusplus
slouken@4929
    52
/* *INDENT-OFF* */
slouken@4929
    53
}
slouken@4929
    54
/* *INDENT-ON* */
slouken@4929
    55
#endif
slouken@4929
    56
#include "close_code.h"
slouken@4929
    57
slouken@4929
    58
#endif /* _SDL_video_h */
slouken@4929
    59
slouken@4929
    60
/* vi: set ts=4 sw=4 expandtab: */