Subversion Repositories Games.Prince of Persia

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 8
Line 1... Line 1...
1
/*
1
/*
2
  Simple DirectMedia Layer
2
  Simple DirectMedia Layer
3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
4
 
4
 
5
  This software is provided 'as-is', without any express or implied
5
  This software is provided 'as-is', without any express or implied
6
  warranty.  In no event will the authors be held liable for any damages
6
  warranty.  In no event will the authors be held liable for any damages
7
  arising from the use of this software.
7
  arising from the use of this software.
8
 
8
 
Line 94... Line 94...
94
/**
94
/**
95
 * \brief The type of function used for surface blitting functions.
95
 * \brief The type of function used for surface blitting functions.
96
 */
96
 */
97
typedef int (SDLCALL *SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
97
typedef int (SDLCALL *SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
98
                                 struct SDL_Surface * dst, SDL_Rect * dstrect);
98
                                 struct SDL_Surface * dst, SDL_Rect * dstrect);
-
 
99
 
-
 
100
/**
-
 
101
 * \brief The formula used for converting between YUV and RGB
-
 
102
 */
-
 
103
typedef enum
-
 
104
{
-
 
105
    SDL_YUV_CONVERSION_JPEG,        /**< Full range JPEG */
-
 
106
    SDL_YUV_CONVERSION_BT601,       /**< BT.601 (the default) */
-
 
107
    SDL_YUV_CONVERSION_BT709,       /**< BT.709 */
-
 
108
    SDL_YUV_CONVERSION_AUTOMATIC    /**< BT.601 for SD content, BT.709 for HD content */
-
 
109
} SDL_YUV_CONVERSION_MODE;
99
 
110
 
100
/**
111
/**
101
 *  Allocate and free an RGB surface.
112
 *  Allocate and free an RGB surface.
102
 *
113
 *
103
 *  If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
114
 *  If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
Line 234... Line 245...
234
 *
245
 *
235
 *  You can pass SDL_RLEACCEL to enable RLE accelerated blits.
246
 *  You can pass SDL_RLEACCEL to enable RLE accelerated blits.
236
 */
247
 */
237
extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
248
extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
238
                                            int flag, Uint32 key);
249
                                            int flag, Uint32 key);
-
 
250
 
-
 
251
/**
-
 
252
 *  \brief Returns whether the surface has a color key
-
 
253
 *
-
 
254
 *  \return SDL_TRUE if the surface has a color key, or SDL_FALSE if the surface is NULL or has no color key
-
 
255
 */
-
 
256
extern DECLSPEC SDL_bool SDLCALL SDL_HasColorKey(SDL_Surface * surface);
239
 
257
 
240
/**
258
/**
241
 *  \brief Gets the color key (transparent pixel) in a blittable surface.
259
 *  \brief Gets the color key (transparent pixel) in a blittable surface.
242
 *
260
 *
243
 *  \param surface The surface to update
261
 *  \param surface The surface to update
Line 507... Line 525...
507
 */
525
 */
508
extern DECLSPEC int SDLCALL SDL_LowerBlitScaled
526
extern DECLSPEC int SDLCALL SDL_LowerBlitScaled
509
    (SDL_Surface * src, SDL_Rect * srcrect,
527
    (SDL_Surface * src, SDL_Rect * srcrect,
510
    SDL_Surface * dst, SDL_Rect * dstrect);
528
    SDL_Surface * dst, SDL_Rect * dstrect);
511
 
529
 
-
 
530
/**
-
 
531
 *  \brief Set the YUV conversion mode
-
 
532
 */
-
 
533
extern DECLSPEC void SDLCALL SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_MODE mode);
-
 
534
 
-
 
535
/**
-
 
536
 *  \brief Get the YUV conversion mode
-
 
537
 */
-
 
538
extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionMode(void);
-
 
539
 
-
 
540
/**
-
 
541
 *  \brief Get the YUV conversion mode, returning the correct mode for the resolution when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
-
 
542
 */
-
 
543
extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResolution(int width, int height);
512
 
544
 
513
/* Ends C function definitions when using C++ */
545
/* Ends C function definitions when using C++ */
514
#ifdef __cplusplus
546
#ifdef __cplusplus
515
}
547
}
516
#endif
548
#endif