Jo Engine  9
Jo Sega Saturn Engine
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
sgl_prototypes.h File Reference

SGL prototypes. More...

Go to the source code of this file.

Data Structures

struct  PCM
 
struct  SPR_ATTR
 
struct  ATTR
 
struct  POLYGON
 
struct  PDATA
 
struct  TEXTURE
 
struct  PICTURE
 
struct  PerDigital
 
struct  CdcPos
 
struct  CdcPly
 
struct  CdcFile
 
struct  CdcSubh
 
struct  GfsFinfo
 
struct  GfsCdRsrc
 
struct  GfsScsiRsrc
 
struct  GfsMemRsrc
 
struct  GfsDtsrc
 
struct  GfsFlow
 
struct  GfsDataPack
 
struct  GfsTrans
 
struct  GfsFile
 
struct  GfsDirId
 
struct  GfsDirName
 
struct  GfsDirTbl
 
struct  GfsErrStat
 
struct  GfcdFconQu
 
struct  CdcStat
 
struct  GfcdSelQu
 
struct  GfsCdbMng
 
struct  GfsSvr
 
struct  GfsDirMng
 
struct  GfsFileFunc
 
struct  GfsMng
 
struct  SmpcDateTime
 
struct  SmpcStatus
 
union  CdcPos.pbody
 
struct  CdcPos.pbody.trkidx
 
union  GfsDtsrc.rsrc
 
union  GfsDirTbl.dir
 
struct  CdcStat.report
 
struct  GfsCdbMng.tsk_setflt
 
struct  GfsCdbMng.tsk_fltcon
 
struct  GfsCdbMng.tsk_setcon
 
struct  GfsCdbMng.tsk_getlen
 
struct  GfsCdbMng.tsk_reqdat
 
struct  GfsCdbMng.tsk_delsct
 
struct  GfsCdbMng.tsk_movsct
 
struct  GfsCdbMng.tsk_chgdir
 

Macros

#define SEGA_XPT_H
 
#define SEGA_GFS_H
 
#define SEGA_CDC_H
 
#define SEGA_BUP_H
 
#define VDP2_VRAM_A0
 
#define VDP2_VRAM_A1
 
#define VDP2_VRAM_B0
 
#define VDP2_VRAM_B1
 
#define VDP2_COLRAM
 
#define CHAR_SIZE_1x1
 
#define COL_TYPE_256
 
#define KTBL0_RAM
 
#define BACK_CRAM
 
#define CL_Half
 
#define CL_Trans
 
#define CL_Gouraud
 
#define PER_ID_NotConnect
 
#define PER_ID_StnPad
 
#define PER_ID_StnMouse
 
#define PER_ID_ShuttleMouse
 
#define toFIXED(a)
 
#define POStoFIXED(x, y, z)
 
#define DEGtoANG(d)
 
#define NORMAL(x, y, z)
 
#define VERTICES(v0, v1, v2, v3)
 
#define C_RGB(r, g, b)
 
#define ECdis
 
#define SPdis
 
#define sprPolygon
 
#define FUNC_Texture
 
#define FUNC_Polygon
 
#define FUNC_PolyLine
 
#define MESHon
 
#define CL32KRGB
 
#define UseTexture
 
#define UseLight
 
#define UsePalette
 
#define No_Texture
 
#define No_Option
 
#define No_Gouraud
 
#define No_Palet
 
#define sprNoflip
 
#define _Stereo
 
#define _Mono
 
#define _PCM16Bit
 
#define _PCM8Bit
 
#define PNB_2WORD
 
#define PNB_1WORD
 
#define CN_10BIT
 
#define CN_12BIT
 
#define COL_TYPE_32768
 
#define PL_SIZE_1x1
 
#define PL_SIZE_2x1
 
#define PL_SIZE_2x2
 
#define NBG0ON
 
#define NBG1ON
 
#define BM_512x256
 
#define BM_512x512
 
#define BM_1024x256
 
#define BM_1024x512
 
#define scnNBG0
 
#define scnNBG1
 
#define CDC_POS_PTYPE(pos)
 
#define CDC_POS_FAD(pos)
 
#define CDC_POS_TNO(pos)
 
#define CDC_POS_IDX(pos)
 
#define CDC_PLY_START(ply)
 
#define CDC_PLY_END(ply)
 
#define CDC_PLY_PMODE(ply)
 
#define CDC_PLY_STYPE(ply)
 
#define CDC_PLY_SFAD(ply)
 
#define CDC_PLY_STNO(ply)
 
#define CDC_PLY_SIDX(ply)
 
