Japanese
SGL User's ManualPROGRAMMER'S TUTORIAL
BackForward

Additional notes: SGL library functions that appeared in this chapter

In this chapter, we explained the functions in the table below.

Table 8_27,28,29 SGL library functions that appeared in this chapter
 functional type
 Function name
 Parameter
         function
void slInitSystem TV_MODE type,TEXTURE *ptr,Uint16 cnt System initialization (screen mode settings, etc.)
void slColRAMMode Uint16 mode Color RAM selection mode
void slCharNbg0,1,2,3 Uint16 color,Uint16 char_size NBG character pattern settings
void slCharRgb0 Uint16 color,Uint16 char_size RGB character pattern settings
void slPageNbg0,1,2,3 void *celadr,void *coladr,Uint16 type NBG page settings
void slPageRgb0 void *celadr,void *coladr,Uint16 type RGB page settings
void slPlaneNbg0,1,2,3 Uint16 plane_size NBG plane settings
void slPlaneRA,RB Uint16 plane_size RGB plane settings
void slMapNbg0,1,2,3 void *a,void *b,void *c,void *d NBG map settings
void slMapRA,RB void *a RGB map settings
void slZoomModeNbg0,1 Uint16 zoom_mode Set reduction settings for normal scroll screen
void slRparaInitSet ROTSCROLL *adr Rotation parameter set
void slRparaMode Uint16 mode Setting rotation parameter usage mode
void slCurRpara Uint16 flag Switching the current rotation parameter
void slOverRA,RB Uint16 mode Rotating scroll screen overflow settings
void slBack1ColSet void *adr,Uint16 rgb_col Back screen settings
void slScrPosNbg0,1,2,3 FIXED posx,FIXED posy Setting the display position of the normal scroll screen
void slDispCenterR FIXED posx,FIXED posy Setting the center of rotation for the rotating scroll screen
void slLookR FIXED posx,FIXED posy Setting the viewpoint coordinates of the rotating scroll screen
void slScrAutoDisp Uint32 entry_scr_bit Registration of scroll
void slTVOn void Start drawing process to monitor
void slTVOff void Canceling drawing process to monitor
void slScrDisp Uint32 mode Setting the scroll to draw
void slSynch void screen sync
void slZoomNbg0,1 FIXED scale_x,FIXED scale_y Scaling the normal scroll screen
void slZoomR FIXED scale_x,FIXED scale_y Rotating scroll screen scaling
void slZrotR ANGLE zang Z-axis rotation of rotating scroll screen
void slScrTransparent Uint16 flag Transparent display enable setting
void slPriorityNbg0,1,2,3 Uint16 priority_num Normal scroll screen priority setting
void slPriorityRgb0 Uint16 priority_num Priority setting for rotating scroll screen
void slScrMatConv void Convert current matrix for polygon to scroll
void slScrMatSet void Transfer current matrix state to rotation parameter
void slMakeKtable void *table_adr Create coefficient table
void slKtableRA,RB void *table_adr,Uint16 mode Coefficient table control settings
void slColorCalc Uint16 flag Color calculation control settings
void slColorCalcOn Uint16 flag Color calculation control enable setting
void slColRateNbg0,1,2,3 Uint16 rate NBG color calculation ratio setting
void slColRateRgb0 Uint16 rate RGB color calculation ratio setting
void slColRateLNCL Uint16 rate Color calculation ratio setting for line color screen
void slColRateBACK Uint16 rate Back screen color calculation ratio setting
void slColOffsetOn Uint16 flag Color offset enable setting
void slColOffsetBUse Uint16 flag color offset correct
void slColOffsetA,B Uint16 flag,
Uint16 r, Uint16 g, Uint16 b
Setting the offset value
void slLine1ColSet void *adr,Uint16 col Line monochromatic color matrix set
void slLineColDisp Uint16 flag Line color screen enable setting
void slLineColTable void *adr Line color table setting
void* slLocate Uint16 cell_x,Uint16 cell_y Parameter conversion for character/numeric display functions (parameters are cell specified)
void slPrint char *character,void *locate Screen display of parameter string
void slPrintFX FIXED disp_num,void *locate Parameter specification FIXED type numerical value screen display
void slPrintHex Uint32 num,void *locate Parameter specification HEX type numerical value screen display (upper bit 0 is hidden)
void slDispHex Uint32 num,void *locate Parameter specification HEX type numerical value screen display (upper bit 0 is also displayed)
void slPrinrMatrix MATRIX mtptr,void *locate Screen display of parameter specification matrix

Table 8_30 User-defined functions that appeared in this chapter
 functional type
 Function name
 Parameter
         function
void Cel2VRAM cel_adr,VRAM_adr,char_size Store character pattern data in VRAM
void Map2VRAM pn_adr,VRAM_adr,map_ysize,
map_xsize,pal_offset,map_offset
Store pattern name data in VRAM
void Pal2CRAM color_CRAM_adr,color_size Store color palette data in color RAM


BackForward
SGL User's ManualPROGRAMMER'S TUTORIAL
Copyright SEGA ENTERPRISES, LTD., 1997