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