Ignore:
Timestamp:
May 23, 2000, 10:35:01 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

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 sandervl Exp $ */
     1/* $Id: vb.h,v 1.2 2000-05-23 20:34:59 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
     5 * Version:  3.3
    66 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
     
    5454#endif
    5555
    56 #include "gl.h"
    5756#include "vector.h"
    5857#include "matrix.h"
     
    114113   GLfloat Emission[4];
    115114   GLfloat Shininess;
    116    GLfloat AmbientIndex;        /* for color index lighting */
    117    GLfloat DiffuseIndex;        /* for color index lighting */
    118    GLfloat SpecularIndex;       /* for color index lighting */
     115   GLfloat AmbientIndex;        /* for color index lighting */
     116   GLfloat DiffuseIndex;        /* for color index lighting */
     117   GLfloat SpecularIndex;       /* for color index lighting */
    119118};
    120119
     
    131130struct immediate
    132131{
    133    struct immediate *next;      /* for cache of free IM's */
     132   struct immediate *next;      /* for cache of free IM's */
    134133   GLuint id, ref_count;
    135134
     
    137136    */
    138137   GLuint Start, Count;
    139    GLuint LastData;             /* count or count+1 */
     138   GLuint LastData;             /* count or count+1 */
    140139   GLuint AndFlag, OrFlag, BeginState;
    141    GLuint LastPrimitive;       
    142 
    143    GLuint ArrayAndFlags;        /* precalc'ed for glArrayElt */
     140   GLuint LastPrimitive;
     141
     142   GLuint ArrayAndFlags;        /* precalc'ed for glArrayElt */
    144143   GLuint ArrayIncr;
    145144   GLuint ArrayEltFlush;
    146145   GLuint FlushElt;
    147146
    148    GLuint TF1[2];               /* precalc'ed for glTexCoord */
     147   GLuint TF1[2];               /* precalc'ed for glTexCoord */
    149148   GLuint TF2[2];
    150149   GLuint TF3[2];
    151150   GLuint TF4[2];
    152151
    153    GLuint  Primitive[VB_SIZE];  /* GLubyte would do... */
     152   GLuint  Primitive[VB_SIZE];  /* GLubyte would do... */
    154153   GLuint  NextPrimitive[VB_SIZE];
    155154
     
    163162   struct vertex_arrays v;
    164163
    165    struct gl_context *backref;         
     164   struct gl_context *backref;
    166165   void (*maybe_transform_vb)( struct immediate * );
    167166
     
    206205    * case the values will be scribbled during transform_vb.
    207206    */
    208    struct immediate *IM;       
    209    struct vertex_array_pointers store; 
     207   struct immediate *IM;
     208   struct vertex_array_pointers store;
    210209
    211210   /* Where to find outstanding untransformed vertices.
     
    220219   GLuint     Parity, Ovf;
    221220   GLuint     PurgeFlags;
    222    GLuint     IndirectCount;    /* defaults to count */
     221   GLuint     IndirectCount;    /* defaults to count */
    223222   GLuint     OrFlag, SavedOrFlag;
    224223   GLuint     EarlyCull;
     
    242241   GLuint      LastPrimitive;
    243242
    244    GLfloat (*BoundsPtr)[3];     /* Bounds for cull check */
    245    GLfloat  *NormalLengthPtr;   /* Array of precomputed inv. normal lengths */
     243   GLfloat (*BoundsPtr)[3];     /* Bounds for cull check */
     244   GLfloat  *NormalLengthPtr;   /* Array of precomputed inv. normal lengths */
    246245
    247246
     
    252251   GLvector4f Clip;
    253252   GLvector4f Win;
    254    GLvector4ub BColor;          /* not used in cva */
    255    GLvector1ui BIndex;          /* not used in cva */
     253   GLvector4ub BColor;          /* not used in cva */
     254   GLvector1ui BIndex;          /* not used in cva */
    256255   GLubyte (*Specular)[4];
    257256   GLubyte (*Spec[2])[4];
     
    301300    */
    302301   GLubyte *NormCullStart;
    303    GLubyte *CullMask;           /* Results of vertex culling */
     302   GLubyte *CullMask;           /* Results of vertex culling */
    304303   GLubyte *NormCullMask;       /* Compressed onto shared normals */
    305304
    306305
    307    GLubyte ClipOrMask;          /* bitwise-OR of all ClipMask[] values */
    308    GLubyte ClipAndMask;         /* bitwise-AND of all ClipMask[] values */
     306   GLubyte ClipOrMask;          /* bitwise-OR of all ClipMask[] values */
     307   GLubyte ClipAndMask;         /* bitwise-AND of all ClipMask[] values */
    309308   GLubyte CullFlag[2];
    310    GLubyte CullMode;            /* see flags below */
    311 
    312    GLuint CopyCount;            /* max 3 vertices to copy after transform */
     309   GLubyte CullMode;            /* see flags below */
     310
     311   GLuint CopyCount;            /* max 3 vertices to copy after transform */
    313312   GLuint Copy[3];
    314    GLfloat CopyProj[3][4];      /* temporary store for projected clip coords */
     313   GLfloat CopyProj[3][4];      /* temporary store for projected clip coords */
    315314};
    316315
     
    322321extern struct vertex_buffer *gl_vb_create_for_immediate( GLcontext *ctx );
    323322extern struct vertex_buffer *gl_vb_create_for_cva( GLcontext *ctx,
    324                                                    GLuint size );
     323                                                   GLuint size );
    325324extern void gl_vb_free( struct vertex_buffer * );
    326325extern struct immediate *gl_immediate_alloc( GLcontext *ctx );
Note: See TracChangeset for help on using the changeset viewer.