include/SDL_render.h
changeset 7759 869583422e5a
parent 7542 399ff49069a5
child 8028 e3e00f8e6b91
equal deleted inserted replaced
7758:54c0acdf9c8e 7759:869583422e5a
   380 extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
   380 extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
   381                                               const SDL_Rect * rect,
   381                                               const SDL_Rect * rect,
   382                                               const void *pixels, int pitch);
   382                                               const void *pixels, int pitch);
   383 
   383 
   384 /**
   384 /**
       
   385  *  \brief Update a rectangle within a planar YV12 or IYUV texture with new pixel data.
       
   386  *
       
   387  *  \param texture   The texture to update
       
   388  *  \param rect      A pointer to the rectangle of pixels to update, or NULL to
       
   389  *                   update the entire texture.
       
   390  *  \param Yplane    The raw pixel data for the Y plane.
       
   391  *  \param Ypitch    The number of bytes between rows of pixel data for the Y plane.
       
   392  *  \param Uplane    The raw pixel data for the U plane.
       
   393  *  \param Upitch    The number of bytes between rows of pixel data for the U plane.
       
   394  *  \param Vplane    The raw pixel data for the V plane.
       
   395  *  \param Vpitch    The number of bytes between rows of pixel data for the V plane.
       
   396  *
       
   397  *  \return 0 on success, or -1 if the texture is not valid.
       
   398  *
       
   399  *  \note You can use SDL_UpdateTexture() as long as your pixel data is
       
   400  *        a contiguous block of Y and U/V planes in the proper order, but
       
   401  *        this function is available if your pixel data is not contiguous.
       
   402  */
       
   403 extern DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture * texture,
       
   404                                                  const SDL_Rect * rect,
       
   405                                                  const Uint8 *Yplane, int Ypitch,
       
   406                                                  const Uint8 *Uplane, int Upitch,
       
   407                                                  const Uint8 *Vplane, int Vpitch);
       
   408 
       
   409 /**
   385  *  \brief Lock a portion of the texture for write-only pixel access.
   410  *  \brief Lock a portion of the texture for write-only pixel access.
   386  *
   411  *
   387  *  \param texture   The texture to lock for access, which was created with
   412  *  \param texture   The texture to lock for access, which was created with
   388  *                   ::SDL_TEXTUREACCESS_STREAMING.
   413  *                   ::SDL_TEXTUREACCESS_STREAMING.
   389  *  \param rect      A pointer to the rectangle to lock for access. If the rect
   414  *  \param rect      A pointer to the rectangle to lock for access. If the rect