|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
When an accelerated line draw function is implemented, it must draw lines with sub-pixel precision. The EmulatedLinefunction provided with the GPE performs the same task.
The function pointer in the pLineParms pLineparameter is called once for each line segment, with the start pixel on the destination surface defined by the pLineParms xStartand yStartparameters.
The Bresenham parameters for the line are passed in the pLineParms dMand dNparameters. The actual number of pixels to draw is indicated in the pLineParms cPelsparameter.
The function should draw the line in an octant defined by the pLineParms iDirparameter, which contains values shown in the following illustration.
Last updated on Tuesday, July 13, 2004