Changeset 3597 for trunk/src/opengl/mesa/vector.h
- Timestamp:
- May 23, 2000, 10:35:01 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: vector.h,v 1.2 2000-05-23 20:35:00 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. … … 33 33 #define _VECTOR_H_ 34 34 35 #include "gl.h"36 37 35 /* Wrap all the information about vertices up in a struct. Has 38 36 * additional fields compared to the other vectors to help us track of … … 48 46 GLfloat *start; 49 47 GLuint count; 50 GLuint stride; 51 GLuint size; 52 GLuint flags; 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 */ 53 51 void *storage; 54 52 } GLvector4f; … … 57 55 extern void gl_vector4f_print( GLvector4f *v, GLubyte *, GLboolean ); 58 56 extern void gl_vector4f_init( GLvector4f *v, GLuint flags, 59 57 GLfloat (*storage)[4] ); 60 58 extern void gl_vector4f_alloc( GLvector4f *v, GLuint sz, GLuint flags, 61 59 GLuint count, GLuint alignment ); 62 60 extern void gl_vector4f_free( GLvector4f *v ); 63 61 extern void gl_vector4f_clean_elem( GLvector4f *vec, GLuint nr, GLuint elt ); 64 62 65 63 66 #define VEC_DIRTY_0 0x1 64 #define VEC_DIRTY_0 0x1 /* dirty flags not really used any more */ 67 65 #define VEC_DIRTY_1 0x2 68 66 #define VEC_DIRTY_2 0x4 69 67 #define VEC_DIRTY_3 0x8 70 68 #define VEC_MALLOC 0x10 71 #define VEC_WRITABLE 0x20 69 #define VEC_WRITABLE 0x20 /* keep both + and - bits for easy testing */ 72 70 #define VEC_NOT_WRITABLE 0x40 73 #define VEC_GOOD_STRIDE 0x80 71 #define VEC_GOOD_STRIDE 0x80 74 72 #define VEC_BAD_STRIDE 0x100 75 73 … … 100 98 extern void gl_vector3f_init( GLvector3f *v, GLuint flags, GLfloat (*)[3] ); 101 99 extern void gl_vector3f_alloc( GLvector3f *v, GLuint flags, GLuint count, 102 100 GLuint alignment ); 103 101 104 102 … … 109 107 GLubyte *start; 110 108 GLuint count; 111 GLuint stride; 109 GLuint stride; 112 110 GLuint flags; 113 111 void *storage; … … 115 113 116 114 extern void gl_vector4ub_init( GLvector4ub *v, GLuint flags, 117 115 GLubyte (*storage)[4] ); 118 116 extern void gl_vector4ub_free( GLvector4ub * ); 119 117 extern void gl_vector4ub_alloc( GLvector4ub *v, GLuint flags, GLuint count, 120 118 GLuint alignment ); 121 119 122 120 … … 129 127 GLubyte *start; 130 128 GLuint count; 131 GLuint stride; 129 GLuint stride; 132 130 GLuint flags; 133 131 void *storage; … … 137 135 extern void gl_vector1ub_free( GLvector1ub * ); 138 136 extern void gl_vector1ub_alloc( GLvector1ub *v, GLuint flags, GLuint count, 139 137 GLuint alignment ); 140 138 141 139 … … 156 154 extern void gl_vector1ui_free( GLvector1ui * ); 157 155 extern void gl_vector1ui_alloc( GLvector1ui *v, GLuint flags, GLuint count, 158 156 GLuint alignment ); 159 157 160 158
Note:
See TracChangeset
for help on using the changeset viewer.