Japanese

★Special priority



ListReference

function

slSpecialPrioModeNbg0



ListReference

function

slSpecialPrioModeNbg1



ListReference

function

slSpecialPrioModeNbg2



ListReference

function

slSpecialPrioModeNbg3



ListReference

function

slSpecialPrioModeRbg0


Setting the priority determination mode for special priority

Format

    #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).

Return number

    void - returns nothing.

function

Set the priority determination mode when using special priority.
For type, spPRI_Scrn , spPRI_Char , spPRI_Dot Specify one of the following.

example

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

reference

 slSpecialFuncCodeA
 slSpecialFuncSelectB
 VDP2_SFPRMD 



ListReference

function

slSpecialPrioBitN01


Definition of special priority bits

Format

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialPrioBitN01( mode, flag );

argument

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

Return number

    void - returns nothing.

function

Set special priority bits specified for each surface.
Set both registers for cell mode and bitmap mode.
In mode, scnNBG0 , scnNBG1 Either of these will be entered.
The flag is ' ON ' or ' OFF ' Enter.

example

    slSpecialPrioBitN01 ( scnNBG0 , ON );

Note

This function manipulates the special priority bits in the pattern name control register for the appropriate screen.

reference

 slPageNbg0
 slPageNbg1
 slSpecialPrioModeNbg0
 slSpecialPrioModeNbg1
 VDP2_BMPNA
 VDP2_PNCN0
 VDP2_PNCN1 



ListReference

function

slSpecialPrioBitScr


Format

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialPrioBitScr( mode ,flag );

argument

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

Return number

    void - returns nothing.

function

Set special priority bits specified for each surface.
In mode, scnNBG2 , scnNBG3 Either of these will be entered.
The flag is ' ON ' or ' OFF ' Enter.

example

    slSpecialPrioBitScr ( scnNBG2 , ON );

Note

This function manipulates the special priority bits in the pattern name control register for the appropriate 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

Format

    #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 special priority bits.

Return number

    void - returns nothing.

function

Set special priority bits specified for each surface.
Set both registers for cell mode and bitmap mode.
The flag is ' ON ' or ' OFF ' Enter.

example

    slSpecialPrioBitRbg0 ( ON );

Note

This function manipulates the special priority bits in the pattern name control register for the appropriate 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 special color calculation operations

Format

    #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 (described below).

Return number

    void - returns nothing.

function

Set the mode to enable calculation when using special color calculation.
For type, spCCAL_Scrn , spCCAL_Char , spCCAL_Dot , spCCAL_MSB Specify one of the following.

example

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

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

    /* Set priority 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 operation bits

Format

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialCCalcBitN01( mode, flag );

argument

    Uint16 mode - Screen for setting special color operation bits (described later)
    Uint16 flag - Whether to set the special color operation bit.

Return number

    void - returns nothing.

function

Sets special color calculation bits specified for each surface.
Set both registers for cell mode and bitmap mode.
In mode, scnNBG0 , scnNBG1 Either of these will be entered.
The flag is ' ON ' or ' OFF ' Enter.

example

    void slSpecialCCalcBitN01 ( scnNBG1 , ON );

Note

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

reference

 slPageNbg0
 slPageNbg1
 slSpecialCCalcBitNbg0
 slSpecialCCalcBitNbg0
 VDP2_BMPNA
 VDP2_PNCN0
 VDP2_PNCN1 



ListReference

function

slSpecialCCalcBitScr


Definition of special color operation bits

Format

    #include "sgl.h"

    Uint16 mode;
    Uint16 flag;

    void slSpecialCCalcBitScr( mode, flag );

argument

    Uint16 mode - Screen for setting special color operation bits (described later)
    Uint16 flag - Whether to set the special color operation bit.

Return number

    void - returns nothing.

function

Sets special color calculation bits specified for each surface.
In mode, scnNBG2 , scnNBG3 Either of these will be entered.
The flag is ' ON ' or ' OFF ' Enter.

example

    slSpecialCCalcBitScr ( scnNBG2 , ON );

Note

This sets the special color operation bit in the corresponding screen's 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 operation bits

Format

    #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 to set the special color operation bit.

Return number

    void - returns nothing.

function

Sets special color calculation bits specified for each surface.
Set both registers for cell mode and bitmap mode.
The flag is ' ON ' or ' OFF ' Enter.

example

    slSpecialCCalcBitNbg3 ( ON );

Note

This sets the special color operation bit in the corresponding screen's 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


Setting color codes to enable special features

Format

    #include "sgl.h"

    Uint16 type;

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

argument

    Uint16 type - Color code to enable special functionality (see below).

Return number

    void - returns nothing.

function

Specify the color code (lower 4 bits) to enable special functions.
For type, sfCOL_01 , sfCOL_23 , sfCOL_45 , sfCOL_67 , sfCOL_89 , sfCOL_ab , sfCOL_cd , sfCOL_ef Specify by connecting them with '|'.

example

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

Note

Since the last 1 bit of the lower 4 bits of the color code is ignored (this is a hardware specification), for example, if you specify sfCOL_67 , 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 using special function code B

Format

    #include "sgl.h"

    Uint16 mode;

    void slSpecialFuncSelectB( mode );

argument

    Uint16 mode - Scrolling screen using special function code B.

Return number

    void - returns nothing.

function

Specifies a scroll screen that uses special function code B.
In mode, NBG0ON , NBG1ON , NBG2ON , NBG3ON , RBG0ON Specify one of them (if specifying multiple, please connect them with '|').

example

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

Note

Only the BG plane set with this function uses special function code B; other BG planes All use special function code A. That is why the function slSpecialFuncSelectA does not exist. Conversely, think of it as specifying a surface that does not use 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