Japanese
PROGRAMMER'S GUIDEVDP1 library
BackForward
VDP1 library

5.VDP1 extended processing reference


5.1 Data specifications


 Title
data specifications
 Data
Coordinate specification data type
 Data Name
XyInt
 No
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
Lookup table data type
 Data Name
SprLookupTbl
 No
typedef struct SprLookupTbl {
     Uint16  entry[16];
} SprLookupTbl;

 Title
data specifications
 Data
For sprite commands in VRAM
Relative address data type
 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 B y                        */
     Sint16   cx;                         /*     point C x                        */
     Sint16   cy;                         /*     point C y                        */
     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