Appendix A: System Routines — Windows
1171
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinFillTriangle
Declaration:
void
WinFillTriangle
(WINDOW *
w
, WIN_COORDS
ax
,
WIN_COORDS
ay
, WIN_COORDS
bx
, WIN_COORDS
by
,
WIN_COORDS
cx
, WIN_COORDS
cy
, BYTE
Attr
)
Category(ies):
Windows
Description:
Draw a filled triangle in a window. The fill includes the borders of the
triangle.
Inputs:
w
— WINDOW struct of a previously opened window.
ax, ay, bx,
by, cx, cy
— Coordinates of triangle.
Attr
— A_NORMAL (set) or A_REVERSE (cleared).
Outputs:
None
Assumptions:
A_XOR is not supported.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinFill
Example:
The 3D grapher in HIDDEN SURFACE mode uses this routine to shade the
graph using A_REVERSE if the surface is visible and A_NORMAL if it is
hidden (by splitting the graph into 6-sided polygons and splitting those into
triangles).