Mercurial > sdl-ios-xcode
comparison include/SDL_render.h @ 5160:657543cc92f9
Making the API simpler, removed the writepixels interface
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Feb 2011 00:22:18 -0800 |
parents | 307ccc9c135e |
children | b3ccd1947786 |
comparison
equal
deleted
inserted
replaced
5159:307ccc9c135e | 5160:657543cc92f9 |
---|---|
525 const SDL_Rect * rect, | 525 const SDL_Rect * rect, |
526 Uint32 format, | 526 Uint32 format, |
527 void *pixels, int pitch); | 527 void *pixels, int pitch); |
528 | 528 |
529 /** | 529 /** |
530 * \brief Write pixels to the current rendering target. | |
531 * | |
532 * \param rect A pointer to the rectangle to write, or NULL for the entire | |
533 * render target. | |
534 * \param format The format of the pixel data, or 0 to use the format | |
535 * of the rendering target | |
536 * \param pixels A pointer to the pixel data to write. | |
537 * \param pitch The pitch of the pixels parameter. | |
538 * | |
539 * \return 0 on success, or -1 if pixel writing is not supported. | |
540 * | |
541 * \warning This is a very slow operation, and should not be used frequently. | |
542 */ | |
543 extern DECLSPEC int SDLCALL SDL_RenderWritePixels(SDL_Renderer * renderer, | |
544 const SDL_Rect * rect, | |
545 Uint32 format, | |
546 const void *pixels, | |
547 int pitch); | |
548 | |
549 /** | |
550 * \brief Update the screen with rendering performed. | 530 * \brief Update the screen with rendering performed. |
551 */ | 531 */ |
552 extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer); | 532 extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer); |
553 | 533 |
554 /** | 534 /** |