#include "sgl.h" Uint16 type; void slVRAMMode( type );
Uint16 type - VRAM division method (described later).
void - returns nothing.
Of the VRAM of VDP2, only divide VRAM B (do not divide A).
slVRAMMode ( Div_B );
#include "sgl.h" Uint32 a0; Uint32 a1; Uint32 b0; Uint32 b1; void slScrCycleSet( a0, a1, b0, b1 );
Uint32 a0 - Cycle pattern for bank a0.
Uint32 a1 - Cycle pattern for bank a1.
Uint32 b0 - Cycle pattern for bank b0.
Uint32 b1 - Cycle pattern for bank b1.
void - returns nothing.
Uint32 a0 = 0xfffffeee; Uint32 a1 = 0x4455feee; Uint32 b0 = 0x01feeeee; Uint32 b1 = 0xfffeeeee; slScrCycleSet ( a0, a1, b0, b1 ); slScrDisp ( NBG0ON | NBG1ON | NBG2OFF | NBG3OFF );
slScrAutoDisp | slScrDisp | VDP2_CYCA0L | VDP2_CYCA0U |
VDP2_CYCA1L | VDP2_CYCA1U | VDP2_CYCB0L | VDP2_CYCB0U |
VDP2_CYCB1L | VDP2_CYCB1U |
#include "sgl.h" Uint32 mode; Bool slScrAutoDisp( mode );
Uint32 mode - The side for which you want to set the function (multiple specifications can be specified using '|') (described later).
Bool - error status (described below)
Use NBG1 in addition to the debug string display (NBG0) screen.
slCharNbg1 ( ... ); slPageNbg1 ( ... ); slPlaneNbg1 ( ... ); slMapNbg1 ( ... ); slScrAutoDisp ( NBG0ON | NBG1ON );
#include "sgl.h" Uint32 mode; void slScrDisp( mode );
Uint32 mode - Surface to draw (multiple specifications can be specified using '|') (described later).
void - returns nothing.
Displays NBG0~2 and does not display NBG3.
slScrDisp ( NBG0ON | NBG1ON | NBG2ON | NBG3OFF );
slScrAutoDisp | slScrCycleSet | VDP2_BGON |
#include "sgl.h" Uint16 mode; void slColRAMMode( mode );
Uint16 mode - Color RAM mode name (described later).
void - returns nothing.
Set the color RAM mode to 16-bit color 2048 colors.
slColRAMMode ( CRM16_2048 );
slGradationOn | VDP2_RAMCTL |
#include "sgl.h" Uint16 offset; void slColRAMOffsetNbg0( offset ); void slColRAMOffsetNbg1( offset ); void slColRAMOffsetNbg2( offset ); void slColRAMOffsetNbg3( offset ); void slColRAMOffsetRbg0( offset ); void slColRAMOffsetSpr( offset );
Uint16 offset - starting address of color RAM.
void - returns nothing.
Use NBG1 with color RAM address 25F00200H as offset 0.
slColRAMOffsetNbg1 ( 1 );
slPageNbg0 | slPageNbg1 | slPageNbg2 | slPageNbg3 |
slPageRbg0 | VDP2_CRAOFA | VDP2_CRAOFB |