src/render/SDL_sysrender.h
changeset 6246 c70ec935a4bb
parent 6232 37e8d0736366
child 6247 b6212690f78d
     1.1 --- a/src/render/SDL_sysrender.h	Sat Jan 21 22:14:38 2012 -0500
     1.2 +++ b/src/render/SDL_sysrender.h	Sat Jan 21 22:22:30 2012 -0500
     1.3 @@ -77,6 +77,7 @@
     1.4      int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
     1.5                          const SDL_Rect * rect, void **pixels, int *pitch);
     1.6      void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
     1.7 +    int (*SetTargetTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
     1.8      int (*UpdateViewport) (SDL_Renderer * renderer);
     1.9      int (*RenderClear) (SDL_Renderer * renderer);
    1.10      int (*RenderDrawPoints) (SDL_Renderer * renderer, const SDL_Point * points,
    1.11 @@ -87,7 +88,6 @@
    1.12                              int count);
    1.13      int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.14                         const SDL_Rect * srcrect, const SDL_Rect * dstrect);
    1.15 -    int (*SetTargetTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.16      int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
    1.17                               Uint32 format, void * pixels, int pitch);
    1.18      void (*RenderPresent) (SDL_Renderer * renderer);
    1.19 @@ -104,9 +104,11 @@
    1.20  
    1.21      /* The drawable area within the window */
    1.22      SDL_Rect viewport;
    1.23 +    SDL_Rect viewport_backup;
    1.24  
    1.25      /* The list of textures */
    1.26      SDL_Texture *textures;
    1.27 +    SDL_Texture *target;
    1.28  
    1.29      Uint8 r, g, b, a;                   /**< Color for drawing operations values */
    1.30      SDL_BlendMode blendMode;            /**< The drawing blend mode */