Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygent_dd_imm_tapi.h
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 * Gareth Hughes <gareth@valinux.com> 00027 * Keith Whitwell <keith_whitwell@yahoo.com> 00028 */ 00029 00030 /* Template for immediate mode texture coordinate functions. 00031 */ 00032 00033 #ifndef DO_PROJ_TEX 00034 #error "Need to define DO_PROJ_TEX" 00035 #endif 00036 00037 00038 /* ============================================================= 00039 * Notify on calls to texture4f, to allow switch to projected texture 00040 * vertex format: 00041 */ 00042 00043 static void TAG(TexCoord4f)( GLfloat s, GLfloat t, GLfloat r, GLfloat q ) 00044 { 00045 GET_CURRENT; 00046 DO_PROJ_TEX; 00047 TEXCOORD4( s, t, r, q ); 00048 } 00049 00050 static void TAG(TexCoord4fv)( const GLfloat *v ) 00051 { 00052 GET_CURRENT; 00053 DO_PROJ_TEX; 00054 TEXCOORD4( v[0], v[1], v[2], v[3] ); 00055 } 00056 00057 static void TAG(MultiTexCoord4fARB)( GLenum target, GLfloat s, 00058 GLfloat t, GLfloat r, GLfloat q ) 00059 { 00060 GET_CURRENT; 00061 DO_PROJ_TEX; 00062 MULTI_TEXCOORD4( unit, s, t, r, q ); 00063 } 00064 00065 static void TAG(MultiTexCoord4fvARB)( GLenum target, const GLfloat *v ) 00066 { 00067 GET_CURRENT; 00068 DO_PROJ_TEX; 00069 MULTI_TEXCOORD4( unit, v[0], v[1], v[2], v[3] ); 00070 } 00071 00072 00073 00074 #undef DO_PROJ_TEX 00075 #undef TAG Generated on Sun May 27 2012 04:20:47 for ReactOS by
1.7.6.1
|