#define CDC_PLY_ETYPE(ply)
 
#define CDC_PLY_EFAS(ply)
 
#define CDC_PLY_ETNO(ply)
 
#define CDC_PLY_EIDX(ply)
 
#define CDC_SM_EOR
 
#define CDC_SM_VIDEO
 
#define CDC_SM_AUDIO
 
#define CDC_SM_DATA
 
#define CDC_SM_TRIG
 
#define CDC_SM_FORM
 
#define CDC_SM_RT
 
#define CDC_SM_EOF
 
#define CDC_PM_DFL
 
#define GFS_ERR_OK
 
#define GFS_ERR_CDRD
 
#define GFS_ERR_CDNODISC
 
#define GFS_ERR_CDROM
 
#define GFS_ERR_DIRTBL
 
#define GFS_ERR_OPENMAX
 
#define GFS_ERR_DIR
 
#define GFS_ERR_CDBFS
 
#define GFS_ERR_NONAME
 
#define GFS_ERR_NEXIST
 
#define GFS_ERR_FID
 
#define GFS_ERR_HNDL
 
#define GFS_ERR_SEEK
 
#define GFS_ERR_ORG
 
#define GFS_ERR_NUM
 
#define GFS_ERR_OFS
 
#define GFS_ERR_FBUSY
 
#define GFS_ERR_PARA
 
#define GFS_ERR_BUSY
 
#define GFS_ERR_NOHNDL
 
#define GFS_ERR_PUINUSE
 
#define GFS_ERR_ALIGN
 
#define GFS_ERR_TMOUT
 
#define GFS_ERR_CDOPEN
 
#define GFS_ERR_BFUL
 
#define GFS_ERR_FATAL
 
#define GFS_FNAME_LEN
 
#define GFS_FTYPE_NR
 
#define GFS_SCTBUF_SIZ
 
#define GFS_OPEN_MAX
 
#define GFS_FCONQ_MAX
 
#define GFS_CDBBUF_NR
 
#define GFS_SELQ_MAX
 
#define GFS_WORK_SIZE(open_max)
 
#define GFS_DIRTBL_TYPE(dirtbl)
 
#define GFS_DIRTBL_DIRNAME(dirtbl)
 
#define GFS_DIRTBL_NDIR(dirtbl)
 
#define slGetStatus()
 
#define COL_256
 
#define COL_32K
 
#define SPR_ATTRIBUTE(t, c, g, a, d)
 
#define FUNC_Sprite
 
#define CL256Bnk
 
#define SpriteVRAM
 
#define CGADDRESS
 
#define AdjCG(cga, hs, vs, col)
 
#define TEXTBL(hs, vs, cga)
 
#define PICTBL(texno, cmode, pcsrc)
 

Typedefs

typedef unsigned char Uint8
 
typedef signed char Sint8
 
typedef unsigned short Uint16
 
typedef signed short Sint16
 
typedef unsigned long Uint32
 
typedef signed long Sint32
 
typedef int Bool
 
typedef float Float32
 
typedef Sint16 ANGLE
 
typedef Sint32 FIXED
 
typedef FIXED MATRIX[4][3]
 
typedef FIXED VECTOR[XYZ]
 
typedef FIXED POINT[XYZ]
 
typedef Sint32(* GfsTransFunc) (void *obj, Sint32 nsct)
 
typedef GfsDataPackGfdpHn
 
typedef GfsTransGftrHn
 
typedef GfsFileGfsHn
 
typedef void(* GfsErrFunc) (void *obj, Sint32 ec)
 

Enumerations

enum  ps {
  X, Y, Z, XYZ,
  XYZS, XYZSS, XY, S,
  Sh, Sv
}
 
enum  base { SORT_BFR, SORT_MIN, SORT_MAX, SORT_CEN }
 
enum  pln { Single_Plane, Dual_Plane }
 
enum  SmpcCommand {
  SMPC_MSHON, SMPC_SSHON, SMPC_SSHOFF, SMPC_SNDON,
  SMPC_SNDOFF, SMPC_CDON, SMPC_CDOFF, SMPC_SYSRES,
  SMPC_CKC352, SMPC_CKC320, SMPC_NMIREQ, SMPC_RESENA,
  SMPC_RESDIS, SMPC_GETSTS, SMPC_GETPER, SMPC_SETMEM,
  SMPC_SETTIM, SMPC_CMDMAX
}
 
enum  SmpcWaitMode { SMPC_NO_WAIT, SMPC_WAIT }
 
enum  BooleanSwitch { OFF, ON }
 
