Syntax
[C/C++:]
void gDrawShadedPolylineTo3D(int npts, GPOINT3 *points, GPOINT3 *normals, ...);
[F90:]
subroutine gDrawShadedPolylineTo3D(npts, points, normals, gTextCoords,)
integer, intent(in) :: npts
type (GPOINT3), intent(in) :: points(*), normals(*)
type (GPOINT3), optional, intent(in) :: gTextCoords(*)
Arguments
npts
Number of points in the supplied arrays
points
Array holding absolute coordinates specifying the vertices of a polyline to be drawn with respect to the current axes and in the current units
normals
Array specifying normal vectors at each vertex
Optional Args
gTextCoords
Optional array specifying texture coordinate values at each vertex
Description
The gDrawShadedPolylineTo3D routine draws a polyline in 3D using absolute coordinates subject to lighting and shading conditions. The polyline starts at the first point in the supplied array and draws straight lines to each of the remaining
npts-1 points in
points.
The polyline is drawn using the current material attributes and shaded according to the current lighting conditions using the normals supplied in the array
normals. The current texture map may also be applied to the polyline, if texture mapping is switched on, using the texture coordinates supplied in the optional array
gTextCoords, which if not passed are set to zero for each vertex.
The current drawing position is not updated to be the end of the last vector drawn by this routine.
See Also
gDrawShadedPolylineTo3D UsagegSetMaterialIndexgSetTextureMappingMode