Changeset 3598 for trunk/src/opengl/mesa/3dfx/fxsdettmp.h
- Timestamp:
- May 23, 2000, 10:41:28 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/3dfx/fxsdettmp.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. … … 42 42 * See fxapi.h for more revision/author details. 43 43 */ 44 45 46 /* 44 45 46 /* 47 47 * Notes: the folowing code works only if count is > start. 48 48 * Corrently we are looking for the pattern: … … 50 50 * 51 51 * For this: 52 * #define STRIP0 ((u1 == v1) && (u2 == v0))53 * #define STRIP1 52 * #define STRIP0 ((u1 == v1) && (u2 == v0)) 53 * #define STRIP1 ((u0 == v0) && (u2 == v1)) 54 54 * 55 55 */ … … 57 57 58 58 static void TAG(render_vb_triangles_smooth_indirect_sd) 59 ( struct vertex_buffer*VB,60 GLuintstart,61 GLuintcount,62 GLuintparity)59 ( struct vertex_buffer *VB, 60 GLuint start, 61 GLuint count, 62 GLuint parity) 63 63 { 64 64 GLint u0,u1,u2; 65 65 GLint v0,v1,v2; 66 66 GLuint *elt = VB->EltPtr->data; 67 68 int 67 68 int i; 69 69 LOCAL_VARS 70 70 71 71 INIT(GL_TRIANGLES); 72 72 73 73 elt = &elt[start-1]; 74 74 u0 = *(++elt); … … 81 81 v1 = *(++elt); 82 82 v2 = *(++elt); 83 84 if (CLIPPED(u0,u1,u2)) 83 84 if (CLIPPED(u0,u1,u2)) 85 85 { 86 86 if (!CULLED(u0,u1,u2)) SENDCLIPTRI(u0,u1,u2); 87 87 } 88 88 else 89 89 { 90 90 if (STRIP0(u,v)) 91 91 { 92 92 int is_strips = 1; 93 93 int parity = 0; 94 94 STRIPSLOCAL_VAR 95 96 97 98 while (is_strips && i < count)99 100 101 102 103 v0 = *(++elt);104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 }120 else121 95 96 FLUSHTRI(); 97 STARTSTRIPS(u0,u1,u2); 98 while (is_strips && i < count) 99 { 100 SENDSTRIPS(v2); 101 102 u0 = v0; u1 = v1; u2 = v2; i+= 3; 103 v0 = *(++elt); 104 v1 = *(++elt); 105 v2 = *(++elt); 106 107 if (parity) { 108 is_strips = STRIP0(u,v); 109 parity = 0; 110 } else { 111 is_strips = STRIP1(u,v); 112 parity = 1; 113 } 114 } 115 FLUSHSTRIPS(); 116 117 if (i >= count) 118 return; 119 } 120 else 121 { 122 122 SENDTRI(u0,u1,u2); 123 123 } 124 124 } 125 125 u0 = v0; u1 = v1; u2 = v2; i+= 3; … … 127 127 if (CLIPPED(u0,u1,u2)) 128 128 { 129 if (!CULLED(u0,u1,u2)) 129 if (!CULLED(u0,u1,u2)) SENDCLIPTRI(u0,u1,u2); 130 130 } 131 131 else … … 134 134 } 135 135 FLUSHTRI(); 136 136 137 137 } 138 138 139 139 #ifndef PRESERVE_VB_DEFS 140 140 #undef SENDTRI
Note:
See TracChangeset
for help on using the changeset viewer.