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


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


RELATED TOPICS


njDrawPoint2D
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997