Return to previous page Return to menu Go to next page

 -V blank processing routine (source file different from the above main)-

#include <machine.h> #include "sega_spr.h" #include "sega_scl.h"

#pragma interrupt(VbStart) #pragma interrupt(VbEnd)

void VbStart(void) {      SCL_VblankStart (); / * V blank start VDP interrupt processing * /      -------- / * Other V blank start processing * /  }

void VbEnd(void) {      SCL_VblankEnd (); / * V blank end VDP interrupt processing * /       -------- / * Other V blank end processing * / }

Polygon Z sort in the viewpoint coordinate system of the sprite 3D display library is VDP1 extended. Sprite command priority drawing function of Zhang processing library (2D library) To perform Z-sorting of polygons, use the SPR_2OpenCommand () routine Priority drawing on (SPR_2DRAW_PRTY_ON).


Return to previous page Return to menu Go to next page