Draw Textured Polytriangle
The Draw Textured Polytriangle function draws a connected chain of texture mapped triangles.
|Extended ASCII||(Texture||TBD||Draws one or more connected triangles.|
|[w] (77)||TBD||Draw polytriangle.|
Topologically, a polytriangle is a strip of connected triangles, where each successive triangle in the chain is defined by a single vertex and two vertices from the previous triangle in the strip as shown in figure 1.
Figure 1. Example for textured polytriangle with six points
A polytriangle is similar to a polygon, but the vertices are specified in a special order that allows for well-defined smooth shading of the triangle interiors.
When the "Fill Mode" attribute is inactive (the default) the edges of the triangles are rendered as texture mapped lines in accordance with the current "Line Weight," "Line Cap," "Line Pattern," and "Visibility" attributes.
When the "Fill Mode" attribute is active, each triangle is rendered by interpolating the texture coordinates from each vertex across the interior of the triangle, and then selecting colors from a texture map image based on the interpolated coordinates.
(TBD - WORK-IN-PROGRESS)
If a textured polytriangle with more than 65,791 triangles is desired, it must be drawn by multiple Draw Textured Polytriangle opcodes.
Implementation in WHIP! Versions
|Draw Textured Polytriangle||-||-||-||-|