ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

m_trans_tmp.h
Go to the documentation of this file.
00001 /*
00002  * Mesa 3-D graphics library
00003  * Version:  6.5.1
00004  *
00005  * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining a
00008  * copy of this software and associated documentation files (the "Software"),
00009  * to deal in the Software without restriction, including without limitation
00010  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00011  * and/or sell copies of the Software, and to permit persons to whom the
00012  * Software is furnished to do so, subject to the following conditions:
00013  *
00014  * The above copyright notice and this permission notice shall be included
00015  * in all copies or substantial portions of the Software.
00016  *
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00018  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00020  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023  */
00024 
00030 #ifdef DEST_4F
00031 static void DEST_4F( GLfloat (*t)[4],
00032              CONST void *ptr,
00033              GLuint stride,
00034              ARGS )
00035 {
00036    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00037    const GLubyte *first = f;
00038    GLuint i;
00039 
00040    (void) first;
00041    (void) start;
00042    for (i = DST_START ; i < n ; i++, NEXT_F) {
00043       CHECK {
00044          NEXT_F2;
00045      if (SZ >= 1) t[i][0] = TRX_4F(f, 0);
00046      if (SZ >= 2) t[i][1] = TRX_4F(f, 1);
00047      if (SZ >= 3) t[i][2] = TRX_4F(f, 2);
00048      if (SZ == 4) t[i][3] = TRX_4F(f, 3); else t[i][3] = 1.0;
00049       }
00050    }
00051 }
00052 #endif
00053 
00054 
00055 
00056 #ifdef DEST_4FN
00057 static void DEST_4FN( GLfloat (*t)[4],
00058               CONST void *ptr,
00059               GLuint stride,
00060               ARGS )
00061 {
00062    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00063    const GLubyte *first = f;
00064    GLuint i;
00065 
00066    (void) first;
00067    (void) start;
00068    for (i = DST_START ; i < n ; i++, NEXT_F) {
00069       CHECK {
00070          NEXT_F2;
00071      if (SZ >= 1) t[i][0] = TRX_4FN(f, 0);
00072      if (SZ >= 2) t[i][1] = TRX_4FN(f, 1);
00073      if (SZ >= 3) t[i][2] = TRX_4FN(f, 2);
00074      if (SZ == 4) t[i][3] = TRX_4FN(f, 3); else t[i][3] = 1.0;
00075       }
00076    }
00077 }
00078 #endif
00079 
00080 
00081 #ifdef DEST_3FN
00082 static void DEST_3FN( GLfloat (*t)[3],
00083              CONST void *ptr,
00084              GLuint stride,
00085              ARGS )
00086 {
00087    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00088    const GLubyte *first = f;
00089    GLuint i;
00090    (void) first;
00091    (void) start;
00092    for (i = DST_START ; i < n ; i++, NEXT_F) {
00093       CHECK {
00094          NEXT_F2;
00095      t[i][0] = TRX_3FN(f, 0);
00096      t[i][1] = TRX_3FN(f, 1);
00097      t[i][2] = TRX_3FN(f, 2);
00098       }
00099    }
00100 }
00101 #endif
00102 
00103 #ifdef DEST_1F
00104 static void DEST_1F( GLfloat *t,
00105              CONST void *ptr,
00106              GLuint stride,
00107              ARGS )
00108 {
00109    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00110    const GLubyte *first = f;
00111    GLuint i;
00112    (void) first;
00113    (void) start;
00114    for (i = DST_START ; i < n ; i++, NEXT_F) {
00115       CHECK {
00116          NEXT_F2;
00117      t[i] = TRX_1F(f, 0);
00118       }
00119    }
00120 }
00121 #endif
00122 
00123 #ifdef DEST_4UB
00124 static void DEST_4UB( GLubyte (*t)[4],
00125                       CONST void *ptr,
00126                       GLuint stride,
00127                       ARGS )
00128 {
00129    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00130    const GLubyte *first = f;
00131    GLuint i;
00132    (void) start;
00133    (void) first;
00134    for (i = DST_START ; i < n ; i++, NEXT_F) {
00135       CHECK {
00136          NEXT_F2;
00137      if (SZ >= 1) TRX_UB(t[i][0], f, 0);
00138      if (SZ >= 2) TRX_UB(t[i][1], f, 1);
00139      if (SZ >= 3) TRX_UB(t[i][2], f, 2);
00140      if (SZ == 4) TRX_UB(t[i][3], f, 3); else t[i][3] = 255;
00141       }
00142    }
00143 }
00144 #endif
00145 
00146 
00147 #ifdef DEST_4US
00148 static void DEST_4US( GLushort (*t)[4],
00149                       CONST void *ptr,
00150                       GLuint stride,
00151                       ARGS )
00152 {
00153    const GLubyte *f = (GLubyte *) ((GLubyte *) ptr + SRC_START * stride);
00154    const GLubyte *first = f;
00155    GLuint i;
00156    (void) start;
00157    (void) first;
00158    for (i = DST_START ; i < n ; i++, NEXT_F) {
00159       CHECK {
00160          NEXT_F2;
00161      if (SZ >= 1) TRX_US(t[i][0], f, 0);
00162      if (SZ >= 2) TRX_US(t[i][1], f, 1);
00163      if (SZ >= 3) TRX_US(t[i][2], f, 2);
00164      if (SZ == 4) TRX_US(t[i][3], f, 3); else t[i][3] = 65535;
00165       }
00166    }
00167 }
00168 #endif
00169 
00170 
00171 #ifdef DEST_1UB
00172 static void DEST_1UB( GLubyte *t,
00173               CONST void *ptr,
00174               GLuint stride,
00175               ARGS )
00176 {
00177    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00178    const GLubyte *first = f;
00179    GLuint i;
00180    (void) start;
00181    (void) first;
00182    for (i = DST_START ; i < n ; i++, NEXT_F) {
00183       CHECK {
00184          NEXT_F2;
00185       TRX_UB(t[i], f, 0);
00186       }
00187    }
00188 }
00189 #endif
00190 
00191 
00192 #ifdef DEST_1UI
00193 static void DEST_1UI( GLuint *t,
00194               CONST void *ptr,
00195               GLuint stride,
00196               ARGS )
00197 {
00198    const GLubyte *f = (GLubyte *) ptr + SRC_START * stride;
00199    const GLubyte *first = f;
00200    GLuint i;
00201    (void) start;
00202    (void) first;
00203 
00204    for (i = DST_START ; i < n ; i++, NEXT_F) {
00205       CHECK {
00206          NEXT_F2;
00207      t[i] = TRX_UI(f, 0);
00208       }
00209    }
00210 }
00211 #endif
00212 
00213 
00214 static void INIT(void)
00215 {
00216 #ifdef DEST_1UI
00217    ASSERT(SZ == 1);
00218    TAB(_1ui)[SRC_IDX] = DEST_1UI;
00219 #endif
00220 #ifdef DEST_1UB
00221    ASSERT(SZ == 1);
00222    TAB(_1ub)[SRC_IDX] = DEST_1UB;
00223 #endif
00224 #ifdef DEST_1F
00225    ASSERT(SZ == 1);
00226    TAB(_1f)[SRC_IDX] = DEST_1F;
00227 #endif
00228 #ifdef DEST_3FN
00229    ASSERT(SZ == 3);
00230    TAB(_3fn)[SRC_IDX] = DEST_3FN;
00231 #endif
00232 #ifdef DEST_4UB
00233    TAB(_4ub)[SZ][SRC_IDX] = DEST_4UB;
00234 #endif
00235 #ifdef DEST_4US
00236    TAB(_4us)[SZ][SRC_IDX] = DEST_4US;
00237 #endif
00238 #ifdef DEST_4F
00239    TAB(_4f)[SZ][SRC_IDX] = DEST_4F;
00240 #endif
00241 #ifdef DEST_4FN
00242    TAB(_4fn)[SZ][SRC_IDX] = DEST_4FN;
00243 #endif
00244 
00245 }
00246 
00247 
00248 #ifdef INIT
00249 #undef INIT
00250 #endif
00251 #ifdef DEST_1UI
00252 #undef DEST_1UI
00253 #endif
00254 #ifdef DEST_1UB
00255 #undef DEST_1UB
00256 #endif
00257 #ifdef DEST_4UB
00258 #undef DEST_4UB
00259 #endif
00260 #ifdef DEST_4US
00261 #undef DEST_4US
00262 #endif
00263 #ifdef DEST_3FN
00264 #undef DEST_3FN
00265 #endif
00266 #ifdef DEST_4F
00267 #undef DEST_4F
00268 #endif
00269 #ifdef DEST_4FN
00270 #undef DEST_4FN
00271 #endif
00272 #ifdef DEST_1F
00273 #undef DEST_1F
00274 #endif
00275 #ifdef SZ
00276 #undef SZ
00277 #endif
00278 #ifdef TAG
00279 #undef TAG
00280 #endif
00281 

Generated on Sun May 27 2012 04:20:32 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.