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

t_dd.c
Go to the documentation of this file.
00001 
00002 /*
00003  * Mesa 3-D graphics library
00004  * Version:  3.5
00005  *
00006  * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a
00009  * copy of this software and associated documentation files (the "Software"),
00010  * to deal in the Software without restriction, including without limitation
00011  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00012  * and/or sell copies of the Software, and to permit persons to whom the
00013  * Software is furnished to do so, subject to the following conditions:
00014  *
00015  * The above copyright notice and this permission notice shall be included
00016  * in all copies or substantial portions of the Software.
00017  *
00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00019  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00020  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00021  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00022  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00023  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00024  *
00025  * Authors:
00026  *    Keith Whitwell <keith@tungstengraphics.com>
00027  */
00028 
00029 static void copy_pv_rgba4_spec5( GLcontext *ctx, GLuint edst, GLuint esrc )
00030 {
00031    i810ContextPtr imesa = I810_CONTEXT( ctx );
00032    GLubyte *i810verts = (GLubyte *)imesa->verts;
00033    GLuint shift = imesa->vertex_stride_shift;
00034    i810Vertex *dst = (i810Vertex *)(i810verts + (edst << shift));
00035    i810Vertex *src = (i810Vertex *)(i810verts + (esrc << shift));
00036    dst->ui[4] = src->ui[4];
00037    dst->ui[5] = src->ui[5];
00038 }
00039 
00040 static void copy_pv_rgba4( GLcontext *ctx, GLuint edst, GLuint esrc )
00041 {
00042    i810ContextPtr imesa = I810_CONTEXT( ctx );
00043    GLubyte *i810verts = (GLubyte *)imesa->verts;
00044    GLuint shift = imesa->vertex_stride_shift;
00045    i810Vertex *dst = (i810Vertex *)(i810verts + (edst << shift));
00046    i810Vertex *src = (i810Vertex *)(i810verts + (esrc << shift));
00047    dst->ui[4] = src->ui[4];
00048 }
00049 
00050 static void copy_pv_rgba3( GLcontext *ctx, GLuint edst, GLuint esrc )
00051 {
00052    i810ContextPtr imesa = I810_CONTEXT( ctx );
00053    GLubyte *i810verts = (GLubyte *)imesa->verts;
00054    GLuint shift = imesa->vertex_stride_shift;
00055    i810Vertex *dst = (i810Vertex *)(i810verts + (edst << shift));
00056    i810Vertex *src = (i810Vertex *)(i810verts + (esrc << shift));
00057    dst->ui[3] = src->ui[3];
00058 }

Generated on Sat May 26 2012 04:19:37 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.