src/video/SDL_sysvideo.h
branchSDL-1.3
changeset 1676 e136f3ffdc1b
parent 1675 d33dcfc3fde7
child 1677 5e4c5e095925
     1.1 --- a/src/video/SDL_sysvideo.h	Sun Jun 11 07:30:16 2006 +0000
     1.2 +++ b/src/video/SDL_sysvideo.h	Mon Jun 12 09:10:06 2006 +0000
     1.3 @@ -66,22 +66,28 @@
     1.4  /* Define the SDL renderer structure */
     1.5  struct SDL_Renderer
     1.6  {
     1.7 -    int (*CreateTexture) (SDL_Texture * texture);
     1.8 -    int (*UpdateTexture) (SDL_Texture * texture, SDL_Rect * rect,
     1.9 -                          const void *pixels, int pitch);
    1.10 -    int (*LockTexture) (SDL_Texture * texture, SDL_Rect * rect, int markDirty,
    1.11 -                        void **pixels, int *pitch);
    1.12 -    void (*UnlockTexture) (SDL_Texture * texture);
    1.13 -    void (*DirtyTexture) (SDL_Texture * texture, int numrects,
    1.14 -                          SDL_Rect * rects);
    1.15 -    void (*SelectRenderTexture) (SDL_Texture * texture);
    1.16 -    void (*RenderFill) (SDL_Rect * rect, Uint32 color);
    1.17 -    int (*RenderCopy) (SDL_Texture * texture, SDL_Rect * srcrect,
    1.18 -                       SDL_Rect * dstrect, int blendMode, int scaleMode);
    1.19 -    int (*RenderReadPixels) (SDL_Rect * rect, void *pixels, int pitch);
    1.20 -    int (*RenderWritePixels) (SDL_Rect * rect, const void *pixels, int pitch);
    1.21 -    void (*RenderPresent) (void);
    1.22 -    void (*DestroyTexture) (SDL_Texture * texture);
    1.23 +    int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.24 +    int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.25 +                          SDL_Rect * rect, const void *pixels, int pitch);
    1.26 +    int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.27 +                        SDL_Rect * rect, int markDirty, void **pixels,
    1.28 +                        int *pitch);
    1.29 +    void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.30 +    void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.31 +                          int numrects, SDL_Rect * rects);
    1.32 +    void (*SelectRenderTexture) (SDL_Renderer * renderer,
    1.33 +                                 SDL_Texture * texture);
    1.34 +    void (*RenderFill) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.35 +                        Uint32 color);
    1.36 +    int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.37 +                       SDL_Rect * srcrect, SDL_Rect * dstrect, int blendMode,
    1.38 +                       int scaleMode);
    1.39 +    int (*RenderReadPixels) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.40 +                             void *pixels, int pitch);
    1.41 +    int (*RenderWritePixels) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.42 +                              const void *pixels, int pitch);
    1.43 +    void (*RenderPresent) (SDL_Renderer * renderer);
    1.44 +    void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.45  
    1.46      void (*DestroyRenderer) (SDL_Renderer * renderer);
    1.47  
    1.48 @@ -115,6 +121,7 @@
    1.49  
    1.50      Uint16 *gamma;
    1.51  
    1.52 +    SDL_VideoDisplay *display;
    1.53      SDL_Renderer *renderer;
    1.54  
    1.55      void *userdata;