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


Scroll registration

The scroll screen that has finished storing scroll data and setting the scroll function must be registered with the SGL library function “slScrAutoDisp”.
Scroll registration refers to setting cycle patterns and drawing settings for each scroll screen for which function settings have been completed.

Also, scroll registration may fail depending on the scroll function settings to be registered, the number of scroll planes, and the VRAM bank in which the scroll data is stored.
This is due to several scrolling restrictions, including the scrolling restrictions by the number of colors in the normal scroll screen described above (the restrictions are described in the next section).

[Bool slScrAutoDisp (Uint32 disp_bit);]
Function Registers a scroll screen with settings.
Substitute the values ​​in the table below that correspond to the scroll screen to be registered.
The function returns a return value of 0 when scroll registration is successful and -1 when it fails.

Table 8-18 Scroll registration parameter substitution value (disp_bit)

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

When registering multiple scroll screens, it is convenient to combine the parameter substitution value of the library function “slScrAutoDisp” with the #define value corresponding to each scroll with the or operator “|” (example below) indicate).

Figure 8-17 Registering multiple scroll planes

Note) Parameter substitution values ​​are defined in “sl_def.h”.


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