enum  BooleanLogic { FALSE, TRUE }
 
enum  tvsz {
  TV_320x224, TV_320x240, TV_320x256, TV_dummy1,
  TV_352x224, TV_352x240, TV_352x256, TV_dummy2,
  TV_640x224, TV_640x240, TV_640x256, TV_dummy3,
  TV_704x224, TV_704x240, TV_704x256, TV_dummy4,
  TV_320x448, TV_320x480, TV_320x512, TV_dummy5,
  TV_352x448, TV_352x480, TV_352x512, TV_dummy6,
  TV_640x448, TV_640x480, TV_640x512, TV_dummy7,
  TV_704x448, TV_704x480, TV_704x512, TV_dummy8
}
 
enum  CdcStatus {
  CDC_ST_BUSY, CDC_ST_PAUSE, CDC_ST_STANDBY, CDC_ST_PLAY,
  CDC_ST_SEEK, CDC_ST_SCAN, CDC_ST_OPEN, CDC_ST_NODISC,
  CDC_ST_RETRY, CDC_ST_ERROR, CDC_ST_FATAL, CDC_ST_PERI,
  CDC_ST_TRNS, CDC_ST_WAIT, CDC_ST_REJECT
}
 
enum  GfsTransMode {
  GFS_TMODE_SCU, GFS_TMODE_SDMA0, GFS_TMODE_SDMA1, GFS_TMODE_CPU,
  GFS_TMODE_STM, GFS_TMODE_END
}
 
enum  CdcPosType {
  CDC_PTYPE_DFL, CDC_PTYPE_FAD, CDC_PTYPE_TNO, CDC_PTYPE_NOCHG,
  CDC_PTYPE_END
}
 
enum  GfsSeekMode { GFS_SEEK_SET, GFS_SEEK_CUR, GFS_SEEK_END }
 
enum  GfsDirType { GFS_DIR_ID, GFS_DIR_NAME }
 
enum  GfsServerStatus { GFS_SVR_COMPLETED, GFS_SVR_BUSY, GFS_SVR_CDPAUSE, GFS_SVR_ERROR }
 
enum  SmpcLanguage {
  SMPC_ENGLISH, SMPC_DEUTSCH, SMPC_FRANCAIS, SMPC_ESPANOL,
  SMPC_ITALIANO, SMPC_JAPAN
}
 

Functions

void slCurColor (Uint16)
 
void slPlaneNbg1 (Uint16)
 
void slUnitMatrix (MATRIX)
 
Bool slDispSprite (FIXED *, SPR_ATTR *attr, ANGLE)
 
void slScrPosNbg1 (FIXED x, FIXED y)
 
void slZoomNbg1 (FIXED x, FIXED y)
 
void slDMACopy (void *, void *, Uint32)
 
void slBack1ColSet (void *, Uint16)
 
void slCharNbg0 (Uint16 type, Uint16 size)
 
void slCharNbg1 (Uint16 type, Uint16 size)
 
void slTVOn (void)
 
void slPageNbg1 (void *, void *, Uint16)
 
void slMapNbg1 (void *, void *, void *, void *)
 
void slPrint (char *, void *)
 
void slBitMapNbg1 (Uint16, Uint16, void *)
 
void slTVOff (void)
 
Bool slScrAutoDisp (Uint32)
 
void slInitSystem (Uint16, TEXTURE *, Sint8)
 
void slSynch (void)
 
void slPriority (Sint16, Uint16)
 
void * slLocate (Uint16, Uint16)
 
void slLookAt (FIXED *camera, FIXED *target, ANGLE)
 
void slLight (VECTOR)
 
Bool slPushMatrix (void)
 
Bool slPopMatrix (void)
 
void slRotX (ANGLE)
 
void slRotY (ANGLE)
 
void slRotZ (ANGLE)
 
void slScale (FIXED, FIXED, FIXED)
 
Bool slPutPolygon (PDATA *)
 
Bool slWindow (Sint16, Sint16, Sint16, Sint16, Sint16, Sint16, Sint16)
 
void slPerspective (ANGLE)
 
void slTranslate (FIXED, FIXED, FIXED)
 
void slZdspLevel (Uint16)
 
Bool slRequestCommand (Uint8, Uint8)
 
void slInitSound (Uint8 *, Uint32, Uint8 *, Uint32)
 
Bool slCDDAOn (Uint8, Uint8, Sint8, Sint8)
 
Sint8 slPCMOn (PCM *, void *, Uint32)
 
Bool slPCMOff (PCM *)
 
Sint8 slSndPCMNum ()
 
void slSndFlush ()
 
