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/vector.h

    r2938 r3597  
    1 /* $Id: vector.h,v 1.1 2000-02-29 00:48:43 sandervl Exp $ */
     1/* $Id: vector.h,v 1.2 2000-05-23 20:35:00 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.
     
    3333#define _VECTOR_H_
    3434
    35 #include "gl.h"
    36 
    3735/* Wrap all the information about vertices up in a struct.  Has
    3836 * additional fields compared to the other vectors to help us track of
     
    4846   GLfloat *start;
    4947   GLuint count;
    50    GLuint stride;                /* start to start */
    51    GLuint size;                  /* 2-4 for vertices and 1-4 for texcoords */
    52    GLuint flags;                /* which columns are dirty */
     48   GLuint stride;                /* start to start */
     49   GLuint size;                  /* 2-4 for vertices and 1-4 for texcoords */
     50   GLuint flags;                /* which columns are dirty */
    5351   void *storage;
    5452} GLvector4f;
     
    5755extern void gl_vector4f_print( GLvector4f *v, GLubyte *, GLboolean );
    5856extern void gl_vector4f_init( GLvector4f *v, GLuint flags,
    59                               GLfloat (*storage)[4] );
     57                              GLfloat (*storage)[4] );
    6058extern void gl_vector4f_alloc( GLvector4f *v, GLuint sz, GLuint flags,
    61                                GLuint count, GLuint alignment );
     59                               GLuint count, GLuint alignment );
    6260extern void gl_vector4f_free( GLvector4f *v );
    6361extern void gl_vector4f_clean_elem( GLvector4f *vec, GLuint nr, GLuint elt );
    6462
    6563
    66 #define VEC_DIRTY_0        0x1  /* dirty flags not really used any more */
     64#define VEC_DIRTY_0        0x1  /* dirty flags not really used any more */
    6765#define VEC_DIRTY_1        0x2
    6866#define VEC_DIRTY_2        0x4
    6967#define VEC_DIRTY_3        0x8
    7068#define VEC_MALLOC         0x10
    71 #define VEC_WRITABLE       0x20 /* keep both + and - bits for easy testing */
     69#define VEC_WRITABLE       0x20 /* keep both + and - bits for easy testing */
    7270#define VEC_NOT_WRITABLE   0x40
    73 #define VEC_GOOD_STRIDE    0x80 
     71#define VEC_GOOD_STRIDE    0x80
    7472#define VEC_BAD_STRIDE     0x100
    7573
     
    10098extern void gl_vector3f_init( GLvector3f *v, GLuint flags, GLfloat (*)[3] );
    10199extern void gl_vector3f_alloc( GLvector3f *v, GLuint flags, GLuint count,
    102                                GLuint alignment );
     100                               GLuint alignment );
    103101
    104102
     
    109107   GLubyte *start;
    110108   GLuint count;
    111    GLuint stride;               
     109   GLuint stride;
    112110   GLuint flags;
    113111   void *storage;
     
    115113
    116114extern void gl_vector4ub_init( GLvector4ub *v, GLuint flags,
    117                                GLubyte (*storage)[4] );
     115                               GLubyte (*storage)[4] );
    118116extern void gl_vector4ub_free( GLvector4ub * );
    119117extern void gl_vector4ub_alloc( GLvector4ub *v, GLuint flags, GLuint count,
    120                                 GLuint alignment );
     118                                GLuint alignment );
    121119
    122120
     
    129127   GLubyte *start;
    130128   GLuint count;
    131    GLuint stride;               
     129   GLuint stride;
    132130   GLuint flags;
    133131   void *storage;
     
    137135extern void gl_vector1ub_free( GLvector1ub * );
    138136extern void gl_vector1ub_alloc( GLvector1ub *v, GLuint flags, GLuint count,
    139                                 GLuint alignment );
     137                                GLuint alignment );
    140138
    141139
     
    156154extern void gl_vector1ui_free( GLvector1ui * );
    157155extern void gl_vector1ui_alloc( GLvector1ui *v, GLuint flags, GLuint count,
    158                                 GLuint alignment );
     156                                GLuint alignment );
    159157
    160158
Note: See TracChangeset for help on using the changeset viewer.