comparison include/SDL_video.h @ 2102:0975e24a3670

Merged r3007:3008 from branches/SDL-1.2: MapRGB/MapRGBA const correctness.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Apr 2007 09:43:53 +0000
parents f4c65e3bfaed
children 2c835d58faad
comparison
equal deleted inserted replaced
2101:c4e0afbcf1f6 2102:0975e24a3670
1298 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_WindowID windowID); 1298 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_WindowID windowID);
1299 1299
1300 /* 1300 /*
1301 * Maps an RGB triple to an opaque pixel value for a given pixel format 1301 * Maps an RGB triple to an opaque pixel value for a given pixel format
1302 */ 1302 */
1303 extern DECLSPEC Uint32 SDLCALL SDL_MapRGB 1303 extern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * const format,
1304 (SDL_PixelFormat * format, Uint8 r, Uint8 g, Uint8 b); 1304 const Uint8 r, const Uint8 g,
1305 const Uint8 b);
1305 1306
1306 /* 1307 /*
1307 * Maps an RGBA quadruple to a pixel value for a given pixel format 1308 * Maps an RGBA quadruple to a pixel value for a given pixel format
1308 */ 1309 */
1309 extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(SDL_PixelFormat * format, 1310 extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * const fmt,
1310 Uint8 r, Uint8 g, Uint8 b, 1311 const Uint8 r, const Uint8 g,
1311 Uint8 a); 1312 const Uint8 b, const Uint8 a);
1312 1313
1313 /* 1314 /*
1314 * Maps a pixel value into the RGB components for a given pixel format 1315 * Maps a pixel value into the RGB components for a given pixel format
1315 */ 1316 */
1316 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat * fmt, 1317 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat * fmt,