include/SDL_scalemode.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 15:42:26 -0800
changeset 4986 8431f59485d0
parent 4929 aa8888658021
permissions -rw-r--r--
Renderer didn't advertise texture format SDL_PIXELFORMAT_ABGR8888
slouken@4929
     1
/*
slouken@4929
     2
    SDL - Simple DirectMedia Layer
slouken@4929
     3
    Copyright (C) 1997-2010 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_scalemode.h
slouken@4929
    25
 *  
slouken@4929
    26
 *  Header file declaring the SDL_ScaleMode enumeration
slouken@4929
    27
 */
slouken@4929
    28
slouken@4929
    29
#ifndef _SDL_scalemode_h
slouken@4929
    30
#define _SDL_scalemode_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 texture scale mode used in SDL_RenderCopy().
slouken@4929
    42
 */
slouken@4929
    43
typedef enum
slouken@4929
    44
{
slouken@4929
    45
    SDL_SCALEMODE_NONE = 0x00000000,     /**< No scaling, rectangles must
slouken@4929
    46
                                              match dimensions */
slouken@4929
    47
    
slouken@4929
    48
    SDL_SCALEMODE_FAST = 0x00000001,     /**< Point sampling or 
slouken@4929
    49
                                              equivalent algorithm */
slouken@4929
    50
    
slouken@4929
    51
    SDL_SCALEMODE_SLOW = 0x00000002,     /**< Linear filtering or 
slouken@4929
    52
                                              equivalent algorithm */
slouken@4929
    53
    
slouken@4929
    54
    SDL_SCALEMODE_BEST = 0x00000004      /**< Bicubic filtering or 
slouken@4929
    55
                                              equivalent algorithm */
slouken@4929
    56
} SDL_ScaleMode;
slouken@4929
    57
slouken@4929
    58
slouken@4929
    59
/* Ends C function definitions when using C++ */
slouken@4929
    60
#ifdef __cplusplus
slouken@4929
    61
/* *INDENT-OFF* */
slouken@4929
    62
}
slouken@4929
    63
/* *INDENT-ON* */
slouken@4929
    64
#endif
slouken@4929
    65
#include "close_code.h"
slouken@4929
    66
slouken@4929
    67
#endif /* _SDL_video_h */
slouken@4929
    68
slouken@4929
    69
/* vi: set ts=4 sw=4 expandtab: */