Japanese

ListReference

function

slColOffsetOn


Screen settings affected by color offset values

Format

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetOn( mode );

argument

    Uint16 mode - Screen affected by color offset value.

Return number

    void - returns nothing.

function

Set the screen 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 for each plane by connecting them with "|".

example

    Apply color offset to NBG1 and NBG3.
slColOffsetOn ( NBG1ON | NBG3ON ); Disable all BG color offsets.
slColOffsetOn ( OFF );

Note

If you specify OFF for the mode argument, color offset will be turned off for all faces.

reference

 slColOffsetOff
 slColOffsetAUse
 slColOffsetBUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn
 VDP2_CLOFEN 



ListReference

function

slColOffsetOff


Setting the screen to be unaffected by color offset values

Format

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetOff( mode );

argument

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

Return number

    void - returns nothing.

function

Set the screen to be unaffected by the color offset value.
In mode, NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON is entered.
When setting the drawing settings for multiple scroll planes at the same time, set the mode for each plane to "|" Please specify by connecting.

example

    slColOffsetOff ( NBG2ON | NBG3ON );

Note

If you want to disable it for all sides, execute slColOffsetOn ( OFF ).

reference

 slColOffsetOn
 slColOffsetAUse
 slColOffsetBUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn 



ListReference

function

slColOffsetAUse


Set the screen affected by the color offset value

Format

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetAUse( mode );

argument

    Uint16 mode - Screen affected by color offset value.

Return number

    void - returns nothing.

function

Sets the screen that is affected by the color offset value set by the function slColOffsetA .
In mode, NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON is entered.
When setting the drawing settings for multiple scroll planes at the same time, set the mode for each plane to "|" Please specify by connecting.

example

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

Note

When you execute the slColOffsetAUse and slColOffsetBUse functions, the slColOffsetOn function will also be executed at the same time, so 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

Format

    #include "sgl.h"

    Uint16 mode;

    void slColOffsetBUse( mode );

argument

    Uint16 mode - Screen affected by color offset value.

Return number

    void - returns nothing.

function

Sets the screen that is affected by the color offset value set by the function slColOffsetB .
In mode, NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON , LNCLON , SPRON is entered.
When setting the drawing settings for multiple scroll planes at the same time, set the mode for each plane to "|" Please specify by connecting.

example

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

reference

 slColOffsetOn
 slColOffsetOff
 slColOffsetAUse
 slColOffsetA
 slColOffsetB
 slColOffsetScrn
 VDP2_CLOFEN 



ListReference

function

slColOffsetA



ListReference

function

slColOffsetB


Set offset values for color offset A and B

Format

    #include "sgl.h"

    Sint16 r, g, b;

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

argument

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

Return number

    void - returns nothing.

function

Set the offset value used for color offset A and B.
Only the lower 9 bits of the data used in r, g, and b are used.

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

Format

    #include "sgl.h"

    Uint16 mode_a;
    Uint16 mode_b;

    void slColOffsetScrn( mode_a, mode_b );

argument

    Uint16 mode_a - Screen affected by color offset (A) (described later).
Uint16 mode_b - Screen affected by color offset (B) (described later).

Return number

    void - returns nothing.

function

Specify the screens affected by color offset separately for parameter A and 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 );   

Note

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

reference

 VDP2_CLOFEN
 VDP2_CLOFSL

return
Copyright SEGA ENTERPRISES, LTD., 1997