Bool slPCMStat (PCM *)
 
Bool slSndVolume (Uint8)
 
Sint32 CDC_CdPlay (CdcPly *ply)
 
Sint32 CDC_CdSeek (CdcPos *pos)
 
Sint32 CDC_CdInit (Sint32 iflag, Sint32 stnby, Sint32 ecc, Sint32 retry)
 
Sint32 GFS_Init (Sint32 open_max, void *work, GfsDirTbl *dirtbl)
 
Sint32 GFS_NwFread (GfsHn gfs, Sint32 nsct, void *buf, Sint32 bsize)
 
Sint32 GFS_NwExecOne (GfsHn gfs)
 
Sint32 GFS_Fread (GfsHn gfs, Sint32 nsct, void *buf, Sint32 bsize)
 
void GFS_NwGetStat (GfsHn gfs, Sint32 *amode, Sint32 *ndata)
 
GfsHn GFS_Open (Sint32 fid)
 
void GFS_Close (GfsHn gfs)
 
void GFS_GetFileSize (GfsHn gfs, Sint32 *sctsz, Sint32 *nsct, Sint32 *lstsz)
 
Sint32 GFS_NwCdRead (GfsHn gfs, Sint32 nsct)
 
Sint32 GFS_SetTransPara (GfsHn gfs, Sint32 tsize)
 
Sint32 GFS_LoadDir (Sint32 fid, GfsDirTbl *dirtbl)
 
Sint32 GFS_SetDir (GfsDirTbl *dirtbl)
 
Sint32 GFS_NameToId (Sint8 *fname)
 
Sint32 GFS_Load (Sint32 fid, Sint32 ofs, void *buf, Sint32 bsize)
 
Sint32 GFS_Seek (GfsHn gfs, Sint32 ofs, Sint32 org)
 
void slIntFunction (void(*func)())
 
Uint8 slGetLanguage (void)
 
void SYS_Exit (Sint32 code)
 

Variables

PerDigitalSmpc_Peripheral
 
Uint8 Per_Connect1
 
Uint8 Per_Connect2
 
SmpcStatusSmpc_Status
 

Detailed Description

SGL prototypes.

Author
Johannes Fetz

Data Structure Documentation

