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 | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 9 | * Version: 5.1 |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 10 | * |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 11 | * Copyright (C) 1999-2003 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" |
| 38 | |
| 39 | /* KW: A set of functions to convert unusual Color/Normal/Vertex/etc |
| 40 | * calls to a smaller set of driver-provided formats. Currently just |
| 41 | * go back to dispatch to find these (eg. call glNormal3f directly), |
| 42 | * hence 'loopback'. |
| 43 | * |
| 44 | * The driver must supply all of the remaining entry points, which are |
Keith Whitwell | 9aff6cf | 2000-11-24 15:21:59 +0000 | [diff] [blame] | 45 | * 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] | 46 | * install the supplied software t&l module. |
| 47 | */ |
Keith Whitwell | fc00cbe | 2001-12-20 15:30:45 +0000 | [diff] [blame] | 48 | #define COLORF(r,g,b,a) glColor4f(r,g,b,a) |
| 49 | #define VERTEX2(x,y) glVertex2f(x,y) |
| 50 | #define VERTEX3(x,y,z) glVertex3f(x,y,z) |
| 51 | #define VERTEX4(x,y,z,w) glVertex4f(x,y,z,w) |
| 52 | #define NORMAL(x,y,z) glNormal3f(x,y,z) |
| 53 | #define TEXCOORD1(s) glTexCoord1f(s) |
| 54 | #define TEXCOORD2(s,t) glTexCoord2f(s,t) |
| 55 | #define TEXCOORD3(s,t,u) glTexCoord3f(s,t,u) |
| 56 | #define TEXCOORD4(s,t,u,v) glTexCoord4f(s,t,u,v) |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 57 | #define INDEX(c) glIndexf(c) |
Keith Whitwell | fc00cbe | 2001-12-20 15:30:45 +0000 | [diff] [blame] | 58 | #define MULTI_TEXCOORD1(z,s) glMultiTexCoord1fARB(z,s) |
| 59 | #define MULTI_TEXCOORD2(z,s,t) glMultiTexCoord2fARB(z,s,t) |
| 60 | #define MULTI_TEXCOORD3(z,s,t,u) glMultiTexCoord3fARB(z,s,t,u) |
| 61 | #define MULTI_TEXCOORD4(z,s,t,u,v) glMultiTexCoord4fARB(z,s,t,u,v) |
| 62 | #define EVALCOORD1(x) glEvalCoord1f(x) |
| 63 | #define EVALCOORD2(x,y) glEvalCoord2f(x,y) |
| 64 | #define MATERIALFV(a,b,c) glMaterialfv(a,b,c) |
| 65 | #define RECTF(a,b,c,d) glRectf(a,b,c,d) |
| 66 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 67 | /* Extension functions must be dereferenced through _glapi_Dispatch as |
| 68 | * not all libGL.so's will have all the uptodate entrypoints. |
| 69 | */ |
| 70 | #define ATTRIB1(index,x) _glapi_Dispatch->VertexAttrib1fNV(index,x) |
| 71 | #define ATTRIB2(index,x,y) _glapi_Dispatch->VertexAttrib2fNV(index,x,y) |
| 72 | #define ATTRIB3(index,x,y,z) _glapi_Dispatch->VertexAttrib3fNV(index,x,y,z) |
| 73 | #define ATTRIB4(index,x,y,z,w) _glapi_Dispatch->VertexAttrib4fNV(index,x,y,z,w) |
| 74 | #define FOGCOORDF(x) _glapi_Dispatch->FogCoordfEXT(x) |
| 75 | #define SECONDARYCOLORF(a,b,c) _glapi_Dispatch->SecondaryColor3fEXT(a,b,c) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 76 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 77 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 78 | loopback_Color3b_f( GLbyte red, GLbyte green, GLbyte blue ) |
| 79 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 80 | COLORF( BYTE_TO_FLOAT(red), |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 81 | BYTE_TO_FLOAT(green), |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 82 | BYTE_TO_FLOAT(blue), |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 83 | 1.0 ); |
| 84 | } |
| 85 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 86 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 87 | loopback_Color3d_f( GLdouble red, GLdouble green, GLdouble blue ) |
| 88 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 89 | COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, 1.0 ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 90 | } |
| 91 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 92 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 93 | loopback_Color3i_f( GLint red, GLint green, GLint blue ) |
| 94 | { |
| 95 | COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green), |
| 96 | INT_TO_FLOAT(blue), 1.0); |
| 97 | } |
| 98 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 99 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 100 | loopback_Color3s_f( GLshort red, GLshort green, GLshort blue ) |
| 101 | { |
| 102 | COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green), |
| 103 | SHORT_TO_FLOAT(blue), 1.0); |
| 104 | } |
| 105 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 106 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 107 | loopback_Color3ui_f( GLuint red, GLuint green, GLuint blue ) |
| 108 | { |
| 109 | COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green), |
| 110 | UINT_TO_FLOAT(blue), 1.0 ); |
| 111 | } |
| 112 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 113 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 114 | loopback_Color3us_f( GLushort red, GLushort green, GLushort blue ) |
| 115 | { |
| 116 | COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), |
| 117 | USHORT_TO_FLOAT(blue), 1.0 ); |
| 118 | } |
| 119 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 120 | static void GLAPIENTRY |
| 121 | loopback_Color3ub_f( GLubyte red, GLubyte green, GLubyte blue ) |
| 122 | { |
| 123 | COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), |
| 124 | UBYTE_TO_FLOAT(blue), 1.0 ); |
| 125 | } |
| 126 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 127 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 128 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 129 | loopback_Color3bv_f( const GLbyte *v ) |
| 130 | { |
| 131 | COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
| 132 | BYTE_TO_FLOAT(v[2]), 1.0 ); |
| 133 | } |
| 134 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 135 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 136 | loopback_Color3dv_f( const GLdouble *v ) |
| 137 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 138 | COLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], 1.0 ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 139 | } |
| 140 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 141 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 142 | loopback_Color3iv_f( const GLint *v ) |
| 143 | { |
| 144 | COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
| 145 | INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) ); |
| 146 | } |
| 147 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 148 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 149 | loopback_Color3sv_f( const GLshort *v ) |
| 150 | { |
| 151 | COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
| 152 | SHORT_TO_FLOAT(v[2]), 1.0 ); |
| 153 | } |
| 154 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 155 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 156 | loopback_Color3uiv_f( const GLuint *v ) |
| 157 | { |
| 158 | COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
| 159 | UINT_TO_FLOAT(v[2]), 1.0 ); |
| 160 | } |
| 161 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 162 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 163 | loopback_Color3usv_f( const GLushort *v ) |
| 164 | { |
| 165 | COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
| 166 | USHORT_TO_FLOAT(v[2]), 1.0 ); |
| 167 | } |
| 168 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 169 | static void GLAPIENTRY |
| 170 | loopback_Color3ubv_f( const GLubyte *v ) |
| 171 | { |
| 172 | COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
| 173 | UBYTE_TO_FLOAT(v[2]), 1.0 ); |
| 174 | } |
| 175 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 176 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 177 | static void GLAPIENTRY |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 178 | loopback_Color4b_f( GLbyte red, GLbyte green, GLbyte blue, |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 179 | GLbyte alpha ) |
| 180 | { |
| 181 | COLORF( BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green), |
| 182 | BYTE_TO_FLOAT(blue), BYTE_TO_FLOAT(alpha) ); |
| 183 | } |
| 184 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 185 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 186 | loopback_Color4d_f( GLdouble red, GLdouble green, GLdouble blue, |
| 187 | GLdouble alpha ) |
| 188 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 189 | COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, (GLfloat) alpha ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 190 | } |
| 191 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 192 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 193 | loopback_Color4i_f( GLint red, GLint green, GLint blue, GLint alpha ) |
| 194 | { |
| 195 | COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green), |
| 196 | INT_TO_FLOAT(blue), INT_TO_FLOAT(alpha) ); |
| 197 | } |
| 198 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 199 | static void GLAPIENTRY |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 200 | loopback_Color4s_f( GLshort red, GLshort green, GLshort blue, |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 201 | GLshort alpha ) |
| 202 | { |
| 203 | COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green), |
| 204 | SHORT_TO_FLOAT(blue), SHORT_TO_FLOAT(alpha) ); |
| 205 | } |
| 206 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 207 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 208 | loopback_Color4ui_f( GLuint red, GLuint green, GLuint blue, GLuint alpha ) |
| 209 | { |
| 210 | COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green), |
| 211 | UINT_TO_FLOAT(blue), UINT_TO_FLOAT(alpha) ); |
| 212 | } |
| 213 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 214 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 215 | loopback_Color4us_f( GLushort red, GLushort green, GLushort blue, GLushort alpha ) |
| 216 | { |
| 217 | COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green), |
| 218 | USHORT_TO_FLOAT(blue), USHORT_TO_FLOAT(alpha) ); |
| 219 | } |
| 220 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 221 | static void |
| 222 | loopback_Color4ub_f( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ) |
| 223 | { |
| 224 | COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), |
| 225 | UBYTE_TO_FLOAT(blue), UBYTE_TO_FLOAT(alpha) ); |
| 226 | } |
| 227 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 228 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 229 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 230 | loopback_Color4iv_f( const GLint *v ) |
| 231 | { |
| 232 | COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
| 233 | INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) ); |
| 234 | } |
| 235 | |
| 236 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 237 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 238 | loopback_Color4bv_f( const GLbyte *v ) |
| 239 | { |
| 240 | COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
| 241 | BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]) ); |
| 242 | } |
| 243 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 244 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 245 | loopback_Color4dv_f( const GLdouble *v ) |
| 246 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 247 | 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] | 248 | } |
| 249 | |
| 250 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 251 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 252 | loopback_Color4sv_f( const GLshort *v) |
| 253 | { |
| 254 | COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
| 255 | SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3]) ); |
| 256 | } |
| 257 | |
| 258 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 259 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 260 | loopback_Color4uiv_f( const GLuint *v) |
| 261 | { |
| 262 | COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
| 263 | UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3]) ); |
| 264 | } |
| 265 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 266 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 267 | loopback_Color4usv_f( const GLushort *v) |
| 268 | { |
| 269 | COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
| 270 | USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3]) ); |
| 271 | } |
| 272 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 273 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 274 | loopback_Color4ubv_f( const GLubyte *v) |
| 275 | { |
| 276 | COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
| 277 | UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3]) ); |
| 278 | } |
| 279 | |
| 280 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 281 | loopback_FogCoorddEXT( GLdouble d ) |
| 282 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 283 | FOGCOORDF( (GLfloat) d ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 284 | } |
| 285 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 286 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 287 | loopback_FogCoorddvEXT( const GLdouble *v ) |
| 288 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 289 | FOGCOORDF( (GLfloat) *v ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 290 | } |
| 291 | |
| 292 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 293 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 294 | loopback_Indexd( GLdouble c ) |
| 295 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 296 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 297 | } |
| 298 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 299 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 300 | loopback_Indexi( GLint c ) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 301 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 302 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 303 | } |
| 304 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 305 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 306 | loopback_Indexs( GLshort c ) |
| 307 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 308 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 309 | } |
| 310 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 311 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 312 | loopback_Indexub( GLubyte c ) |
| 313 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 314 | INDEX( (GLfloat) c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 315 | } |
| 316 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 317 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 318 | loopback_Indexdv( const GLdouble *c ) |
| 319 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 320 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 321 | } |
| 322 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 323 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 324 | loopback_Indexiv( const GLint *c ) |
| 325 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 326 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 327 | } |
| 328 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 329 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 330 | loopback_Indexsv( const GLshort *c ) |
| 331 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 332 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 333 | } |
| 334 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 335 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 336 | loopback_Indexubv( const GLubyte *c ) |
| 337 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 338 | INDEX( (GLfloat) *c ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 339 | } |
| 340 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 341 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 342 | loopback_Normal3b( GLbyte nx, GLbyte ny, GLbyte nz ) |
| 343 | { |
| 344 | NORMAL( BYTE_TO_FLOAT(nx), BYTE_TO_FLOAT(ny), BYTE_TO_FLOAT(nz) ); |
| 345 | } |
| 346 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 347 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 348 | loopback_Normal3d( GLdouble nx, GLdouble ny, GLdouble nz ) |
| 349 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 350 | NORMAL((GLfloat) nx, (GLfloat) ny, (GLfloat) nz); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 351 | } |
| 352 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 353 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 354 | loopback_Normal3i( GLint nx, GLint ny, GLint nz ) |
| 355 | { |
| 356 | NORMAL( INT_TO_FLOAT(nx), INT_TO_FLOAT(ny), INT_TO_FLOAT(nz) ); |
| 357 | } |
| 358 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 359 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 360 | loopback_Normal3s( GLshort nx, GLshort ny, GLshort nz ) |
| 361 | { |
| 362 | NORMAL( SHORT_TO_FLOAT(nx), SHORT_TO_FLOAT(ny), SHORT_TO_FLOAT(nz) ); |
| 363 | } |
| 364 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 365 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 366 | loopback_Normal3bv( const GLbyte *v ) |
| 367 | { |
| 368 | NORMAL( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), BYTE_TO_FLOAT(v[2]) ); |
| 369 | } |
| 370 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 371 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 372 | loopback_Normal3dv( const GLdouble *v ) |
| 373 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 374 | NORMAL( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 375 | } |
| 376 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 377 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 378 | loopback_Normal3iv( const GLint *v ) |
| 379 | { |
| 380 | NORMAL( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), INT_TO_FLOAT(v[2]) ); |
| 381 | } |
| 382 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 383 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 384 | loopback_Normal3sv( const GLshort *v ) |
| 385 | { |
| 386 | NORMAL( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), SHORT_TO_FLOAT(v[2]) ); |
| 387 | } |
| 388 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 389 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 390 | loopback_TexCoord1d( GLdouble s ) |
| 391 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 392 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 393 | } |
| 394 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 395 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 396 | loopback_TexCoord1i( GLint s ) |
| 397 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 398 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 399 | } |
| 400 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 401 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 402 | loopback_TexCoord1s( GLshort s ) |
| 403 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 404 | TEXCOORD1((GLfloat) s); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 405 | } |
| 406 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 407 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 408 | loopback_TexCoord2d( GLdouble s, GLdouble t ) |
| 409 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 410 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 411 | } |
| 412 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 413 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 414 | loopback_TexCoord2s( GLshort s, GLshort t ) |
| 415 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 416 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 417 | } |
| 418 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 419 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 420 | loopback_TexCoord2i( GLint s, GLint t ) |
| 421 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 422 | TEXCOORD2((GLfloat) s,(GLfloat) t); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 423 | } |
| 424 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 425 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 426 | loopback_TexCoord3d( GLdouble s, GLdouble t, GLdouble r ) |
| 427 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 428 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 429 | } |
| 430 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 431 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 432 | loopback_TexCoord3i( GLint s, GLint t, GLint r ) |
| 433 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 434 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 435 | } |
| 436 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 437 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 438 | loopback_TexCoord3s( GLshort s, GLshort t, GLshort r ) |
| 439 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 440 | TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 441 | } |
| 442 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 443 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 444 | loopback_TexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q ) |
| 445 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 446 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 447 | } |
| 448 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 449 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 450 | loopback_TexCoord4i( GLint s, GLint t, GLint r, GLint q ) |
| 451 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 452 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 453 | } |
| 454 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 455 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 456 | loopback_TexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q ) |
| 457 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 458 | TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 459 | } |
| 460 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 461 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 462 | loopback_TexCoord1dv( const GLdouble *v ) |
| 463 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 464 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 465 | } |
| 466 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 467 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 468 | loopback_TexCoord1iv( const GLint *v ) |
| 469 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 470 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 471 | } |
| 472 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 473 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 474 | loopback_TexCoord1sv( const GLshort *v ) |
| 475 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 476 | TEXCOORD1((GLfloat) v[0]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 477 | } |
| 478 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 479 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 480 | loopback_TexCoord2dv( const GLdouble *v ) |
| 481 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 482 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 483 | } |
| 484 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 485 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 486 | loopback_TexCoord2iv( const GLint *v ) |
| 487 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 488 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 489 | } |
| 490 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 491 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 492 | loopback_TexCoord2sv( const GLshort *v ) |
| 493 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 494 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 495 | } |
| 496 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 497 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 498 | loopback_TexCoord3dv( const GLdouble *v ) |
| 499 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 500 | TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 501 | } |
| 502 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 503 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 504 | loopback_TexCoord3iv( const GLint *v ) |
| 505 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 506 | TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 507 | } |
| 508 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 509 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 510 | loopback_TexCoord3sv( const GLshort *v ) |
| 511 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 512 | TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 513 | } |
| 514 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 515 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 516 | loopback_TexCoord4dv( const GLdouble *v ) |
| 517 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 518 | 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] | 519 | } |
| 520 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 521 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 522 | loopback_TexCoord4iv( const GLint *v ) |
| 523 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 524 | 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] | 525 | } |
| 526 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 527 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 528 | loopback_TexCoord4sv( const GLshort *v ) |
| 529 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 530 | 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] | 531 | } |
| 532 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 533 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 534 | loopback_Vertex2d( GLdouble x, GLdouble y ) |
| 535 | { |
| 536 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 537 | } |
| 538 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 539 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 540 | loopback_Vertex2i( GLint x, GLint y ) |
| 541 | { |
| 542 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 543 | } |
| 544 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 545 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 546 | loopback_Vertex2s( GLshort x, GLshort y ) |
| 547 | { |
| 548 | VERTEX2( (GLfloat) x, (GLfloat) y ); |
| 549 | } |
| 550 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 551 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 552 | loopback_Vertex3d( GLdouble x, GLdouble y, GLdouble z ) |
| 553 | { |
| 554 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 555 | } |
| 556 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 557 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 558 | loopback_Vertex3i( GLint x, GLint y, GLint z ) |
| 559 | { |
| 560 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 561 | } |
| 562 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 563 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 564 | loopback_Vertex3s( GLshort x, GLshort y, GLshort z ) |
| 565 | { |
| 566 | VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z ); |
| 567 | } |
| 568 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 569 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 570 | loopback_Vertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ) |
| 571 | { |
| 572 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 573 | } |
| 574 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 575 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 576 | loopback_Vertex4i( GLint x, GLint y, GLint z, GLint w ) |
| 577 | { |
| 578 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 579 | } |
| 580 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 581 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 582 | loopback_Vertex4s( GLshort x, GLshort y, GLshort z, GLshort w ) |
| 583 | { |
| 584 | VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w ); |
| 585 | } |
| 586 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 587 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 588 | loopback_Vertex2dv( const GLdouble *v ) |
| 589 | { |
| 590 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 591 | } |
| 592 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 593 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 594 | loopback_Vertex2iv( const GLint *v ) |
| 595 | { |
| 596 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 597 | } |
| 598 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 599 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 600 | loopback_Vertex2sv( const GLshort *v ) |
| 601 | { |
| 602 | VERTEX2( (GLfloat) v[0], (GLfloat) v[1] ); |
| 603 | } |
| 604 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 605 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 606 | loopback_Vertex3dv( const GLdouble *v ) |
| 607 | { |
| 608 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 609 | } |
| 610 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 611 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 612 | loopback_Vertex3iv( const GLint *v ) |
| 613 | { |
| 614 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 615 | } |
| 616 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 617 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 618 | loopback_Vertex3sv( const GLshort *v ) |
| 619 | { |
| 620 | VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
| 621 | } |
| 622 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 623 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 624 | loopback_Vertex4dv( const GLdouble *v ) |
| 625 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 626 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 627 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 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_Vertex4iv( const GLint *v ) |
| 632 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 633 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 634 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 635 | } |
| 636 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 637 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 638 | loopback_Vertex4sv( const GLshort *v ) |
| 639 | { |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 640 | VERTEX4( (GLfloat) v[0], (GLfloat) v[1], |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 641 | (GLfloat) v[2], (GLfloat) v[3] ); |
| 642 | } |
| 643 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 644 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 645 | loopback_MultiTexCoord1dARB(GLenum target, GLdouble s) |
| 646 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 647 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 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_MultiTexCoord1dvARB(GLenum target, const GLdouble *v) |
| 652 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 653 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 654 | } |
| 655 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 656 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 657 | loopback_MultiTexCoord1iARB(GLenum target, GLint s) |
| 658 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 659 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 660 | } |
| 661 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 662 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 663 | loopback_MultiTexCoord1ivARB(GLenum target, const GLint *v) |
| 664 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 665 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 666 | } |
| 667 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 668 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 669 | loopback_MultiTexCoord1sARB(GLenum target, GLshort s) |
| 670 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 671 | MULTI_TEXCOORD1( target, (GLfloat) s ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 672 | } |
| 673 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 674 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 675 | loopback_MultiTexCoord1svARB(GLenum target, const GLshort *v) |
| 676 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 677 | MULTI_TEXCOORD1( target, (GLfloat) v[0] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 678 | } |
| 679 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 680 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 681 | loopback_MultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t) |
| 682 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 683 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 684 | } |
| 685 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 686 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 687 | loopback_MultiTexCoord2dvARB(GLenum target, const GLdouble *v) |
| 688 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 689 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 690 | } |
| 691 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 692 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 693 | loopback_MultiTexCoord2iARB(GLenum target, GLint s, GLint t) |
| 694 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 695 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 696 | } |
| 697 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 698 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 699 | loopback_MultiTexCoord2ivARB(GLenum target, const GLint *v) |
| 700 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 701 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 702 | } |
| 703 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 704 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 705 | loopback_MultiTexCoord2sARB(GLenum target, GLshort s, GLshort t) |
| 706 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 707 | MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 708 | } |
| 709 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 710 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 711 | loopback_MultiTexCoord2svARB(GLenum target, const GLshort *v) |
| 712 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 713 | MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 714 | } |
| 715 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 716 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 717 | loopback_MultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r) |
| 718 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 719 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 720 | } |
| 721 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 722 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 723 | loopback_MultiTexCoord3dvARB(GLenum target, const GLdouble *v) |
| 724 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 725 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 726 | } |
| 727 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 728 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 729 | loopback_MultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r) |
| 730 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 731 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 732 | } |
| 733 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 734 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 735 | loopback_MultiTexCoord3ivARB(GLenum target, const GLint *v) |
| 736 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 737 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 738 | } |
| 739 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 740 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 741 | loopback_MultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r) |
| 742 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 743 | MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 744 | } |
| 745 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 746 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 747 | loopback_MultiTexCoord3svARB(GLenum target, const GLshort *v) |
| 748 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 749 | MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 750 | } |
| 751 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 752 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 753 | loopback_MultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) |
| 754 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 755 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 756 | (GLfloat) r, (GLfloat) q ); |
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_MultiTexCoord4dvARB(GLenum target, const GLdouble *v) |
| 761 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 762 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 763 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 764 | } |
| 765 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 766 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 767 | loopback_MultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q) |
| 768 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 769 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 770 | (GLfloat) r, (GLfloat) q ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 771 | } |
| 772 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 773 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 774 | loopback_MultiTexCoord4ivARB(GLenum target, const GLint *v) |
| 775 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 776 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 777 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 778 | } |
| 779 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 780 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 781 | loopback_MultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) |
| 782 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 783 | MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t, |
| 784 | (GLfloat) r, (GLfloat) q ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 785 | } |
| 786 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 787 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 788 | loopback_MultiTexCoord4svARB(GLenum target, const GLshort *v) |
| 789 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 790 | MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1], |
| 791 | (GLfloat) v[2], (GLfloat) v[3] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 792 | } |
| 793 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 794 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 795 | loopback_EvalCoord2dv( const GLdouble *u ) |
| 796 | { |
| 797 | EVALCOORD2( (GLfloat) u[0], (GLfloat) u[1] ); |
| 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_EvalCoord2fv( const GLfloat *u ) |
| 802 | { |
| 803 | EVALCOORD2( u[0], u[1] ); |
| 804 | } |
| 805 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 806 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 807 | loopback_EvalCoord2d( GLdouble u, GLdouble v ) |
| 808 | { |
| 809 | EVALCOORD2( (GLfloat) u, (GLfloat) v ); |
| 810 | } |
| 811 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 812 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 813 | loopback_EvalCoord1dv( const GLdouble *u ) |
| 814 | { |
| 815 | EVALCOORD1( (GLfloat) *u ); |
| 816 | } |
| 817 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 818 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 819 | loopback_EvalCoord1fv( const GLfloat *u ) |
| 820 | { |
| 821 | EVALCOORD1( (GLfloat) *u ); |
| 822 | } |
| 823 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 824 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 825 | loopback_EvalCoord1d( GLdouble u ) |
| 826 | { |
| 827 | EVALCOORD1( (GLfloat) u ); |
| 828 | } |
| 829 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 830 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 831 | loopback_Materialf( GLenum face, GLenum pname, GLfloat param ) |
| 832 | { |
| 833 | GLfloat fparam[4]; |
| 834 | fparam[0] = param; |
| 835 | MATERIALFV( face, pname, fparam ); |
| 836 | } |
| 837 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 838 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 839 | loopback_Materiali(GLenum face, GLenum pname, GLint param ) |
| 840 | { |
| 841 | GLfloat p = (GLfloat) param; |
| 842 | MATERIALFV(face, pname, &p); |
| 843 | } |
| 844 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 845 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 846 | loopback_Materialiv(GLenum face, GLenum pname, const GLint *params ) |
| 847 | { |
| 848 | GLfloat fparam[4]; |
| 849 | switch (pname) { |
| 850 | case GL_AMBIENT: |
| 851 | case GL_DIFFUSE: |
| 852 | case GL_SPECULAR: |
| 853 | case GL_EMISSION: |
| 854 | case GL_AMBIENT_AND_DIFFUSE: |
| 855 | fparam[0] = INT_TO_FLOAT( params[0] ); |
| 856 | fparam[1] = INT_TO_FLOAT( params[1] ); |
| 857 | fparam[2] = INT_TO_FLOAT( params[2] ); |
| 858 | fparam[3] = INT_TO_FLOAT( params[3] ); |
| 859 | break; |
| 860 | case GL_SHININESS: |
| 861 | fparam[0] = (GLfloat) params[0]; |
| 862 | break; |
| 863 | case GL_COLOR_INDEXES: |
| 864 | fparam[0] = (GLfloat) params[0]; |
| 865 | fparam[1] = (GLfloat) params[1]; |
| 866 | fparam[2] = (GLfloat) params[2]; |
| 867 | break; |
| 868 | default: |
| 869 | ; |
| 870 | } |
| 871 | MATERIALFV(face, pname, fparam); |
| 872 | } |
| 873 | |
| 874 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 875 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 876 | loopback_Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) |
| 877 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 878 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 879 | } |
| 880 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 881 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 882 | loopback_Rectdv(const GLdouble *v1, const GLdouble *v2) |
| 883 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 884 | 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] | 885 | } |
| 886 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 887 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 888 | loopback_Rectfv(const GLfloat *v1, const GLfloat *v2) |
| 889 | { |
| 890 | RECTF(v1[0], v1[1], v2[0], v2[1]); |
| 891 | } |
| 892 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 893 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 894 | loopback_Recti(GLint x1, GLint y1, GLint x2, GLint y2) |
| 895 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 896 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 897 | } |
| 898 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 899 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 900 | loopback_Rectiv(const GLint *v1, const GLint *v2) |
| 901 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 902 | 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] | 903 | } |
| 904 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 905 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 906 | loopback_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2) |
| 907 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 908 | RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 909 | } |
| 910 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 911 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 912 | loopback_Rectsv(const GLshort *v1, const GLshort *v2) |
| 913 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 914 | 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] | 915 | } |
| 916 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 917 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 918 | loopback_SecondaryColor3bEXT_f( GLbyte red, GLbyte green, GLbyte blue ) |
| 919 | { |
| 920 | SECONDARYCOLORF( BYTE_TO_FLOAT(red), |
| 921 | BYTE_TO_FLOAT(green), |
| 922 | BYTE_TO_FLOAT(blue) ); |
| 923 | } |
| 924 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 925 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 926 | loopback_SecondaryColor3dEXT_f( GLdouble red, GLdouble green, GLdouble blue ) |
| 927 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 928 | SECONDARYCOLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 929 | } |
| 930 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 931 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 932 | loopback_SecondaryColor3iEXT_f( GLint red, GLint green, GLint blue ) |
| 933 | { |
| 934 | SECONDARYCOLORF( INT_TO_FLOAT(red), |
| 935 | INT_TO_FLOAT(green), |
| 936 | INT_TO_FLOAT(blue)); |
| 937 | } |
| 938 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 939 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 940 | loopback_SecondaryColor3sEXT_f( GLshort red, GLshort green, GLshort blue ) |
| 941 | { |
| 942 | SECONDARYCOLORF(SHORT_TO_FLOAT(red), |
| 943 | SHORT_TO_FLOAT(green), |
| 944 | SHORT_TO_FLOAT(blue)); |
| 945 | } |
| 946 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 947 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 948 | loopback_SecondaryColor3uiEXT_f( GLuint red, GLuint green, GLuint blue ) |
| 949 | { |
| 950 | SECONDARYCOLORF(UINT_TO_FLOAT(red), |
| 951 | UINT_TO_FLOAT(green), |
| 952 | UINT_TO_FLOAT(blue)); |
| 953 | } |
| 954 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 955 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 956 | loopback_SecondaryColor3usEXT_f( GLushort red, GLushort green, GLushort blue ) |
| 957 | { |
| 958 | SECONDARYCOLORF(USHORT_TO_FLOAT(red), |
| 959 | USHORT_TO_FLOAT(green), |
| 960 | USHORT_TO_FLOAT(blue)); |
| 961 | } |
| 962 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 963 | static void GLAPIENTRY |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 964 | loopback_SecondaryColor3ubEXT_f( GLubyte red, GLubyte green, GLubyte blue ) |
| 965 | { |
| 966 | SECONDARYCOLORF(UBYTE_TO_FLOAT(red), |
| 967 | UBYTE_TO_FLOAT(green), |
| 968 | UBYTE_TO_FLOAT(blue)); |
| 969 | } |
| 970 | |
| 971 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 972 | loopback_SecondaryColor3bvEXT_f( const GLbyte *v ) |
| 973 | { |
| 974 | SECONDARYCOLORF(BYTE_TO_FLOAT(v[0]), |
| 975 | BYTE_TO_FLOAT(v[1]), |
| 976 | BYTE_TO_FLOAT(v[2])); |
| 977 | } |
| 978 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 979 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 980 | loopback_SecondaryColor3dvEXT_f( const GLdouble *v ) |
| 981 | { |
Brian Paul | 7c27632 | 2001-09-14 21:36:43 +0000 | [diff] [blame] | 982 | SECONDARYCOLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] ); |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 983 | } |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 984 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 985 | loopback_SecondaryColor3ivEXT_f( const GLint *v ) |
| 986 | { |
| 987 | SECONDARYCOLORF(INT_TO_FLOAT(v[0]), |
| 988 | INT_TO_FLOAT(v[1]), |
| 989 | INT_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_SecondaryColor3svEXT_f( const GLshort *v ) |
| 994 | { |
| 995 | SECONDARYCOLORF(SHORT_TO_FLOAT(v[0]), |
| 996 | SHORT_TO_FLOAT(v[1]), |
| 997 | SHORT_TO_FLOAT(v[2])); |
| 998 | } |
| 999 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1000 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1001 | loopback_SecondaryColor3uivEXT_f( const GLuint *v ) |
| 1002 | { |
| 1003 | SECONDARYCOLORF(UINT_TO_FLOAT(v[0]), |
| 1004 | UINT_TO_FLOAT(v[1]), |
| 1005 | UINT_TO_FLOAT(v[2])); |
| 1006 | } |
| 1007 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1008 | static void GLAPIENTRY |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1009 | loopback_SecondaryColor3usvEXT_f( const GLushort *v ) |
| 1010 | { |
| 1011 | SECONDARYCOLORF(USHORT_TO_FLOAT(v[0]), |
| 1012 | USHORT_TO_FLOAT(v[1]), |
| 1013 | USHORT_TO_FLOAT(v[2])); |
| 1014 | } |
| 1015 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1016 | static void GLAPIENTRY |
| 1017 | loopback_SecondaryColor3ubvEXT_f( const GLubyte *v ) |
| 1018 | { |
| 1019 | SECONDARYCOLORF(UBYTE_TO_FLOAT(v[0]), |
| 1020 | UBYTE_TO_FLOAT(v[1]), |
| 1021 | UBYTE_TO_FLOAT(v[2])); |
| 1022 | } |
| 1023 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1024 | |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1025 | /* |
| 1026 | * GL_NV_vertex_program |
| 1027 | */ |
| 1028 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1029 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1030 | loopback_VertexAttrib1sNV(GLuint index, GLshort x) |
| 1031 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1032 | ATTRIB1(index, (GLfloat) x); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1033 | } |
| 1034 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1035 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1036 | loopback_VertexAttrib1fNV(GLuint index, GLfloat x) |
| 1037 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1038 | ATTRIB1(index, x); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1039 | } |
| 1040 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1041 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1042 | loopback_VertexAttrib1dNV(GLuint index, GLdouble x) |
| 1043 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1044 | ATTRIB1(index, (GLfloat) x); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1045 | } |
| 1046 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1047 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1048 | loopback_VertexAttrib2sNV(GLuint index, GLshort x, GLshort y) |
| 1049 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1050 | ATTRIB2(index, (GLfloat) x, y); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1051 | } |
| 1052 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1053 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1054 | loopback_VertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y) |
| 1055 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1056 | ATTRIB2(index, (GLfloat) x, y); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1057 | } |
| 1058 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1059 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1060 | loopback_VertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y) |
| 1061 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1062 | ATTRIB2(index, (GLfloat) x, (GLfloat) y); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1063 | } |
| 1064 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1065 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1066 | loopback_VertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z) |
| 1067 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1068 | ATTRIB3(index, (GLfloat) x, y, z); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1069 | } |
| 1070 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1071 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1072 | loopback_VertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z) |
| 1073 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1074 | ATTRIB3(index, x, y, z); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1075 | } |
| 1076 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1077 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1078 | loopback_VertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z) |
| 1079 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1080 | ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1081 | } |
| 1082 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1083 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1084 | loopback_VertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) |
| 1085 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1086 | ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1087 | } |
| 1088 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1089 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1090 | loopback_VertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) |
| 1091 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1092 | ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1093 | } |
| 1094 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1095 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1096 | loopback_VertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) |
| 1097 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1098 | ATTRIB4(index, UBYTE_TO_FLOAT(x), UBYTE_TO_FLOAT(y), |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1099 | UBYTE_TO_FLOAT(z), UBYTE_TO_FLOAT(w)); |
| 1100 | } |
| 1101 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1102 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1103 | loopback_VertexAttrib1svNV(GLuint index, const GLshort *v) |
| 1104 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1105 | ATTRIB1(index, (GLfloat) v[0]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1106 | } |
| 1107 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1108 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1109 | loopback_VertexAttrib1fvNV(GLuint index, const GLfloat *v) |
| 1110 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1111 | ATTRIB1(index, v[0]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1112 | } |
| 1113 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1114 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1115 | loopback_VertexAttrib1dvNV(GLuint index, const GLdouble *v) |
| 1116 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1117 | ATTRIB1(index, (GLfloat) v[0]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1118 | } |
| 1119 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1120 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1121 | loopback_VertexAttrib2svNV(GLuint index, const GLshort *v) |
| 1122 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1123 | ATTRIB2(index, (GLfloat) v[0], (GLfloat) v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1124 | } |
| 1125 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1126 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1127 | loopback_VertexAttrib2fvNV(GLuint index, const GLfloat *v) |
| 1128 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1129 | ATTRIB2(index, v[0], v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1130 | } |
| 1131 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1132 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1133 | loopback_VertexAttrib2dvNV(GLuint index, const GLdouble *v) |
| 1134 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1135 | ATTRIB2(index, (GLfloat) v[0], (GLfloat) v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1136 | } |
| 1137 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1138 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1139 | loopback_VertexAttrib3svNV(GLuint index, const GLshort *v) |
| 1140 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1141 | ATTRIB2(index, (GLfloat) v[0], (GLfloat) v[1]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1142 | } |
| 1143 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1144 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1145 | loopback_VertexAttrib3fvNV(GLuint index, const GLfloat *v) |
| 1146 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1147 | ATTRIB3(index, v[0], v[1], v[2]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1148 | } |
| 1149 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1150 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1151 | loopback_VertexAttrib3dvNV(GLuint index, const GLdouble *v) |
| 1152 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1153 | ATTRIB3(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1154 | } |
| 1155 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1156 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1157 | loopback_VertexAttrib4svNV(GLuint index, const GLshort *v) |
| 1158 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1159 | ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], |
Keith Whitwell | 33ce405 | 2003-04-05 07:29:23 +0000 | [diff] [blame] | 1160 | (GLfloat)v[3]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 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_VertexAttrib4fvNV(GLuint index, const GLfloat *v) |
| 1165 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1166 | ATTRIB4(index, v[0], v[1], v[2], v[3]); |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1167 | } |
| 1168 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1169 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1170 | loopback_VertexAttrib4dvNV(GLuint index, const GLdouble *v) |
| 1171 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1172 | ATTRIB4(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] | 1173 | } |
| 1174 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1175 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1176 | loopback_VertexAttrib4ubvNV(GLuint index, const GLubyte *v) |
| 1177 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1178 | ATTRIB4(index, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1179 | UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3])); |
| 1180 | } |
| 1181 | |
| 1182 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1183 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1184 | loopback_VertexAttribs1svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1185 | { |
| 1186 | GLint i; |
| 1187 | for (i = n - 1; i >= 0; i--) |
| 1188 | loopback_VertexAttrib1svNV(index + i, v + i); |
| 1189 | } |
| 1190 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1191 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1192 | loopback_VertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1193 | { |
| 1194 | GLint i; |
| 1195 | for (i = n - 1; i >= 0; i--) |
| 1196 | loopback_VertexAttrib1fvNV(index + i, v + i); |
| 1197 | } |
| 1198 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1199 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1200 | loopback_VertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1201 | { |
| 1202 | GLint i; |
| 1203 | for (i = n - 1; i >= 0; i--) |
| 1204 | loopback_VertexAttrib1dvNV(index + i, v + i); |
| 1205 | } |
| 1206 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1207 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1208 | loopback_VertexAttribs2svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1209 | { |
| 1210 | GLint i; |
| 1211 | for (i = n - 1; i >= 0; i--) |
| 1212 | loopback_VertexAttrib2svNV(index + i, v + 2 * i); |
| 1213 | } |
| 1214 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1215 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1216 | loopback_VertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1217 | { |
| 1218 | GLint i; |
| 1219 | for (i = n - 1; i >= 0; i--) |
| 1220 | loopback_VertexAttrib2fvNV(index + i, v + 2 * i); |
| 1221 | } |
| 1222 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1223 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1224 | loopback_VertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1225 | { |
| 1226 | GLint i; |
| 1227 | for (i = n - 1; i >= 0; i--) |
| 1228 | loopback_VertexAttrib2dvNV(index + i, v + 2 * i); |
| 1229 | } |
| 1230 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1231 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1232 | loopback_VertexAttribs3svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1233 | { |
| 1234 | GLint i; |
| 1235 | for (i = n - 1; i >= 0; i--) |
| 1236 | loopback_VertexAttrib3svNV(index + i, v + 3 * i); |
| 1237 | } |
| 1238 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1239 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1240 | loopback_VertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1241 | { |
| 1242 | GLint i; |
| 1243 | for (i = n - 1; i >= 0; i--) |
| 1244 | loopback_VertexAttrib3fvNV(index + i, v + 3 * i); |
| 1245 | } |
| 1246 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1247 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1248 | loopback_VertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1249 | { |
| 1250 | GLint i; |
| 1251 | for (i = n - 1; i >= 0; i--) |
| 1252 | loopback_VertexAttrib3dvNV(index + i, v + 3 * i); |
| 1253 | } |
| 1254 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1255 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1256 | loopback_VertexAttribs4svNV(GLuint index, GLsizei n, const GLshort *v) |
| 1257 | { |
| 1258 | GLint i; |
| 1259 | for (i = n - 1; i >= 0; i--) |
| 1260 | loopback_VertexAttrib4svNV(index + i, v + 4 * i); |
| 1261 | } |
| 1262 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1263 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1264 | loopback_VertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat *v) |
| 1265 | { |
| 1266 | GLint i; |
| 1267 | for (i = n - 1; i >= 0; i--) |
| 1268 | loopback_VertexAttrib4fvNV(index + i, v + 4 * i); |
| 1269 | } |
| 1270 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1271 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1272 | loopback_VertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble *v) |
| 1273 | { |
| 1274 | GLint i; |
| 1275 | for (i = n - 1; i >= 0; i--) |
| 1276 | loopback_VertexAttrib4dvNV(index + i, v + 4 * i); |
| 1277 | } |
| 1278 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1279 | static void GLAPIENTRY |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1280 | loopback_VertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v) |
| 1281 | { |
| 1282 | GLint i; |
| 1283 | for (i = n - 1; i >= 0; i--) |
| 1284 | loopback_VertexAttrib4ubvNV(index + i, v + 4 * i); |
| 1285 | } |
| 1286 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 1287 | |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1288 | /* |
| 1289 | * GL_ARB_vertex_program |
| 1290 | */ |
| 1291 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1292 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1293 | loopback_VertexAttrib4bvARB(GLuint index, const GLbyte * v) |
| 1294 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1295 | ATTRIB4(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] | 1296 | } |
| 1297 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1298 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1299 | loopback_VertexAttrib4ivARB(GLuint index, const GLint * v) |
| 1300 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1301 | ATTRIB4(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] | 1302 | } |
| 1303 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1304 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1305 | loopback_VertexAttrib4ubvARB(GLuint index, const GLubyte * v) |
| 1306 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1307 | ATTRIB4(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] | 1308 | } |
| 1309 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1310 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1311 | loopback_VertexAttrib4usvARB(GLuint index, const GLushort * v) |
| 1312 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1313 | ATTRIB4(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] | 1314 | } |
| 1315 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1316 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1317 | loopback_VertexAttrib4uivARB(GLuint index, const GLuint * v) |
| 1318 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1319 | ATTRIB4(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] | 1320 | } |
| 1321 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1322 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1323 | loopback_VertexAttrib4NbvARB(GLuint index, const GLbyte * v) |
| 1324 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1325 | ATTRIB4(index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1326 | BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3])); |
| 1327 | } |
| 1328 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1329 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1330 | loopback_VertexAttrib4NsvARB(GLuint index, const GLshort * v) |
| 1331 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1332 | ATTRIB4(index, SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1333 | SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3])); |
| 1334 | } |
| 1335 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1336 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1337 | loopback_VertexAttrib4NivARB(GLuint index, const GLint * v) |
| 1338 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1339 | ATTRIB4(index, INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1340 | INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3])); |
| 1341 | } |
| 1342 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1343 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1344 | loopback_VertexAttrib4NusvARB(GLuint index, const GLushort * v) |
| 1345 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1346 | ATTRIB4(index, USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1347 | USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3])); |
| 1348 | } |
| 1349 | |
Kendall Bennett | c40d1dd | 2003-10-21 22:22:17 +0000 | [diff] [blame] | 1350 | static void GLAPIENTRY |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1351 | loopback_VertexAttrib4NuivARB(GLuint index, const GLuint * v) |
| 1352 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1353 | ATTRIB4(index, UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]), |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1354 | UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3])); |
| 1355 | } |
| 1356 | |
| 1357 | |
Brian Paul | 03c0c2e | 2002-01-14 16:06:35 +0000 | [diff] [blame] | 1358 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1359 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1360 | /* |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1361 | * This code never registers handlers for any of the entry points |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 1362 | * listed in vtxfmt.h. |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1363 | */ |
| 1364 | void |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1365 | _mesa_loopback_init_api_table( struct _glapi_table *dest ) |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1366 | { |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1367 | dest->Color3b = loopback_Color3b_f; |
| 1368 | dest->Color3d = loopback_Color3d_f; |
| 1369 | dest->Color3i = loopback_Color3i_f; |
| 1370 | dest->Color3s = loopback_Color3s_f; |
| 1371 | dest->Color3ui = loopback_Color3ui_f; |
| 1372 | dest->Color3us = loopback_Color3us_f; |
| 1373 | dest->Color3ub = loopback_Color3ub_f; |
| 1374 | dest->Color4b = loopback_Color4b_f; |
| 1375 | dest->Color4d = loopback_Color4d_f; |
| 1376 | dest->Color4i = loopback_Color4i_f; |
| 1377 | dest->Color4s = loopback_Color4s_f; |
| 1378 | dest->Color4ui = loopback_Color4ui_f; |
| 1379 | dest->Color4us = loopback_Color4us_f; |
| 1380 | dest->Color4ub = loopback_Color4ub_f; |
| 1381 | dest->Color3bv = loopback_Color3bv_f; |
| 1382 | dest->Color3dv = loopback_Color3dv_f; |
| 1383 | dest->Color3iv = loopback_Color3iv_f; |
| 1384 | dest->Color3sv = loopback_Color3sv_f; |
| 1385 | dest->Color3uiv = loopback_Color3uiv_f; |
| 1386 | dest->Color3usv = loopback_Color3usv_f; |
| 1387 | dest->Color3ubv = loopback_Color3ubv_f; |
| 1388 | dest->Color4bv = loopback_Color4bv_f; |
| 1389 | dest->Color4dv = loopback_Color4dv_f; |
| 1390 | dest->Color4iv = loopback_Color4iv_f; |
| 1391 | dest->Color4sv = loopback_Color4sv_f; |
| 1392 | dest->Color4uiv = loopback_Color4uiv_f; |
| 1393 | dest->Color4usv = loopback_Color4usv_f; |
| 1394 | dest->Color4ubv = loopback_Color4ubv_f; |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1395 | |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1396 | dest->SecondaryColor3bEXT = loopback_SecondaryColor3bEXT_f; |
| 1397 | dest->SecondaryColor3dEXT = loopback_SecondaryColor3dEXT_f; |
| 1398 | dest->SecondaryColor3iEXT = loopback_SecondaryColor3iEXT_f; |
| 1399 | dest->SecondaryColor3sEXT = loopback_SecondaryColor3sEXT_f; |
| 1400 | dest->SecondaryColor3uiEXT = loopback_SecondaryColor3uiEXT_f; |
| 1401 | dest->SecondaryColor3usEXT = loopback_SecondaryColor3usEXT_f; |
| 1402 | dest->SecondaryColor3ubEXT = loopback_SecondaryColor3ubEXT_f; |
| 1403 | dest->SecondaryColor3bvEXT = loopback_SecondaryColor3bvEXT_f; |
| 1404 | dest->SecondaryColor3dvEXT = loopback_SecondaryColor3dvEXT_f; |
| 1405 | dest->SecondaryColor3ivEXT = loopback_SecondaryColor3ivEXT_f; |
| 1406 | dest->SecondaryColor3svEXT = loopback_SecondaryColor3svEXT_f; |
| 1407 | dest->SecondaryColor3uivEXT = loopback_SecondaryColor3uivEXT_f; |
| 1408 | dest->SecondaryColor3usvEXT = loopback_SecondaryColor3usvEXT_f; |
| 1409 | dest->SecondaryColor3ubvEXT = loopback_SecondaryColor3ubvEXT_f; |
| 1410 | |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1411 | dest->Indexd = loopback_Indexd; |
Keith Whitwell | ae0eaf9 | 2003-11-24 15:23:18 +0000 | [diff] [blame^] | 1412 | dest->Indexi = loopback_Indexi; |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1413 | dest->Indexs = loopback_Indexs; |
| 1414 | dest->Indexub = loopback_Indexub; |
| 1415 | dest->Indexdv = loopback_Indexdv; |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1416 | dest->Indexiv = loopback_Indexiv; |
| 1417 | dest->Indexsv = loopback_Indexsv; |
| 1418 | dest->Indexubv = loopback_Indexubv; |
| 1419 | dest->Normal3b = loopback_Normal3b; |
| 1420 | dest->Normal3d = loopback_Normal3d; |
| 1421 | dest->Normal3i = loopback_Normal3i; |
| 1422 | dest->Normal3s = loopback_Normal3s; |
| 1423 | dest->Normal3bv = loopback_Normal3bv; |
| 1424 | dest->Normal3dv = loopback_Normal3dv; |
| 1425 | dest->Normal3iv = loopback_Normal3iv; |
| 1426 | dest->Normal3sv = loopback_Normal3sv; |
| 1427 | dest->TexCoord1d = loopback_TexCoord1d; |
| 1428 | dest->TexCoord1i = loopback_TexCoord1i; |
| 1429 | dest->TexCoord1s = loopback_TexCoord1s; |
| 1430 | dest->TexCoord2d = loopback_TexCoord2d; |
| 1431 | dest->TexCoord2s = loopback_TexCoord2s; |
| 1432 | dest->TexCoord2i = loopback_TexCoord2i; |
| 1433 | dest->TexCoord3d = loopback_TexCoord3d; |
| 1434 | dest->TexCoord3i = loopback_TexCoord3i; |
| 1435 | dest->TexCoord3s = loopback_TexCoord3s; |
| 1436 | dest->TexCoord4d = loopback_TexCoord4d; |
| 1437 | dest->TexCoord4i = loopback_TexCoord4i; |
| 1438 | dest->TexCoord4s = loopback_TexCoord4s; |
| 1439 | dest->TexCoord1dv = loopback_TexCoord1dv; |
| 1440 | dest->TexCoord1iv = loopback_TexCoord1iv; |
| 1441 | dest->TexCoord1sv = loopback_TexCoord1sv; |
| 1442 | dest->TexCoord2dv = loopback_TexCoord2dv; |
| 1443 | dest->TexCoord2iv = loopback_TexCoord2iv; |
| 1444 | dest->TexCoord2sv = loopback_TexCoord2sv; |
| 1445 | dest->TexCoord3dv = loopback_TexCoord3dv; |
| 1446 | dest->TexCoord3iv = loopback_TexCoord3iv; |
| 1447 | dest->TexCoord3sv = loopback_TexCoord3sv; |
| 1448 | dest->TexCoord4dv = loopback_TexCoord4dv; |
| 1449 | dest->TexCoord4iv = loopback_TexCoord4iv; |
| 1450 | dest->TexCoord4sv = loopback_TexCoord4sv; |
| 1451 | dest->Vertex2d = loopback_Vertex2d; |
| 1452 | dest->Vertex2i = loopback_Vertex2i; |
| 1453 | dest->Vertex2s = loopback_Vertex2s; |
| 1454 | dest->Vertex3d = loopback_Vertex3d; |
| 1455 | dest->Vertex3i = loopback_Vertex3i; |
| 1456 | dest->Vertex3s = loopback_Vertex3s; |
| 1457 | dest->Vertex4d = loopback_Vertex4d; |
| 1458 | dest->Vertex4i = loopback_Vertex4i; |
| 1459 | dest->Vertex4s = loopback_Vertex4s; |
| 1460 | dest->Vertex2dv = loopback_Vertex2dv; |
| 1461 | dest->Vertex2iv = loopback_Vertex2iv; |
| 1462 | dest->Vertex2sv = loopback_Vertex2sv; |
| 1463 | dest->Vertex3dv = loopback_Vertex3dv; |
| 1464 | dest->Vertex3iv = loopback_Vertex3iv; |
| 1465 | dest->Vertex3sv = loopback_Vertex3sv; |
| 1466 | dest->Vertex4dv = loopback_Vertex4dv; |
| 1467 | dest->Vertex4iv = loopback_Vertex4iv; |
| 1468 | dest->Vertex4sv = loopback_Vertex4sv; |
Brian Paul | 471a774 | 2001-12-04 23:43:31 +0000 | [diff] [blame] | 1469 | dest->MultiTexCoord1dARB = loopback_MultiTexCoord1dARB; |
| 1470 | dest->MultiTexCoord1dvARB = loopback_MultiTexCoord1dvARB; |
| 1471 | dest->MultiTexCoord1iARB = loopback_MultiTexCoord1iARB; |
| 1472 | dest->MultiTexCoord1ivARB = loopback_MultiTexCoord1ivARB; |
| 1473 | dest->MultiTexCoord1sARB = loopback_MultiTexCoord1sARB; |
| 1474 | dest->MultiTexCoord1svARB = loopback_MultiTexCoord1svARB; |
| 1475 | dest->MultiTexCoord2dARB = loopback_MultiTexCoord2dARB; |
| 1476 | dest->MultiTexCoord2dvARB = loopback_MultiTexCoord2dvARB; |
| 1477 | dest->MultiTexCoord2iARB = loopback_MultiTexCoord2iARB; |
| 1478 | dest->MultiTexCoord2ivARB = loopback_MultiTexCoord2ivARB; |
| 1479 | dest->MultiTexCoord2sARB = loopback_MultiTexCoord2sARB; |
| 1480 | dest->MultiTexCoord2svARB = loopback_MultiTexCoord2svARB; |
| 1481 | dest->MultiTexCoord3dARB = loopback_MultiTexCoord3dARB; |
| 1482 | dest->MultiTexCoord3dvARB = loopback_MultiTexCoord3dvARB; |
| 1483 | dest->MultiTexCoord3iARB = loopback_MultiTexCoord3iARB; |
| 1484 | dest->MultiTexCoord3ivARB = loopback_MultiTexCoord3ivARB; |
| 1485 | dest->MultiTexCoord3sARB = loopback_MultiTexCoord3sARB; |
| 1486 | dest->MultiTexCoord3svARB = loopback_MultiTexCoord3svARB; |
| 1487 | dest->MultiTexCoord4dARB = loopback_MultiTexCoord4dARB; |
| 1488 | dest->MultiTexCoord4dvARB = loopback_MultiTexCoord4dvARB; |
| 1489 | dest->MultiTexCoord4iARB = loopback_MultiTexCoord4iARB; |
| 1490 | dest->MultiTexCoord4ivARB = loopback_MultiTexCoord4ivARB; |
| 1491 | dest->MultiTexCoord4sARB = loopback_MultiTexCoord4sARB; |
| 1492 | dest->MultiTexCoord4svARB = loopback_MultiTexCoord4svARB; |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1493 | dest->EvalCoord2dv = loopback_EvalCoord2dv; |
| 1494 | dest->EvalCoord2fv = loopback_EvalCoord2fv; |
| 1495 | dest->EvalCoord2d = loopback_EvalCoord2d; |
| 1496 | dest->EvalCoord1dv = loopback_EvalCoord1dv; |
| 1497 | dest->EvalCoord1fv = loopback_EvalCoord1fv; |
| 1498 | dest->EvalCoord1d = loopback_EvalCoord1d; |
| 1499 | dest->Materialf = loopback_Materialf; |
| 1500 | dest->Materiali = loopback_Materiali; |
| 1501 | dest->Materialiv = loopback_Materialiv; |
| 1502 | dest->Rectd = loopback_Rectd; |
| 1503 | dest->Rectdv = loopback_Rectdv; |
| 1504 | dest->Rectfv = loopback_Rectfv; |
| 1505 | dest->Recti = loopback_Recti; |
| 1506 | dest->Rectiv = loopback_Rectiv; |
| 1507 | dest->Rects = loopback_Rects; |
| 1508 | dest->Rectsv = loopback_Rectsv; |
| 1509 | dest->FogCoorddEXT = loopback_FogCoorddEXT; |
| 1510 | dest->FogCoorddvEXT = loopback_FogCoorddvEXT; |
Brian Paul | 86b8427 | 2001-12-14 02:50:01 +0000 | [diff] [blame] | 1511 | |
| 1512 | dest->VertexAttrib1sNV = loopback_VertexAttrib1sNV; |
| 1513 | dest->VertexAttrib1fNV = loopback_VertexAttrib1fNV; |
| 1514 | dest->VertexAttrib1dNV = loopback_VertexAttrib1dNV; |
| 1515 | dest->VertexAttrib2sNV = loopback_VertexAttrib2sNV; |
| 1516 | dest->VertexAttrib2fNV = loopback_VertexAttrib2fNV; |
| 1517 | dest->VertexAttrib2dNV = loopback_VertexAttrib2dNV; |
| 1518 | dest->VertexAttrib3sNV = loopback_VertexAttrib3sNV; |
| 1519 | dest->VertexAttrib3fNV = loopback_VertexAttrib3fNV; |
| 1520 | dest->VertexAttrib3dNV = loopback_VertexAttrib3dNV; |
| 1521 | dest->VertexAttrib4sNV = loopback_VertexAttrib4sNV; |
| 1522 | dest->VertexAttrib4dNV = loopback_VertexAttrib4dNV; |
| 1523 | dest->VertexAttrib4ubNV = loopback_VertexAttrib4ubNV; |
| 1524 | |
| 1525 | dest->VertexAttrib1svNV = loopback_VertexAttrib1svNV; |
| 1526 | dest->VertexAttrib1fvNV = loopback_VertexAttrib1fvNV; |
| 1527 | dest->VertexAttrib1dvNV = loopback_VertexAttrib1dvNV; |
| 1528 | dest->VertexAttrib2svNV = loopback_VertexAttrib2svNV; |
| 1529 | dest->VertexAttrib2fvNV = loopback_VertexAttrib2fvNV; |
| 1530 | dest->VertexAttrib2dvNV = loopback_VertexAttrib2dvNV; |
| 1531 | dest->VertexAttrib3svNV = loopback_VertexAttrib3svNV; |
| 1532 | dest->VertexAttrib3fvNV = loopback_VertexAttrib3fvNV; |
| 1533 | dest->VertexAttrib3dvNV = loopback_VertexAttrib3dvNV; |
| 1534 | dest->VertexAttrib4svNV = loopback_VertexAttrib4svNV; |
| 1535 | dest->VertexAttrib4fvNV = loopback_VertexAttrib4fvNV; |
| 1536 | dest->VertexAttrib4dvNV = loopback_VertexAttrib4dvNV; |
| 1537 | dest->VertexAttrib4ubvNV = loopback_VertexAttrib4ubvNV; |
| 1538 | |
| 1539 | dest->VertexAttribs1svNV = loopback_VertexAttribs1svNV; |
| 1540 | dest->VertexAttribs1fvNV = loopback_VertexAttribs1fvNV; |
| 1541 | dest->VertexAttribs1dvNV = loopback_VertexAttribs1dvNV; |
| 1542 | dest->VertexAttribs2svNV = loopback_VertexAttribs2svNV; |
| 1543 | dest->VertexAttribs2fvNV = loopback_VertexAttribs2fvNV; |
| 1544 | dest->VertexAttribs2dvNV = loopback_VertexAttribs2dvNV; |
| 1545 | dest->VertexAttribs3svNV = loopback_VertexAttribs3svNV; |
| 1546 | dest->VertexAttribs3fvNV = loopback_VertexAttribs3fvNV; |
| 1547 | dest->VertexAttribs3dvNV = loopback_VertexAttribs3dvNV; |
| 1548 | dest->VertexAttribs4svNV = loopback_VertexAttribs4svNV; |
| 1549 | dest->VertexAttribs4fvNV = loopback_VertexAttribs4fvNV; |
| 1550 | dest->VertexAttribs4dvNV = loopback_VertexAttribs4dvNV; |
| 1551 | dest->VertexAttribs4ubvNV = loopback_VertexAttribs4ubvNV; |
Brian Paul | 03c0c2e | 2002-01-14 16:06:35 +0000 | [diff] [blame] | 1552 | |
Brian Paul | e591ad7 | 2003-05-10 04:37:47 +0000 | [diff] [blame] | 1553 | dest->VertexAttrib4bvARB = loopback_VertexAttrib4bvARB; |
| 1554 | dest->VertexAttrib4ivARB = loopback_VertexAttrib4ivARB; |
| 1555 | dest->VertexAttrib4ubvARB = loopback_VertexAttrib4ubvARB; |
| 1556 | dest->VertexAttrib4usvARB = loopback_VertexAttrib4usvARB; |
| 1557 | dest->VertexAttrib4uivARB = loopback_VertexAttrib4uivARB; |
| 1558 | dest->VertexAttrib4NbvARB = loopback_VertexAttrib4NbvARB; |
| 1559 | dest->VertexAttrib4NsvARB = loopback_VertexAttrib4NsvARB; |
| 1560 | dest->VertexAttrib4NivARB = loopback_VertexAttrib4NivARB; |
| 1561 | dest->VertexAttrib4NusvARB = loopback_VertexAttrib4NusvARB; |
| 1562 | dest->VertexAttrib4NuivARB = loopback_VertexAttrib4NuivARB; |
Keith Whitwell | b014986 | 2000-11-24 10:30:04 +0000 | [diff] [blame] | 1563 | } |