★ Special priority



ListReference

function

slSpecialPrioModeNbg0



ListReference

function

slSpecialPrioModeNbg1



ListReference

function

slSpecialPrioModeNbg2



ListReference

function

slSpecialPrioModeNbg3



ListReference

function

slSpecialPrioModeRbg0


Setting the priority determination mode for special priorities

Form

    #include "sgl.h"

    Uint16 type;

    void slSpecialPrioModeNbg0 (type);
    void slSpecialPrioModeNbg1 (type);
    void slSpecialPrioModeNbg2 (type);
    void slSpecialPrioModeNbg3 (type);
    void slSpecialPrioModeRbg0 (type);

argument

    Uint16 type --Priority determination mode (described later).

Number of returns

    void --Nothing is returned.

function

    Sets the priority determination mode when using special priorities.
type is spPRI_Scrn , spPRI_Char , spPRI_Dot Specify one of.

Example

    A special priority is applied to the colors whose lower 4 bits of the color code of NBG2 are 0 and 1 in dot units.
slSpecialPrioModeNbg2 ( spPRI_Dot ); slSpecialFuncCodeA ( sfCOL_01 ); slSpecialFuncSelectB (0);

reference

 slSpecialFuncCodeA
 slSpecialFuncSelectB
 VDP2_SFPRMD 



ListReference

function

slSpecialPrioBitN01


Definition of special priority bits

Form

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialPrioBitN01 (mode, flag);

argument

    Uint16 mode --Screen to set special priority bits (described later).
Uint16 flag --Whether to set a special priority bit.

Number of returns

    void --Nothing is returned.

function

    Set the special priority bit specified for each face.
Set both cell mode and bitmap mode registers.
In mode, scnNBG0 , scnNBG1 Will be entered.
flag is ' ON ' or'OFF ' Put in.

Example

    slSpecialPrioBitN01 ( scnNBG0 , ON );

caution


    This function manipulates the special priority bits of the pattern name control register of the corresponding screen.

reference

 slPageNbg0
 slPageNbg1
 slSpecialPrioModeNbg0
 slSpecialPrioModeNbg1
 VDP2_BMPNA
 VDP2_PNCN0
 VDP2_PNCN1 



ListReference

function

slSpecialPrioBitScr


Form

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialPrioBitScr (mode, flag);

argument

    Uint16 mode --Screen to set special priority bit (described later)
    Uint16 flag --Whether to set a special priority bit.

Number of returns

    void --Nothing is returned.

function

    Set the special priority bit specified for each face.
In mode, scnNBG2 , scnNBG3 Will be entered.
flag is ' ON ' or'OFF ' Put in.

Example

    slSpecialPrioBitScr ( scnNBG2 , ON );

caution


    This function manipulates the special priority bits of the pattern name control register of the corresponding screen.

reference

 slPageNbg2
 slPageNbg3
 slSpecialPrioModeNbg2
 slSpecialPrioModeNbg3
 VDP2_BMPNA 



ListReference

macro

slSpecialPrioBitNbg0



ListReference

macro

slSpecialPrioBitNbg1



ListReference

macro

slSpecialPrioBitNbg2



ListReference

macro

slSpecialPrioBitNbg3



ListReference

function

slSpecialPrioBitRbg0



ListReference

macro

slSpecialPrioBitBMN0



ListReference

macro

slSpecialPrioBitBMN1



ListReference

macro

slSpecialPrioBitBMR0


Definition of special priority bits

Form

    #include "sgl.h"

    Uint16 flag;

    void slSpecialPrioBitNbg0 (flag);
    void slSpecialPrioBitNbg1 (flag);
    void slSpecialPrioBitNbg2 (flag);
    void slSpecialPrioBitNbg3 (flag);
    void slSpecialPrioBitRbg0 (flag);
    void slSpecialPrioBitBMN0 (flag);
    void slSpecialPrioBitBMN1 (flag);
    void slSpecialPrioBitBMR0 (flag);

argument

    Uint16 flag --Whether to set a special priority bit.

Number of returns

    void --Nothing is returned.

function

    Set the special priority bit specified for each face.
Set both cell mode and bitmap mode registers.
flag is ' ON ' or'OFF ' Put in.

Example

    slSpecialPrioBitRbg0 ( ON );

caution


    This function manipulates the special priority bits of the pattern name control register of the corresponding screen.

reference

 slPageNbg0
 slPageNbg1
 slPageNbg2
 slPageNbg3
 slSpecialPrioModeNbg0
 slSpecialPrioModeNbg1
 slSpecialPrioModeNbg2
 slSpecialPrioModeNbg3
 slSpecialPrioModeRbg0
 slSpecialPrioBitN01
 slSpecialPrioBitScr
 VDP2_PNCR 


