Rendering Attributes - Hitachi HD64411 Q2 User Manual

Quick 2d graphics renderer
Table of Contents

Advertisement

Binary Work Data: Binary work data is defined as binary work coordinates (2-dimensional
coordinates). Work data is used to implement polygon painting. Polygon outline data is created
with the FTRAP command, etc. and the created figure data is used to delineate the rendering figure.
For example, if the POLYGON4C command is used jointly for work, the work area polygon can
be drawn in the rendering area with the specified color value. The configuration of binary work data
is shown in figure 4-11.
Number of pixels specified by MWX bit
X
Y
LSB
MSB
Figure 4-11
Binary Source Data Configuration
Specified Color Data: Specified color data is defined directly in drawing parameters COLOR,
COLOR0, COLOR1, LINE COLOR0, and LINE COLOR1. When the Q2 is used for 8-bit/pixel
operation, the same color palette number is defined in the upper 8 bits and lower 8 bits by the
drawing parameter color specification. When the Q2 is used for 16-bit/pixel operation, the R, G,
and B values are defined directly by the drawing parameter color specification.
However, with LINEW and RLINEW, 0 or 1 is defined in the rendering attribute EOS bit.
4 . 3 . 3

Rendering Attributes

With the Q2, seven rendering attributes can be specified. The rendering attributes are embedded in
the commands, and can be specified on an individual command basis. Figure 4-12 shows the bit
arrangement for rendering attributes.
Opcode word
15
11 10
0
CODE
DRAW MODE
10
0
reserved
reserved
reserved reserved
TRNS
STYL
CLIP
NET
EOS
HALF
WORK
Figure 4-12
Rendering Attribute Bit Arrangement
70

Advertisement

Table of Contents
loading

Table of Contents