Platform SDK: DirectX

D3DLINEPATTERN

The D3DLINEPATTERN type describes a line pattern. These values are used by the D3DRENDERSTATE_LINEPATTERN render state in the CONST_D3DRENDERSTATETYPE enumeration.

Type D3DLINEPATTERN 
    linePattern Long
    repeatFactor As Long
End Type

Members

linePattern
Bits specifying the line pattern. For example, the following binary value would produce a dotted line: 1100110011001100.
repeatFactor
Number of times to duplicate each series of 1s and 0s specified in the linePattern member. This repeat factor allows an application to stretch the line pattern.

Remarks

A line pattern specifies how a line is drawn. The line pattern is always the same, no matter where it is started. (This differs from stippling, which affects how objects are rendered; that is, to imitate transparency.)

The line pattern specifies up to a 16-pixel pattern of on and off pixels along the line. The repeatFactor member specifies how many pixels are repeated for each entry in linePattern.