Changeset 3598 for trunk/src/opengl/mesa/3dfx/fxcvatmp.h
- Timestamp:
- May 23, 2000, 10:41:28 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/3dfx/fxcvatmp.h
r2938 r3598 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. … … 45 45 46 46 static void TAG(cva_render_points)( struct vertex_buffer *cvaVB, 47 48 49 50 GLuint count ) 47 struct vertex_buffer *VB, 48 const struct gl_prim_state *state, 49 GLuint start, 50 GLuint count ) 51 51 { 52 52 GLcontext *ctx = VB->ctx; … … 63 63 const GLubyte *clip = cvaVB->ClipMask; 64 64 for (i = start ; i < count ; i++ INCR) { 65 66 67 68 69 70 71 65 GLuint e = elt[i]; 66 if (!clip[e]) { 67 GLfloat *v = gWin[e].f; (void) v; 68 if (!DIRECT) { MERGE_VB; } 69 MERGE_RAST; 70 DRAW_POINT; 71 } 72 72 } 73 73 } else { 74 74 for (i = start ; i < count ; i++ INCR) { 75 76 77 78 79 75 GLuint e = elt[i]; 76 GLfloat *v = gWin[e].f; (void) v; 77 if (!DIRECT) { MERGE_VB; } 78 MERGE_RAST; 79 DRAW_POINT; 80 80 } 81 81 } … … 83 83 84 84 static void TAG(cva_render_lines)( struct vertex_buffer *cvaVB, 85 86 87 88 GLuint count ) 85 struct vertex_buffer *VB, 86 const struct gl_prim_state *state, 87 GLuint start, 88 GLuint count ) 89 89 { 90 90 GLcontext *ctx = VB->ctx; … … 104 104 105 105 (void) ctx; 106 107 for (i = start ; i < count ; i++ INCR) { 108 109 110 111 112 113 114 115 116 117 if (clip[e] | clip[prev]) 118 119 120 121 122 123 prev = e; 124 125 106 107 for (i = start ; i < count ; i++ INCR) { 108 GLuint e = elt[i]; 109 GLfloat *v = gWin[e].f; 110 111 MERGE_VB; 112 113 if (!clip[e]) 114 MERGE_RAST; 115 116 if (state->draw) { 117 if (clip[e] | clip[prev]) 118 CLIP_LINE; 119 else 120 DRAW_LINE; 121 } 122 123 prev = e; 124 prev_v = v; 125 state = state->next; 126 126 } 127 127 if (state->finish_loop) { 128 129 130 131 132 133 134 if (clip[e] | clip[prev]) 135 136 137 128 GLuint e = elt[start]; 129 GLfloat *v = gWin[e].f; (void) v; 130 131 if (!DIRECT) { MERGE_VB; } 132 MERGE_RAST; 133 134 if (clip[e] | clip[prev]) 135 CLIP_LINE; 136 else 137 DRAW_LINE; 138 138 } 139 139 } else { 140 140 GLuint prev = 0; 141 141 GLfloat *prev_v = 0; 142 143 for (i = start ; i < count ; i++ INCR) { 144 145 146 147 148 149 150 151 152 142 143 for (i = start ; i < count ; i++ INCR) { 144 GLuint e = elt[i]; 145 GLfloat *v = gWin[e].f; 146 147 if (!DIRECT) { MERGE_VB; } 148 MERGE_RAST; 149 if (state->draw) DRAW_LINE; 150 prev = e; 151 prev_v = v; 152 state = state->next; 153 153 } 154 154 if (state->finish_loop) { 155 156 157 158 159 160 161 } 162 } 155 GLuint e = elt[start]; 156 GLfloat *v = gWin[e].f; (void) v; 157 158 if (!DIRECT) { MERGE_VB; } 159 MERGE_RAST; 160 DRAW_LINE; 161 } 162 } 163 163 } 164 164 165 165 166 166 static void TAG(cva_render_tris)( struct vertex_buffer *cvaVB, 167 168 169 170 GLuint count ) 167 struct vertex_buffer *VB, 168 const struct gl_prim_state *state, 169 GLuint start, 170 GLuint count ) 171 171 { 172 172 GLcontext *ctx = VB->ctx; … … 179 179 (void) fxMesa; 180 180 181 if (cvaVB->ClipOrMask) { 181 if (cvaVB->ClipOrMask) { 182 182 GLuint vlist[VB_MAX_CLIPPED_VERTS]; 183 183 GLuint l[3]; 184 const GLubyte *clip = cvaVB->ClipMask; 185 184 const GLubyte *clip = cvaVB->ClipMask; 185 186 186 (void) vlist; 187 187 188 188 for (i = start ; i < count ; i++ INCR) { 189 190 191 192 MERGE_VB;/* needed for clip-interp */193 194 195 196 197 198 if (state->draw) 199 200 201 202 203 204 189 GLuint e = l[2] = elt[i]; 190 GLfloat *v = gWin[e].f; (void) v; 191 192 MERGE_VB; /* needed for clip-interp */ 193 194 if (!clip[e]) { 195 MERGE_RAST; 196 } 197 198 if (state->draw) 199 CLIP_OR_DRAW_TRI; 200 201 202 l[0] = l[state->v0]; 203 l[1] = l[state->v1]; 204 state = state->next; 205 205 } 206 206 } else if (DIRECT) { 207 207 GrVertex *vl[3]; 208 208 for (i = start ; i < count ; i++ INCR) { 209 210 211 212 213 214 (void) v; 215 216 217 218 219 if (state->draw) 220 221 222 223 224 209 GLuint e = elt[i]; 210 GLfloat *v = gWin[elt[i]].f; 211 212 vl[2] = (GrVertex *)v; 213 214 (void) v; 215 (void) e; 216 217 MERGE_RAST; 218 219 if (state->draw) 220 DRAW_TRI2; 221 222 vl[0] = vl[state->v0]; 223 vl[1] = vl[state->v1]; 224 state = state->next; 225 225 } 226 226 } else { 227 227 GLuint l[3]; 228 228 for (i = start ; i < count ; i++ INCR) { 229 230 231 232 MERGE_VB;/* needed for ctx->trianglefunc? */233 234 235 if (state->draw) 236 237 238 239 240 229 GLuint e = l[2] = elt[i]; 230 GLfloat *v = gWin[e].f; (void) v; 231 232 MERGE_VB; /* needed for ctx->trianglefunc? */ 233 MERGE_RAST; 234 235 if (state->draw) 236 DRAW_TRI; 237 238 l[0] = l[state->v0]; 239 l[1] = l[state->v1]; 240 state = state->next; 241 241 } 242 242 }
Note:
See TracChangeset
for help on using the changeset viewer.