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


page

A page is a character pattern spread in a square of 64 x 64 cells. The actual data format is the pattern name data of each character pattern, which is stored in memory continuously as a table for 64 x 64 cells, which is called the pattern name data table.
The pattern name table created in the page setup is passed to a higher plane or map and rearranged.

Figure 8-11 Page image

To set the page in SGL, use the library functions “slPageNbg0 to 3” and “slPageRbg0” according to each scroll screen.

[void slPageNbg0-3 (void * cell_adr, void * col_adr, Uint16 data_type);]
[void slPageRbg0 (void * cell_adr, void * col_adr, Uint16 data_type);] Set the
page (pattern name data table).
For the parameter, substitute the start address of the character pattern to be used, the start address of the palette to be used (offset can be specified for the 1-word type), and the pattern name data type specification (see the table below for parameter substitution values). .

Table 8-11 “slPageNbg0-3”, “slPageRbg0” parameter substitution values ​​(data_type)

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

The following figure shows an example of actual page settings and a list of #defines used for page setting parameters.

Figure 8-12 “slPageNbg0-3”, “slPageRbg0” parameter setting example

List 8-1 #define related to page setting parameters

Note) These #defines are defined in “sl_def.h”.


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