Changeset 3597 for trunk/src/opengl/mesa/trans_tmp.h
- Timestamp:
- May 23, 2000, 10:35:01 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/trans_tmp.h
r2938 r3597 1 /* $Id: trans_tmp.h,v 1. 1 2000-02-29 00:48:40 sandervlExp $ */1 /* $Id: trans_tmp.h,v 1.2 2000-05-23 20:34:58 jeroen Exp $ */ 2 2 3 3 /* … … 37 37 #ifdef DEST_4F 38 38 static void DEST_4F( GLfloat (*t)[4], 39 40 39 const struct gl_client_array *from, 40 ARGS) 41 41 { 42 42 GLuint stride = from->StrideB; … … 50 50 CHECK { 51 51 NEXT_F2; 52 53 54 55 52 if (SZ >= 1) t[i][0] = TRX_4F(f, 0); 53 if (SZ >= 2) t[i][1] = TRX_4F(f, 1); 54 if (SZ >= 3) t[i][2] = TRX_4F(f, 2); 55 if (SZ == 4) t[i][3] = TRX_4F(f, 3); 56 56 } 57 57 } … … 62 62 #ifdef DEST_3F 63 63 static void DEST_3F( GLfloat (*t)[3], 64 65 64 const struct gl_client_array *from, 65 ARGS) 66 66 { 67 67 GLuint stride = from->StrideB; … … 74 74 CHECK { 75 75 NEXT_F2; 76 77 78 76 t[i][0] = TRX_3F(f, 0); 77 t[i][1] = TRX_3F(f, 1); 78 t[i][2] = TRX_3F(f, 2); 79 79 } 80 80 } … … 84 84 #ifdef DEST_4UB 85 85 static void DEST_4UB( GLubyte (*t)[4], 86 87 86 const struct gl_client_array *from, 87 ARGS) 88 88 { 89 89 GLuint stride = from->StrideB; … … 96 96 CHECK { 97 97 NEXT_F2; 98 99 100 101 98 if (SZ >= 1) TRX_UB(t[i][0], f, 0); 99 if (SZ >= 2) TRX_UB(t[i][1], f, 1); 100 if (SZ >= 3) TRX_UB(t[i][2], f, 2); 101 if (SZ == 4) TRX_UB(t[i][3], f, 3); else t[i][3] = 255; 102 102 } 103 103 } … … 108 108 #ifdef DEST_1UB 109 109 static void DEST_1UB( GLubyte *t, 110 111 110 const struct gl_client_array *from, 111 ARGS) 112 112 { 113 113 GLuint stride = from->StrideB; … … 120 120 CHECK { 121 121 NEXT_F2; 122 122 TRX_UB(t[i], f, 0); 123 123 } 124 124 } … … 129 129 #ifdef DEST_1UI 130 130 static void DEST_1UI( GLuint *t, 131 132 131 const struct gl_client_array *from, 132 ARGS) 133 133 { 134 134 GLuint stride = from->StrideB; … … 142 142 CHECK { 143 143 NEXT_F2; 144 144 t[i] = TRX_UI(f, 0); 145 145 } 146 146 } … … 153 153 #ifdef DEST_1UI 154 154 ASSERT(SZ == 1); 155 TAB( 1ui)[SRC_IDX] = DEST_1UI;155 TAB(_1ui)[SRC_IDX] = DEST_1UI; 156 156 #endif 157 157 #ifdef DEST_1UB 158 158 ASSERT(SZ == 1); 159 TAB( 1ub)[SRC_IDX] = DEST_1UB;159 TAB(_1ub)[SRC_IDX] = DEST_1UB; 160 160 #endif 161 161 #ifdef DEST_3F 162 162 ASSERT(SZ == 3); 163 TAB( 3f)[SRC_IDX] = DEST_3F;163 TAB(_3f)[SRC_IDX] = DEST_3F; 164 164 #endif 165 165 #ifdef DEST_4UB 166 TAB( 4ub)[SZ][SRC_IDX] = DEST_4UB;166 TAB(_4ub)[SZ][SRC_IDX] = DEST_4UB; 167 167 #endif 168 168 #ifdef DEST_4F 169 TAB( 4f)[SZ][SRC_IDX] = DEST_4F;169 TAB(_4f)[SZ][SRC_IDX] = DEST_4F; 170 170 #endif 171 171
Note:
See TracChangeset
for help on using the changeset viewer.