DRAFT

SDL_DrawPoints

Use this function to draw points w/ color.

Syntax

int SDL_DrawPoints(SDL_Surface*     dst,
                   const SDL_Point* points,
                   int              count,
                   Uint32           color)

Function Parameters

dst

the SDL_Surface to draw on

points

an array of SDL_Point structures representing the points to draw

count

the number of points in the array

color

the color of the points; see Remarks for details

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

The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB() function.


CategoryAPI, CategorySurface

SDL_DrawPoints (last edited 2010-10-10 21:47:47 by SheenaSmith)