Performs color calculation processing. As an application, you can add effects that appear gradually, such as the expression of translucent objects, the appearance of ghosts, and warpouts of spaceships.
[Color offset related functions]
Processing to add an offset to the color. Applications include fade-in, fade-out, blackout, and whiteout. It is also useful for expressing changes from the blue sky to the sunset sky.
[Other special effect related functions]
Blur calculation, line color screen insertion, shadow bit can be set. (The line color screen can only be used for color calculation)
[Register Buffer Write / Read Macro]
Provides a macro for bit access to the priority-related register buffer used by this library. There are about 90 types of macros for writing and reading.
Write macro syntax
SCL_SET_<BitName>(arg);
Read macro syntax
ret = SCL_GET_<BitName>();
〈BitName〉: Bit name (see "VDP2 User's Manual")
arg, ret: See "VDP2 User's Manual">
[V-BLANK interrupt handling related functions]
Describes the frame change processing by the V-BLANKVDP interrupt routine provided by this library to display sprite (VDP1) and scroll (VDP2).
[Frame Change Processing]
Auto change mode (asynchronous mode)
The VRAM is automatically switched every 1/60 seconds, and erase data is written to the frame buffer and sprites are written (frame change).
Therefore, it is not necessary to call the SCL_DisplayFrame () routine.
Constant interval manual change mode (synchronous mode)
If you specify 1 or more as the number of V-BLANK intervals in the SCL_SetFrameInterval routine described later, the V-BLANKVDP interrupt routine will change the frame in increments of one. However, to do so, it is necessary to finish writing the command to VRAM and call the SCL_DisplayFrame () routine. Wait for frame change completion in SCL_DisplayFrame () routine.