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 10 11/* ============================================================= 12 * Offsets for struct gl_context 13 */ 14 15 16#define CTX_LIGHT_ENABLED 12232 17#define CTX_LIGHT_SHADE_MODEL 12234 18#define CTX_LIGHT_COLOR_MAT_FACE 12238 19#define CTX_LIGHT_COLOR_MAT_MODE 12240 20#define CTX_LIGHT_COLOR_MAT_MASK 12244 21#define CTX_LIGHT_COLOR_MAT_ENABLED 12233 22#define CTX_LIGHT_ENABLED_LIGHTS 12252 23#define CTX_LIGHT_NEED_VERTS 12257 24#define CTX_LIGHT_BASE_COLOR 12260 25 26 27/* ============================================================= 28 * Offsets for struct vertex_buffer 29 */ 30 31#define VB_SIZE 0 32#define VB_COUNT 4 33 34#define VB_ELTS 8 35#define VB_OBJ_PTR 112 36#define VB_EYE_PTR 16 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 52 53 54/* 55 * Flags for struct vertex_buffer 56 */ 57 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 67 68 69/* ============================================================= 70 * Offsets for GLvector4f 71 */ 72 73#define V4F_DATA 0 74#define V4F_START 8 75#define V4F_COUNT 16 76#define V4F_STRIDE 20 77#define V4F_SIZE 24 78#define V4F_FLAGS 28 79 80/* 81 * Flags for GLvector4f 82 */ 83 84#define VEC_MALLOC 0x10 85#define VEC_NOT_WRITEABLE 0x40 86#define VEC_BAD_STRIDE 0x100 87 88#define VEC_SIZE_1 0x1 89#define VEC_SIZE_2 0x3 90#define VEC_SIZE_3 0x7 91#define VEC_SIZE_4 0xf 92 93 94/* ============================================================= 95 * Offsets for GLmatrix 96 */ 97 98#define MATRIX_DATA 0 99#define MATRIX_INV 8 100#define MATRIX_FLAGS 16 101#define MATRIX_TYPE 20 102 103 104/* ============================================================= 105 * Offsets for struct gl_light 106 */ 107 108 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 121 122#define LIGHT_FLAGS 108 123 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 129 130#define LIGHT_MAT_AMBIENT 172 131#define LIGHT_MAT_DIFFUSE 196 132#define LIGHT_MAT_SPECULAR 220 133 134#define SIZEOF_GL_LIGHT 244 135 136/* 137 * Flags for struct gl_light 138 */ 139 140#define LIGHT_SPOT 0x1 141#define LIGHT_LOCAL_VIEWER 0x2 142#define LIGHT_POSITIONAL 0x4 143 144#define LIGHT_NEED_VERTICES 0x6 145 146 147/* ============================================================= 148 * Offsets for struct gl_lightmodel 149 */ 150 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 155 156 157#endif /* __ASM_TYPES_H__ */ 158