Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
70 | giacomo | 1 | /* |
2 | * This file is automatically generated from the Mesa internal type |
||
3 | * definitions. Do not edit directly. |
||
4 | */ |
||
5 | |||
6 | #ifndef __ASM_TYPES_H__ |
||
7 | #define __ASM_TYPES_H__ |
||
8 | |||
9 | #include "assyntax.h" |
||
10 | |||
11 | |||
12 | /* ============================================================= |
||
13 | * Offsets for GLcontext |
||
14 | */ |
||
15 | |||
16 | #define CTX_DRIVER_CTX 680 |
||
17 | |||
18 | #define CTX_LIGHT_ENABLED 37140 |
||
19 | #define CTX_LIGHT_SHADE_MODEL 37144 |
||
20 | #define CTX_LIGHT_COLOR_MAT_FACE 37148 |
||
21 | #define CTX_LIGHT_COLOR_MAT_MODE 37152 |
||
22 | #define CTX_LIGHT_COLOR_MAT_MASK 37156 |
||
23 | #define CTX_LIGHT_COLOR_MAT_ENABLED 37160 |
||
24 | #define CTX_LIGHT_ENABLED_LIST 37164 |
||
25 | #define CTX_LIGHT_NEED_VERTS 41520 |
||
26 | #define CTX_LIGHT_FLAGS 41524 |
||
27 | #define CTX_LIGHT_BASE_COLOR 41528 |
||
28 | |||
29 | |||
30 | /* ============================================================= |
||
31 | * Offsets for struct vertex_buffer |
||
32 | */ |
||
33 | |||
34 | #define VB_SIZE 0 |
||
35 | #define VB_COUNT 4 |
||
36 | |||
37 | #define VB_FIRST_CLIPPED 8 |
||
38 | #define VB_FIRST_PRIMITIVE 12 |
||
39 | |||
40 | #define VB_ELTS 16 |
||
41 | #define VB_OBJ_PTR 20 |
||
42 | #define VB_EYE_PTR 24 |
||
43 | #define VB_CLIP_PTR 28 |
||
44 | #define VB_PROJ_CLIP_PTR 32 |
||
45 | #define VB_CLIP_OR_MASK 36 |
||
46 | #define VB_CLIP_MASK 40 |
||
47 | #define VB_NORMAL_PTR 44 |
||
48 | #define VB_EDGE_FLAG 52 |
||
49 | #define VB_TEX0_COORD_PTR 56 |
||
50 | #define VB_TEX1_COORD_PTR 60 |
||
51 | #define VB_TEX2_COORD_PTR 64 |
||
52 | #define VB_TEX3_COORD_PTR 68 |
||
53 | #define VB_INDEX_PTR 88 |
||
54 | #define VB_COLOR_PTR 96 |
||
55 | #define VB_SECONDARY_COLOR_PTR 104 |
||
56 | #define VB_FOG_COORD_PTR 116 |
||
57 | #define VB_POINT_SIZE_PTR 112 |
||
58 | #define VB_MATERIAL 120 |
||
59 | #define VB_MATERIAL_MASK 124 |
||
60 | #define VB_FLAG 128 |
||
61 | #define VB_PRIMITIVE 132 |
||
62 | #define VB_PRIMITIVE_LENGTH 136 |
||
63 | |||
64 | #define VB_IMPORTABLE_DATA 204 |
||
65 | |||
66 | #define VB_LAST_CLIPPED 216 |
||
67 | |||
68 | /* |
||
69 | * Flags for struct vertex_buffer |
||
70 | */ |
||
71 | |||
72 | #define VERT_BIT_OBJ 0x1 |
||
73 | #define VERT_BIT_NORM 0x4 |
||
74 | #define VERT_BIT_RGBA 0x8 |
||
75 | #define VERT_BIT_SPEC_RGB 0x10 |
||
76 | #define VERT_BIT_FOG_COORD 0x20 |
||
77 | #define VERT_BIT_INDEX 0x40 |
||
78 | #define VERT_BIT_EDGE 0x80 |
||
79 | #define VERT_BIT_TEX0 0x100 |
||
80 | #define VERT_BIT_TEX1 0x200 |
||
81 | #define VERT_BIT_TEX2 0x400 |
||
82 | #define VERT_BIT_TEX3 0x800 |
||
83 | #define VERT_BIT_EVAL_C1 0x10000 |
||
84 | #define VERT_BIT_EVAL_C2 0x20000 |
||
85 | #define VERT_BIT_EVAL_P1 0x40000 |
||
86 | #define VERT_BIT_EVAL_P2 0x80000 |
||
87 | #define VERT_BIT_OBJ_3 0x100000 |
||
88 | #define VERT_BIT_OBJ_4 0x200000 |
||
89 | #define VERT_BIT_MATERIAL 0x400000 |
||
90 | #define VERT_BIT_ELT 0x800000 |
||
91 | #define VERT_BIT_BEGIN 0x1000000 |
||
92 | #define VERT_BIT_END 0x2000000 |
||
93 | #define VERT_BIT_END_VB 0x4000000 |
||
94 | #define VERT_BIT_POINT_SIZE 0x8000000 |
||
95 | #define VERT_BIT_EYE 0x1000000 |
||
96 | #define VERT_BIT_CLIP 0x2000000 |
||
97 | |||
98 | #define VERT_BIT_OBJ_23 0x100000 |
||
99 | #define VERT_BIT_OBJ_234 0x200000 |
||
100 | |||
101 | |||
102 | /* ============================================================= |
||
103 | * Offsets for GLvector3f |
||
104 | */ |
||
105 | |||
106 | #define V3F_DATA 0 |
||
107 | #define V3F_START 4 |
||
108 | #define V3F_COUNT 8 |
||
109 | #define V3F_STRIDE 12 |
||
110 | #define V3F_FLAGS 16 |
||
111 | |||
112 | |||
113 | /* ============================================================= |
||
114 | * Offsets for GLvector4f |
||
115 | */ |
||
116 | |||
117 | #define V4F_DATA 0 |
||
118 | #define V4F_START 4 |
||
119 | #define V4F_COUNT 8 |
||
120 | #define V4F_STRIDE 12 |
||
121 | #define V4F_SIZE 16 |
||
122 | #define V4F_FLAGS 20 |
||
123 | |||
124 | /* |
||
125 | * Flags for GLvector4f |
||
126 | */ |
||
127 | |||
128 | #define VEC_MALLOC 0x10 |
||
129 | #define VEC_NOT_WRITEABLE 0x40 |
||
130 | #define VEC_BAD_STRIDE 0x100 |
||
131 | |||
132 | #define VEC_SIZE_1 0x1 |
||
133 | #define VEC_SIZE_2 0x3 |
||
134 | #define VEC_SIZE_3 0x7 |
||
135 | #define VEC_SIZE_4 0xf |
||
136 | |||
137 | |||
138 | /* ============================================================= |
||
139 | * Offsets for GLmatrix |
||
140 | */ |
||
141 | |||
142 | #define MATRIX_DATA 0 |
||
143 | #define MATRIX_INV 4 |
||
144 | #define MATRIX_FLAGS 8 |
||
145 | #define MATRIX_TYPE 12 |
||
146 | |||
147 | |||
148 | /* ============================================================= |
||
149 | * Offsets for struct gl_light |
||
150 | */ |
||
151 | |||
152 | #define LIGHT_NEXT 0 |
||
153 | #define LIGHT_PREV 4 |
||
154 | |||
155 | #define LIGHT_AMBIENT 8 |
||
156 | #define LIGHT_DIFFUSE 24 |
||
157 | #define LIGHT_SPECULAR 40 |
||
158 | #define LIGHT_EYE_POSITION 56 |
||
159 | #define LIGHT_EYE_DIRECTION 72 |
||
160 | #define LIGHT_SPOT_EXPONENT 88 |
||
161 | #define LIGHT_SPOT_CUTOFF 92 |
||
162 | #define LIGHT_COS_CUTOFF 96 |
||
163 | #define LIGHT_CONST_ATTEN 100 |
||
164 | #define LIGHT_LINEAR_ATTEN 104 |
||
165 | #define LIGHT_QUADRATIC_ATTEN 108 |
||
166 | #define LIGHT_ENABLED 112 |
||
167 | |||
168 | #define LIGHT_FLAGS 116 |
||
169 | |||
170 | #define LIGHT_POSITION 120 |
||
171 | #define LIGHT_VP_INF_NORM 136 |
||
172 | #define LIGHT_H_INF_NORM 148 |
||
173 | #define LIGHT_NORM_DIRECTION 160 |
||
174 | #define LIGHT_VP_INF_SPOT_ATTEN 176 |
||
175 | |||
176 | #define LIGHT_SPOT_EXP_TABLE 180 |
||
177 | #define LIGHT_MAT_AMBIENT 4276 |
||
178 | #define LIGHT_MAT_DIFFUSE 4300 |
||
179 | #define LIGHT_MAT_SPECULAR 4324 |
||
180 | |||
181 | #define SIZEOF_GL_LIGHT 4356 |
||
182 | |||
183 | /* |
||
184 | * Flags for struct gl_light |
||
185 | */ |
||
186 | |||
187 | #define LIGHT_SPOT 0x1 |
||
188 | #define LIGHT_LOCAL_VIEWER 0x2 |
||
189 | #define LIGHT_POSITIONAL 0x4 |
||
190 | |||
191 | #define LIGHT_NEED_VERTICES 0x6 |
||
192 | |||
193 | |||
194 | /* ============================================================= |
||
195 | * Offsets for struct gl_lightmodel |
||
196 | */ |
||
197 | |||
198 | #define LIGHT_MODEL_AMBIENT 0 |
||
199 | #define LIGHT_MODEL_LOCAL_VIEWER 16 |
||
200 | #define LIGHT_MODEL_TWO_SIDE 17 |
||
201 | #define LIGHT_MODEL_COLOR_CONTROL 20 |
||
202 | |||
203 | |||
204 | #endif /* __ASM_TYPES_H__ */ |