#include "sgl.h"
Uint16 mode;
void slColOffsetOn (mode);
Uint16 mode-Screens affected by color offset values.
void --Nothing is returned.
Sets the screen that is affected by the color offset value.
In mode,
NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON , OFF
Is entered.
If you want to set the drawing settings for multiple scroll planes at the same time, specify the mode of each plane by connecting them with "|".
Multiply NBG1 and NBG3 by color offset.
slColOffsetOn ( NBG1ON | NBG3ON );
Disable the color offset for all BGs.
slColOffsetOn ( OFF );
Specifying OFF for the argument mode turns off the color offset for all faces.
slColOffsetOff | slColOffsetAUse | slColOffsetBUse | slColOffsetA |
slColOffsetB | slColOffsetScrn | VDP2_CLOFEN |
#include "sgl.h"
Uint16 mode;
void slColOffsetOff (mode);
Uint16 mode-Screen that is not affected by the color offset value.
void --Nothing is returned.
Set the screen to be unaffected by the color offset value.
In mode,
NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON
Is entered.
If you want to set the drawing settings for multiple scroll planes at the same time, set the mode of each plane to "|".
Please specify by connecting with.
slColOffsetOff ( NBG2ON | NBG3ON );
Execute slColOffsetOn ( OFF ) to disable all faces.
slColOffsetOn | slColOffsetAUse | slColOffsetBUse | slColOffsetA |
slColOffsetB | slColOffsetScrn |
#include "sgl.h"
Uint16 mode;
void slColOffsetAUse (mode);
Uint16 mode-Screens affected by color offset values.
void --Nothing is returned.
Sets the screen affected by the color offset value set by the slColOffsetA function.
In mode,
NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON
Is entered.
If you want to set the drawing settings for multiple scroll planes at the same time, set the mode of each plane to "|".
Please specify by connecting with.
slColOffsetA (35, 23, 12);
::
slColOffsetAUse ( NBG0ON );
When the slColOffsetAUse and slColOffsetBUse functions are executed, the slColOffsetOn function is also executed at the same time.
The slColOffsetOn function does not need to be executed by the user.
slColOffsetOn | slColOffsetOff | slColOffsetBUse | slColOffsetA |
slColOffsetB | slColOffsetScrn | VDP2_CLOFEN |
#include "sgl.h"
Uint16 mode;
void slColOffsetBUse (mode);
Uint16 mode-Screens affected by color offset values.
void --Nothing is returned.
Sets the screen affected by the color offset value set by the slColOffsetB function.
In mode,
NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON
Is entered.
If you want to set the drawing settings for multiple scroll planes at the same time, set the mode of each plane to "|".
Please specify by connecting with.
slColOffsetB (35, 23, 12);
::
slColOffsetBUse ( NBG0ON );
slColOffsetOn | slColOffsetOff | slColOffsetAUse | slColOffsetA |
slColOffsetB | slColOffsetScrn | VDP2_CLOFEN |
#include "sgl.h"
Sint16 r, g, b;
void slColOffsetA (r, g, b);
void slColOffsetB (r, g, b);
Sint16 r --Offset value of red.
Sint16 g --Offset value of green.
Sint16 b --blue offset value.
void --Nothing is returned.
Color offset Set the offset value used for A and B.
Only the lower 9 bits are used for the data used in r, g, and b.
slColOffsetA (35, 23, 12);
::
slColOffsetAUse ( NBG0ON );
slColOffsetOn | slColOffsetOff | slColOffsetAUse | slColOffsetBUse |
slColOffsetScrn | VDP2_COAR | VDP2_COAG | VDP2_COAB |
VDP2_COBR | VDP2_COBG | VDP2_COBB |
#include "sgl.h"
Uint16 mode_a;
Uint16 mode_b;
void slColOffsetScrn (mode_a, mode_b);
Uint16 mode_a-Screen (A) affected by color offset (see below).
Uint16 mode_b-Screen (B) affected by color offset (see below).
void --Nothing is returned.
Specify the screens affected by the color offset separately for the face for parameter A and the face for parameter B.
Both mode_a and mode_b contain the following predefined macros.
NBG0ON | NBG0OFF
NBG1ON | NBG1OFF
NBG2ON | NBG2OFF
NBG3ON | NBG3OFF
RBG0ON | RBG0OFF
slColOffsetScrn ( NBG1ON | NBG2ON , NBG0ON | NBG3ON );
This function is a combination of slColOffsetOn () and slColOffsetBUse ().
VDP2_CLOFEN | VDP2_CLOFSL |