include/SDL_surface.h
changeset 3596 f638ded38b8a
parent 3593 b931bcfd94a0
child 3697 f7b03b6838cb
     1.1 --- a/include/SDL_surface.h	Fri Dec 18 08:19:18 2009 +0000
     1.2 +++ b/include/SDL_surface.h	Wed Dec 23 01:55:00 2009 +0000
     1.3 @@ -411,12 +411,9 @@
     1.4  /**
     1.5   *  Blends a point with an RGBA value.
     1.6   *  
     1.7 - *  The color should be a pixel of the format used by the surface, and 
     1.8 - *  can be generated by the SDL_MapRGB() function.
     1.9 - *  
    1.10   *  \return 0 on success, or -1 on error.
    1.11   */
    1.12 -extern DECLSPEC int SDLCALL SDL_BlendDrawPoint
    1.13 +extern DECLSPEC int SDLCALL SDL_BlendPoint
    1.14      (SDL_Surface * dst, int x, int y,
    1.15       int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.16  extern DECLSPEC int SDLCALL SDL_BlendPoints
    1.17 @@ -464,9 +461,9 @@
    1.18      (SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
    1.19  
    1.20  /**
    1.21 - *  Blends the given rectangle with \c color.
    1.22 + *  Blends an RGBA value into the outline of the given rectangle.
    1.23   *  
    1.24 - *  If \c rect is NULL, the whole surface will have a blended outline of \c color.
    1.25 + *  If \c rect is NULL, the whole surface will have a blended outline.
    1.26   *  
    1.27   *  \return 0 on success, or -1 on error.
    1.28   */
    1.29 @@ -495,7 +492,7 @@
    1.30  /**
    1.31   *  Blends an RGBA value into the given rectangle.
    1.32   *  
    1.33 - *  If \c rect is NULL, the whole surface will be blended with \c color.
    1.34 + *  If \c rect is NULL, the whole surface will be blended with the color.
    1.35   *  
    1.36   *  \return This function returns 0 on success, or -1 on error.
    1.37   */
    1.38 @@ -506,6 +503,88 @@
    1.39      (SDL_Surface * dst, const SDL_Rect ** rects, int count,
    1.40       int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.41  
    1.42 +#if 0
    1.43 +/**
    1.44 + *  Draws the given circle with \c color.
    1.45 + *  
    1.46 + *  The color should be a pixel of the format used by the surface, and 
    1.47 + *  can be generated by the SDL_MapRGB() function.
    1.48 + *  
    1.49 + *  \return 0 on success, or -1 on error.
    1.50 + */
    1.51 +extern DECLSPEC int SDLCALL SDL_DrawCircle
    1.52 +    (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
    1.53 +
    1.54 +/**
    1.55 + *  Blends an RGBA value into the outline of the given circle.
    1.56 + *  
    1.57 + *  \return 0 on success, or -1 on error.
    1.58 + */
    1.59 +extern DECLSPEC int SDLCALL SDL_BlendCircle
    1.60 +    (SDL_Surface * dst, int x, int y, int radius,
    1.61 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.62 +
    1.63 +/**
    1.64 + *  Fills the given circle with \c color.
    1.65 + *  
    1.66 + *  The color should be a pixel of the format used by the surface, and 
    1.67 + *  can be generated by the SDL_MapRGB() function.
    1.68 + *  
    1.69 + *  \return 0 on success, or -1 on error.
    1.70 + */
    1.71 +extern DECLSPEC int SDLCALL SDL_FillCircle
    1.72 +    (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
    1.73 +
    1.74 +/**
    1.75 + *  Blends an RGBA value into the given circle.
    1.76 + *  
    1.77 + *  \return This function returns 0 on success, or -1 on error.
    1.78 + */
    1.79 +extern DECLSPEC int SDLCALL SDL_BlendFillCircle
    1.80 +    (SDL_Surface * dst, int x, int y, int radius,
    1.81 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
    1.82 +
    1.83 +/**
    1.84 + *  Draws the given ellipse with \c color.
    1.85 + *  
    1.86 + *  The color should be a pixel of the format used by the surface, and 
    1.87 + *  can be generated by the SDL_MapRGB() function.
    1.88 + *  
    1.89 + *  \return 0 on success, or -1 on error.
    1.90 + */
    1.91 +extern DECLSPEC int SDLCALL SDL_DrawEllipse
    1.92 +    (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
    1.93 +
    1.94 +/**
    1.95 + *  Blends an RGBA value into the outline of the given ellipse.
    1.96 + *  
    1.97 + *  \return 0 on success, or -1 on error.
    1.98 + */
    1.99 +extern DECLSPEC int SDLCALL SDL_BlendEllipse
   1.100 +    (SDL_Surface * dst, int x, int y, int w, int h,
   1.101 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
   1.102 +
   1.103 +/**
   1.104 + *  Fills the given ellipse with \c color.
   1.105 + *  
   1.106 + *  The color should be a pixel of the format used by the surface, and 
   1.107 + *  can be generated by the SDL_MapRGB() function.
   1.108 + *  
   1.109 + *  \return 0 on success, or -1 on error.
   1.110 + */
   1.111 +extern DECLSPEC int SDLCALL SDL_FillEllipse
   1.112 +    (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
   1.113 +
   1.114 +/**
   1.115 + *  Blends an RGBA value into the given ellipse.
   1.116 + *  
   1.117 + *  \return This function returns 0 on success, or -1 on error.
   1.118 + */
   1.119 +extern DECLSPEC int SDLCALL SDL_BlendFillEllipse
   1.120 +    (SDL_Surface * dst, int x, int y, int w, int h,
   1.121 +     int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
   1.122 +#endif // 0
   1.123 +
   1.124  /**
   1.125   *  Performs a fast blit from the source surface to the destination surface.
   1.126   *