struct PCM
Data Fields
Uint8 channel
Uint8 eflevelL
Uint8 eflevelR
Uint8 efselectL
Uint8 efselectR
Uint8 level
Uint8 mode
Sint8 pan
Uint16 pitch
struct SPR_ATTR
Data Fields
Uint16 atrb
Uint16 colno
Uint16 dir
Uint16 gstb
Uint16 texno
struct ATTR
Data Fields
Uint16 atrb
Uint16 colno
Uint16 dir
Uint8 flag
Uint16 gstb
Uint8 sort
Uint16 texno
struct POLYGON
Data Fields
VECTOR norm
Uint16 Vertices[4]
struct PDATA
Data Fields
ATTR * attbl
Uint32 nbPoint
Uint32 nbPolygon
POLYGON * pltbl
POINT * pntbl
struct TEXTURE
Data Fields
Uint16 CGadr
Uint16 Hsize
Uint16 HVsize
Uint16 Vsize
struct PICTURE
Data Fields
Uint16 cmode
void * pcsrc
Uint16 texno
struct PerDigital
Data Fields
Uint16 data
Uint32 dummy2[4]
Uint8 ext
Uint8 id
Uint16 pull
Uint16 push
struct CdcPos
Data Fields
union CdcPos pbody
Sint32 ptype
struct CdcPly
Data Fields
CdcPos end
Uint8 pmode
CdcPos start
struct CdcFile
Data Fields
Uint8 atr
Sint32 fad
Uint8 fn
Uint8 gap
Sint32 size
Uint8 unit
struct CdcSubh
Data Fields
Uint8 cimsk
Uint8 cival
Uint8 cn
Uint8 fn
Uint8 smmsk
Uint8 smval
struct GfsFinfo
Data Fields
Sint32 fid
CdcFile finfo
Sint32 lstrm
Sint32 nsct
Sint32 sctsz
struct GfsCdRsrc
Data Fields
Sint32 bufno
Sint32 efad
Sint32 filepos
Sint32 flt
Sint32 fmode
Sint32 puid
Sint32 sctpos
Sint32 sctsz
Sint32 sfad
CdcSubh subh
struct GfsScsiRsrc
Data Fields
Sint32 fid
Sint32 filepos
Sint32 sctnum
Sint32 sctpos
struct GfsMemRsrc
Data Fields
void * data
Sint32 filepos
Sint32 sctnum
Sint32 sctpos
struct GfsDtsrc
Data Fields
Sint32 ftype
union GfsDtsrc rsrc
struct GfsFlow
Data Fields
GfsDtsrc dtsrc
GfsFinfo finfo
Sint32 gmode
Sint32 sct
Sint32 sctcnt
Sint32 sctmax
Sint32 stat
struct GfsDataPack
Data Fields
Sint32 adlt
void * data
Sint32 len
Sint32 nsct
Bool use
struct GfsTrans
Data Fields
Bool active
void * buf
GfdpHn dpd
GfdpHn dps
Sint32 mode
void * obj
Sint32 size
Sint32 stat
Sint32 tbytcnt
GfsTransFunc tfunc
Sint32 tsct
Sint32 tsctcnt
Sint32 tsctmax
Sint32 unit
Sint32 wp
struct GfsFile
Data Fields
Sint32 amode
Sint32 astat
GfsFlow flow
GfsTrans trans
Bool used
struct GfsDirId
Data Fields
CdcFile dirrec
struct GfsDirName
Data Fields
CdcFile dirrec
Sint8 fname[12]
struct GfsDirTbl
Data Fields
union GfsDirTbl dir
Sint32 ndir
Sint32 type
struct GfsErrStat
Data Fields
Sint32 code
GfsErrFunc func
void * obj
struct GfcdFconQu
Data Fields
Sint32 buf
Sint32 flnout
Sint32 flt
struct CdcStat
Data Fields
struct CdcStat report
Uint8 status
struct GfcdSelQu
Data Fields
Sint32 fad
Uint8 flt
Uint8 fmode
Sint32 snum
CdcSubh subh
struct GfsSvr
Data Fields
GfsHn access_file[24]
Sint32 nfile
struct GfsDirMng
Data Fields
GfsDirTbl dirtbl
Sint32 nfile
struct GfsMng
Data Fields
GfsCdbMng cdb
GfsDirMng curdir
GfsDataPack dstpk
Sint32 efad
GfsErrStat error
GfsFile file[1]
Uint32 flags
GfsFileFunc functbl[3]
Sint32 openmax
GfsHn pickup
Uint8 sect_buf[2048]
Sint32 sfad
GfsDataPack srcpk
GfsSvr svr
Sint32 timer
GfsHn trans
struct SmpcDateTime
Data Fields
Uint8 date
Uint8 dummy
Uint8 hour
Uint8 minute
Uint8 month
Uint8 second
Uint16 year
struct SmpcStatus
Data Fields
Uint8 area
Uint8 cond
Uint8 ctg
Uint8 dummy1
Uint16 dummy2
SmpcDateTime rtc
Uint32 smem
Uint16 system
union CdcPos.pbody
Data Fields
Sint32 fad
pbody trkidx
struct CdcPos.pbody.trkidx
Data Fields
Uint8 idx
Uint8 tno
union GfsDtsrc.rsrc
Data Fields
GfsCdRsrc cd
GfsMemRsrc mem
GfsScsiRsrc scsi
union GfsDirTbl.dir
Data Fields
GfsDirId * dir_i
GfsDirName * dir_n
struct CdcStat.report
Data Fields
Uint8 ctladr
Sint32 fad
Uint8 flgrep
Uint8 idx
Uint8 tno
struct GfsCdbMng.tsk_setflt
Data Fields
Sint32 len
GfcdSelQu selq[24]
Sint32 stat
struct GfsCdbMng.tsk_fltcon
Data Fields
GfcdFconQu fconq[24]
Sint32 len
Sint32 stat
struct GfsCdbMng.tsk_setcon
Data Fields
Sint32 flt
Sint32 stat
struct GfsCdbMng.tsk_getlen
Data Fields
Sint32 bufno
Sint32 cnt
Sint32 * nbyte
Sint32 * nsct
Sint32 spos
Sint32 stat
Sint32 usct
struct GfsCdbMng.tsk_reqdat
Data Fields
Sint32 bufno
Sint32 nsct
Sint32 sctpos
Sint32 stat
struct GfsCdbMng.tsk_delsct
Data Fields
Sint32 bufno
Sint32 nsct
Sint32 sctpos
Sint32 stat
struct GfsCdbMng.tsk_movsct
Data Fields
Sint32 dst
Sint32 fmode
Sint32 snum
Sint32 spos
Sint32 src
Sint32 stat
struct GfsCdbMng.tsk_chgdir
Data Fields
Sint16 fid
Sint32 * ndir
Sint32 stat
Sint16 work

