Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygent_dd_vertex.h
Go to the documentation of this file.
00001 00002 /* 00003 * Mesa 3-D graphics library 00004 * Version: 4.0.3 00005 * 00006 * Copyright (C) 1999-2002 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 typedef struct { 00030 GLfloat x, y, z, w; 00031 } TAG(_coord_t); 00032 00033 #ifdef COLOR_IS_RGBA 00034 typedef struct { 00035 #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN 00036 GLubyte alpha, blue, green, red; 00037 #else 00038 GLubyte red, green, blue, alpha; 00039 #endif 00040 } TAG(_color_t); 00041 #else 00042 typedef struct { 00043 #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN 00044 GLubyte alpha, red, green, blue; 00045 #else 00046 GLubyte blue, green, red, alpha; 00047 #endif 00048 } TAG(_color_t); 00049 #endif 00050 00051 typedef union { 00052 struct { 00053 GLfloat x, y, z, w; 00054 TAG(_color_t) color; 00055 TAG(_color_t) specular; 00056 GLfloat u0, v0; 00057 GLfloat u1, v1; 00058 GLfloat u2, v2; 00059 GLfloat u3, v3; 00060 } v; 00061 struct { 00062 GLfloat x, y, z, w; 00063 TAG(_color_t) color; 00064 TAG(_color_t) specular; 00065 GLfloat u0, v0, q0; 00066 GLfloat u1, v1, q1; 00067 GLfloat u2, v2, q2; 00068 GLfloat u3, v3, q3; 00069 } pv; 00070 struct { 00071 GLfloat x, y, z; 00072 TAG(_color_t) color; 00073 } tv; 00074 GLfloat f[24]; 00075 GLuint ui[24]; 00076 GLubyte ub4[24][4]; 00077 } TAG(Vertex), *TAG(VertexPtr); 00078 Generated on Sun May 27 2012 04:20:48 for ReactOS by
1.7.6.1
|