Hitachi HD64411 Q2 User Manual page 91

Quick 2d graphics renderer
Table of Contents

Advertisement

Description
Draws a polygon with n-1 vertices at work coordinates. The polygon is drawn by sequentially
painting trapezoids, using binary EOR, with line segments (DX1, DY1) – (DX2, DY2), (DX2,
DY2) – (DX3, DY3), ..., (DXn, DYn) – (DX1, DY1) specified by the parameters as the right-hand
side, with X = DXL as the left-hand side, and with top and bottom bases parallel to the X-axis.
Bottom base drawing is not performed, and so the border should be drawn using the LINEW
command. Set the minimum value of DX1 to DXn as DXL.
Example
Painting order
DXL
DXL
Order of Listing FTRAP Parameters
Listing order
84
n = 5
(0, 0)
DXL
(DX1, DY1)
(DX4, DY4)
(DX3, DY3)
Work coordinates
DXL
n
DXL
DX1
DY1
DX2
DY2
DX3
DY3
DX4
DY4
DX1
Add the start point at the end
DY1
(DX2, DY2)
DXL
DXL

Advertisement

Table of Contents
loading

Table of Contents