Draw Textured Polytriangle
Purpose
The Draw Textured Polytriangle function draws a connected chain of texture mapped triangles.
Syntax
Opcode format | Opcode
[ASCII] (Hex) |
Operand Format | Comments |
Extended ASCII | (Texture | TBD | Draws one or more connected triangles. |
Single-byte,
binary operand |
[w] (77) | TBD | Draw polytriangle. |
Arguments TBD
Details
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)
Notes
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
Toolkit Function |
TBD |
Partial |
Full |
Revised in |
Draw Textured Polytriangle | - | - | - | - |
See Also