rpdr(3G)
rpdr, rpdri, rpdrs, rpdr2, rpdr2i, rpdr2s - relative polygon draw
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME rpdr, rpdri, rpdrs, rpdr2, rpdr2i, rpdr2s - relative polygon draw C SPECIFICATION void rpdr(dx, dy, dz) Coord dx, dy, dz; void rpdri(dx, dy, dz) Icoord dx, dy, dz; void rpdrs(dx, dy, dz) Scoord dx, dy, dz; void rpdr2(dx, dy) Coord dx, dy; void rpdr2i(dx, dy) Icoord dx, dy; void rpdr2s(dx, dy) Scoord dx, dy; All of the above routines are functionally the same. They differ only in the type declarations for their parameters and in whether they assume a two- or three-dimensional space. PARAMETERS dx expects the distance from the x coordinate of the current graphics position to the x coordinate of the next corner of the polygon. dy expects the distance from the y coordinate of the current graphics position to the y coordinate of the next corner of the polygon. dz expects the distance from the z coordinate of the current graphics position to the z coordinate of the next corner of the polygon. DESCRIPTION rpdr is the relative version of pdr. It specifies the next point in a filled polygon, using the previous point (the current graphics position) as the origin. rpdr updates the current graphics position. The next drawing routine will start drawing from that point. SEE ALSO bgnpolygon, endpolygon, pclos, rpmv, v NOTES rpdr should not be used in new development. Rather, polygons should be drawn using the high-performance v commands, surrounded by calls to bgnpolygon and endpolygon. Matrix commands pushmatrix, translate, and popmatrix should be used to accomplish relative positioning. There can be no more than 256 vertices in a polygon. Therefore, there can be no more than 255 rpdr calls between rpmv and pclos.