gtoff.c
1 KB
#include <stddef.h>
#include "ultratypes.h"
#include "mbi.h"
#include "gt.h"
main()
{
printf("/* GENERATED FILE, DO NOT EDIT! */\n\n");
printf("/* gtState_t structure offsets for assembly language: */\n");
printf("#define GT_STATE_SIZE\t\t\t%2d\n", sizeof(gtState_t));
printf("#define GT_STATE_OFF_RENDSTATE\t\t0x%02x\n",
offsetof(gtState_t, renderState));
printf("#define GT_STATE_OFF_TEXSTATE\t\t0x%02x\n",
offsetof(gtState_t, textureState));
printf("#define GT_STATE_OFF_VTXCOUNT\t\t0x%02x\n",
offsetof(gtState_t, vtxCount));
printf("#define GT_STATE_OFF_VTXV0\t\t0x%02x\n",
offsetof(gtState_t, vtxV0));
printf("#define GT_STATE_OFF_TRICOUNT\t\t0x%02x\n",
offsetof(gtState_t, triCount));
printf("#define GT_STATE_OFF_RDPCMDS\t\t0x%02x\n",
offsetof(gtState_t, rdpCmds));
printf("#define GT_STATE_OFF_OTHERMODE\t\t0x%02x\n",
offsetof(gtState_t, rdpOthermode));
printf("#define GT_STATE_OFF_TRANSFORM\t\t0x%02x\n",
offsetof(gtState_t, transform));
return 0;
}