Macro Definition Documentation

#define _Mono
#define _PCM16Bit
#define _PCM8Bit
#define _Stereo
#define AdjCG (   cga,
  hs,
  vs,
  col 
)
#define BACK_CRAM
#define BM_1024x256
#define BM_1024x512
#define BM_512x256
#define BM_512x512
#define C_RGB (   r,
  g,
 
)
#define CDC_PLY_EFAS (   ply)
#define CDC_PLY_EIDX (   ply)
#define CDC_PLY_END (   ply)
#define CDC_PLY_ETNO (   ply)
#define CDC_PLY_ETYPE (   ply)
#define CDC_PLY_PMODE (   ply)
#define CDC_PLY_SFAD (   ply)
#define CDC_PLY_SIDX (   ply)
#define CDC_PLY_START (   ply)
#define CDC_PLY_STNO (   ply)
#define CDC_PLY_STYPE (   ply)
#define CDC_PM_DFL
#define CDC_POS_FAD (   pos)
#define CDC_POS_IDX (   pos)
#define CDC_POS_PTYPE (   pos)
#define CDC_POS_TNO (   pos)
#define CDC_SM_AUDIO
#define CDC_SM_DATA
#define CDC_SM_EOF
#define CDC_SM_EOR
#define CDC_SM_FORM
#define CDC_SM_RT
#define CDC_SM_TRIG
#define CDC_SM_VIDEO
#define CGADDRESS
#define CHAR_SIZE_1x1
#define CL256Bnk
#define CL32KRGB
#define CL_Gouraud
#define CL_Half
#define CL_Trans
#define CN_10BIT
#define CN_12BIT
#define COL_256
#define COL_32K
#define COL_TYPE_256
#define COL_TYPE_32768
#define DEGtoANG (   d)
#define ECdis
#define FUNC_Polygon
#define FUNC_PolyLine
#define FUNC_Sprite
#define FUNC_Texture
#define GFS_CDBBUF_NR
#define GFS_DIRTBL_DIRNAME (   dirtbl)
#define GFS_DIRTBL_NDIR (   dirtbl)
#define GFS_DIRTBL_TYPE (   dirtbl)
#define GFS_ERR_ALIGN
#define GFS_ERR_BFUL
#define GFS_ERR_BUSY
#define GFS_ERR_CDBFS
#define GFS_ERR_CDNODISC
#define GFS_ERR_CDOPEN
#define GFS_ERR_CDRD
#define GFS_ERR_CDROM
#define GFS_ERR_DIR
#define GFS_ERR_DIRTBL
#define GFS_ERR_FATAL
#define GFS_ERR_FBUSY
#define GFS_ERR_FID
#define GFS_ERR_HNDL
#define GFS_ERR_NEXIST
#define GFS_ERR_NOHNDL
#define GFS_ERR_NONAME
#define GFS_ERR_NUM
#define GFS_ERR_OFS
#define GFS_ERR_OK
#define GFS_ERR_OPENMAX
#define GFS_ERR_ORG
#define GFS_ERR_PARA
#define GFS_ERR_PUINUSE
#define GFS_ERR_SEEK
#define GFS_ERR_TMOUT
#define GFS_FCONQ_MAX
#define GFS_FNAME_LEN
#define GFS_FTYPE_NR
#define GFS_OPEN_MAX
#define GFS_SCTBUF_SIZ
#define GFS_SELQ_MAX
#define GFS_WORK_SIZE (   open_max)
#define KTBL0_RAM
#define MESHon
#define NBG0ON
#define NBG1ON
#define No_Gouraud
#define No_Option
#define No_Palet
#define No_Texture
#define NORMAL (   x,
  y,
 
)
#define PER_ID_NotConnect
#define PER_ID_ShuttleMouse
#define PER_ID_StnMouse
#define PER_ID_StnPad
#define PICTBL (   texno,
  cmode,
  pcsrc 
)
#define PL_SIZE_1x1
#define PL_SIZE_2x1
#define PL_SIZE_2x2
#define PNB_1WORD
#define PNB_2WORD
#define POStoFIXED (   x,
  y,
 
)
#define scnNBG0
#define scnNBG1
#define SEGA_BUP_H
#define SEGA_CDC_H
#define SEGA_GFS_H
#define SEGA_XPT_H
#define slGetStatus ( )
#define SPdis
#define SPR_ATTRIBUTE (   t,
  c,
  g,
  a,
 
)
#define SpriteVRAM
#define sprNoflip
#define sprPolygon
#define TEXTBL (   hs,
  vs,
  cga 
)
#define toFIXED (   a)
#define UseLight
#define UsePalette
#define UseTexture
#define VDP2_COLRAM
#define VDP2_VRAM_A0
#define VDP2_VRAM_A1
#define VDP2_VRAM_B0
#define VDP2_VRAM_B1
#define VERTICES (   v0,
  v1,
  v2,
  v3 
)

