From SDL_video.h:
/**
- \fn void SDL_RenderFill(const SDL_Rect rect)
- \brief Fill the current rendering target with the drawing color.
-
- \param r The red value used to fill the rendering target
- \param g The green value used to fill the rendering target
- \param b The blue value used to fill the rendering target
- \param a The alpha value used to fill the rendering target, usually SDL_ALPHA_OPAQUE (255)
- \param rect A pointer to the destination rectangle, or NULL for the entire rendering target.
-
- \return 0 on success, or -1 if there is no rendering context current
*/
extern DECLSPEC int SDLCALL SDL_RenderFill(const SDL_Rect * rect);
What’s wrong with this picture?
Fixed in SVN.
Bob Pendleton
From SDL_video.h:
/**
?* \fn void SDL_RenderFill(const SDL_Rect rect)
?
?* \brief Fill the current rendering target with the drawing color.
?*
?* \param r The red value used to fill the rendering target
?* \param g The green value used to fill the rendering target
?* \param b The blue value used to fill the rendering target
?* \param a The alpha value used to fill the rendering target, usually
SDL_ALPHA_OPAQUE (255)
?* \param rect A pointer to the destination rectangle, or NULL for the
entire rendering target.
?*
?* \return 0 on success, or -1 if there is no rendering context current
?*/
extern DECLSPEC int SDLCALL SDL_RenderFill(const SDL_Rect * rect);
What’s wrong with this picture?
My guess would be that the function changed after the documentation
was written. Which is probably the #1 reason why UTSL (Use The Source
Luke) is such a popular phrase.On Tue, Jun 30, 2009 at 3:47 PM, Mason Wheeler wrote:
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
±----------------------------------------------------------
Thanks!
Fixed in SVN.
Bob PendletonFrom: bob@pendleton.com (Bob Pendleton)
Subject: Re: [SDL] SDL_RenderFill documented incorrectly