PROGRAMMER'S GUIDEVDP1 library
BackForward
VDP1 library

5. VDP1 Extended Processing Reference


5.1 Data specifications


 Title
Data specifications
 Data
Coordinated data type
 Data Name
XyInt
 No
It is defined in sega_def.h.
 typedef struct XyInt {
     Sint16 x;
     Sint16 y;
} XyInt; 

 Title
Data specifications
 Data
Gouraud shading table
 Data Name
SprGourTbl
 No
typedef struct SprGourTbl {
     Uint16 entry [4];
} SprGourTbl;

 Title
Data specifications
 Data
Look-up table data type
 Data Name
SprLookupTbl
 No
typedef struct SprLookupTbl {
     Uint16 entry [16];
} SprLookupTbl;

 Title
Data specifications
 Data
Relative address data type for sprite commands in VRAM
 Data Name
SprVaddr
 No

typedef Uint16 SprVaddr;

 Title
Data specifications
 Data
Sprite command data type
 Data Name
SprSpCmd
 No

typedef struct SprSpCmd {/ * Sprite Command Table * /
     Uint16 control; / * control word * /
     Uint16 link; / * command link * /
     Uint16 drowMode; / * drow mode * /
     Uint16 color; / * color info. * /
     Uint16 charAddr; / * character address * /
     Uint16 charSize; / * character size * /
     Sint16 ax; / * point A x * /
     Sint16 ay; / * point A y * /
     Sint16 bx; / * point B x * /
     Sint16 by; / * point By * /
     Sint16 cx; / * point C x * /
     Sint16 cy; / * point Cy * /
     Sint16 dx; / * point D x * /
     Sint16 dy; / * point D y * /
     Uint16 grshAddr; / * gouraud shading table address * /
     Uint16 dummy; / * dummy area * /
} SprSpCmd;

BackForward
PROGRAMMER'S GUIDEVDP1 library
Copyright SEGA ENTERPRISES, LTD., 1997