#include "sgl.h"
Uint16 type;
void slSpecialPrioModeNbg0 (type);
void slSpecialPrioModeNbg1 (type);
void slSpecialPrioModeNbg2 (type);
void slSpecialPrioModeNbg3 (type);
void slSpecialPrioModeRbg0 (type);
Uint16 type --Priority determination mode (described later).
void --Nothing is returned.
Sets the priority determination mode when using special priorities.
type is
spPRI_Scrn , spPRI_Char , spPRI_Dot
Specify one of.
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);
slSpecialFuncCodeA | slSpecialFuncSelectB | VDP2_SFPRMD |
#include "sgl.h"
Uint16 mode;
Uint16 flag;
void slSpecialPrioBitN01 (mode, flag);
Uint16 mode --Screen to set special priority bits (described later).
Uint16 flag --Whether to set a special priority bit.
void --Nothing is returned.
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.
slSpecialPrioBitN01 ( scnNBG0 , ON );
This function manipulates the special priority bits of the pattern name control register of the corresponding screen.
slPageNbg0 | slPageNbg1 | slSpecialPrioModeNbg0 | slSpecialPrioModeNbg1 |
VDP2_BMPNA | VDP2_PNCN0 | VDP2_PNCN1 |
#include "sgl.h"
Uint16 mode;
Uint16 flag;
void slSpecialPrioBitScr (mode, flag);
Uint16 mode --Screen to set special priority bit (described later)
Uint16 flag --Whether to set a special priority bit.
void --Nothing is returned.
Set the special priority bit specified for each face.
In mode,
scnNBG2 , scnNBG3
Will be entered.
flag is
' ON ' or'OFF '
Put in.
slSpecialPrioBitScr ( scnNBG2 , ON );
This function manipulates the special priority bits of the pattern name control register of the corresponding screen.
slPageNbg2 | slPageNbg3 | slSpecialPrioModeNbg2 | slSpecialPrioModeNbg3 |
VDP2_BMPNA |
#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);
Uint16 flag --Whether to set a special priority bit.
void --Nothing is returned.
Set the special priority bit specified for each face.
Set both cell mode and bitmap mode registers.
flag is
' ON ' or'OFF '
Put in.
slSpecialPrioBitRbg0 ( ON );
This function manipulates the special priority bits of the pattern name control register of the corresponding screen.
#include "sgl.h"
Uint16 type;
void slSpecialCCalcModeNbg0 (type);
void slSpecialCCalcModeNbg1 (type);
void slSpecialCCalcModeNbg2 (type);
void slSpecialCCalcModeNbg3 (type);
void slSpecialCCalcModeRbg0 (type);
Uint16 type --Mode for enabling operations (see below).
void --Nothing is returned.
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.
/ * 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);
#include "sgl.h"
Uint16 mode;
Uint16 flag;
void slSpecialCCalcBitN01 (mode, flag);
Uint16 mode --Screen to set special color operation bits (described later)
Uint16 flag --Whether or not to set a special color operation bit.
void --Nothing is returned.
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.
void slSpecialCCalcBitN01 ( scnNBG1 , ON );
This sets a special color operation bit in the corresponding screen pattern name control register.
slPageNbg0 | slPageNbg1 | slSpecialCCalcBitNbg0 | slSpecialCCalcBitNbg0 |
VDP2_BMPNA | VDP2_PNCN0 | VDP2_PNCN1 |
#include "sgl.h"
Uint16 mode;
Uint16 flag;
void slSpecialCCalcBitScr (mode, flag);
Uint16 mode --Screen to set special color operation bits (described later)
Uint16 flag --Whether or not to set a special color operation bit.
void --Nothing is returned.
Set the special color calculation bit specified for each surface.
In mode,
scnNBG2 , scnNBG3
Will be entered.
flag is
' ON ' or'OFF '
Put in.
slSpecialCCalcBitScr ( scnNBG2 , ON );
This sets a special color operation bit in the corresponding screen pattern name control register.
slPageNbg2 | slPageNbg3 | slSpecialCCalcBitNbg2 | slSpecialCCalcBitNbg3 |
VDP2_BMPNA | VDP2_PNCN0 | VDP2_PNCN1 |
#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);
Uint16 flag --Whether or not to set a special color operation bit.
void --Nothing is returned.
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.
slSpecialCCalcBitNbg3 ( ON );
This sets a special color operation bit in the corresponding screen pattern name control register.
#include "sgl.h"
Uint16 type;
void slSpecialFuncCodeA (type);
void slSpecialFuncCodeB (type);
Uint16 type --Color code that enables special features (see below).
void --Nothing is returned.
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'|'.
slSpecialCCalcModeNbg1 ( spPRI_Dot );
slPriorityNbg1 (5);
slPriorityNbg1 (4);
slSpecialFuncCodeA ( sfCOL_cd );
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.
#include "sgl.h"
Uint16 mode;
void slSpecialFuncSelectB (mode);
Uint16 mode --Scroll screen using special function code B.
void --Nothing is returned.
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'|').
slSpecialPrioModeNbg1 ( spPRI_Dot );
slPriorityNbg1 (5);
slPriorityNbg1 (4);
slSpecialFuncCodeB ( sfCOL_01 );
slSpecialFuncSelectB ( NBG1ON );
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.