src/render/SDL_sysrender.h
changeset 5156 307ccc9c135e
parent 5154 fb424691cfc7
child 5157 657543cc92f9
     1.1 --- a/src/render/SDL_sysrender.h	Wed Feb 02 22:55:12 2011 -0800
     1.2 +++ b/src/render/SDL_sysrender.h	Thu Feb 03 00:19:40 2011 -0800
     1.3 @@ -26,6 +26,7 @@
     1.4  
     1.5  #include "SDL_render.h"
     1.6  #include "SDL_events.h"
     1.7 +#include "SDL_yuv_sw_c.h"
     1.8  
     1.9  /* The SDL 2D rendering system */
    1.10  
    1.11 @@ -45,6 +46,13 @@
    1.12  
    1.13      SDL_Renderer *renderer;
    1.14  
    1.15 +    /* Support for formats not supported directly by the renderer */
    1.16 +    SDL_Texture *native;
    1.17 +    SDL_SW_YUVTexture *yuv;
    1.18 +    void *pixels;
    1.19 +    int pitch;
    1.20 +    SDL_Rect locked_rect;
    1.21 +
    1.22      void *driverdata;           /**< Driver specific texture representation */
    1.23  
    1.24      SDL_Texture *prev;
    1.25 @@ -58,8 +66,6 @@
    1.26  
    1.27      void (*WindowEvent) (SDL_Renderer * renderer, const SDL_WindowEvent *event);
    1.28      int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.29 -    int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.30 -                               void **pixels, int *pitch);
    1.31      int (*SetTextureColorMod) (SDL_Renderer * renderer,
    1.32                                 SDL_Texture * texture);
    1.33      int (*SetTextureAlphaMod) (SDL_Renderer * renderer,
    1.34 @@ -70,11 +76,8 @@
    1.35                            const SDL_Rect * rect, const void *pixels,
    1.36                            int pitch);
    1.37      int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.38 -                        const SDL_Rect * rect, int markDirty, void **pixels,
    1.39 -                        int *pitch);
    1.40 +                        const SDL_Rect * rect, void **pixels, int *pitch);
    1.41      void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.42 -    void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.43 -                          int numrects, const SDL_Rect * rects);
    1.44      int (*RenderClear) (SDL_Renderer * renderer);
    1.45      int (*RenderDrawPoints) (SDL_Renderer * renderer, const SDL_Point * points,
    1.46                               int count);