Hitachi HD64411 Q2 User Manual page 106

Quick 2d graphics renderer
Table of Contents

Advertisement

3. Command Parameters
LINE COLOR0: 8 or 16-bit/pixel color specification
LINE COLOR1: 8 or 16-bit/pixel color specification
SOURCE ADDRESS H: 1-bit/pixel source start upper address
SOURCE ADDRESS L: 1-bit/pixel source start lower address
TDX: Source size
n (n = 1 to 65,535): Number of vertices
DXn, DYn (n = 1 to 65,535): Relative coordinates
Description
Draws a polygonal line comprising 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).
The final coordinate point is stored as the current pointer (XC, YC).
Note: TDX can be set in multiples of 8 pixels.
4-point drawing is used.
Example
n = 2
(0, 0)
(XC+DX1, YC+DY1)
DX1
DY1
(XC, YC)
DX2
DY2
(XC+DX1+DX2, YC+DY1+DY2)
Rendering coordinates
TDX
1100 1100 1100 1100
SOURCE
ADDRESS
L
S
B
TRNS = 1 and STYL = 1 specified
M
S
B
99

Advertisement

Table of Contents
loading

Table of Contents