#include "sgl.h" FIXED pos_x, pos_y; void slScrPosNbg0( pos_x, pos_y ); void slScrPosNbg1( pos_x, pos_y ); void slScrPosNbg2( pos_x, pos_y ); void slScrPosNbg3( pos_x, pos_y );
FIXED pos_x - X component of normal scroll placement coordinates (scroll coordinate system) FIXED pos_y - Y component of normal scroll placement coordinates (scroll coordinate system)
void - returns nothing.
slScrPosNbg0 ( toFIXED ( 30.0 ), toFIXED ( -19.4 ) );
#include "sgl.h" FIXED pos_x, pos_y; void slScrMoveNbg0( pos_x, pos_y ); void slScrMoveNbg1( pos_x, pos_y ); void slScrMoveNbg2( pos_x, pos_y ); void slScrMoveNbg3( pos_x, pos_y );
FIXED pos_x - The amount the scroll display position moves in X from its previous position.
FIXED pos_y - The amount the scroll display position moves in Y from its previous position.
void - returns nothing.
slScrMoveNbg1 ( toFIXED ( 1.0 ), toFIXED ( -2.0 ) );
#include "sgl.h" FIXED pos_x, pos_y; void slLookR( pos_x, pos_y );
FIXED pos_x - X component of rotating scroll placement coordinates (scroll coordinate system) FIXED pos_y - Y component of rotating scroll placement coordinates (scroll coordinate system)
void - returns nothing.
slLookR ( toFIXED ( 50.0 ), toFIXED ( 100.0 ) );
slDispCenterR | slZoomR | slScrScaleR | slZrotR |
ScrRotPtr |
#include "sgl.h" FIXED pos_x, pos_y; void slDispCenterR( pos_x , pos_y );
FIXED pos_x - X component of rotating scroll rotation center coordinates (scroll coordinate system) FIXED pos_y - Y component of rotating scroll rotation center coordinates (scroll coordinate system)
void - returns nothing.
slDispCenterR ( toFIXED ( 100.0 ), toFIXED ( 100.0 ) );
slLookR | slZoomR | slScrScaleR | slZrotR |
ScrRotPtr |
#include "sgl.h" FIXED scl_x, scl_y; void slZoomNbg0( scl_x, scl_y ); void slZoomNbg1( scl_x, scl_y );
FIXED scl_x - Reciprocal of normal scroll scaling ratio in the X-axis direction (1/2 for 2x) FIXED scl_y - Reciprocal of normal scroll scaling ratio in Y-axis direction (1/2 for 2x)
void - returns nothing.
Double the X component and halve the Y component of NBG0.
slZoomNbg0 ( toFIXED ( 1/2 ), toFIXED ( 2 ) );
slScrMoveNbg0 | slScrMoveNbg1 | slScrMoveNbg2 | slScrMoveNbg3 |
slScrPosNbg0 | slScrPosNbg1 | slScrPosNbg2 | slScrScaleNbg1 |
slZoomMode | slZoomModeNbg0 | slZoomModeNbg1 |
#include "sgl.h" Uint16 type; Uint16 mode; void slZoomMode( scrn, mode ); void slZoomModeNbg0( type ); void slZoomModeNbg1( type );
Uint16 mode - plane to specify zoom (described later).
Uint16 type - Zoom limit (described later).
void - returns nothing.
void slZoomMode ( scnNBG1 , ZOOM_HALF );
slScrMoveNbg0 | slScrMoveNbg1 | slScrMoveNbg2 | slScrMoveNbg3 |
slScrPosNbg0 | slScrPosNbg1 | slScrPosNbg2 | slScrScaleNbg1 |
slZoomNbg0 | slZoomNbg1 | VDP2_ZMCTL |
#include "sgl.h" FIXED scl_x, scl_y; void slZoomR( scl_x, scl_y );
FIXED scl_x - Reciprocal of the scaling ratio in the X-axis direction of the rotating scroll (1/2 for 2x) FIXED scl_y - Reciprocal of the scaling ratio in the Y-axis direction of the rotating scroll (1/2 if it is 2x)
void - returns nothing.
slZoomR ( toFIXED ( 0.5 ), toFIXED ( 2.0 ) );
slLookR | slDispCenterR | slScrScaleR | slZrotR |
ScrRotPtr |
#include "sgl.h" FIXED scl_x, scl_y; void slScrScaleNbg0( scl_x, scl_y ); void slScrScaleNbg1( scl_x, scl_y );
FIXED scl_x - Normal scroll scaling ratio in the X-axis direction (2 for 2x) FIXED scl_y - Normal scroll scaling ratio in the Y-axis direction (2 for 2x)
void - returns nothing.
slScrScaleNbg1 ( toFIXED ( 2 ), toFIXED ( 1/3 ) );
slScrMoveNbg0 | slScrMoveNbg1 | slScrMoveNbg2 | slScrMoveNbg3 |
slScrPosNbg0 | slScrPosNbg1 | slScrPosNbg2 | slZoomModeNbg0 |
slZoomModeNbg1 | slZoomNbg0 | slZoomNbg1 |
#include "sgl.h" FIXED scl_x, scl_y; void slScrScaleR( scl_x, scl_y );
FIXED scl_x - Scale ratio of rotating scroll in the X-axis direction (2 for 2x) FIXED scl_y - Scaling ratio of rotating scroll in Y-axis direction (2 for 2x)
void - returns nothing.
slScrScaleR ( toFIXED ( 2.0 ), toFIXED ( 1.0 ) );
slLookR | slZoomR | slDispCenterR | slZrotR |
ScrRotPtr |
#include "sgl.h" void slScrMatConv(void)
void - gives nothing.
void - returns nothing.
slUnitMatrix ( CURRENT ); slRotX ( DEGtoANG ( 10.0 ) ); slRotZ ( DEGtoANG ( 10.0 ) ); slTranslate ( ... ); slScrMatConv (); slScrMatSet ();
#include "sgl.h" Uint16 mode; void slScrTransparent( mode );
Uint16 mode - Surface to set transparent color (multiple specifications can be specified with '|')
void - returns nothing.
Set NBG2 to transparent color.
slScrTransparent ( NBG2ON );
VDP2_BGON |
#include "sgl.h" ANGLE angz; void slZrotR( angz );
ANGLE angz - rotation angle value of the rotating scroll with respect to the Z axis
void - returns nothing.
Rotate the rotating scroll 30 degrees counterclockwise around the Z axis.
slZrotR ( DEGtoANG ( 30.0 ) );
slLookR | slZoomR | slDispCenterR | slScrScaleR |
ScrRotPtr |
#include "sgl.h" void slScrMatSet();
void - gives nothing.
void - returns nothing.
Set the rotation parameters of RBG0 using the current matrix.
slPushMatrix (); { slRotY ( ... ); slTranslate ( ... ); slScrMatSet (); } slPopMatrix ();