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
16 #define CTX_LIGHT_ENABLED 12196
17 #define CTX_LIGHT_SHADE_MODEL 12198
18 #define CTX_LIGHT_COLOR_MAT_FACE 12202
19 #define CTX_LIGHT_COLOR_MAT_MODE 12204
20 #define CTX_LIGHT_COLOR_MAT_MASK 12208
21 #define CTX_LIGHT_COLOR_MAT_ENABLED 12197
22 #define CTX_LIGHT_ENABLED_LIGHTS 12216
23 #define CTX_LIGHT_NEED_VERTS 12221
24 #define CTX_LIGHT_BASE_COLOR 12224
27 /* =============================================================
28 * Offsets for struct vertex_buffer
35 #define VB_OBJ_PTR 112
37 #define VB_CLIP_PTR 24
38 #define VB_PROJ_CLIP_PTR 32
39 #define VB_CLIP_OR_MASK 40
40 #define VB_CLIP_MASK 48
41 #define VB_NORMAL_PTR 120
42 #define VB_EDGE_FLAG 64
43 #define VB_TEX0_COORD_PTR 168
44 #define VB_TEX1_COORD_PTR 176
45 #define VB_TEX2_COORD_PTR 184
46 #define VB_TEX3_COORD_PTR 192
47 #define VB_INDEX_PTR 152
48 #define VB_COLOR_PTR 128
49 #define VB_SECONDARY_COLOR_PTR 136
50 #define VB_FOG_COORD_PTR 144
51 #define VB_PRIMITIVE 96
55 * Flags for struct vertex_buffer
58 #define VERT_BIT_OBJ 0x1
59 #define VERT_BIT_NORM 0x2
60 #define VERT_BIT_RGBA 0x4
61 #define VERT_BIT_SPEC_RGB 0x8
62 #define VERT_BIT_FOG_COORD 0x10
63 #define VERT_BIT_TEX0 0x80
64 #define VERT_BIT_TEX1 0x100
65 #define VERT_BIT_TEX2 0x200
66 #define VERT_BIT_TEX3 0x400
69 /* =============================================================
70 * Offsets for GLvector4f
81 * Flags for GLvector4f
84 #define VEC_MALLOC 0x10
85 #define VEC_NOT_WRITEABLE 0x40
86 #define VEC_BAD_STRIDE 0x100
88 #define VEC_SIZE_1 0x1
89 #define VEC_SIZE_2 0x3
90 #define VEC_SIZE_3 0x7
91 #define VEC_SIZE_4 0xf
94 /* =============================================================
95 * Offsets for GLmatrix
100 #define MATRIX_FLAGS 16
101 #define MATRIX_TYPE 20
104 /* =============================================================
105 * Offsets for struct gl_light
109 #define LIGHT_AMBIENT 0
110 #define LIGHT_DIFFUSE 16
111 #define LIGHT_SPECULAR 32
112 #define LIGHT_EYE_POSITION 48
113 #define LIGHT_SPOT_DIRECTION 64
114 #define LIGHT_SPOT_EXPONENT 80
115 #define LIGHT_SPOT_CUTOFF 84
116 #define LIGHT_COS_CUTOFF 88
117 #define LIGHT_CONST_ATTEN 92
118 #define LIGHT_LINEAR_ATTEN 96
119 #define LIGHT_QUADRATIC_ATTEN 100
120 #define LIGHT_ENABLED 104
122 #define LIGHT_FLAGS 108
124 #define LIGHT_POSITION 112
125 #define LIGHT_VP_INF_NORM 128
126 #define LIGHT_H_INF_NORM 140
127 #define LIGHT_NORM_DIRECTION 152
128 #define LIGHT_VP_INF_SPOT_ATTEN 168
130 #define LIGHT_MAT_AMBIENT 172
131 #define LIGHT_MAT_DIFFUSE 196
132 #define LIGHT_MAT_SPECULAR 220
134 #define SIZEOF_GL_LIGHT 244
137 * Flags for struct gl_light
140 #define LIGHT_SPOT 0x1
141 #define LIGHT_LOCAL_VIEWER 0x2
142 #define LIGHT_POSITIONAL 0x4
144 #define LIGHT_NEED_VERTICES 0x6
147 /* =============================================================
148 * Offsets for struct gl_lightmodel
151 #define LIGHT_MODEL_AMBIENT 0
152 #define LIGHT_MODEL_LOCAL_VIEWER 16
153 #define LIGHT_MODEL_TWO_SIDE 17
154 #define LIGHT_MODEL_COLOR_CONTROL 18
157 #endif /* __ASM_TYPES_H__ */