2 * This file is automatically generated from the Mesa internal type
3 * definitions. Do not edit directly.
6 #ifndef __ASM_TYPES_H__
7 #define __ASM_TYPES_H__
11 /* =============================================================
12 * Offsets for struct gl_context
15 #define CTX_DRIVER_CTX 880
17 #define CTX_LIGHT_ENABLED 39952
18 #define CTX_LIGHT_SHADE_MODEL 39956
19 #define CTX_LIGHT_COLOR_MAT_FACE 39964
20 #define CTX_LIGHT_COLOR_MAT_MODE 39968
21 #define CTX_LIGHT_COLOR_MAT_MASK 39972
22 #define CTX_LIGHT_COLOR_MAT_ENABLED 39976
23 #define CTX_LIGHT_ENABLED_LIST 39988
24 #define CTX_LIGHT_NEED_VERTS 44341
25 #define CTX_LIGHT_FLAGS 44344
26 #define CTX_LIGHT_BASE_COLOR 44348
29 /* =============================================================
30 * Offsets for struct vertex_buffer
39 #define VB_CLIP_PTR 16
40 #define VB_PROJ_CLIP_PTR 20
41 #define VB_CLIP_OR_MASK 24
42 #define VB_CLIP_MASK 28
43 #define VB_NORMAL_PTR 68
44 #define VB_EDGE_FLAG 36
45 #define VB_TEX0_COORD_PTR 92
46 #define VB_TEX1_COORD_PTR 96
47 #define VB_TEX2_COORD_PTR 100
48 #define VB_TEX3_COORD_PTR 104
49 #define VB_INDEX_PTR 84
50 #define VB_COLOR_PTR 72
51 #define VB_SECONDARY_COLOR_PTR 76
52 #define VB_FOG_COORD_PTR 80
53 #define VB_PRIMITIVE 52
57 * Flags for struct vertex_buffer
60 #define VERT_BIT_OBJ 0x1
61 #define VERT_BIT_NORM 0x4
62 #define VERT_BIT_RGBA 0x8
63 #define VERT_BIT_SPEC_RGB 0x10
64 #define VERT_BIT_FOG_COORD 0x20
65 #define VERT_BIT_TEX0 0x100
66 #define VERT_BIT_TEX1 0x200
67 #define VERT_BIT_TEX2 0x400
68 #define VERT_BIT_TEX3 0x800
71 /* =============================================================
72 * Offsets for GLvector4f
83 * Flags for GLvector4f
86 #define VEC_MALLOC 0x10
87 #define VEC_NOT_WRITEABLE 0x40
88 #define VEC_BAD_STRIDE 0x100
90 #define VEC_SIZE_1 0x1
91 #define VEC_SIZE_2 0x3
92 #define VEC_SIZE_3 0x7
93 #define VEC_SIZE_4 0xf
96 /* =============================================================
97 * Offsets for GLmatrix
100 #define MATRIX_DATA 0
102 #define MATRIX_FLAGS 8
103 #define MATRIX_TYPE 12
106 /* =============================================================
107 * Offsets for struct gl_light
113 #define LIGHT_AMBIENT 8
114 #define LIGHT_DIFFUSE 24
115 #define LIGHT_SPECULAR 40
116 #define LIGHT_EYE_POSITION 56
117 #define LIGHT_SPOT_DIRECTION 72
118 #define LIGHT_SPOT_EXPONENT 88
119 #define LIGHT_SPOT_CUTOFF 92
120 #define LIGHT_COS_CUTOFF 100
121 #define LIGHT_CONST_ATTEN 104
122 #define LIGHT_LINEAR_ATTEN 108
123 #define LIGHT_QUADRATIC_ATTEN 112
124 #define LIGHT_ENABLED 116
126 #define LIGHT_FLAGS 120
128 #define LIGHT_POSITION 124
129 #define LIGHT_VP_INF_NORM 140
130 #define LIGHT_H_INF_NORM 152
131 #define LIGHT_NORM_DIRECTION 164
132 #define LIGHT_VP_INF_SPOT_ATTEN 180
134 #define LIGHT_SPOT_EXP_TABLE 184
135 #define LIGHT_MAT_AMBIENT 4280
136 #define LIGHT_MAT_DIFFUSE 4304
137 #define LIGHT_MAT_SPECULAR 4328
139 #define SIZEOF_GL_LIGHT 4352
142 * Flags for struct gl_light
145 #define LIGHT_SPOT 0x1
146 #define LIGHT_LOCAL_VIEWER 0x2
147 #define LIGHT_POSITIONAL 0x4
149 #define LIGHT_NEED_VERTICES 0x6
152 /* =============================================================
153 * Offsets for struct gl_lightmodel
156 #define LIGHT_MODEL_AMBIENT 0
157 #define LIGHT_MODEL_LOCAL_VIEWER 16
158 #define LIGHT_MODEL_TWO_SIDE 17
159 #define LIGHT_MODEL_COLOR_CONTROL 20
162 #endif /* __ASM_TYPES_H__ */