src/video/SDL_sysvideo.h
branchSDL-1.3
changeset 1681 80a5e6a4e1e2
parent 1680 9488fca10677
child 1682 7ae8018b2e5d
     1.1 --- a/src/video/SDL_sysvideo.h	Wed Jun 14 08:41:13 2006 +0000
     1.2 +++ b/src/video/SDL_sysvideo.h	Thu Jun 15 07:07:07 2006 +0000
     1.3 @@ -70,26 +70,30 @@
     1.4      int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture,
     1.5                                 void **pixels, int *pitch);
     1.6      int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
     1.7 +                              const SDL_Color * colors, int firstcolor,
     1.8 +                              int ncolors);
     1.9 +    int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.10                                SDL_Color * colors, int firstcolor,
    1.11                                int ncolors);
    1.12      int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.13 -                          SDL_Rect * rect, const void *pixels, int pitch);
    1.14 +                          const SDL_Rect * rect, const void *pixels,
    1.15 +                          int pitch);
    1.16      int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.17 -                        SDL_Rect * rect, int markDirty, void **pixels,
    1.18 +                        const SDL_Rect * rect, int markDirty, void **pixels,
    1.19                          int *pitch);
    1.20      void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.21      void (*DirtyTexture) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.22 -                          int numrects, SDL_Rect * rects);
    1.23 +                          int numrects, const SDL_Rect * rects);
    1.24      void (*SelectRenderTexture) (SDL_Renderer * renderer,
    1.25                                   SDL_Texture * texture);
    1.26 -    void (*RenderFill) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.27 +    void (*RenderFill) (SDL_Renderer * renderer, const SDL_Rect * rect,
    1.28                          Uint32 color);
    1.29      int (*RenderCopy) (SDL_Renderer * renderer, SDL_Texture * texture,
    1.30 -                       SDL_Rect * srcrect, SDL_Rect * dstrect, int blendMode,
    1.31 -                       int scaleMode);
    1.32 -    int (*RenderReadPixels) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.33 +                       const SDL_Rect * srcrect, const SDL_Rect * dstrect,
    1.34 +                       int blendMode, int scaleMode);
    1.35 +    int (*RenderReadPixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
    1.36                               void *pixels, int pitch);
    1.37 -    int (*RenderWritePixels) (SDL_Renderer * renderer, SDL_Rect * rect,
    1.38 +    int (*RenderWritePixels) (SDL_Renderer * renderer, const SDL_Rect * rect,
    1.39                                const void *pixels, int pitch);
    1.40      void (*RenderPresent) (SDL_Renderer * renderer);
    1.41      void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
    1.42 @@ -142,6 +146,7 @@
    1.43      SDL_DisplayMode *display_modes;
    1.44      SDL_DisplayMode desktop_mode;
    1.45      SDL_DisplayMode current_mode;
    1.46 +    SDL_Palette palette;
    1.47  
    1.48      int num_render_drivers;
    1.49      SDL_RenderDriver *render_drivers;
    1.50 @@ -184,18 +189,17 @@
    1.51       */
    1.52      int (*SetDisplayMode) (_THIS, const SDL_DisplayMode * mode);
    1.53  
    1.54 -    /* Sets the color entries { firstcolor .. (firstcolor+ncolors-1) }
    1.55 -       of the physical palette to those in 'colors'.  The return value
    1.56 -       is 0 if all entries could be set properly or -1 otherwise.
    1.57 +    /* Sets the color entries of the display palette to those in 'colors'.
    1.58 +       The return value is 0 if all entries could be set properly or -1
    1.59 +       otherwise.
    1.60       */
    1.61 -    int (*SetDisplayColors) (_THIS, int firstcolor, int ncolors,
    1.62 -                             SDL_Color * colors);
    1.63 +    int (*SetDisplayPalette) (_THIS, SDL_Palette * palette);
    1.64  
    1.65      /* * * */
    1.66      /* Window functions
    1.67       */
    1.68      int (*CreateWindow) (_THIS, SDL_Window * window);
    1.69 -    int (*CreateWindowFrom) (_THIS, SDL_Window * window, void *data);
    1.70 +    int (*CreateWindowFrom) (_THIS, SDL_Window * window, const void *data);
    1.71      void (*SetWindowTitle) (_THIS, SDL_Window * window);
    1.72      void (*SetWindowPosition) (_THIS, SDL_Window * window);
    1.73      void (*SetWindowSize) (_THIS, SDL_Window * window);