#include "sgl.h" void *addr; void slLineColTable( addr );
void *addr - Line color table address in VRAM.
void - returns nothing.
slDMACopy ( src, ( void * )0x25e20000, 256 * sizeof( Uint16 ) ); : slLineColTable ( ( void * )0x25e20000 );
slLine1ColSet | slLineColTable | slColorCalc | slColorCalcOn |
slLineColDisp | slColorCalcMode | slColRateLNCL | VDP2_LCTA |
#include "sgl.h" void *addr; Uint16 color; void slLine1ColSet( addr, color );
void *addr - Line color table address on VRAM
Uint16 color - Color number.
void - returns nothing.
Multiply the line color on NBG1. (Line color table is 25E20000H) slColorCalc ( CC_RATE | CC_2ND | NBG1ON ); slColorCalcOn ( NBG1ON ); slLine1ColSet( ( void * )0x20000, 128 );
slLineColTable | slColorCalc | slColorCalcOn | slLineColDisp |
slColorCalcMode | slColRateLNCL | VDP2_LCTA |
#include "sgl.h" Uint16 mode; void slLineColDisp( mode );
Uint16 mode - Screen affected by line color when it becomes the top image.
void - returns nothing.
Multiply the line color on NBG1.
slColorCalcMode ( CC_RATE | CC_2ND ); slColorCalcOn ( NBG1ON ); slLineColTable ( ( void * )0x25e20000 ); slLineColDisp ( NBG1ON ); slColRateLNCL ( CLRate20_12 );
slLine1ColSet | slLineColTable | slColorCalc | slColorCalcOn |
slColorCalcMode | slColRateLNCL | slLineColTable | VDP2_LNCLEN |
#include "sgl.h" Uint16 mode; void slColorCalc( mode );
Uint16 mode - Parameters for color calculations (described later).
void - returns nothing.
CC_RATE | CC_ADD : Calculation method CC_TOP | CC_2ND : Calculation specification screen CC_EXT : Extended color calculation NBG0ON | NBG1ON | NBG2ON | NBG3ON | RBG0ON | LNCLON | SPRON : Registration screenConnect the above values with "|" according to the function to be used. Please specify.
Multiply the line color on NBG1.
slColorCalc ( CC_RATE | CC_2ND | NBG1ON ); slLineColTable ( ( void * )0x25e20000 ); slLineColDisp ( NBG1ON ); slColRateLNCL ( CLRate20_12 ); Extended color calculation with NBG0 and NBG1.
slColorCalc ( CC_RATE | CC_TOP | NBG0ON | NBG1ON | CC_EXT ); slColRateNbg0 ( CLRate6_26 ); slColRateNbg1 ( CLRate12_20 ); slPriorityNbg0 ( 7 ); slPriorityNbg1 ( 6 ); slPriorityNbg2 ( 5 );
#include "sgl.h" Uint16 mode; void slColorCalcMode( mode );
Uint16 mode - Color calculation mode (described later).
void - returns nothing.
Multiply the line color on NBG1.
slColorCalcMode ( CC_RATE | CC_2ND ); slColorCalcOn ( NBG1ON ); slLineColTable ( ( void * )0x25e20000 ); slLineColDisp ( NBG1ON ); slColRateLNCL ( CLRate20_12 );
#include "sgl.h" Uint16 mode; void slColorCalcOn( mode );
Uint16 mode - Screen affected by color calculation control
void - returns nothing.
Multiply the line color on NBG1.
slColorCalcMode ( CC_RATE | CC_2ND ); slColorCalcOn ( NBG1ON ); slColRateNbg1 ( CLRate20_12 );
#include "sgl.h" Uint16 mode; void slGradationOn( mode );
Uint16 mode - The surface on which the blur function is applied (described later).
void - returns nothing.
slColRAMMode ( CRM16_1024 ); : slGradationOn ( grdNBG0 ); slColorCalc ( CC_RATE | CC_TOP | NBG0ON ); slColRateNbg0 ( CLRate20_12 );
#include "sgl.h" void slGradationOff( void );
void - gives nothing.
void - returns nothing.
slGradationOff ();
#include "sgl.h" Uint16 rate; Uint16 mode; void slColRate( mode, rate ); void slColRateNbg0( rate ); void slColRateNbg1( rate ); void slColRateNbg2( rate ); void slColRateNbg3( rate ); void slColRateRbg0( rate ); void slColRateLNCL( rate ); void slColRateBACK( rate ); void slColRateSpr0( rate ); void slColRateSpr1( rate ); void slColRateSpr2( rate ); void slColRateSpr3( rate ); void slColRateSpr4( rate ); void slColRateSpr5( rate ); void slColRateSpr6( rate ); void slColRateSpr7( rate );
Uint16 mode - A plane that specifies the color calculation ratio (described later).
Uint16 rate - color calculation rate.
void - returns nothing.
rate Top Screen : Second Screen CLRate31_1 31:1 CLRate30_2 30:2 CLRate29_3 29:3 CLRate28_4 28:4 CLRate27_5 27:5 CLRate26_6 26:6 CLRate25_7 25:7 CLRate24_8 24:8 CLRate23_9 23:9 CLRate22_10 22:10 CLRate21_11 21:11 CLRate20_12 20:12 CLRate19_13 19:13 CLRate18_14 18:14 CLRate17_15 17:15 CLRate16_16 16:16 CLRate15_17 15:17 CLRate14_18 14:18 CLRate13_19 13:19 CLRate12_20 12:20 CLRate11_21 11:21 CLRate10_22 10:22 CLRate9_23 9:23 CLRate8_24 8:24 CLRate7_25 7:25 CLRate6_26 6:26 CLRate5_27 5:27 CLRate4_28 4:28 CLRate3_29 3:29 CLRate2_30 2:30 CLRate1_31 1:31 CLRate0_32 0:32
slColRate ( scnNBG0 , CLRate29_3 ); slColRateNbg2 ( CLRate2_30 );
slLineColTable | slLine1ColSet | slLineColTable | slColorCalc |
slColorCalcOn | slColorCalcMode | slGradationOn | slGradationOff |
VDP2_CCRNA |
#include "sgl.h" void *addr_A; void slBackColTable( addr_A );
void *addr_A - Absolute address indicating the back screen color table.
void - returns nothing.
ss_main() { Uint16 col[ 256 ] = { C_RGB ( 3, 6, 6 ), ... }; : slDMACopy ( col, ( void * )( 0x25e40000 ), 256 * sizeof( Uint16 ) ); : slBackColTable ( ( void * )( 0x25e40000 ) ); :
slBack1ColSet | VDP2_BKTA |
#include "sgl.h" void *addr_A; Uint16 color; void slBack1ColSet( addr_A, color );
void *addr_A - Start address (absolute address) of VRAM to store the back color.
Uint16 color - Specify color data with 5 bits each of RGB.
void - returns nothing.
Make the back screen white.
slBack1ColSet ( ( void * )0x25e00000, 0x7fff
slBackColTable | VDP2_BKTA |