★ Special color calculation



ListReference

function

slSpecialCCalcModeNbg0



ListReference

function

slSpecialCCalcModeNbg1



ListReference

function

slSpecialCCalcModeNbg2



ListReference

function

slSpecialCCalcModeNbg3



ListReference

function

slSpecialCCalcModeRbg0


Setting the mode to enable the operation of special color operation

Form

    #include "sgl.h"

    Uint16 type;

    void slSpecialCCalcModeNbg0 (type);
    void slSpecialCCalcModeNbg1 (type);
    void slSpecialCCalcModeNbg2 (type);
    void slSpecialCCalcModeNbg3 (type);
    void slSpecialCCalcModeRbg0 (type);

argument

    Uint16 type --Mode for enabling operations (see below).

Number of returns

    void --Nothing is returned.

function

    Set the mode to enable the operation when using the special color operation.
type is spCCAL_Scrn , spCCAL_Char , spCCAL_Dot , spCCAL_MSB Specify one of.

Example

    / * Color calculation settings. * /
    slColorCalc ( CC_RATE | CC_TOP | NBG1ON );
    slColRateNbg1 ( CLRate20_12 );

    / * Declaration of use of special color operation * /
    slSpecialCCalcModeNbg1 ( spPRI_Dot );

    / * Priority setting slPriorityNbg1 (5);
    slPriorityNbg3 (4);

    / * Special function settings * /
    slSpecialFuncCodeA ( sfCOL_01 );
    slSpecialFuncSelectB (0);

reference

 slColorCalc
 slColorCalcOn
 slColorCalcMode
 slSpecialFuncCodeA
 slSpecialFuncSelectB
 slColRateNbg0
 slColRateNbg1
 slColRateNbg2
 slColRateNbg3
 slColRateRbg0
 slColRateLNCL
 slColRateBACK
 slColRateSpr0
 slColRateSpr1
 slColRateSpr2
 slColRateSpr3
 slColRateSpr4
 slColRateSpr5
 slColRateSpr6
 slColRateSpr7
 VDP2_SFCCMD 



ListReference

function

slSpecialCCalcBitN01


Definition of special color arithmetic bits

Form

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialCCalcBitN01 (mode, flag);

argument

    Uint16 mode --Screen to set special color operation bits (described later)
    Uint16 flag --Whether or not to set a special color operation bit.

Number of returns

    void --Nothing is returned.

function

    Set the special color calculation bit specified for each surface.
Set both cell mode and bitmap mode registers.
In mode, scnNBG0 , scnNBG1 Will be entered.
flag is ' ON ' or'OFF ' Put in.

Example

    void slSpecialCCalcBitN01 ( scnNBG1 , ON );

caution


    This sets a special color operation bit in the corresponding screen pattern name control register.

reference

 slPageNbg0
 slPageNbg1
 slSpecialCCalcBitNbg0
 slSpecialCCalcBitNbg0
 VDP2_BMPNA
 VDP2_PNCN0
 VDP2_PNCN1 



ListReference

function

slSpecialCCalcBitScr


Definition of special color arithmetic bits

Form

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialCCalcBitScr (mode, flag);

argument

    Uint16 mode --Screen to set special color operation bits (described later)
    Uint16 flag --Whether or not to set a special color operation bit.

Number of returns

    void --Nothing is returned.

function

    Set the special color calculation bit specified for each surface.
In mode, scnNBG2 , scnNBG3 Will be entered.
flag is ' ON ' or'OFF ' Put in.

Example

    slSpecialCCalcBitScr ( scnNBG2 , ON );

caution


    This sets a special color operation bit in the corresponding screen pattern name control register.

reference

 slPageNbg2
 slPageNbg3
 slSpecialCCalcBitNbg2
 slSpecialCCalcBitNbg3
 VDP2_BMPNA
 VDP2_PNCN0
 VDP2_PNCN1 



ListReference

macro

slSpecialCCalcBitNbg0



ListReference

macro

slSpecialCCalcBitNbg1



ListReference

macro

slSpecialCCalcBitNbg2



ListReference

macro

slSpecialCCalcBitNbg3



ListReference

function

slSpecialCCalcBitRbg0



ListReference

macro

slSpecialCCalcBitBMN0



ListReference

macro

slSpecialCCalcBitBMN1



ListReference

macro

slSpecialCCalcBitBMR0


Definition of special color arithmetic bits

