Changeset 3597 for trunk/src/opengl/mesa/vb.h
- Timestamp:
- May 23, 2000, 10:35:01 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/vb.h
r2938 r3597 1 /* $Id: vb.h,v 1. 1 2000-02-29 00:48:42 sandervlExp $ */1 /* $Id: vb.h,v 1.2 2000-05-23 20:34:59 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 54 54 #endif 55 55 56 #include "gl.h"57 56 #include "vector.h" 58 57 #include "matrix.h" … … 114 113 GLfloat Emission[4]; 115 114 GLfloat Shininess; 116 GLfloat AmbientIndex; 117 GLfloat DiffuseIndex; 118 GLfloat SpecularIndex; 115 GLfloat AmbientIndex; /* for color index lighting */ 116 GLfloat DiffuseIndex; /* for color index lighting */ 117 GLfloat SpecularIndex; /* for color index lighting */ 119 118 }; 120 119 … … 131 130 struct immediate 132 131 { 133 struct immediate *next; 132 struct immediate *next; /* for cache of free IM's */ 134 133 GLuint id, ref_count; 135 134 … … 137 136 */ 138 137 GLuint Start, Count; 139 GLuint LastData; 138 GLuint LastData; /* count or count+1 */ 140 139 GLuint AndFlag, OrFlag, BeginState; 141 GLuint LastPrimitive; 142 143 GLuint ArrayAndFlags; 140 GLuint LastPrimitive; 141 142 GLuint ArrayAndFlags; /* precalc'ed for glArrayElt */ 144 143 GLuint ArrayIncr; 145 144 GLuint ArrayEltFlush; 146 145 GLuint FlushElt; 147 146 148 GLuint TF1[2]; 147 GLuint TF1[2]; /* precalc'ed for glTexCoord */ 149 148 GLuint TF2[2]; 150 149 GLuint TF3[2]; 151 150 GLuint TF4[2]; 152 151 153 GLuint Primitive[VB_SIZE]; 152 GLuint Primitive[VB_SIZE]; /* GLubyte would do... */ 154 153 GLuint NextPrimitive[VB_SIZE]; 155 154 … … 163 162 struct vertex_arrays v; 164 163 165 struct gl_context *backref; 164 struct gl_context *backref; 166 165 void (*maybe_transform_vb)( struct immediate * ); 167 166 … … 206 205 * case the values will be scribbled during transform_vb. 207 206 */ 208 struct immediate *IM; 209 struct vertex_array_pointers store; 207 struct immediate *IM; 208 struct vertex_array_pointers store; 210 209 211 210 /* Where to find outstanding untransformed vertices. … … 220 219 GLuint Parity, Ovf; 221 220 GLuint PurgeFlags; 222 GLuint IndirectCount; 221 GLuint IndirectCount; /* defaults to count */ 223 222 GLuint OrFlag, SavedOrFlag; 224 223 GLuint EarlyCull; … … 242 241 GLuint LastPrimitive; 243 242 244 GLfloat (*BoundsPtr)[3]; 245 GLfloat *NormalLengthPtr; 243 GLfloat (*BoundsPtr)[3]; /* Bounds for cull check */ 244 GLfloat *NormalLengthPtr; /* Array of precomputed inv. normal lengths */ 246 245 247 246 … … 252 251 GLvector4f Clip; 253 252 GLvector4f Win; 254 GLvector4ub BColor; 255 GLvector1ui BIndex; 253 GLvector4ub BColor; /* not used in cva */ 254 GLvector1ui BIndex; /* not used in cva */ 256 255 GLubyte (*Specular)[4]; 257 256 GLubyte (*Spec[2])[4]; … … 301 300 */ 302 301 GLubyte *NormCullStart; 303 GLubyte *CullMask; 302 GLubyte *CullMask; /* Results of vertex culling */ 304 303 GLubyte *NormCullMask; /* Compressed onto shared normals */ 305 304 306 305 307 GLubyte ClipOrMask; 308 GLubyte ClipAndMask; 306 GLubyte ClipOrMask; /* bitwise-OR of all ClipMask[] values */ 307 GLubyte ClipAndMask; /* bitwise-AND of all ClipMask[] values */ 309 308 GLubyte CullFlag[2]; 310 GLubyte CullMode; 311 312 GLuint CopyCount; 309 GLubyte CullMode; /* see flags below */ 310 311 GLuint CopyCount; /* max 3 vertices to copy after transform */ 313 312 GLuint Copy[3]; 314 GLfloat CopyProj[3][4]; 313 GLfloat CopyProj[3][4]; /* temporary store for projected clip coords */ 315 314 }; 316 315 … … 322 321 extern struct vertex_buffer *gl_vb_create_for_immediate( GLcontext *ctx ); 323 322 extern struct vertex_buffer *gl_vb_create_for_cva( GLcontext *ctx, 324 323 GLuint size ); 325 324 extern void gl_vb_free( struct vertex_buffer * ); 326 325 extern struct immediate *gl_immediate_alloc( GLcontext *ctx );
Note:
See TracChangeset
for help on using the changeset viewer.