njDrawPolygon | Japanese
    --|INDEX|->
Draws polygons without textures

### FORMAT

      #include <Ninja.h>
      void njDrawPolygon( *polygon, count, trans )
      NJS_POLYGON_VTX  *polygon
      Int    count
      Int    trans

### PARAMETERS

*polygon
  Pointer for NJS_POLYGON_VTX structure
count
  Number of vertices
trans
  Translucent valid(TRUE), invalid(FALSE)

### RETURN VALUE

  None

### FUNCTION

- Draws polygons without texture. Count vertices in strip format, and set the number to count.
- Set trans to TRUE when translucent is used and to FALSE when it is not used.

### EXAMPLE

  Draws rectangle.

      Vertices order as follws:
      1  3
      2  4

      NJS_POLYGON_VTX  poly[4];

      poly[0].x = 100.f;
      poly[0].y = 100.f;
      poly[0].z = 0.5f;
      poly[0].col = 0xFFFFFFFF;

      poly[1].x = 100.f;
      poly[1].y = 300.f;
      poly[1].z = 0.5f;
      poly[1].col = 0xFFFFFFFF;

      poly[2].x = 300.f;
      poly[2].y = 100.f;
      poly[2].z = 0.5f;
      poly[2].col = 0xFFFFFFFF;

      poly[3].x = 300.f;
      poly[3].y = 300.f;
      poly[3].z = 0.5f;
      poly[3].col = 0xFFFFFFFF;

      njDrawPolygon( poly, 4, FALSE);

### NOTES

### RELATED TOPICS

  njDrawTexture

njDrawPolygon |
    --|INDEX|->