User Tools

Site Tools


jvs:cigal:manual:chapter6:r_ldraw

CIGAL Reference Manual, Chapter 6 (RealTime): r_ldraw

r_ldraw -- Draw a line or series of lines

usage: r_ldraw opflg eflag ltime Color EndPts [Npts Flg]

R_LDRAW draws lines on the screen. The coordinates of the endpoints are specified in the array ENDPTS. The number of endpoints is specified in NPTS and the format of the endpoints is indicated by the FLG argument.

The FLG can be:

    0  - Points are (x,y); this is the default
    1  - Points are (color,x,y); the COLOR argument to the command is ignored
    2  - First point is (npts,x,y); subsequent points are (x,y)
    4  - Increment the ENDPTS data address after drawing the data;
         subsequent calls using the ENDPTS variable will start where this call
         left off

R_LDRAW normally draws a line of the indicated color intensity between each pair of endpoints. However, if an endpoint is (-1,-1) it interpreted as a “move” request such that no line is drawn between the previous point and the subsequent point. The (-1,-1) endpoint itself is otherwise ignored. It must be included in the NPTS count however, and if FLG is 1 it must also include a dummy color entry (i.e., (0,-1,-1)).

See Also:
CIGAL Home, CIGAL Manual, RealTime List, Manual Help

jvs/cigal/manual/chapter6/r_ldraw.txt · Last modified: 2023/02/23 18:43 (external edit)