Return to previous page | Return to menu | Go to next page


Line color screen

The line color screen is a special scroll surface that is prepared only for the purpose of color calculation by forcibly inserting it as the second image of the top image (the image that is actually drawn on the monitor) of the specified scroll surface.
On the line color screen, the color can be set for the entire screen or for each line.
A set of color color RAM address data used for each line must be stored in the VRAM area as a line color table.

Caution
For details on the line color screen, refer to “HARDWARE MANUAL vol.2: VDP2 User's Manual Line Screen”.

To use the line color screen, you need to take the following steps:

1) Line color screen settings When using the line color screen, you must first specify the line color table that stores the line color data.
Also, remember to store the color data specified by the line color table in the color RAM area.

[void slLineColTable (void * adr);]
Specify the line color table address.
The parameter specifies the address in the VRAM area where the line color table is stored.

Use the function “slLine1ColSet” if you want to use a single line color screen.

[void slLine1ColSet (void * adr, Uint16 col);]
The line color screen is set to a single color, and the color is also determined at the same time.

2) Scroll surface registration
Next, register the scroll plane affected by the line color screen.
Use the function “slLineColDisp” to register the scroll plane.

[void slLineColDisp (Uint16 flag);]
Determines the scroll plane affected by the line color screen.
For the parameter, substitute the value in the table below that corresponds to the scroll surface you want to register.
Also, multiple scroll planes can be registered at the same time by connecting multiple parameters with the or operator "|".

Table 8-23 “slLineColDisp” parameter substitution value (flag)

Note) The values ​​in the above table are defined in “sl_def.h” included with the system.

3) Color operation using line color screen
By using the scroll plane that has been registered with the function “slLineColDisp” together with the color calculation processing settings described above, color calculation processing using line color images can be executed.
For details on color calculation processing, see “Color Calculation” in the previous section.

Flow 8-12 Flow of line color screen processing


Return to previous page | Return to menu | Go to next page