njDrawLine2D | Japanese
    <-|INDEX|->
Draws lines on a 2D screen.

### FORMAT

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

### PARAMETERS

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

### RETURN VALUE

  None

### FUNCTION

- Draws n lines.
- Valid attributes are used to draw n lines using point data given in the screen coordinate system.

  NJD_DRAW_NORMAL | Drawing of independent lines.
  NJD_DRAW_FAN | Drawing of radial lines.
  NJD_DRAW_CONNECTED | Drawing of connected lines.
  NJD_TRANSPARENT | Translucent drawing.
  NJD_USE_TEXTURE | Drawing with texture.

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

### EXAMPLE

      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.p[i].col.color = (Sint32)(njRandom() * 0xFFFFFFFF);
      }

      njDrawLine2D(p,100,-2.f,NJD_DRAW_NORMAL|NJD_TRANSPARENT);

### NOTES

- The NJD_DRAW_NORMAL attribute can be omitted when it is used in combination with other attributes.

### RELATED TOPICS

  NJS_POINT2COL

njDrawLine2D |
    <-|INDEX|->