include/SDL_render.h
changeset 11216 908e4fe53f5a
parent 10737 3406a0f8b041
child 11224 aca84e42a924
equal deleted inserted replaced
11215:51aeabb61b2e 11216:908e4fe53f5a
   368  *  \brief Update the given texture rectangle with new pixel data.
   368  *  \brief Update the given texture rectangle with new pixel data.
   369  *
   369  *
   370  *  \param texture   The texture to update
   370  *  \param texture   The texture to update
   371  *  \param rect      A pointer to the rectangle of pixels to update, or NULL to
   371  *  \param rect      A pointer to the rectangle of pixels to update, or NULL to
   372  *                   update the entire texture.
   372  *                   update the entire texture.
   373  *  \param pixels    The raw pixel data.
   373  *  \param pixels    The raw pixel data in the format of the texture.
   374  *  \param pitch     The number of bytes in a row of pixel data, including padding between lines.
   374  *  \param pitch     The number of bytes in a row of pixel data, including padding between lines.
       
   375  *
       
   376  *  The pixel data must be in the format of the texture. The pixel format can be
       
   377  *  queried with SDL_QueryTexture.
   375  *
   378  *
   376  *  \return 0 on success, or -1 if the texture is not valid.
   379  *  \return 0 on success, or -1 if the texture is not valid.
   377  *
   380  *
   378  *  \note This is a fairly slow function.
   381  *  \note This is a fairly slow function.
   379  */
   382  */