njDrawCircle2D | Japanese |
---|---|
--|INDEX|-> | |
Draws circles on a 2D screen. |
#include <Ninja.h> void njDrawCircle2D( *p, n, pri, attr ) NJS_POINT2COL *p Int n Float pri Uint32 attr
NJD_DRAW_NORMAL | An ellipse is drawn with center at x,y coordinates of the 1st point. The x of the 2nd point defines the distance from the center in the x direction, and the y defines the distance from the center in the y direction. |
NJD_DRAW_INSCRIBED | The circle is inscribed in the rectangle whose diagonal is defined by two points. |
NJD_DRAW_FAN | Allows drawing of concentric circles. |
NJD_FILL | Drawing with fill. |
NJD_TRANSPARENT | Transparent drawing. |
NJD_USE_TEXTURE | Drawing with texture. |
Sint32 i; NJS_POINT2COL p2c[5]; NJS_POINT2 p[5]; NJS_COLOR col[5]; p2c.p = p; p2c.col = col; p2c.tex = NULL; p2c.num = 5; p2c.p[0].x = 320; p2c.p[0].y = 240; p2c.col[0].color = 0xff000077; p2c.p[1].x = 70; p2c.p[1].y = 40; p2c.col[1].color = 0xff000077; p2c.p[2].x = 570; p2c.p[2].y = 40; p2c.col[2].color = 0x00ff0077; p2c.p[3].x = 570; p2c.p[3].y = 440; p2c.col[3].color = 0x0000ff77; p2c.p[4].x = 70; p2c.p[4].y = 440; p2c.col[4].color = 0xffffff77; njDrawCircle2D(p,4,-10.f,NJD_DRAW_NORMAL|NJD_DRAW_INSCRIBED|NJD_DRAW_FAN);
njDrawCircle2D | --|INDEX|-> |
---|