|
Size: 1187
Comment: content corrections
|
Size: 1027
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.
Contents
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
