njDrawPoint2D | Japanese
    <-|INDEX|->
Draws points on a 2D screen.

### FORMAT

      #include <Ninja.h>
      void njDrawPoint2D( *p, n, pri, attr)
      NJS_POINT2COL *p
      Int n
      Float pri
      Uint32 attr

### PARAMETERS

*p
  list of coordinates of points to be drawn
n
  number of points to draw
pri
  priority (used as Z value)
attr
  attributes (specifies drawing method)

### RETURN VALUE

  None

### FUNCTION

- Draws n points.
- An array of NJS_POINT2COL type is used when drawing multiple points.
- Valid attributes are used to draw n points of the specified color in the screen coordinate system at the coordinates specified by p.
- The following three attributes can be specified.

  NJD_DRAW_NORMAL | Normal drawing.
  NJD_TRANSPARENT | Transparent drawing.
  NJD_USE_TEXTURE | Drawing with texture.

  These attributes can be used in mutually consistent combinations by using the "|" character as a delimiter.

### EXAMPLE

  The following draws 100 points at random locations.

      Sint32 i;
      NJS_POINT2COL	p2c[100];
      NJS_POINT2	p[100];
      NJS_COLOR	col[100];

      p2c.p = p;
      p2c.col = col;
      p2c.tex = NULL;
      p2c.num = 100;

      for(i=0;i<100;i++){
        p2c.p[i].x = (Sint16)(njRandom() * 640.f);
        p2c.p[i].y = (Sint16)(njRandom() * 480.f);
        p2c.col[i].color = (Sint32)(njRandom() * 0xFFFFFFFF);
      }

      njDrawPoint2D(p,100,-2.f,NJD_DRAW_NORMAL);

### NOTES

- The NJD_DRAW_NORMAL attribute may be omitted when used in combination with other attributes.

### RELATED TOPICS

njDrawPoint2D |
    <-|INDEX|->