teapot.h
3.93 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/**************************************************************************
* *
* Copyright (C) 1994, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
*************************************************************************/
/*
* File: teapot.h
* Creator: hsa@sgi.com
* Create Date: Sun Jun 4 18:39:48 PDT 1995
*
*/
#define STATIC_SEGMENT 1
#define CFB_SEGMENT 1
#define SCREEN_HT 240
#define SCREEN_WD 320
#define TEX_HT 72
#define TEX_WD 112
#define IMG_HT 120
#define IMG_WD 188
#define STACKSIZE 0x2000
/*
* ifdef needed because this file is included by "spec"
*/
#ifdef _LANGUAGE_C
/*
* Layout of our dynamic segment
*/
typedef struct {
Mtx projection;
Mtx viewing;
LookAt lookat[2];
Hilite hilite[2];
Mtx teapot_scale;
Mtx teapot_rotate;
Mtx teapot_trans;
Mtx projectionBG;
Mtx viewingBG;
Mtx identity;
unsigned short texture[TEX_WD*TEX_HT];
Mtx shadow_scale;
Mtx shadow_rotate;
Mtx shadow_trans;
Gfx glist[4096];
} Dynamic;
extern Dynamic dynamic;
extern unsigned short cfb_16_a[];
extern unsigned short cfb_16_b[];
extern unsigned short zbuffer[];
extern Gfx rspinit_dl[];
extern Gfx rdpinit_dl[];
extern Gfx teapot_setup_dl[];
extern Gfx teapot_geom_dl[];
extern Gfx setting_setup_dl[];
extern Gfx setting_geom_a_dl[];
extern Gfx setting_geom_b_dl[];
extern Gfx setting_geom_c_dl[];
extern Gfx setting_geom_d_dl[];
extern unsigned short tv2_00[];
extern unsigned short tv2_01[];
extern unsigned short tv2_02[];
extern unsigned short tv2_03[];
extern unsigned short tv2_04[];
extern unsigned short tv2_05[];
extern unsigned short tv2_06[];
extern unsigned short tv2_07[];
extern unsigned short tv2_08[];
extern unsigned short tv2_09[];
extern unsigned short tv2_10[];
extern unsigned short tv2_11[];
extern unsigned short tv2_12[];
extern unsigned short tv2_13[];
extern unsigned short tv2_14[];
extern unsigned short tv2_15[];
extern unsigned short tv2_16[];
extern unsigned short tv2_17[];
extern unsigned short tv2_18[];
extern unsigned short tv2_19[];
extern unsigned short tv2_20[];
extern unsigned short tv2_21[];
extern unsigned short tv2_22[];
extern unsigned short tv2_23[];
extern unsigned short tv2_24[];
extern unsigned short tv2_25[];
extern unsigned short tv2_26[];
extern unsigned short tv2_27[];
extern unsigned short tv2_28[];
extern unsigned short tv2_29[];
extern unsigned short tv2_30[];
extern unsigned short tv2_31[];
extern unsigned short tv2_32[];
extern unsigned short tv2_33[];
extern unsigned short tv2_34[];
extern unsigned short tv2_35[];
extern unsigned short tv2_36[];
extern unsigned short tv2_37[];
extern unsigned short tv2_38[];
extern unsigned short tv2_39[];
extern unsigned short tv2_40[];
extern unsigned short tv2_41[];
extern unsigned short tv2_42[];
extern unsigned short tv2_43[];
extern unsigned short tv2_44[];
extern unsigned short tv2_45[];
extern unsigned short tv2_46[];
extern unsigned short tv2_47[];
extern unsigned short tv2_48[];
extern unsigned short tv2_49[];
extern unsigned short tv2_50[];
extern unsigned short tv2_51[];
extern unsigned short tv2_52[];
extern unsigned short tv2_53[];
extern unsigned short tv2_54[];
extern unsigned short tv2_55[];
extern unsigned short tv2_56[];
extern unsigned short tv2_57[];
extern unsigned short tv2_58[];
extern unsigned short tv2_59[];
#endif /* _LANGUAGE_C */