Hitachi HD64411 Q2 User Manual page 93

Quick 2d graphics renderer
Table of Contents

Advertisement

Description
Paints n trapezoids with X = DXL as the side, and line segments (XC, YC) – (XC + DX1, YC +
DY1), (XC + DX1, YC + DY1) – (XC + DX1 + DX2, YC + DY1 + DY2), ..., (XC + ... + DXn
– 1, YC + ... + DYn – 1) – (XC + ... + DXn –1 + DXn, YC + ... + DYn – 1 + DYn) to the
coordinates specified by the relative shift (DX, DY) from the current pointer (XC, YC) as the
right-hand sides, and with top and bottom bases parallel to the X-axis, at work coordinates using
binary EOR. Bottom base drawing is not performed.
The final coordinate point is stored as the current pointer (XC, YC).
Example
(XC+DX1+DX2+DX3,
YC+DY1+DY2+DY3)
Painting order
DXL
86
When n = 3
(0, 0)
(XC, YC)
DXL
DY3
DX3
(XC+DX1+DX2,
DXL
DX1
DY1
(XC+DX1, YC+DY1)
DY2
DX2
YC+DY1+DY2)
Work coordinates
DXL
DXL

Advertisement

Table of Contents
loading

Table of Contents