Typedef Documentation

typedef Sint16 ANGLE
typedef int Bool
typedef Sint32 FIXED
typedef float Float32
typedef GfsDataPack* GfdpHn
typedef void(* GfsErrFunc) (void *obj, Sint32 ec)
typedef GfsFile* GfsHn
typedef Sint32(* GfsTransFunc) (void *obj, Sint32 nsct)
typedef GfsTrans* GftrHn
typedef FIXED MATRIX[4][3]
typedef FIXED POINT[XYZ]
typedef signed short Sint16
typedef signed long Sint32
typedef signed char Sint8
typedef unsigned short Uint16
typedef unsigned long Uint32
typedef unsigned char Uint8
typedef FIXED VECTOR[XYZ]

Enumeration Type Documentation

enum base
Enumerator
SORT_BFR 
SORT_MIN 
SORT_MAX 
SORT_CEN 
Enumerator
FALSE 
TRUE 
Enumerator
OFF 
ON 
enum CdcPosType
Enumerator
CDC_PTYPE_DFL 
CDC_PTYPE_FAD 
CDC_PTYPE_TNO 
CDC_PTYPE_NOCHG 
CDC_PTYPE_END 
enum CdcStatus
Enumerator
CDC_ST_BUSY 
CDC_ST_PAUSE 
CDC_ST_STANDBY 
CDC_ST_PLAY 
CDC_ST_SEEK 
CDC_ST_SCAN 
CDC_ST_OPEN 
CDC_ST_NODISC 
CDC_ST_RETRY 
CDC_ST_ERROR 
CDC_ST_FATAL 
CDC_ST_PERI 
CDC_ST_TRNS 
CDC_ST_WAIT 
CDC_ST_REJECT 
enum GfsDirType
Enumerator
GFS_DIR_ID 
GFS_DIR_NAME 
Enumerator
GFS_SEEK_SET 
GFS_SEEK_CUR 
GFS_SEEK_END 
Enumerator
GFS_SVR_COMPLETED 
GFS_SVR_BUSY 
GFS_SVR_CDPAUSE 
GFS_SVR_ERROR 
Enumerator
GFS_TMODE_SCU 
GFS_TMODE_SDMA0 
GFS_TMODE_SDMA1 
GFS_TMODE_CPU 
GFS_TMODE_STM 
GFS_TMODE_END 
enum pln
Enumerator
Single_Plane 
Dual_Plane 
enum ps
Enumerator
XYZ 
XYZS 
XYZSS 
XY 
Sh 
Sv 
Enumerator
SMPC_MSHON 
SMPC_SSHON 
SMPC_SSHOFF 
SMPC_SNDON 
SMPC_SNDOFF 
SMPC_CDON 
SMPC_CDOFF 
SMPC_SYSRES 
SMPC_CKC352 
SMPC_CKC320 
SMPC_NMIREQ 
SMPC_RESENA 
SMPC_RESDIS 
SMPC_GETSTS 
SMPC_GETPER 
SMPC_SETMEM 
SMPC_SETTIM 
SMPC_CMDMAX 
Enumerator
SMPC_ENGLISH 
SMPC_DEUTSCH 
SMPC_FRANCAIS 
SMPC_ESPANOL 
SMPC_ITALIANO 
SMPC_JAPAN 
Enumerator
SMPC_NO_WAIT 
SMPC_WAIT 
enum tvsz
Enumerator
TV_320x224 
TV_320x240 
TV_320x256 
TV_dummy1 
TV_352x224 
TV_352x240 
TV_352x256 
TV_dummy2 
TV_640x224 
TV_640x240 
TV_640x256 
TV_dummy3 
TV_704x224 
TV_704x240 
TV_704x256 
TV_dummy4 
TV_320x448 
TV_320x480 
TV_320x512 
TV_dummy5 
TV_352x448 
TV_352x480 
TV_352x512 
TV_dummy6 
TV_640x448 
TV_640x480 
TV_640x512 
TV_dummy7 
TV_704x448 
TV_704x480 
TV_704x512 
TV_dummy8 

Function Documentation

