gfx.h
763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#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__ */