#include "sgl.h"
ROTSCROLL *addr_A;
void slRparaInitSet( addr_A );
ROTSCROLL *addr_A - VRAM start address where rotation parameter table is stored
void - returns nothing.
slRparaInitSet ( ( void * )( 0x25e5fe00 ) );
slMakeKtable | slKtableRA | slKtableRB | slRparaReadCtrlRA |
slRparaReadCtrlRB | MsScreenSizeX | MsScreenSizeY | Resolution |
VDP2_RPTA | ScrRotPtr | rpara_vram_adr | RotScrParA |
RotScrParB |
#include "sgl.h"
Uint16 mode;
void slCurRpara( mode );
Uint16 mode - rotation parameters
void - returns nothing.
/* Manipulate rotation coefficient A */
slCurRpara ( RA );
slUnitMatrix ( CURRENT );
slTranslate ( toFIXED ( 10.0 ), toFIXED ( 20.0 ), toFIXED ( 15.0 ) );
slRotZ ( DEGtoANG ( 10.0 ) );
slScrMatSet ();
/* Manipulate rotation coefficient B */
slCurRpara ( RB );
slUnitMatrix ( CURRENT );
slTranslate ( toFIXED ( 100.0 ), toFIXED ( -100.0 ), toFIXED ( 15.0 ) );
slRotZ ( DEGtoANG ( 10.0 ) );
slScrMatSet ();
slRparaMode | slScrMatSet | slScrMatConv | ScrRotPtr |
RotScrParA | RotScrParB |
#include "sgl.h"
Uint16 mode;
void slRparaMode( mode );
Uint16 mode - Rotation parameter mode (described later).
void - returns nothing.
slRparaMode ( RA );
slCurRpara | slRparaMode | slRparaReadCtrlRA | slRparaReadCtrlRB |
VDP2_RPMD |
#include "sgl.h"
void *addr_A;
void slMakeKtable( *addr_A );
void *addr_A - VRAM address of coefficient table
void - returns nothing.
slRparaInitSet ( ( void * )( 0x25e5fe00 ) );
slKtableRA ( ( void * )( 0x25e40000 ), K_2WORD | K_ON | K_DOT | K_FIX );
slMakeKtable ( ( void * )( 0x25e40000 ) );
slRparaMode ( K_CHANGE );
slRparaInitSet | slKtableRA | slKtableRB | slRparaReadCtrlRA |
slRparaReadCtrlRB | VDP2_KTAOF | k_table_adr |
#include "sgl.h"
void *addr_A;
Uint16 mode;
void slKtableRA( addr_A, mode );
void slKtableRB( addr_A, mode );
void *addr_A - VRAM address of coefficient table
Uint16 mode - Coefficient table control mode (described later)
void - returns nothing.
K_OFF | K_ON : Table use
K_2WORD | K_1WORD : Coefficient data size
K_MODE0 | K_MODE1 | K_MODE2 | K_MODE3 : Coefficient mode
K_LINECOL : Line color
K_DOT | K_LINE : Transformation unit
K_FIX : Fixed coefficient Change the above value according to the function to be used with "|" Please specify by connecting.
Use mode 0 (pick up the x and y expansion factors from the coefficient table),
When using a coefficient of 2 in Word mode, per dot.
#define RBG0RA_RPARA_ADR ( void * )VDP2_VRAM_A0
void slKtableRA ( RBG0RA_RPARA_ADR, K_ON | K_2WORD | K_MODE0 | K_DOT );
slRparaInitSet | slRparaReadCtrlRA | VDP2_KTCTL | slRparaReadCtrlRB |
VDP2_KTAOF | RotScrParA | RotScrParB |
#include "sgl.h"
Uint16 type;
void slRparaReadCtrlRA( type );
void slRparaReadCtrlRB( type );
Uint16 type - How to read rotation parameters (described later).
void - returns nothing.
slRparaReadCtrlRB ( LnRd_Yst );
slRparaInitSet | slKtableRA | slKtableRB | VDP2_RPRCTL |