Form

    #include "sgl.h"

    Uint16 flag;

    void slSpecialCCalcBitNbg0 (flag);
    void slSpecialCCalcBitNbg1 (flag);
    void slSpecialCCalcBitNbg2 (flag);
    void slSpecialCCalcBitNbg3 (flag);
    void slSpecialCCalcBitRbg0 (flag);
    void slSpecialCCalcBitBMN0 (flag);
    void slSpecialCCalcBitBMN1 (flag);
    void slSpecialCCalcBitBMR0 (flag);

argument

    Uint16 flag --Whether or not to set a special color operation bit.

Number of returns

    void --Nothing is returned.

function

    Set the special color calculation bit specified for each surface.
Set both cell mode and bitmap mode registers.
flag is ' ON ' or'OFF ' Put in.

Example

    slSpecialCCalcBitNbg3 ( ON );

caution


    This sets a special color operation bit in the corresponding screen pattern name control register.

reference

 slPageNbg0
 slPageNbg1
 slPageNbg2
 slPageNbg3
 slSpecialCCalcModeNbg0
 slSpecialCCalcModeNbg1
 slSpecialCCalcModeNbg2
 slSpecialCCalcModeNbg3
 slSpecialCCalcModeRbg0
 slSpecialCCalcBitN01
 slSpecialCCalcBitScr
 VDP2_PNCN0
 VDP2_PNCN1
 VDP2_PNCR 


★ Special features



ListReference

function

slSpecialFuncCodeA



ListReference

function

slSpecialFuncCodeB


Color code settings to enable special functions

Form

    #include "sgl.h"

    Uint16 type;

    void slSpecialFuncCodeA (type);
    void slSpecialFuncCodeB (type);

argument

    Uint16 type --Color code that enables special features (see below).

Number of returns

    void --Nothing is returned.

function

    Specifies the color code (lower 4 bits) for which the special function is enabled.
type is sfCOL_01 , sfCOL_23 , sfCOL_45 , sfCOL_67 , sfCOL_89 , sfCOL_ab , sfCOL_cd , sfCOL_ef Are specified by connecting them with'|'.

Example

    slSpecialCCalcModeNbg1 ( spPRI_Dot );
    slPriorityNbg1 (5);
    slPriorityNbg1 (4);
    slSpecialFuncCodeA ( sfCOL_cd );

caution


    Of the lower 4 bits of the color code, the last 1 bit is ignored (hardware specification). For example, if sfCOL_67 is specified, the lower 4 bits are special for colors 6 and 7. The function works.

reference

 slSpecialPrioModeNbg0
 slSpecialPrioModeNbg1
 slSpecialPrioModeNbg2
 slSpecialPrioModeNbg3
 slSpecialPrioModeRbg0
 slSpecialCCalcModeNbg0
 slSpecialCCalcModeNbg1
 slSpecialCCalcModeNbg2
 slSpecialCCalcModeNbg3
 slSpecialCCalcModeRbg0
 slSpecialFuncSelectB
 VDP2_SFSEL 



ListReference

function

slSpecialFuncSelectB


Specifying a scroll screen that uses special function code B

Form

    #include "sgl.h"

    Uint16 mode;

    void slSpecialFuncSelectB (mode);

argument

    Uint16 mode --Scroll screen using special function code B.

Number of returns

    void --Nothing is returned.

function

    Specifies a scroll screen that uses special function code B.
In mode, NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON Specify one of the above (if you specify more than one, connect them with'|').

Example

    slSpecialPrioModeNbg1 ( spPRI_Dot );
    slPriorityNbg1 (5);
    slPriorityNbg1 (4);
    slSpecialFuncCodeB ( sfCOL_01 );
    slSpecialFuncSelectB ( NBG1ON );

caution


    Only the BG surface set by this function uses the special function code B, and the other BG surfaces are
    All use special function code A. That is why there is no function called slSpecialFuncSelectA. Conversely, think of specifying a surface that does not use the special function code A.

reference

 slSpecialPrioModeNbg0
 slSpecialPrioModeNbg1
 slSpecialPrioModeNbg2
 slSpecialPrioModeNbg3
 slSpecialPrioModeRbg0
 slSpecialCCalcModeNbg0
 slSpecialCCalcModeNbg1
 slSpecialCCalcModeNbg2
 slSpecialCCalcModeNbg3
 slSpecialCCalcModeRbg0
 slSpecialFuncCodeA
 slSpecialFuncCodeB
 VDP2_SFSEL

return
Copyright SEGA ENTERPRISES, LTD., 1997