Keith Whitwell | 6dc8557 | 2003-07-17 13:43:59 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file api_loopback.c |
| 3 | * |
| 4 | * \author Keith Whitwell <keith@tungstengraphics.com> |
| 5 | */ |
| 6 | |
Brian Paul | 50478de | 2000-11-27 18:17:09 +0000 | [diff] [blame] | 7 | /* |
| 8 | * Mesa 3-D graphics library |
Brian Paul | 7faf519 | 2004-10-29 04:00:50 +0000 | [diff] [blame] | 9 | * Version: 6.3 |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 10 | * |
Brian Paul | e98986b | 2004-01-21 04:13:49 +0000 | [diff] [blame] | 11 | * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 12 | * |
Brian Paul | 50478de | 2000-11-27 18:17:09 +0000 | [diff] [blame] | 13 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 14 | * copy of this software and associated documentation files (the "Software"), |
| 15 | * to deal in the Software without restriction, including without limitation |
| 16 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 17 | * and/or sell copies of the Software, and to permit persons to whom the |
| 18 | * Software is furnished to do so, subject to the following conditions: |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 19 | * |
Brian Paul | 50478de | 2000-11-27 18:17:09 +0000 | [diff] [blame] | 20 | * The above copyright notice and this permission notice shall be included |
| 21 | * in all copies or substantial portions of the Software. |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 22 | * |
Brian Paul | 50478de | 2000-11-27 18:17:09 +0000 | [diff] [blame] | 23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 24 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 25 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 26 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 27 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 28 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Brian Paul | 50478de | 2000-11-27 18:17:09 +0000 | [diff] [blame] | 29 | */ |
| 30 | |
| 31 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 32 | #include "glheader.h" |
Brian Paul | 03c0c2e | 2002-01-14 16:06:35 +0000 | [diff] [blame] | 33 | #include "glapi.h" |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 34 | #include "glapitable.h" |
| 35 | #include "macros.h" |
| 36 | #include "colormac.h" |
| 37 | #include "api_loopback.h" |
Ian Romanick | c1d455f | 2004-05-27 00:03:53 +0000 | [diff] [blame] | 38 | #include "glthread.h" |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 39 | #include "mtypes.h" |
| 40 | #include "dispatch.h" |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 41 | |
| 42 | /* KW: A set of functions to convert unusual Color/Normal/Vertex/etc |
| 43 | * calls to a smaller set of driver-provided formats. Currently just |
| 44 | * go back to dispatch to find these (eg. call glNormal3f directly), |
| 45 | * hence 'loopback'. |
| 46 | * |
| 47 | * The driver must supply all of the remaining entry points, which are |
Keith Whitwell | 9aff6cf | 2000-11-24 15:21:59 +0000 | [diff] [blame] | 48 | * listed in dd.h. The easiest way for a driver to do this is to |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 49 | * install the supplied software t&l module. |
| 50 | */ |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 51 | #define COLORF(r,g,b,a) CALL_Color4f(GET_DISPATCH(), (r,g,b,a)) |
| 52 | #define VERTEX2(x,y) CALL_Vertex2f(GET_DISPATCH(), (x,y)) |
| 53 | #define VERTEX3(x,y,z) CALL_Vertex3f(GET_DISPATCH(), (x,y,z)) |
| 54 | #define VERTEX4(x,y,z,w) CALL_Vertex4f(GET_DISPATCH(), (x,y,z,w)) |
| 55 | #define NORMAL(x,y,z) CALL_Normal3f(GET_DISPATCH(), (x,y,z)) |
| 56 | #define TEXCOORD1(s) CALL_TexCoord1f(GET_DISPATCH(), (s)) |
| 57 | #define TEXCOORD2(s,t) CALL_TexCoord2f(GET_DISPATCH(), (s,t)) |
| 58 | #define TEXCOORD3(s,t,u) CALL_TexCoord3f(GET_DISPATCH(), (s,t,u)) |
| 59 | #define TEXCOORD4(s,t,u,v) CALL_TexCoord4f(GET_DISPATCH(), (s,t,u,v)) |
| 60 | #define INDEX(c) CALL_Indexf(GET_DISPATCH(), (c)) |
| 61 | #define MULTI_TEXCOORD1(z,s) CALL_MultiTexCoord1fARB(GET_DISPATCH(), (z,s)) |
| 62 | #define MULTI_TEXCOORD2(z,s,t) CALL_MultiTexCoord2fARB(GET_DISPATCH(), (z,s,t)) |
| 63 | #define MULTI_TEXCOORD3(z,s,t,u) CALL_MultiTexCoord3fARB(GET_DISPATCH(), (z,s,t,u)) |
| 64 | #define MULTI_TEXCOORD4(z,s,t,u,v) CALL_MultiTexCoord4fARB(GET_DISPATCH(), (z,s,t,u,v)) |
| 65 | #define EVALCOORD1(x) CALL_EvalCoord1f(GET_DISPATCH(), (x)) |
| 66 | #define EVALCOORD2(x,y) CALL_EvalCoord2f(GET_DISPATCH(), (x,y)) |
| 67 | #define MATERIALFV(a,b,c) CALL_Materialfv(GET_DISPATCH(), (a,b,c)) |
| 68 | #define RECTF(a,b,c,d) CALL_Rectf(GET_DISPATCH(), (a,b,c,d)) |
Keith Whitwell | fc00cbe | 2001-12-20 15:30:45 +0000 | [diff] [blame] | 69 | |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 70 | #define ATTRIB1NV(index,x) CALL_VertexAttrib1fNV(GET_DISPATCH(), (index,x)) |
| 71 | #define ATTRIB2NV(index,x,y) CALL_VertexAttrib2fNV(GET_DISPATCH(), (index,x,y)) |
| 72 | #define ATTRIB3NV(index,x,y,z) CALL_VertexAttrib3fNV(GET_DISPATCH(), (index,x,y,z)) |
| 73 | #define ATTRIB4NV(index,x,y,z,w) CALL_VertexAttrib4fNV(GET_DISPATCH(), (index,x,y,z,w)) |
| 74 | #define ATTRIB1ARB(index,x) CALL_VertexAttrib1fARB(GET_DISPATCH(), (index,x)) |
| 75 | #define ATTRIB2ARB(index,x,y) CALL_VertexAttrib2fARB(GET_DISPATCH(), (index,x,y)) |
| 76 | #define ATTRIB3ARB(index,x,y,z) CALL_VertexAttrib3fARB(GET_DISPATCH(), (index,x,y,z)) |
| 77 | #define ATTRIB4ARB(index,x,y,z,w) CALL_VertexAttrib4fARB(GET_DISPATCH(), (index,x,y,z,w)) |
| 78 | #define FOGCOORDF(x) CALL_FogCoordfEXT(GET_DISPATCH(), (x)) |
| 79 | #define SECONDARYCOLORF(a,b,c) CALL_SecondaryColor3fEXT(GET_DISPATCH(), (a,b,c)) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 80 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 81 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 82 | loopback_Color3b_f( GLbyte red, GLbyte green, GLbyte blue ) |
| 83 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 84 | COLORF( BYTE_TO_FLOAT(red), |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 85 | BYTE_TO_FLOAT(green), |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 86 | BYTE_TO_FLOAT(blue), |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 87 | 1.0 ); |
| 88 | } |
| 89 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 90 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 91 | loopback_Color3d_f( GLdouble red, GLdouble green, GLdouble blue ) |
| 92 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 93 | COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, 1.0 ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 94 | } |
| 95 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 96 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 97 | loopback_Color3i_f( GLint red, GLint green, GLint blue ) |
| 98 | { |
| 99 | COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green), |
| 100 | INT_TO_FLOAT(blue), 1.0); |
| 101 | } |
| 102 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 103 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 104 | loopback_Color3s_f( GLshort red, GLshort green, GLshort blue ) |
| 105 | { |
| 106 | COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green), |
| 107 | SHORT_TO_FLOAT(blue), 1.0); |
| 108 | } |
| 109 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 110 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 111 | loopback_Color3ui_f( GLuint red, GLuint green, GLuint blue ) |
| 112 | { |
| 113 | COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green), |
| 114 | UINT_TO_FLOAT(blue), 1.0 ); |
| 115 | } |
| 116 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 117 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 118 | loopback_Color3us_f( GLushort red, GLushort green, GLushort blue ) |
| 119 | { |
| 120 | COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), |
| 121 | USHORT_TO_FLOAT(blue), 1.0 ); |
| 122 | } |
| 123 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 124 | static void GLAPIENTRY |
| 125 | loopback_Color3ub_f( GLubyte red, GLubyte green, GLubyte blue ) |
| 126 | { |
| 127 | COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), |
| 128 | UBYTE_TO_FLOAT(blue), 1.0 ); |
| 129 | } |
| 130 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 131 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 132 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 133 | loopback_Color3bv_f( const GLbyte *v ) |
| 134 | { |
| 135 | COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
| 136 | BYTE_TO_FLOAT(v[2]), 1.0 ); |
| 137 | } |
| 138 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 139 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 140 | loopback_Color3dv_f( const GLdouble *v ) |
| 141 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 142 | COLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], 1.0 ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 143 | } |
| 144 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 145 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 146 | loopback_Color3iv_f( const GLint *v ) |
| 147 | { |
| 148 | COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
Xiang, Haihao | bb59d81 | 2007-03-25 21:31:36 +0800 | [diff] [blame^] | 149 | INT_TO_FLOAT(v[2]), 1.0 ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 150 | } |
| 151 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 152 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 153 | loopback_Color3sv_f( const GLshort *v ) |
| 154 | { |
| 155 | COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
| 156 | SHORT_TO_FLOAT(v[2]), 1.0 ); |
| 157 | } |
| 158 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 159 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 160 | loopback_Color3uiv_f( const GLuint *v ) |
| 161 | { |
| 162 | COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
| 163 | UINT_TO_FLOAT(v[2]), 1.0 ); |
| 164 | } |
| 165 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 166 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 167 | loopback_Color3usv_f( const GLushort *v ) |
| 168 | { |
| 169 | COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
| 170 | USHORT_TO_FLOAT(v[2]), 1.0 ); |
| 171 | } |
| 172 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 173 | static void GLAPIENTRY |
| 174 | loopback_Color3ubv_f( const GLubyte *v ) |
| 175 | { |
| 176 | COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
| 177 | UBYTE_TO_FLOAT(v[2]), 1.0 ); |
| 178 | } |
| 179 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 180 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 181 | static void GLAPIENTRY |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 182 | loopback_Color4b_f( GLbyte red, GLbyte green, GLbyte blue, |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 183 | GLbyte alpha ) |
| 184 | { |
| 185 | COLORF( BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green), |
| 186 | BYTE_TO_FLOAT(blue), BYTE_TO_FLOAT(alpha) ); |
| 187 | } |
| 188 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 189 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 190 | loopback_Color4d_f( GLdouble red, GLdouble green, GLdouble blue, |
| 191 | GLdouble alpha ) |
| 192 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 193 | COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, (GLfloat) alpha ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 194 | } |
| 195 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 196 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 197 | loopback_Color4i_f( GLint red, GLint green, GLint blue, GLint alpha ) |
| 198 | { |
| 199 | COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green), |
| 200 | INT_TO_FLOAT(blue), INT_TO_FLOAT(alpha) ); |
| 201 | } |
| 202 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 203 | static void GLAPIENTRY |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 204 | loopback_Color4s_f( GLshort red, GLshort green, GLshort blue, |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 205 | GLshort alpha ) |
| 206 | { |
| 207 | COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green), |
| 208 | SHORT_TO_FLOAT(blue), SHORT_TO_FLOAT(alpha) ); |
| 209 | } |
| 210 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 211 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 212 | loopback_Color4ui_f( GLuint red, GLuint green, GLuint blue, GLuint alpha ) |
| 213 | { |
| 214 | COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green), |
| 215 | UINT_TO_FLOAT(blue), UINT_TO_FLOAT(alpha) ); |
| 216 | } |
| 217 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 218 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 219 | loopback_Color4us_f( GLushort red, GLushort green, GLushort blue, GLushort alpha ) |
| 220 | { |
| 221 | COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), |
| 222 | USHORT_TO_FLOAT(blue), USHORT_TO_FLOAT(alpha) ); |
| 223 | } |
| 224 | |
Karl Schultz | d674569 | 2003-12-04 20:23:44 +0000 | [diff] [blame] | 225 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 226 | loopback_Color4ub_f( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ) |
| 227 | { |
| 228 | COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), |
| 229 | UBYTE_TO_FLOAT(blue), UBYTE_TO_FLOAT(alpha) ); |
| 230 | } |
| 231 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 232 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 233 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 234 | loopback_Color4iv_f( const GLint *v ) |
| 235 | { |
| 236 | COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
| 237 | INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) ); |
| 238 | } |
| 239 | |
| 240 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 241 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 242 | loopback_Color4bv_f( const GLbyte *v ) |
| 243 | { |
| 244 | COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
| 245 | BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]) ); |
| 246 | } |
| 247 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 248 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 249 | loopback_Color4dv_f( const GLdouble *v ) |
| 250 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 251 | COLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 255 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 256 | loopback_Color4sv_f( const GLshort *v) |
| 257 | { |
| 258 | COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
| 259 | SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3]) ); |
| 260 | } |
| 261 | |
| 262 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 263 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 264 | loopback_Color4uiv_f( const GLuint *v) |
| 265 | { |
| 266 | COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
| 267 | UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3]) ); |
| 268 | } |
| 269 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 270 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 271 | loopback_Color4usv_f( const GLushort *v) |
| 272 | { |
| 273 | COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
| 274 | USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3]) ); |
| 275 | } |
| 276 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 277 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 278 | loopback_Color4ubv_f( const GLubyte *v) |
| 279 | { |
| 280 | COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
| 281 | UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3]) ); |
| 282 | } |
| 283 | |
Brian Paul | 94b30dc | 2006-04-25 00:53:25 +0000 | [diff] [blame] | 284 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 285 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 286 | loopback_FogCoorddEXT( GLdouble d ) |
| 287 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 288 | FOGCOORDF( (GLfloat) d ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 289 | } |
| 290 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 291 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 292 | loopback_FogCoorddvEXT( const GLdouble *v ) |
| 293 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 294 | FOGCOORDF( (GLfloat) *v ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 295 | } |
| 296 | |
| 297 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 298 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 299 | loopback_Indexd( GLdouble c ) |
| 300 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 301 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 302 | } |
| 303 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 304 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 305 | loopback_Indexi( GLint c ) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 306 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 307 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 308 | } |
| 309 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 310 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 311 | loopback_Indexs( GLshort c ) |
| 312 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 313 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 314 | } |
| 315 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 316 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 317 | loopback_Indexub( GLubyte c ) |
| 318 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 319 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 320 | } |
| 321 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 322 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 323 | loopback_Indexdv( const GLdouble *c ) |
| 324 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 325 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 326 | } |
| 327 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 328 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 329 | loopback_Indexiv( const GLint *c ) |
| 330 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 331 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 332 | } |
| 333 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 334 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 335 | loopback_Indexsv( const GLshort *c ) |
| 336 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 337 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 338 | } |
| 339 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 340 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 341 | loopback_Indexubv( const GLubyte *c ) |
| 342 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 343 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 344 | } |
| 345 | |
Brian Paul | 94b30dc | 2006-04-25 00:53:25 +0000 | [diff] [blame] | 346 | |
| 347 | static void GLAPIENTRY |
| 348 | loopback_EdgeFlagv(const GLboolean *flag) |
| 349 | { |
| 350 | CALL_EdgeFlag(GET_DISPATCH(), (*flag)); |
| 351 | } |
| 352 | |
| 353 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 354 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 355 | loopback_Normal3b( GLbyte nx, GLbyte ny, GLbyte nz ) |
| 356 | { |
| 357 | NORMAL( BYTE_TO_FLOAT(nx), BYTE_TO_FLOAT(ny), BYTE_TO_FLOAT(nz) ); |
| 358 | } |
| 359 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 360 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 361 | loopback_Normal3d( GLdouble nx, GLdouble ny, GLdouble nz ) |
| 362 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 363 | NORMAL((GLfloat) nx, (GLfloat) ny, (GLfloat) nz); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 364 | } |
| 365 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 366 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 367 | loopback_Normal3i( GLint nx, GLint ny, GLint nz ) |
| 368 | { |
| 369 | NORMAL( INT_TO_FLOAT(nx), INT_TO_FLOAT(ny), INT_TO_FLOAT(nz) ); |
| 370 | } |
| 371 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 372 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 373 | loopback_Normal3s( GLshort nx, GLshort ny, GLshort nz ) |
| 374 | { |
| 375 | NORMAL( SHORT_TO_FLOAT(nx), SHORT_TO_FLOAT(ny), SHORT_TO_FLOAT(nz) ); |
| 376 | } |
| 377 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 378 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 379 | loopback_Normal3bv( const GLbyte *v ) |
| 380 | { |
| 381 | NORMAL( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), BYTE_TO_FLOAT(v[2]) ); |
| 382 | } |
| 383 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 384 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 385 | loopback_Normal3dv( const GLdouble *v ) |
| 386 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 387 | NORMAL( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 388 | } |
| 389 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 390 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 391 | loopback_Normal3iv( const GLint *v ) |
| 392 | { |
| 393 | NORMAL( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), INT_TO_FLOAT(v[2]) ); |
| 394 | } |
| 395 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 396 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 397 | loopback_Normal3sv( const GLshort *v ) |
| 398 | { |
| 399 | NORMAL( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), SHORT_TO_FLOAT(v[2]) ); |
| 400 | } |
| 401 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 402 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 403 | loopback_TexCoord1d( GLdouble s ) |
| 404 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 405 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 406 | } |
| 407 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 408 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 409 | loopback_TexCoord1i( GLint s ) |
| 410 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 411 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 412 | } |
| 413 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 414 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 415 | loopback_TexCoord1s( GLshort s ) |
| 416 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 417 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 418 | } |
| 419 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 420 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 421 | loopback_TexCoord2d( GLdouble s, GLdouble t ) |
| 422 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 423 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 424 | } |
| 425 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 426 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 427 | loopback_TexCoord2s( GLshort s, GLshort t ) |
| 428 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 429 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 430 | } |
| 431 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 432 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 433 | loopback_TexCoord2i( GLint s, GLint t ) |
| 434 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 435 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 436 | } |
| 437 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 438 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 439 | loopback_TexCoord3d( GLdouble s, GLdouble t, GLdouble r ) |
| 440 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 441 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 442 | } |
| 443 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 444 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 445 | loopback_TexCoord3i( GLint s, GLint t, GLint r ) |
| 446 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 447 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 448 | } |
| 449 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 450 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 451 | loopback_TexCoord3s( GLshort s, GLshort t, GLshort r ) |
| 452 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 453 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 454 | } |
| 455 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 456 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 457 | loopback_TexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q ) |
| 458 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 459 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 460 | } |
| 461 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 462 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 463 | loopback_TexCoord4i( GLint s, GLint t, GLint r, GLint q ) |
| 464 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 465 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 466 | } |
| 467 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 468 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 469 | loopback_TexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q ) |
| 470 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 471 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 472 | } |
| 473 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 474 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 475 | loopback_TexCoord1dv( const GLdouble *v ) |
| 476 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 477 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 478 | } |
| 479 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 480 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 481 | loopback_TexCoord1iv( const GLint *v ) |
| 482 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 483 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 484 | } |
| 485 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 486 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 487 | loopback_TexCoord1sv( const GLshort *v ) |
| 488 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 489 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 490 | } |
| 491 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 492 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 493 | loopback_TexCoord2dv( const GLdouble *v ) |
| 494 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 495 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 496 | } |
| 497 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 498 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 499 | loopback_TexCoord2iv( const GLint *v ) |
| 500 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 501 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 502 | } |
| 503 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 504 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 505 | loopback_TexCoord2sv( const GLshort *v ) |
| 506 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 507 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 508 | } |
| 509 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 510 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 511 | loopback_TexCoord3dv( const GLdouble *v ) |
| 512 | { |
Sean D'Epagnier | 0337e56 | 2006-11-21 08:48:44 +0000 | [diff] [blame] | 513 | TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 514 | } |
| 515 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 516 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 517 | loopback_TexCoord3iv( const GLint *v ) |
| 518 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 519 | TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 520 | } |
| 521 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 522 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 523 | loopback_TexCoord3sv( const GLshort *v ) |
| 524 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 525 | TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 526 | } |
| 527 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 528 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 529 | loopback_TexCoord4dv( const GLdouble *v ) |
| 530 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 531 | TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 532 | } |
| 533 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 534 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 535 | loopback_TexCoord4iv( const GLint *v ) |
| 536 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 537 | TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 538 | } |
| 539 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 540 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 541 | loopback_TexCoord4sv( const GLshort *v ) |
| 542 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 543 | TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 544 | } |
| 545 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 546 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 547 | loopback_Vertex2d( GLdouble x, GLdouble y ) |
| 548 | { |
| 549 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 550 | } |
| 551 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 552 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 553 | loopback_Vertex2i( GLint x, GLint y ) |
| 554 | { |
| 555 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 556 | } |
| 557 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 558 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 559 | loopback_Vertex2s( GLshort x, GLshort y ) |
| 560 | { |
| 561 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 562 | } |
| 563 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 564 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 565 | loopback_Vertex3d( GLdouble x, GLdouble y, GLdouble z ) |
| 566 | { |
| 567 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 568 | } |
| 569 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 570 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 571 | loopback_Vertex3i( GLint x, GLint y, GLint z ) |
| 572 | { |
| 573 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 574 | } |
| 575 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 576 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 577 | loopback_Vertex3s( GLshort x, GLshort y, GLshort z ) |
| 578 | { |
| 579 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 580 | } |
| 581 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 582 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 583 | loopback_Vertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ) |
| 584 | { |
| 585 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 586 | } |
| 587 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 588 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 589 | loopback_Vertex4i( GLint x, GLint y, GLint z, GLint w ) |
| 590 | { |
| 591 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 592 | } |
| 593 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 594 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 595 | loopback_Vertex4s( GLshort x, GLshort y, GLshort z, GLshort w ) |
| 596 | { |
| 597 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 598 | } |
| 599 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 600 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 601 | loopback_Vertex2dv( const GLdouble *v ) |
| 602 | { |
| 603 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 604 | } |
| 605 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 606 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 607 | loopback_Vertex2iv( const GLint *v ) |
| 608 | { |
| 609 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 610 | } |
| 611 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 612 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 613 | loopback_Vertex2sv( const GLshort *v ) |
| 614 | { |
| 615 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 616 | } |
| 617 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 618 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 619 | loopback_Vertex3dv( const GLdouble *v ) |
| 620 | { |
| 621 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 622 | } |
| 623 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 624 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 625 | loopback_Vertex3iv( const GLint *v ) |
| 626 | { |
| 627 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 628 | } |
| 629 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 630 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 631 | loopback_Vertex3sv( const GLshort *v ) |
| 632 | { |
| 633 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 634 | } |
| 635 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 636 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 637 | loopback_Vertex4dv( const GLdouble *v ) |
| 638 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 639 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 640 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 641 | } |
| 642 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 643 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 644 | loopback_Vertex4iv( const GLint *v ) |
| 645 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 646 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 647 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 648 | } |
| 649 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 650 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 651 | loopback_Vertex4sv( const GLshort *v ) |
| 652 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 653 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 654 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 655 | } |
| 656 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 657 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 658 | loopback_MultiTexCoord1dARB(GLenum target, GLdouble s) |
| 659 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 660 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 661 | } |
| 662 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 663 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 664 | loopback_MultiTexCoord1dvARB(GLenum target, const GLdouble *v) |
| 665 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 666 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 667 | } |
| 668 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 669 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 670 | loopback_MultiTexCoord1iARB(GLenum target, GLint s) |
| 671 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 672 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 673 | } |
| 674 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 675 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 676 | loopback_MultiTexCoord1ivARB(GLenum target, const GLint *v) |
| 677 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 678 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 679 | } |
| 680 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 681 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 682 | loopback_MultiTexCoord1sARB(GLenum target, GLshort s) |
| 683 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 684 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 685 | } |
| 686 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 687 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 688 | loopback_MultiTexCoord1svARB(GLenum target, const GLshort *v) |
| 689 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 690 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 691 | } |
| 692 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 693 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 694 | loopback_MultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t) |
| 695 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 696 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 697 | } |
| 698 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 699 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 700 | loopback_MultiTexCoord2dvARB(GLenum target, const GLdouble *v) |
| 701 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 702 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 703 | } |
| 704 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 705 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 706 | loopback_MultiTexCoord2iARB(GLenum target, GLint s, GLint t) |
| 707 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 708 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 709 | } |
| 710 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 711 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 712 | loopback_MultiTexCoord2ivARB(GLenum target, const GLint *v) |
| 713 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 714 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 715 | } |
| 716 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 717 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 718 | loopback_MultiTexCoord2sARB(GLenum target, GLshort s, GLshort t) |
| 719 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 720 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 721 | } |
| 722 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 723 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 724 | loopback_MultiTexCoord2svARB(GLenum target, const GLshort *v) |
| 725 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 726 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 727 | } |
| 728 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 729 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 730 | loopback_MultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r) |
| 731 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 732 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 733 | } |
| 734 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 735 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 736 | loopback_MultiTexCoord3dvARB(GLenum target, const GLdouble *v) |
| 737 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 738 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 739 | } |
| 740 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 741 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 742 | loopback_MultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r) |
| 743 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 744 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 745 | } |
| 746 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 747 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 748 | loopback_MultiTexCoord3ivARB(GLenum target, const GLint *v) |
| 749 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 750 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 751 | } |
| 752 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 753 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 754 | loopback_MultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r) |
| 755 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 756 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 757 | } |
| 758 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 759 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 760 | loopback_MultiTexCoord3svARB(GLenum target, const GLshort *v) |
| 761 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 762 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 763 | } |
| 764 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 765 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 766 | loopback_MultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) |
| 767 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 768 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 769 | (GLfloat) r, (GLfloat) q ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 770 | } |
| 771 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 772 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 773 | loopback_MultiTexCoord4dvARB(GLenum target, const GLdouble *v) |
| 774 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 775 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 776 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 777 | } |
| 778 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 779 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 780 | loopback_MultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q) |
| 781 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 782 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 783 | (GLfloat) r, (GLfloat) q ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 784 | } |
| 785 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 786 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 787 | loopback_MultiTexCoord4ivARB(GLenum target, const GLint *v) |
| 788 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 789 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 790 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 791 | } |
| 792 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 793 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 794 | loopback_MultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) |
| 795 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 796 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 797 | (GLfloat) r, (GLfloat) q ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 798 | } |
| 799 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 800 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 801 | loopback_MultiTexCoord4svARB(GLenum target, const GLshort *v) |
| 802 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 803 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 804 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 805 | } |
| 806 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 807 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 808 | loopback_EvalCoord2dv( const GLdouble *u ) |
| 809 | { |
| 810 | EVALCOORD2( (GLfloat) u[0], (GLfloat) u[1] ); |
| 811 | } |
| 812 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 813 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 814 | loopback_EvalCoord2fv( const GLfloat *u ) |
| 815 | { |
| 816 | EVALCOORD2( u[0], u[1] ); |
| 817 | } |
| 818 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 819 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 820 | loopback_EvalCoord2d( GLdouble u, GLdouble v ) |
| 821 | { |
| 822 | EVALCOORD2( (GLfloat) u, (GLfloat) v ); |
| 823 | } |
| 824 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 825 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 826 | loopback_EvalCoord1dv( const GLdouble *u ) |
| 827 | { |
| 828 | EVALCOORD1( (GLfloat) *u ); |
| 829 | } |
| 830 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 831 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 832 | loopback_EvalCoord1fv( const GLfloat *u ) |
| 833 | { |
| 834 | EVALCOORD1( (GLfloat) *u ); |
| 835 | } |
| 836 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 837 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 838 | loopback_EvalCoord1d( GLdouble u ) |
| 839 | { |
| 840 | EVALCOORD1( (GLfloat) u ); |
| 841 | } |
| 842 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 843 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 844 | loopback_Materialf( GLenum face, GLenum pname, GLfloat param ) |
| 845 | { |
| 846 | GLfloat fparam[4]; |
| 847 | fparam[0] = param; |
| 848 | MATERIALFV( face, pname, fparam ); |
| 849 | } |
| 850 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 851 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 852 | loopback_Materiali(GLenum face, GLenum pname, GLint param ) |
| 853 | { |
| 854 | GLfloat p = (GLfloat) param; |
| 855 | MATERIALFV(face, pname, &p); |
| 856 | } |
| 857 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 858 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 859 | loopback_Materialiv(GLenum face, GLenum pname, const GLint *params ) |
| 860 | { |
| 861 | GLfloat fparam[4]; |
| 862 | switch (pname) { |
| 863 | case GL_AMBIENT: |
| 864 | case GL_DIFFUSE: |
| 865 | case GL_SPECULAR: |
| 866 | case GL_EMISSION: |
| 867 | case GL_AMBIENT_AND_DIFFUSE: |
| 868 | fparam[0] = INT_TO_FLOAT( params[0] ); |
| 869 | fparam[1] = INT_TO_FLOAT( params[1] ); |
| 870 | fparam[2] = INT_TO_FLOAT( params[2] ); |
| 871 | fparam[3] = INT_TO_FLOAT( params[3] ); |
| 872 | break; |
| 873 | case GL_SHININESS: |
| 874 | fparam[0] = (GLfloat) params[0]; |
| 875 | break; |
| 876 | case GL_COLOR_INDEXES: |
| 877 | fparam[0] = (GLfloat) params[0]; |
| 878 | fparam[1] = (GLfloat) params[1]; |
| 879 | fparam[2] = (GLfloat) params[2]; |
| 880 | break; |
| 881 | default: |
| 882 | ; |
| 883 | } |
| 884 | MATERIALFV(face, pname, fparam); |
| 885 | } |
| 886 | |
| 887 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 888 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 889 | loopback_Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) |
| 890 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 891 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 892 | } |
| 893 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 894 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 895 | loopback_Rectdv(const GLdouble *v1, const GLdouble *v2) |
| 896 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 897 | RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 898 | } |
| 899 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 900 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 901 | loopback_Rectfv(const GLfloat *v1, const GLfloat *v2) |
| 902 | { |
| 903 | RECTF(v1[0], v1[1], v2[0], v2[1]); |
| 904 | } |
| 905 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 906 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 907 | loopback_Recti(GLint x1, GLint y1, GLint x2, GLint y2) |
| 908 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 909 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 910 | } |
| 911 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 912 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 913 | loopback_Rectiv(const GLint *v1, const GLint *v2) |
| 914 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 915 | RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 916 | } |
| 917 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 918 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 919 | loopback_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2) |
| 920 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 921 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 922 | } |
| 923 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 924 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 925 | loopback_Rectsv(const GLshort *v1, const GLshort *v2) |
| 926 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 927 | RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 928 | } |
| 929 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 930 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 931 | loopback_SecondaryColor3bEXT_f( GLbyte red, GLbyte green, GLbyte blue ) |
| 932 | { |
| 933 | SECONDARYCOLORF( BYTE_TO_FLOAT(red), |
| 934 | BYTE_TO_FLOAT(green), |
| 935 | BYTE_TO_FLOAT(blue) ); |
| 936 | } |
| 937 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 938 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 939 | loopback_SecondaryColor3dEXT_f( GLdouble red, GLdouble green, GLdouble blue ) |
| 940 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 941 | SECONDARYCOLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 942 | } |
| 943 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 944 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 945 | loopback_SecondaryColor3iEXT_f( GLint red, GLint green, GLint blue ) |
| 946 | { |
| 947 | SECONDARYCOLORF( INT_TO_FLOAT(red), |
| 948 | INT_TO_FLOAT(green), |
| 949 | INT_TO_FLOAT(blue)); |
| 950 | } |
| 951 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 952 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 953 | loopback_SecondaryColor3sEXT_f( GLshort red, GLshort green, GLshort blue ) |
| 954 | { |
| 955 | SECONDARYCOLORF(SHORT_TO_FLOAT(red), |
| 956 | SHORT_TO_FLOAT(green), |
| 957 | SHORT_TO_FLOAT(blue)); |
| 958 | } |
| 959 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 960 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 961 | loopback_SecondaryColor3uiEXT_f( GLuint red, GLuint green, GLuint blue ) |
| 962 | { |
| 963 | SECONDARYCOLORF(UINT_TO_FLOAT(red), |
| 964 | UINT_TO_FLOAT(green), |
| 965 | UINT_TO_FLOAT(blue)); |
| 966 | } |
| 967 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 968 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 969 | loopback_SecondaryColor3usEXT_f( GLushort red, GLushort green, GLushort blue ) |
| 970 | { |
| 971 | SECONDARYCOLORF(USHORT_TO_FLOAT(red), |
| 972 | USHORT_TO_FLOAT(green), |
| 973 | USHORT_TO_FLOAT(blue)); |
| 974 | } |
| 975 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 976 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 977 | loopback_SecondaryColor3ubEXT_f( GLubyte red, GLubyte green, GLubyte blue ) |
| 978 | { |
| 979 | SECONDARYCOLORF(UBYTE_TO_FLOAT(red), |
| 980 | UBYTE_TO_FLOAT(green), |
| 981 | UBYTE_TO_FLOAT(blue)); |
| 982 | } |
| 983 | |
| 984 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 985 | loopback_SecondaryColor3bvEXT_f( const GLbyte *v ) |
| 986 | { |
| 987 | SECONDARYCOLORF(BYTE_TO_FLOAT(v[0]), |
| 988 | BYTE_TO_FLOAT(v[1]), |
| 989 | BYTE_TO_FLOAT(v[2])); |
| 990 | } |
| 991 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 992 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 993 | loopback_SecondaryColor3dvEXT_f( const GLdouble *v ) |
| 994 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 995 | SECONDARYCOLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 996 | } |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 997 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 998 | loopback_SecondaryColor3ivEXT_f( const GLint *v ) |
| 999 | { |
| 1000 | SECONDARYCOLORF(INT_TO_FLOAT(v[0]), |
| 1001 | INT_TO_FLOAT(v[1]), |
| 1002 | INT_TO_FLOAT(v[2])); |
| 1003 | } |
| 1004 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1005 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1006 | loopback_SecondaryColor3svEXT_f( const GLshort *v ) |
| 1007 | { |
| 1008 | SECONDARYCOLORF(SHORT_TO_FLOAT(v[0]), |
| 1009 | SHORT_TO_FLOAT(v[1]), |
| 1010 | SHORT_TO_FLOAT(v[2])); |
| 1011 | } |
| 1012 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1013 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1014 | loopback_SecondaryColor3uivEXT_f( const GLuint *v ) |
| 1015 | { |
| 1016 | SECONDARYCOLORF(UINT_TO_FLOAT(v[0]), |
| 1017 | UINT_TO_FLOAT(v[1]), |
| 1018 | UINT_TO_FLOAT(v[2])); |
| 1019 | } |
| 1020 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1021 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1022 | loopback_SecondaryColor3usvEXT_f( const GLushort *v ) |
| 1023 | { |
| 1024 | SECONDARYCOLORF(USHORT_TO_FLOAT(v[0]), |
| 1025 | USHORT_TO_FLOAT(v[1]), |
| 1026 | USHORT_TO_FLOAT(v[2])); |
| 1027 | } |
| 1028 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 1029 | static void GLAPIENTRY |
| 1030 | loopback_SecondaryColor3ubvEXT_f( const GLubyte *v ) |
| 1031 | { |
| 1032 | SECONDARYCOLORF(UBYTE_TO_FLOAT(v[0]), |
| 1033 | UBYTE_TO_FLOAT(v[1]), |
| 1034 | UBYTE_TO_FLOAT(v[2])); |
| 1035 | } |
| 1036 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1037 | |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1038 | /* |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1039 | * GL_NV_vertex_program: |
| 1040 | * Always loop-back to one of the VertexAttrib[1234]f[v]NV functions. |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1041 | */ |
| 1042 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1043 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1044 | loopback_VertexAttrib1sNV(GLuint index, GLshort x) |
| 1045 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1046 | ATTRIB1NV(index, (GLfloat) x); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1047 | } |
| 1048 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1049 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1050 | loopback_VertexAttrib1dNV(GLuint index, GLdouble x) |
| 1051 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1052 | ATTRIB1NV(index, (GLfloat) x); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1053 | } |
| 1054 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1055 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1056 | loopback_VertexAttrib2sNV(GLuint index, GLshort x, GLshort y) |
| 1057 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1058 | ATTRIB2NV(index, (GLfloat) x, y); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1059 | } |
| 1060 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1061 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1062 | loopback_VertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y) |
| 1063 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1064 | ATTRIB2NV(index, (GLfloat) x, (GLfloat) y); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1065 | } |
| 1066 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1067 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1068 | loopback_VertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z) |
| 1069 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1070 | ATTRIB3NV(index, (GLfloat) x, (GLfloat) y, (GLfloat) z); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1071 | } |
| 1072 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1073 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1074 | loopback_VertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z) |
| 1075 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1076 | ATTRIB4NV(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1077 | } |
| 1078 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1079 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1080 | loopback_VertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) |
| 1081 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1082 | ATTRIB4NV(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1083 | } |
| 1084 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1085 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1086 | loopback_VertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) |
| 1087 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1088 | ATTRIB4NV(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1089 | } |
| 1090 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1091 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1092 | loopback_VertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) |
| 1093 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1094 | ATTRIB4NV(index, UBYTE_TO_FLOAT(x), UBYTE_TO_FLOAT(y), |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1095 | UBYTE_TO_FLOAT(z), UBYTE_TO_FLOAT(w)); |
| 1096 | } |
| 1097 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1098 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1099 | loopback_VertexAttrib1svNV(GLuint index, const GLshort *v) |
| 1100 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1101 | ATTRIB1NV(index, (GLfloat) v[0]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1102 | } |
| 1103 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1104 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1105 | loopback_VertexAttrib1dvNV(GLuint index, const GLdouble *v) |
| 1106 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1107 | ATTRIB1NV(index, (GLfloat) v[0]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1108 | } |
| 1109 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1110 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1111 | loopback_VertexAttrib2svNV(GLuint index, const GLshort *v) |
| 1112 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1113 | ATTRIB2NV(index, (GLfloat) v[0], (GLfloat) v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1114 | } |
| 1115 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1116 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1117 | loopback_VertexAttrib2dvNV(GLuint index, const GLdouble *v) |
| 1118 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1119 | ATTRIB2NV(index, (GLfloat) v[0], (GLfloat) v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1120 | } |
| 1121 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1122 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1123 | loopback_VertexAttrib3svNV(GLuint index, const GLshort *v) |
| 1124 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1125 | ATTRIB3NV(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1126 | } |
| 1127 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1128 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1129 | loopback_VertexAttrib3dvNV(GLuint index, const GLdouble *v) |
| 1130 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1131 | ATTRIB3NV(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1132 | } |
| 1133 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1134 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1135 | loopback_VertexAttrib4svNV(GLuint index, const GLshort *v) |
| 1136 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1137 | ATTRIB4NV(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], |
Keith Whitwell | 33ce405 | 2003-04-05 07:29:23 +0000 | [diff] [blame] | 1138 | (GLfloat)v[3]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1139 | } |
| 1140 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1141 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1142 | loopback_VertexAttrib4dvNV(GLuint index, const GLdouble *v) |
| 1143 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1144 | ATTRIB4NV(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1145 | } |
| 1146 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1147 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1148 | loopback_VertexAttrib4ubvNV(GLuint index, const GLubyte *v) |
| 1149 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1150 | ATTRIB4NV(index, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1151 | UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3])); |
| 1152 | } |
| 1153 | |
| 1154 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1155 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1156 | loopback_VertexAttribs1svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1157 | { |
| 1158 | GLint i; |
| 1159 | for (i = n - 1; i >= 0; i--) |
| 1160 | loopback_VertexAttrib1svNV(index + i, v + i); |
| 1161 | } |
| 1162 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1163 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1164 | loopback_VertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1165 | { |
| 1166 | GLint i; |
| 1167 | for (i = n - 1; i >= 0; i--) |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1168 | ATTRIB1NV(index + i, v[i]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1169 | } |
| 1170 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1171 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1172 | loopback_VertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1173 | { |
| 1174 | GLint i; |
| 1175 | for (i = n - 1; i >= 0; i--) |
| 1176 | loopback_VertexAttrib1dvNV(index + i, v + i); |
| 1177 | } |
| 1178 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1179 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1180 | loopback_VertexAttribs2svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1181 | { |
| 1182 | GLint i; |
| 1183 | for (i = n - 1; i >= 0; i--) |
| 1184 | loopback_VertexAttrib2svNV(index + i, v + 2 * i); |
| 1185 | } |
| 1186 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1187 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1188 | loopback_VertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1189 | { |
| 1190 | GLint i; |
| 1191 | for (i = n - 1; i >= 0; i--) |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1192 | ATTRIB2NV(index + i, v[2 * i], v[2 * i + 1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1193 | } |
| 1194 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1195 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1196 | loopback_VertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1197 | { |
| 1198 | GLint i; |
| 1199 | for (i = n - 1; i >= 0; i--) |
| 1200 | loopback_VertexAttrib2dvNV(index + i, v + 2 * i); |
| 1201 | } |
| 1202 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1203 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1204 | loopback_VertexAttribs3svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1205 | { |
| 1206 | GLint i; |
| 1207 | for (i = n - 1; i >= 0; i--) |
| 1208 | loopback_VertexAttrib3svNV(index + i, v + 3 * i); |
| 1209 | } |
| 1210 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1211 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1212 | loopback_VertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1213 | { |
| 1214 | GLint i; |
| 1215 | for (i = n - 1; i >= 0; i--) |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1216 | ATTRIB3NV(index + i, v[3 * i], v[3 * i + 1], v[3 * i + 2]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1217 | } |
| 1218 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1219 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1220 | loopback_VertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1221 | { |
| 1222 | GLint i; |
| 1223 | for (i = n - 1; i >= 0; i--) |
| 1224 | loopback_VertexAttrib3dvNV(index + i, v + 3 * i); |
| 1225 | } |
| 1226 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1227 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1228 | loopback_VertexAttribs4svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1229 | { |
| 1230 | GLint i; |
| 1231 | for (i = n - 1; i >= 0; i--) |
| 1232 | loopback_VertexAttrib4svNV(index + i, v + 4 * i); |
| 1233 | } |
| 1234 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1235 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1236 | loopback_VertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1237 | { |
| 1238 | GLint i; |
| 1239 | for (i = n - 1; i >= 0; i--) |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1240 | ATTRIB4NV(index + i, v[4 * i], v[4 * i + 1], v[4 * i + 2], v[4 * i + 3]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1241 | } |
| 1242 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1243 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1244 | loopback_VertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1245 | { |
| 1246 | GLint i; |
| 1247 | for (i = n - 1; i >= 0; i--) |
| 1248 | loopback_VertexAttrib4dvNV(index + i, v + 4 * i); |
| 1249 | } |
| 1250 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1251 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1252 | loopback_VertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v) |
| 1253 | { |
| 1254 | GLint i; |
| 1255 | for (i = n - 1; i >= 0; i--) |
| 1256 | loopback_VertexAttrib4ubvNV(index + i, v + 4 * i); |
| 1257 | } |
| 1258 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 1259 | |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1260 | /* |
| 1261 | * GL_ARB_vertex_program |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1262 | * Always loop-back to one of the VertexAttrib[1234]f[v]ARB functions. |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1263 | */ |
| 1264 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1265 | static void GLAPIENTRY |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1266 | loopback_VertexAttrib1sARB(GLuint index, GLshort x) |
| 1267 | { |
| 1268 | ATTRIB1ARB(index, (GLfloat) x); |
| 1269 | } |
| 1270 | |
| 1271 | static void GLAPIENTRY |
| 1272 | loopback_VertexAttrib1dARB(GLuint index, GLdouble x) |
| 1273 | { |
| 1274 | ATTRIB1ARB(index, (GLfloat) x); |
| 1275 | } |
| 1276 | |
| 1277 | static void GLAPIENTRY |
| 1278 | loopback_VertexAttrib2sARB(GLuint index, GLshort x, GLshort y) |
| 1279 | { |
| 1280 | ATTRIB2ARB(index, (GLfloat) x, y); |
| 1281 | } |
| 1282 | |
| 1283 | static void GLAPIENTRY |
| 1284 | loopback_VertexAttrib2dARB(GLuint index, GLdouble x, GLdouble y) |
| 1285 | { |
| 1286 | ATTRIB2ARB(index, (GLfloat) x, (GLfloat) y); |
| 1287 | } |
| 1288 | |
| 1289 | static void GLAPIENTRY |
| 1290 | loopback_VertexAttrib3sARB(GLuint index, GLshort x, GLshort y, GLshort z) |
| 1291 | { |
| 1292 | ATTRIB3ARB(index, (GLfloat) x, (GLfloat) y, (GLfloat) z); |
| 1293 | } |
| 1294 | |
| 1295 | static void GLAPIENTRY |
| 1296 | loopback_VertexAttrib3dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z) |
| 1297 | { |
| 1298 | ATTRIB4ARB(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F); |
| 1299 | } |
| 1300 | |
| 1301 | static void GLAPIENTRY |
| 1302 | loopback_VertexAttrib4sARB(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) |
| 1303 | { |
| 1304 | ATTRIB4ARB(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
| 1305 | } |
| 1306 | |
| 1307 | static void GLAPIENTRY |
| 1308 | loopback_VertexAttrib4dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) |
| 1309 | { |
| 1310 | ATTRIB4ARB(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
| 1311 | } |
| 1312 | |
| 1313 | static void GLAPIENTRY |
| 1314 | loopback_VertexAttrib1svARB(GLuint index, const GLshort *v) |
| 1315 | { |
| 1316 | ATTRIB1ARB(index, (GLfloat) v[0]); |
| 1317 | } |
| 1318 | |
| 1319 | static void GLAPIENTRY |
| 1320 | loopback_VertexAttrib1dvARB(GLuint index, const GLdouble *v) |
| 1321 | { |
| 1322 | ATTRIB1ARB(index, (GLfloat) v[0]); |
| 1323 | } |
| 1324 | |
| 1325 | static void GLAPIENTRY |
| 1326 | loopback_VertexAttrib2svARB(GLuint index, const GLshort *v) |
| 1327 | { |
| 1328 | ATTRIB2ARB(index, (GLfloat) v[0], (GLfloat) v[1]); |
| 1329 | } |
| 1330 | |
| 1331 | static void GLAPIENTRY |
| 1332 | loopback_VertexAttrib2dvARB(GLuint index, const GLdouble *v) |
| 1333 | { |
| 1334 | ATTRIB2ARB(index, (GLfloat) v[0], (GLfloat) v[1]); |
| 1335 | } |
| 1336 | |
| 1337 | static void GLAPIENTRY |
| 1338 | loopback_VertexAttrib3svARB(GLuint index, const GLshort *v) |
| 1339 | { |
| 1340 | ATTRIB3ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]); |
| 1341 | } |
| 1342 | |
| 1343 | static void GLAPIENTRY |
| 1344 | loopback_VertexAttrib3dvARB(GLuint index, const GLdouble *v) |
| 1345 | { |
| 1346 | ATTRIB3ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]); |
| 1347 | } |
| 1348 | |
| 1349 | static void GLAPIENTRY |
| 1350 | loopback_VertexAttrib4svARB(GLuint index, const GLshort *v) |
| 1351 | { |
| 1352 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], |
| 1353 | (GLfloat)v[3]); |
| 1354 | } |
| 1355 | |
| 1356 | static void GLAPIENTRY |
| 1357 | loopback_VertexAttrib4dvARB(GLuint index, const GLdouble *v) |
| 1358 | { |
| 1359 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
| 1360 | } |
| 1361 | |
| 1362 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1363 | loopback_VertexAttrib4bvARB(GLuint index, const GLbyte * v) |
| 1364 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1365 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1366 | } |
| 1367 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1368 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1369 | loopback_VertexAttrib4ivARB(GLuint index, const GLint * v) |
| 1370 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1371 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1372 | } |
| 1373 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1374 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1375 | loopback_VertexAttrib4ubvARB(GLuint index, const GLubyte * v) |
| 1376 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1377 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1378 | } |
| 1379 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1380 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1381 | loopback_VertexAttrib4usvARB(GLuint index, const GLushort * v) |
| 1382 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1383 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1384 | } |
| 1385 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1386 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1387 | loopback_VertexAttrib4uivARB(GLuint index, const GLuint * v) |
| 1388 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1389 | ATTRIB4ARB(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]); |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1390 | } |
| 1391 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1392 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1393 | loopback_VertexAttrib4NbvARB(GLuint index, const GLbyte * v) |
| 1394 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1395 | ATTRIB4ARB(index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1396 | BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3])); |
| 1397 | } |
| 1398 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1399 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1400 | loopback_VertexAttrib4NsvARB(GLuint index, const GLshort * v) |
| 1401 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1402 | ATTRIB4ARB(index, SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1403 | SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3])); |
| 1404 | } |
| 1405 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1406 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1407 | loopback_VertexAttrib4NivARB(GLuint index, const GLint * v) |
| 1408 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1409 | ATTRIB4ARB(index, INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1410 | INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3])); |
| 1411 | } |
| 1412 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1413 | static void GLAPIENTRY |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1414 | loopback_VertexAttrib4NubARB(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) |
| 1415 | { |
| 1416 | ATTRIB4ARB(index, UBYTE_TO_FLOAT(x), UBYTE_TO_FLOAT(y), |
| 1417 | UBYTE_TO_FLOAT(z), UBYTE_TO_FLOAT(w)); |
| 1418 | } |
| 1419 | |
| 1420 | static void GLAPIENTRY |
| 1421 | loopback_VertexAttrib4NubvARB(GLuint index, const GLubyte * v) |
| 1422 | { |
| 1423 | ATTRIB4ARB(index, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
| 1424 | UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3])); |
| 1425 | } |
| 1426 | |
| 1427 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1428 | loopback_VertexAttrib4NusvARB(GLuint index, const GLushort * v) |
| 1429 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1430 | ATTRIB4ARB(index, USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1431 | USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3])); |
| 1432 | } |
| 1433 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1434 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1435 | loopback_VertexAttrib4NuivARB(GLuint index, const GLuint * v) |
| 1436 | { |
Brian Paul | b5b8d22 | 2004-11-27 20:07:08 +0000 | [diff] [blame] | 1437 | ATTRIB4ARB(index, UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1438 | UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3])); |
| 1439 | } |
| 1440 | |
| 1441 | |
Brian Paul | 03c0c2e | 2002-01-14 16:06:35 +0000 | [diff] [blame] | 1442 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1443 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 1444 | /* |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1445 | * This code never registers handlers for any of the entry points |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 1446 | * listed in vtxfmt.h. |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1447 | */ |
| 1448 | void |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 1449 | _mesa_loopback_init_api_table( struct _glapi_table *dest ) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1450 | { |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 1451 | SET_Color3b(dest, loopback_Color3b_f); |
| 1452 | SET_Color3d(dest, loopback_Color3d_f); |
| 1453 | SET_Color3i(dest, loopback_Color3i_f); |
| 1454 | SET_Color3s(dest, loopback_Color3s_f); |
| 1455 | SET_Color3ui(dest, loopback_Color3ui_f); |
| 1456 | SET_Color3us(dest, loopback_Color3us_f); |
| 1457 | SET_Color3ub(dest, loopback_Color3ub_f); |
| 1458 | SET_Color4b(dest, loopback_Color4b_f); |
| 1459 | SET_Color4d(dest, loopback_Color4d_f); |
| 1460 | SET_Color4i(dest, loopback_Color4i_f); |
| 1461 | SET_Color4s(dest, loopback_Color4s_f); |
| 1462 | SET_Color4ui(dest, loopback_Color4ui_f); |
| 1463 | SET_Color4us(dest, loopback_Color4us_f); |
| 1464 | SET_Color4ub(dest, loopback_Color4ub_f); |
| 1465 | SET_Color3bv(dest, loopback_Color3bv_f); |
| 1466 | SET_Color3dv(dest, loopback_Color3dv_f); |
| 1467 | SET_Color3iv(dest, loopback_Color3iv_f); |
| 1468 | SET_Color3sv(dest, loopback_Color3sv_f); |
| 1469 | SET_Color3uiv(dest, loopback_Color3uiv_f); |
| 1470 | SET_Color3usv(dest, loopback_Color3usv_f); |
| 1471 | SET_Color3ubv(dest, loopback_Color3ubv_f); |
| 1472 | SET_Color4bv(dest, loopback_Color4bv_f); |
| 1473 | SET_Color4dv(dest, loopback_Color4dv_f); |
| 1474 | SET_Color4iv(dest, loopback_Color4iv_f); |
| 1475 | SET_Color4sv(dest, loopback_Color4sv_f); |
| 1476 | SET_Color4uiv(dest, loopback_Color4uiv_f); |
| 1477 | SET_Color4usv(dest, loopback_Color4usv_f); |
| 1478 | SET_Color4ubv(dest, loopback_Color4ubv_f); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1479 | |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 1480 | SET_SecondaryColor3bEXT(dest, loopback_SecondaryColor3bEXT_f); |
| 1481 | SET_SecondaryColor3dEXT(dest, loopback_SecondaryColor3dEXT_f); |
| 1482 | SET_SecondaryColor3iEXT(dest, loopback_SecondaryColor3iEXT_f); |
| 1483 | SET_SecondaryColor3sEXT(dest, loopback_SecondaryColor3sEXT_f); |
| 1484 | SET_SecondaryColor3uiEXT(dest, loopback_SecondaryColor3uiEXT_f); |
| 1485 | SET_SecondaryColor3usEXT(dest, loopback_SecondaryColor3usEXT_f); |
| 1486 | SET_SecondaryColor3ubEXT(dest, loopback_SecondaryColor3ubEXT_f); |
| 1487 | SET_SecondaryColor3bvEXT(dest, loopback_SecondaryColor3bvEXT_f); |
| 1488 | SET_SecondaryColor3dvEXT(dest, loopback_SecondaryColor3dvEXT_f); |
| 1489 | SET_SecondaryColor3ivEXT(dest, loopback_SecondaryColor3ivEXT_f); |
| 1490 | SET_SecondaryColor3svEXT(dest, loopback_SecondaryColor3svEXT_f); |
| 1491 | SET_SecondaryColor3uivEXT(dest, loopback_SecondaryColor3uivEXT_f); |
| 1492 | SET_SecondaryColor3usvEXT(dest, loopback_SecondaryColor3usvEXT_f); |
| 1493 | SET_SecondaryColor3ubvEXT(dest, loopback_SecondaryColor3ubvEXT_f); |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame] | 1494 | |
Brian Paul | 94b30dc | 2006-04-25 00:53:25 +0000 | [diff] [blame] | 1495 | SET_EdgeFlagv(dest, loopback_EdgeFlagv); |
| 1496 | |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 1497 | SET_Indexd(dest, loopback_Indexd); |
| 1498 | SET_Indexi(dest, loopback_Indexi); |
| 1499 | SET_Indexs(dest, loopback_Indexs); |
| 1500 | SET_Indexub(dest, loopback_Indexub); |
| 1501 | SET_Indexdv(dest, loopback_Indexdv); |
| 1502 | SET_Indexiv(dest, loopback_Indexiv); |
| 1503 | SET_Indexsv(dest, loopback_Indexsv); |
| 1504 | SET_Indexubv(dest, loopback_Indexubv); |
| 1505 | SET_Normal3b(dest, loopback_Normal3b); |
| 1506 | SET_Normal3d(dest, loopback_Normal3d); |
| 1507 | SET_Normal3i(dest, loopback_Normal3i); |
| 1508 | SET_Normal3s(dest, loopback_Normal3s); |
| 1509 | SET_Normal3bv(dest, loopback_Normal3bv); |
| 1510 | SET_Normal3dv(dest, loopback_Normal3dv); |
| 1511 | SET_Normal3iv(dest, loopback_Normal3iv); |
| 1512 | SET_Normal3sv(dest, loopback_Normal3sv); |
| 1513 | SET_TexCoord1d(dest, loopback_TexCoord1d); |
| 1514 | SET_TexCoord1i(dest, loopback_TexCoord1i); |
| 1515 | SET_TexCoord1s(dest, loopback_TexCoord1s); |
| 1516 | SET_TexCoord2d(dest, loopback_TexCoord2d); |
| 1517 | SET_TexCoord2s(dest, loopback_TexCoord2s); |
| 1518 | SET_TexCoord2i(dest, loopback_TexCoord2i); |
| 1519 | SET_TexCoord3d(dest, loopback_TexCoord3d); |
| 1520 | SET_TexCoord3i(dest, loopback_TexCoord3i); |
| 1521 | SET_TexCoord3s(dest, loopback_TexCoord3s); |
| 1522 | SET_TexCoord4d(dest, loopback_TexCoord4d); |
| 1523 | SET_TexCoord4i(dest, loopback_TexCoord4i); |
| 1524 | SET_TexCoord4s(dest, loopback_TexCoord4s); |
| 1525 | SET_TexCoord1dv(dest, loopback_TexCoord1dv); |
| 1526 | SET_TexCoord1iv(dest, loopback_TexCoord1iv); |
| 1527 | SET_TexCoord1sv(dest, loopback_TexCoord1sv); |
| 1528 | SET_TexCoord2dv(dest, loopback_TexCoord2dv); |
| 1529 | SET_TexCoord2iv(dest, loopback_TexCoord2iv); |
| 1530 | SET_TexCoord2sv(dest, loopback_TexCoord2sv); |
| 1531 | SET_TexCoord3dv(dest, loopback_TexCoord3dv); |
| 1532 | SET_TexCoord3iv(dest, loopback_TexCoord3iv); |
| 1533 | SET_TexCoord3sv(dest, loopback_TexCoord3sv); |
| 1534 | SET_TexCoord4dv(dest, loopback_TexCoord4dv); |
| 1535 | SET_TexCoord4iv(dest, loopback_TexCoord4iv); |
| 1536 | SET_TexCoord4sv(dest, loopback_TexCoord4sv); |
| 1537 | SET_Vertex2d(dest, loopback_Vertex2d); |
| 1538 | SET_Vertex2i(dest, loopback_Vertex2i); |
| 1539 | SET_Vertex2s(dest, loopback_Vertex2s); |
| 1540 | SET_Vertex3d(dest, loopback_Vertex3d); |
| 1541 | SET_Vertex3i(dest, loopback_Vertex3i); |
| 1542 | SET_Vertex3s(dest, loopback_Vertex3s); |
| 1543 | SET_Vertex4d(dest, loopback_Vertex4d); |
| 1544 | SET_Vertex4i(dest, loopback_Vertex4i); |
| 1545 | SET_Vertex4s(dest, loopback_Vertex4s); |
| 1546 | SET_Vertex2dv(dest, loopback_Vertex2dv); |
| 1547 | SET_Vertex2iv(dest, loopback_Vertex2iv); |
| 1548 | SET_Vertex2sv(dest, loopback_Vertex2sv); |
| 1549 | SET_Vertex3dv(dest, loopback_Vertex3dv); |
| 1550 | SET_Vertex3iv(dest, loopback_Vertex3iv); |
| 1551 | SET_Vertex3sv(dest, loopback_Vertex3sv); |
| 1552 | SET_Vertex4dv(dest, loopback_Vertex4dv); |
| 1553 | SET_Vertex4iv(dest, loopback_Vertex4iv); |
| 1554 | SET_Vertex4sv(dest, loopback_Vertex4sv); |
| 1555 | SET_MultiTexCoord1dARB(dest, loopback_MultiTexCoord1dARB); |
| 1556 | SET_MultiTexCoord1dvARB(dest, loopback_MultiTexCoord1dvARB); |
| 1557 | SET_MultiTexCoord1iARB(dest, loopback_MultiTexCoord1iARB); |
| 1558 | SET_MultiTexCoord1ivARB(dest, loopback_MultiTexCoord1ivARB); |
| 1559 | SET_MultiTexCoord1sARB(dest, loopback_MultiTexCoord1sARB); |
| 1560 | SET_MultiTexCoord1svARB(dest, loopback_MultiTexCoord1svARB); |
| 1561 | SET_MultiTexCoord2dARB(dest, loopback_MultiTexCoord2dARB); |
| 1562 | SET_MultiTexCoord2dvARB(dest, loopback_MultiTexCoord2dvARB); |
| 1563 | SET_MultiTexCoord2iARB(dest, loopback_MultiTexCoord2iARB); |
| 1564 | SET_MultiTexCoord2ivARB(dest, loopback_MultiTexCoord2ivARB); |
| 1565 | SET_MultiTexCoord2sARB(dest, loopback_MultiTexCoord2sARB); |
| 1566 | SET_MultiTexCoord2svARB(dest, loopback_MultiTexCoord2svARB); |
| 1567 | SET_MultiTexCoord3dARB(dest, loopback_MultiTexCoord3dARB); |
| 1568 | SET_MultiTexCoord3dvARB(dest, loopback_MultiTexCoord3dvARB); |
| 1569 | SET_MultiTexCoord3iARB(dest, loopback_MultiTexCoord3iARB); |
| 1570 | SET_MultiTexCoord3ivARB(dest, loopback_MultiTexCoord3ivARB); |
| 1571 | SET_MultiTexCoord3sARB(dest, loopback_MultiTexCoord3sARB); |
| 1572 | SET_MultiTexCoord3svARB(dest, loopback_MultiTexCoord3svARB); |
| 1573 | SET_MultiTexCoord4dARB(dest, loopback_MultiTexCoord4dARB); |
| 1574 | SET_MultiTexCoord4dvARB(dest, loopback_MultiTexCoord4dvARB); |
| 1575 | SET_MultiTexCoord4iARB(dest, loopback_MultiTexCoord4iARB); |
| 1576 | SET_MultiTexCoord4ivARB(dest, loopback_MultiTexCoord4ivARB); |
| 1577 | SET_MultiTexCoord4sARB(dest, loopback_MultiTexCoord4sARB); |
| 1578 | SET_MultiTexCoord4svARB(dest, loopback_MultiTexCoord4svARB); |
| 1579 | SET_EvalCoord2dv(dest, loopback_EvalCoord2dv); |
| 1580 | SET_EvalCoord2fv(dest, loopback_EvalCoord2fv); |
| 1581 | SET_EvalCoord2d(dest, loopback_EvalCoord2d); |
| 1582 | SET_EvalCoord1dv(dest, loopback_EvalCoord1dv); |
| 1583 | SET_EvalCoord1fv(dest, loopback_EvalCoord1fv); |
| 1584 | SET_EvalCoord1d(dest, loopback_EvalCoord1d); |
| 1585 | SET_Materialf(dest, loopback_Materialf); |
| 1586 | SET_Materiali(dest, loopback_Materiali); |
| 1587 | SET_Materialiv(dest, loopback_Materialiv); |
| 1588 | SET_Rectd(dest, loopback_Rectd); |
| 1589 | SET_Rectdv(dest, loopback_Rectdv); |
| 1590 | SET_Rectfv(dest, loopback_Rectfv); |
| 1591 | SET_Recti(dest, loopback_Recti); |
| 1592 | SET_Rectiv(dest, loopback_Rectiv); |
| 1593 | SET_Rects(dest, loopback_Rects); |
| 1594 | SET_Rectsv(dest, loopback_Rectsv); |
| 1595 | SET_FogCoorddEXT(dest, loopback_FogCoorddEXT); |
| 1596 | SET_FogCoorddvEXT(dest, loopback_FogCoorddvEXT); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1597 | |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 1598 | SET_VertexAttrib1sNV(dest, loopback_VertexAttrib1sNV); |
| 1599 | SET_VertexAttrib1dNV(dest, loopback_VertexAttrib1dNV); |
| 1600 | SET_VertexAttrib2sNV(dest, loopback_VertexAttrib2sNV); |
| 1601 | SET_VertexAttrib2dNV(dest, loopback_VertexAttrib2dNV); |
| 1602 | SET_VertexAttrib3sNV(dest, loopback_VertexAttrib3sNV); |
| 1603 | SET_VertexAttrib3dNV(dest, loopback_VertexAttrib3dNV); |
| 1604 | SET_VertexAttrib4sNV(dest, loopback_VertexAttrib4sNV); |
| 1605 | SET_VertexAttrib4dNV(dest, loopback_VertexAttrib4dNV); |
| 1606 | SET_VertexAttrib4ubNV(dest, loopback_VertexAttrib4ubNV); |
| 1607 | SET_VertexAttrib1svNV(dest, loopback_VertexAttrib1svNV); |
| 1608 | SET_VertexAttrib1dvNV(dest, loopback_VertexAttrib1dvNV); |
| 1609 | SET_VertexAttrib2svNV(dest, loopback_VertexAttrib2svNV); |
| 1610 | SET_VertexAttrib2dvNV(dest, loopback_VertexAttrib2dvNV); |
| 1611 | SET_VertexAttrib3svNV(dest, loopback_VertexAttrib3svNV); |
| 1612 | SET_VertexAttrib3dvNV(dest, loopback_VertexAttrib3dvNV); |
| 1613 | SET_VertexAttrib4svNV(dest, loopback_VertexAttrib4svNV); |
| 1614 | SET_VertexAttrib4dvNV(dest, loopback_VertexAttrib4dvNV); |
| 1615 | SET_VertexAttrib4ubvNV(dest, loopback_VertexAttrib4ubvNV); |
| 1616 | SET_VertexAttribs1svNV(dest, loopback_VertexAttribs1svNV); |
| 1617 | SET_VertexAttribs1fvNV(dest, loopback_VertexAttribs1fvNV); |
| 1618 | SET_VertexAttribs1dvNV(dest, loopback_VertexAttribs1dvNV); |
| 1619 | SET_VertexAttribs2svNV(dest, loopback_VertexAttribs2svNV); |
| 1620 | SET_VertexAttribs2fvNV(dest, loopback_VertexAttribs2fvNV); |
| 1621 | SET_VertexAttribs2dvNV(dest, loopback_VertexAttribs2dvNV); |
| 1622 | SET_VertexAttribs3svNV(dest, loopback_VertexAttribs3svNV); |
| 1623 | SET_VertexAttribs3fvNV(dest, loopback_VertexAttribs3fvNV); |
| 1624 | SET_VertexAttribs3dvNV(dest, loopback_VertexAttribs3dvNV); |
| 1625 | SET_VertexAttribs4svNV(dest, loopback_VertexAttribs4svNV); |
| 1626 | SET_VertexAttribs4fvNV(dest, loopback_VertexAttribs4fvNV); |
| 1627 | SET_VertexAttribs4dvNV(dest, loopback_VertexAttribs4dvNV); |
| 1628 | SET_VertexAttribs4ubvNV(dest, loopback_VertexAttribs4ubvNV); |
Brian Paul | 03c0c2e | 2002-01-14 16:06:35 +0000 | [diff] [blame] | 1629 | |
Ian Romanick | 9bdfee3 | 2005-07-18 12:31:24 +0000 | [diff] [blame] | 1630 | SET_VertexAttrib1sARB(dest, loopback_VertexAttrib1sARB); |
| 1631 | SET_VertexAttrib1dARB(dest, loopback_VertexAttrib1dARB); |
| 1632 | SET_VertexAttrib2sARB(dest, loopback_VertexAttrib2sARB); |
| 1633 | SET_VertexAttrib2dARB(dest, loopback_VertexAttrib2dARB); |
| 1634 | SET_VertexAttrib3sARB(dest, loopback_VertexAttrib3sARB); |
| 1635 | SET_VertexAttrib3dARB(dest, loopback_VertexAttrib3dARB); |
| 1636 | SET_VertexAttrib4sARB(dest, loopback_VertexAttrib4sARB); |
| 1637 | SET_VertexAttrib4dARB(dest, loopback_VertexAttrib4dARB); |
| 1638 | SET_VertexAttrib1svARB(dest, loopback_VertexAttrib1svARB); |
| 1639 | SET_VertexAttrib1dvARB(dest, loopback_VertexAttrib1dvARB); |
| 1640 | SET_VertexAttrib2svARB(dest, loopback_VertexAttrib2svARB); |
| 1641 | SET_VertexAttrib2dvARB(dest, loopback_VertexAttrib2dvARB); |
| 1642 | SET_VertexAttrib3svARB(dest, loopback_VertexAttrib3svARB); |
| 1643 | SET_VertexAttrib3dvARB(dest, loopback_VertexAttrib3dvARB); |
| 1644 | SET_VertexAttrib4svARB(dest, loopback_VertexAttrib4svARB); |
| 1645 | SET_VertexAttrib4dvARB(dest, loopback_VertexAttrib4dvARB); |
| 1646 | SET_VertexAttrib4NubARB(dest, loopback_VertexAttrib4NubARB); |
| 1647 | SET_VertexAttrib4NubvARB(dest, loopback_VertexAttrib4NubvARB); |
| 1648 | SET_VertexAttrib4bvARB(dest, loopback_VertexAttrib4bvARB); |
| 1649 | SET_VertexAttrib4ivARB(dest, loopback_VertexAttrib4ivARB); |
| 1650 | SET_VertexAttrib4ubvARB(dest, loopback_VertexAttrib4ubvARB); |
| 1651 | SET_VertexAttrib4usvARB(dest, loopback_VertexAttrib4usvARB); |
| 1652 | SET_VertexAttrib4uivARB(dest, loopback_VertexAttrib4uivARB); |
| 1653 | SET_VertexAttrib4NbvARB(dest, loopback_VertexAttrib4NbvARB); |
| 1654 | SET_VertexAttrib4NsvARB(dest, loopback_VertexAttrib4NsvARB); |
| 1655 | SET_VertexAttrib4NivARB(dest, loopback_VertexAttrib4NivARB); |
| 1656 | SET_VertexAttrib4NusvARB(dest, loopback_VertexAttrib4NusvARB); |
| 1657 | SET_VertexAttrib4NuivARB(dest, loopback_VertexAttrib4NuivARB); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1658 | } |