ListReference

function

slColOffsetOn


Screen settings affected by color offset values

Form

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetOn (mode);

argument

    Uint16 mode-Screens affected by color offset values.

Number of returns

    void --Nothing is returned.

function

    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 "|".

Example

    Multiply NBG1 and NBG3 by color offset.
slColOffsetOn ( NBG1ON | NBG3ON ); Disable the color offset for all BGs.
slColOffsetOn ( OFF );

caution


    Specifying OFF for the argument mode turns off the color offset for all faces.

reference

 slColOffsetOff
 slColOffsetAUse
 slColOffsetBUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn
 VDP2_CLOFEN 



ListReference

function

slColOffsetOff


Screen settings that are not affected by the color offset value

Form

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetOff (mode);

argument

    Uint16 mode-Screen that is not affected by the color offset value.

Number of returns

    void --Nothing is returned.

function

    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.

Example

    slColOffsetOff ( NBG2ON | NBG3ON );

caution


    Execute slColOffsetOn ( OFF ) to disable all faces.

reference

 slColOffsetOn
 slColOffsetAUse
 slColOffsetBUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn 



ListReference

function

slColOffsetAUse


Set the screen affected by the color offset value

Form

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetAUse (mode);

argument

    Uint16 mode-Screens affected by color offset values.

Number of returns

    void --Nothing is returned.

function

    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.

Example

    slColOffsetA (35, 23, 12);
                ::
    slColOffsetAUse ( NBG0ON );

caution


    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.

reference

 slColOffsetOn
 slColOffsetOff
 slColOffsetBUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn
 VDP2_CLOFEN 



ListReference

function

slColOffsetBUse


Set the screen affected by the color offset value

Form

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetBUse (mode);

argument

    Uint16 mode-Screens affected by color offset values.

Number of returns

    void --Nothing is returned.

function

    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.

Example

    slColOffsetB (35, 23, 12);
                ::
    slColOffsetBUse ( NBG0ON );

reference

 slColOffsetOn
 slColOffsetOff
 slColOffsetAUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn
 VDP2_CLOFEN 



ListReference

function

slColOffsetA



ListReference

function

slColOffsetB


Set the offset value of color offset A and B

Form

    #include "sgl.h"

    Sint16 r, g, b;

    void slColOffsetA (r, g, b);
    void slColOffsetB (r, g, b);

argument

    Sint16 r --Offset value of red.
Sint16 g --Offset value of green.
Sint16 b --blue offset value.

Number of returns

    void --Nothing is returned.

function

    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.

Example

    slColOffsetA (35, 23, 12);
                ::
    slColOffsetAUse ( NBG0ON );

reference

 slColOffsetOn
 slColOffsetOff
 slColOffsetAUse
 slColOffsetBUse
 slColOffsetScrn
 VDP2_COAR
 VDP2_COAG
 VDP2_COAB
 VDP2_COBR
 VDP2_COBG
 VDP2_COBB 



ListReference

function

slColOffsetScrn


Screen settings affected by color offset

Form

    #include "sgl.h"

    Uint16 mode_a;
    Uint16 mode_b;

    void slColOffsetScrn (mode_a, mode_b);

argument

    Uint16 mode_a-Screen (A) affected by color offset (see below).
Uint16 mode_b-Screen (B) affected by color offset (see below).

Number of returns

    void --Nothing is returned.

function

    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

Example

    slColOffsetScrn ( NBG1ON | NBG2ON , NBG0ON | NBG3ON );   

caution


    This function is a combination of slColOffsetOn () and slColOffsetBUse ().

reference

 VDP2_CLOFEN
 VDP2_CLOFSL

return
Copyright SEGA ENTERPRISES, LTD., 1997