comparison include/SDL_render.h @ 5152:be02be2ea897

Making the API simpler, removed support for palettized video modes and textures.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 21:23:43 -0800
parents ad50b3db78bd
children 307ccc9c135e
comparison
equal deleted inserted replaced
5151:5429daf5e3f9 5152:be02be2ea897
218 */ 218 */
219 extern DECLSPEC int SDLCALL SDL_QueryTexturePixels(SDL_Texture * texture, 219 extern DECLSPEC int SDLCALL SDL_QueryTexturePixels(SDL_Texture * texture,
220 void **pixels, int *pitch); 220 void **pixels, int *pitch);
221 221
222 /** 222 /**
223 * \brief Set the color palette of an indexed texture.
224 *
225 * \param texture The texture to update.
226 * \param colors The array of RGB color data.
227 * \param firstcolor The first index to update.
228 * \param ncolors The number of palette entries to fill with the color data.
229 *
230 * \return 0 on success, or -1 if the texture is not valid or not an indexed
231 * texture.
232 */
233 extern DECLSPEC int SDLCALL SDL_SetTexturePalette(SDL_Texture * texture,
234 const SDL_Color * colors,
235 int firstcolor,
236 int ncolors);
237
238 /**
239 * \brief Get the color palette from an indexed texture if it has one.
240 *
241 * \param texture The texture to update.
242 * \param colors The array to fill with RGB color data.
243 * \param firstcolor The first index to retrieve.
244 * \param ncolors The number of palette entries to retrieve.
245 *
246 * \return 0 on success, or -1 if the texture is not valid or not an indexed
247 * texture.
248 */
249 extern DECLSPEC int SDLCALL SDL_GetTexturePalette(SDL_Texture * texture,
250 SDL_Color * colors,
251 int firstcolor,
252 int ncolors);
253
254 /**
255 * \brief Set an additional color value used in render copy operations. 223 * \brief Set an additional color value used in render copy operations.
256 * 224 *
257 * \param texture The texture to update. 225 * \param texture The texture to update.
258 * \param r The red color value multiplied into copy operations. 226 * \param r The red color value multiplied into copy operations.
259 * \param g The green color value multiplied into copy operations. 227 * \param g The green color value multiplied into copy operations.