njDrawLine3D | Japanese |
---|---|
--|INDEX|-> | |
Draws lines in 3D space. |
#include <Ninja.h> void njDrawLine3D(*p, n, attr) NJS_POINT3COL *p Int n Uint32 attr
NJD_DRAW_NORMAL | Normal drawing. |
NJD_DRAW_CONNECTED | Drawing of connected lines. |
NJD_DRAW_WHEEL | Radial drawing. |
NJD_TRANSPARENT | Translucent drawing. |
NJD_USE_TEXTURE | Drawing with texture. |
int i; NJS_POINT3COL p; NJS_POINT3 point[100]; NIS_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()); } njDrawLine3D(&p, 100, NJD_DRAW_NORMAL|NJD_TRANSPARENT);
Since this function draws in 3D, the view, screen, and matrix stack settings must be made before using it. |
njDrawLine3D | --|INDEX|-> |
---|