##### Ninja Library - 3D Graphics Function

# njDrawPoint3D

Draws points in 3D space

### FORMAT

`

  void njDrawPoint3D( *p, n, attr )
  NJS_POINT2COL *p
  Int n
  Uint32 attr

`

### PARAMETER

  `*p` | List of coordinates of points to be drawn.
  `n` | Number of points to be drawn
  `attr` | Attributes (specifies the drawing method)

### RETURN

  None

### DESCRIPTION

  Draws n number ofpoints in 3D space. An array of NJS_POINT2COL type is used when drawing multiple points. The following attributes can be used for drawing.

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

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

### EXAMPLE

      The following draws 100 points at random.
      int i;
      NJS_COLOR color[100];
      p.p = point;
      p.col = color;
      p.tex = NULL;
      p.num = 100;
      for(i = 0; i < 100; i++){
       p.p[i].x = njRandom()*1000.f-500.f;
       p.p[i].y = njRandom()*1000.f-500.f;
       p.p[i].z = -njRandom()*1000.f;
       p.col[i].argb.a = (Uint8)(0x80*njRandom());
       p.col[i].argb.r = (Uint8)(0x80*njRandom());
       p.col[i].argb.g = (Uint8)(0x80*njRandom());
       p.col[i].argb.b = (Uint8)(0x80*njRandom());
      }
      njDrawPoint3D(&p, 100, NJD_DRAW_NORMAL|NJD_TRANSPARENT);

### NOTE

  Since this function draws in 3D, be sure to make appropriate view, screen, and matrix stack settings before calling this function. The NJD_DRAW_NORMAL may be omitted when it is used in combination with other attributes.

njDrawPoint3D

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999