gfx.h 763 Bytes
#ifndef __viewergfx__
#define __viewergfx__

#include <ultra64.h>

#define SCREEN_HT          240
#define SCREEN_WD          320 

#ifdef _LANGUAGE_C /* needed because file is included by "spec" */

/*
 * Layout of our dynamic segment
 */
typedef struct {
    Gfx    glist[10240];    /* buffer to hold display list */
} Dynamic;

typedef struct {
    Dynamic     dp;
    u16         *cfb;
} GFXInfo;

/* dynamic segment structure: */
extern Dynamic  dynamic;

/* some static display lists: */
extern Gfx      rdpinit_dl[];
extern Gfx      rspinit_dl[];

/* frame buffer, zbuffer: */
extern u16 cfb[];

/* yield buffer: */
extern u64    gfxYieldBuf[];

/* matrix stack buffer: */
extern u64    dram_stack[];

#endif    /* _LANGUAGE_C */
#endif /* __viewergfx__ */