-
Notifications
You must be signed in to change notification settings - Fork 3
rjDrawLineStrip
Shaddatic edited this page Apr 13, 2026
·
1 revision
void rjDrawLineStrip( const NJS_POINT2* vtx, Float ooz, Sint32 Count, Float r, Uint32 Color )void (*DrawLineStrip)( const NJS_POINT2* vtx, Float ooz, Sint32 Count, Float r, Uint32 Color )N/A
const NJS_POINT2* vtx
Line vertex list
One over Z depth, ie hardware depth
Line count
Line width in hardware units
Line color. Translucent drawing is used if Alpha component is != 0xFF
No return value.
Draw 'n' line strip vertexes in hardware units.
This example will draw a 64x64, opaque, box out of 4 red lines in the center of the screen at half depth. The lines will have a width of 2 pixels.
#define NUM_LINE 4
#define NUM_VTX NUM_LINE + 1
// set vertex list
NJS_POINT2 vtx[NUM_VTX] =
{
// x, y
{ 288.f, 208.f }, // line 1: top left
{ 288.f, 272.f }, // line 1: bottom left
{ 352.f, 272.f }, // line 2: bottom right
{ 352.f, 208.f }, // line 3: top right
{ 288.f, 208.f }, // line 4: top left, again
};
// draw polygon
rjDrawLineStrip( vtx, 0.5f, NUM_VTX, 2.f, 0xFFFF0000 ); // <<<<<<<<- rjDrawLineList() Draw a line list
- rjSetCurrentContext()
- rjGetSystemAttr()
- rjSetSystemAttr()
- rjSetBackColor()
- rjSetBackTexture()
- rjSpecularMode()
- rjPolygonCullingMode()
- rjZBufferMode()
- rjZWriteMode()
- rjTextureShadingMode()
- rjSuperSampleMode()
- rjMipmapAdjust()
- rjIgnoreTextureAlphaMode()
- rjTextureFilterMode()
- rjTextureClampMode()
- rjTextureFlipMode()
- rjColorClampMode()
- rjColorBlendingMode()
- rjModifierMode()
- rjSetCheapShadowMode()
- rjSetDepthQueue()
- rjSetEnvelopeWeightValue()
- rjSetTexture()
- rjSetTextureNum()
- rjSetTextureNumG()
- rjGetCurrentTexlist()
- rjDrawPolygon()
- rjDrawTexture()
- rjDrawTextureH()
- rjDrawTextureEx()
- rjDrawTextureHEx()
- rjDrawPolygon3DEx()
- rjDrawTexture3DEx()
- rjDrawTexture3DHEx()
- rjDrawLineStrip()
- rjDrawLineList()
- rjDrawLineStrip3D()
- rjDrawLineList3D()
- rjDrawSprite2D()
- rjDrawSprite3D()
- rjDrawPolygon2D()
- rjDrawQuadTexture()
- rjDrawQuadTextureEx()