Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2010-01-17 22:41:17
Size: 1187
Editor: SheenaSmith
Comment: content corrections
Revision 8 as of 2010-08-30 05:25:47
Size: 1027
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT||
Line 6: Line 5:
Use this function to draw some number of rectangles in the current rendering target with the drawing color. Use this function to draw some number of rectangles in the current rendering target.
Line 12: Line 11:
int SDL_RenderDrawRects(const SDL_Rect** rect, int SDL_RenderDrawRects(const SDL_Rect** rects,
Line 17: Line 16:
*(typo in header \param rects, rect in syntax)*

||'''rects'''||a pointer to an array of destination rectangles||
||'''rects'''||a pointer to an array of destination rectangles of type [[SDL_Rect]]||
Line 23: Line 20:
Returns 0 on success or -1 if there is no rendering context current; call [[SDL_GetError]]() for more information. Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information.
Line 34: Line 31:
 .[[SDL_GetRenderDrawColor]]???
.[[SDL_RenderDrawLine]]???
 .[[SDL_RenderDrawLines]]???
 .[[SDL_RenderDrawPoint]]???
 .[[SDL_RenderDrawPoints]]???
 .[[SDL_RenderDrawRect]]???
 .[[SDL_SetRenderDrawColor]]???
 .[[SDL_RenderDrawLine]]
 .[[SDL_RenderDrawLines]]
 .[[SDL_RenderDrawPoint]]
 .[[SDL_RenderDrawPoints]]
 .[[SDL_RenderDrawRect]]
 .[[SDL_SetRenderDrawBlendMode]]

 .[[SDL_SetRenderDrawColor]]

SDL_RenderDrawRects

Use this function to draw some number of rectangles in the current rendering target.

Syntax

int SDL_RenderDrawRects(const SDL_Rect** rects,
                        int              count)

Function Parameters

rects

a pointer to an array of destination rectangles of type SDL_Rect

count

the number of rectangles

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryVideo

None: SDL_RenderDrawRects (last edited 2011-03-14 17:58:29 by SheenaSmith)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit