SGL User's ManualPROGRAMMER'S STRUCT
BackForward

Appendix SGL library functions that appeared in this chapter

In this chapter, the functions in the following table are explained.

Table 8_27,28,29 SGL library functions introduced in this chapter
 Functional type
 Seki several people
 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 setting
void slCharRgb0 Uint16 color, Uint16 char_size RGB character pattern setting
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 the reduction setting of the normal scroll screen
void slRparaInitSet ROTSCROLL * adr Rotation parameter set
void slRparaMode Uint16 mode Rotation parameter usage mode setting
void slCurRpara Uint16 flag Switching current rotation parameters
void slOverRA, RB Uint16 mode Rotation scroll screen over processing setting
void slBack1ColSet void * adr, Uint16 rgb_col Back screen settings
void slScrPosNbg0,1,2,3 FIXED posx, FIXED posy Normal scroll screen display position setting
void slDispCenterR FIXED posx, FIXED posy Rotation center setting of rotation scroll screen
void slLookR FIXED posx, FIXED posy Rotation scroll screen viewpoint coordinate setting
void slScrAutoDisp Uint32 entry_scr_bit Scroll registration
void slTVOn void Start drawing process on the monitor
void slTVOff void Stop drawing process on the monitor
void slScrDisp Uint32 mode Scroll settings to draw
void slSynch void Screen sync
void slZoomNbg0,1 FIXED scale_x, FIXED scale_y Enlarging / reducing the normal scroll screen
void slZoomR FIXED scale_x, FIXED scale_y Rotation scroll screen enlargement / reduction
void slZrotR ANGLE zang Rotation Scroll screen Z-axis rotation
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 Rotation scroll screen priority setting
void slScrMatConv void Convert current matrix for polygons for scrolling
void slScrMatSet void Transfer the state of the current matrix to the 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 arithmetic 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 Line color screen color calculation ratio setting
void slColRateBACK Uint16 rate Back screen color calculation ratio setting
void slColOffsetOn Uint16 flag Color offset enable setting
void slColOffsetBUse Uint16 flag Color offset collect
void slColOffsetA, B Uint16 flag,
Uint16 r, Uint16 g, Uint16 b
Offset value setting
void slLine1ColSet void * adr, Uint16 col Line single color matrix set
void slLineColDisp Uint16 flag Line color screen enable setting
void slLineColTable void * adr Line color table settings
void * slLocate Uint16 cell_x, Uint16 cell_y Parameter conversion for character / numerical display function (parameters are specified in cells)
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 (high-order bit 0 is hidden)
void slDispHex Uint32 num, void * locate Parameter specification HEX type numerical value screen display (high-order bit 0 is also displayed)
void slPrinrMatrix MATRIX mtptr, void * locate Screen display of parameter specification matrix

Table 8_30 User-defined functions introduced in this chapter
 Functional type
 Seki several people
 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 STRUCT
Copyright SEGA ENTERPRISES, LTD., 1997