Sint32 CDC_CdInit ( Sint32  iflag,
Sint32  stnby,
Sint32  ecc,
Sint32  retry 
)
Sint32 CDC_CdPlay ( CdcPly ply)
Sint32 CDC_CdSeek ( CdcPos pos)
void GFS_Close ( GfsHn  gfs)
Sint32 GFS_Fread ( GfsHn  gfs,
Sint32  nsct,
void *  buf,
Sint32  bsize 
)
void GFS_GetFileSize ( GfsHn  gfs,
Sint32 sctsz,
Sint32 nsct,
Sint32 lstsz 
)
Sint32 GFS_Init ( Sint32  open_max,
void *  work,
GfsDirTbl dirtbl 
)
Sint32 GFS_Load ( Sint32  fid,
Sint32  ofs,
void *  buf,
Sint32  bsize 
)
Sint32 GFS_LoadDir ( Sint32  fid,
GfsDirTbl dirtbl 
)
Sint32 GFS_NameToId ( Sint8 fname)
Sint32 GFS_NwCdRead ( GfsHn  gfs,
Sint32  nsct 
)
Sint32 GFS_NwExecOne ( GfsHn  gfs)
Sint32 GFS_NwFread ( GfsHn  gfs,
Sint32  nsct,
void *  buf,
Sint32  bsize 
)
void GFS_NwGetStat ( GfsHn  gfs,
Sint32 amode,
Sint32 ndata 
)
GfsHn GFS_Open ( Sint32  fid)
Sint32 GFS_Seek ( GfsHn  gfs,
Sint32  ofs,
Sint32  org 
)
Sint32 GFS_SetDir ( GfsDirTbl dirtbl)
Sint32 GFS_SetTransPara ( GfsHn  gfs,
Sint32  tsize 
)
void slBack1ColSet ( void *  ,
Uint16   
)
void slBitMapNbg1 ( Uint16  ,
Uint16  ,
void *   
)
Bool slCDDAOn ( Uint8  ,
Uint8  ,
Sint8  ,
Sint8   
)
void slCharNbg0 ( Uint16  type,
Uint16  size 
)
void slCharNbg1 ( Uint16  type,
Uint16  size 
)
void slCurColor ( Uint16  )
Bool slDispSprite ( FIXED ,
SPR_ATTR attr,
ANGLE   
)
void slDMACopy ( void *  ,
void *  ,
Uint32   
)
Uint8 slGetLanguage ( void  )
void slInitSound ( Uint8 ,
Uint32  ,
Uint8 ,
Uint32   
)
void slInitSystem ( Uint16  ,
TEXTURE ,
Sint8   
)
void slIntFunction ( void(*)()  func)
void slLight ( VECTOR  )
void* slLocate ( Uint16  ,
Uint16   
)
void slLookAt ( FIXED camera,
FIXED target,
ANGLE   
)
void slMapNbg1 ( void *  ,
void *  ,
void *  ,
void *   
)
void slPageNbg1 ( void *  ,
void *  ,
Uint16   
)
Bool slPCMOff ( PCM )
Sint8 slPCMOn ( PCM ,
void *  ,
Uint32   
)
Bool slPCMStat ( PCM )
void slPerspective ( ANGLE  )
void slPlaneNbg1 ( Uint16  )
Bool slPopMatrix ( void  )
void slPrint ( char *  ,
void *   
)
void slPriority ( Sint16  ,
Uint16   
)
Bool slPushMatrix ( void  )
Bool slPutPolygon ( PDATA )
Bool slRequestCommand ( Uint8  ,
Uint8   
)
void slRotX ( ANGLE  )
void slRotY ( ANGLE  )
void slRotZ ( ANGLE  )
void slScale ( FIXED  ,
FIXED  ,
FIXED   
)
Bool slScrAutoDisp ( Uint32  )
void slScrPosNbg1 ( FIXED  x,
FIXED  y 
)
void slSndFlush ( )
Sint8 slSndPCMNum ( )
Bool slSndVolume ( Uint8  )
void slSynch ( void  )
void slTranslate ( FIXED  ,
FIXED  ,
FIXED   
)
void slTVOff ( void  )
void slTVOn ( void  )
void slUnitMatrix ( MATRIX  )
Bool slWindow ( Sint16  ,
Sint16  ,
Sint16  ,
Sint16  ,
Sint16  ,
Sint16  ,
Sint16   
)
void slZdspLevel ( Uint16  )
void slZoomNbg1 ( FIXED  x,
FIXED  y 
)
void SYS_Exit ( Sint32  code)

Variable Documentation

Uint8 Per_Connect1
Uint8 Per_Connect2
PerDigital* Smpc_Peripheral
SmpcStatus* Smpc_Status