blob: 3281caf3c991d2b7b656e00878a9e0e7b1233117 [file] [log] [blame]
Keith Whitwell6dc85572003-07-17 13:43:59 +00001/**
2 * \file api_loopback.c
3 *
4 * \author Keith Whitwell <keith@tungstengraphics.com>
5 */
6
Brian Paul50478de2000-11-27 18:17:09 +00007/*
8 * Mesa 3-D graphics library
Brian Paul7faf5192004-10-29 04:00:50 +00009 * Version: 6.3
Gareth Hughes22144ab2001-03-12 00:48:37 +000010 *
Brian Paule98986b2004-01-21 04:13:49 +000011 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
Gareth Hughes22144ab2001-03-12 00:48:37 +000012 *
Brian Paul50478de2000-11-27 18:17:09 +000013 * 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 Hughes22144ab2001-03-12 00:48:37 +000019 *
Brian Paul50478de2000-11-27 18:17:09 +000020 * The above copyright notice and this permission notice shall be included
21 * in all copies or substantial portions of the Software.
Gareth Hughes22144ab2001-03-12 00:48:37 +000022 *
Brian Paul50478de2000-11-27 18:17:09 +000023 * 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 Paul50478de2000-11-27 18:17:09 +000029 */
30
31
Keith Whitwellb0149862000-11-24 10:30:04 +000032#include "glheader.h"
Brian Paul03c0c2e2002-01-14 16:06:35 +000033#include "glapi.h"
Keith Whitwellb0149862000-11-24 10:30:04 +000034#include "glapitable.h"
35#include "macros.h"
36#include "colormac.h"
37#include "api_loopback.h"
Ian Romanickc1d455f2004-05-27 00:03:53 +000038#include "glthread.h"
Keith Whitwellb0149862000-11-24 10:30:04 +000039
40/* KW: A set of functions to convert unusual Color/Normal/Vertex/etc
41 * calls to a smaller set of driver-provided formats. Currently just
42 * go back to dispatch to find these (eg. call glNormal3f directly),
43 * hence 'loopback'.
44 *
45 * The driver must supply all of the remaining entry points, which are
Keith Whitwell9aff6cf2000-11-24 15:21:59 +000046 * listed in dd.h. The easiest way for a driver to do this is to
Keith Whitwellb0149862000-11-24 10:30:04 +000047 * install the supplied software t&l module.
48 */
Ian Romanickc1d455f2004-05-27 00:03:53 +000049#define COLORF(r,g,b,a) GL_CALL(Color4f)(r,g,b,a)
50#define VERTEX2(x,y) GL_CALL(Vertex2f)(x,y)
51#define VERTEX3(x,y,z) GL_CALL(Vertex3f)(x,y,z)
52#define VERTEX4(x,y,z,w) GL_CALL(Vertex4f)(x,y,z,w)
53#define NORMAL(x,y,z) GL_CALL(Normal3f)(x,y,z)
54#define TEXCOORD1(s) GL_CALL(TexCoord1f)(s)
55#define TEXCOORD2(s,t) GL_CALL(TexCoord2f)(s,t)
56#define TEXCOORD3(s,t,u) GL_CALL(TexCoord3f)(s,t,u)
57#define TEXCOORD4(s,t,u,v) GL_CALL(TexCoord4f)(s,t,u,v)
58#define INDEX(c) GL_CALL(Indexf)(c)
59#define MULTI_TEXCOORD1(z,s) GL_CALL(MultiTexCoord1fARB)(z,s)
60#define MULTI_TEXCOORD2(z,s,t) GL_CALL(MultiTexCoord2fARB)(z,s,t)
61#define MULTI_TEXCOORD3(z,s,t,u) GL_CALL(MultiTexCoord3fARB)(z,s,t,u)
62#define MULTI_TEXCOORD4(z,s,t,u,v) GL_CALL(MultiTexCoord4fARB)(z,s,t,u,v)
63#define EVALCOORD1(x) GL_CALL(EvalCoord1f)(x)
64#define EVALCOORD2(x,y) GL_CALL(EvalCoord2f)(x,y)
65#define MATERIALFV(a,b,c) GL_CALL(Materialfv)(a,b,c)
66#define RECTF(a,b,c,d) GL_CALL(Rectf)(a,b,c,d)
Keith Whitwellfc00cbe2001-12-20 15:30:45 +000067
Keith Whitwellae0eaf92003-11-24 15:23:18 +000068/* Extension functions must be dereferenced through _glapi_Dispatch as
69 * not all libGL.so's will have all the uptodate entrypoints.
70 */
Ian Romanickc1d455f2004-05-27 00:03:53 +000071#define ATTRIB1(index,x) GL_CALL(VertexAttrib1fNV)(index,x)
72#define ATTRIB2(index,x,y) GL_CALL(VertexAttrib2fNV)(index,x,y)
73#define ATTRIB3(index,x,y,z) GL_CALL(VertexAttrib3fNV)(index,x,y,z)
74#define ATTRIB4(index,x,y,z,w) GL_CALL(VertexAttrib4fNV)(index,x,y,z,w)
75#define FOGCOORDF(x) GL_CALL(FogCoordfEXT)(x)
76#define SECONDARYCOLORF(a,b,c) GL_CALL(SecondaryColor3fEXT)(a,b,c)
Keith Whitwellb0149862000-11-24 10:30:04 +000077
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000078static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +000079loopback_Color3b_f( GLbyte red, GLbyte green, GLbyte blue )
80{
Gareth Hughes22144ab2001-03-12 00:48:37 +000081 COLORF( BYTE_TO_FLOAT(red),
Keith Whitwellb0149862000-11-24 10:30:04 +000082 BYTE_TO_FLOAT(green),
Gareth Hughes22144ab2001-03-12 00:48:37 +000083 BYTE_TO_FLOAT(blue),
Keith Whitwellb0149862000-11-24 10:30:04 +000084 1.0 );
85}
86
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000087static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +000088loopback_Color3d_f( GLdouble red, GLdouble green, GLdouble blue )
89{
Brian Paul7c276322001-09-14 21:36:43 +000090 COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, 1.0 );
Keith Whitwellb0149862000-11-24 10:30:04 +000091}
92
Kendall Bennettc40d1dd2003-10-21 22:22:17 +000093static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +000094loopback_Color3i_f( GLint red, GLint green, GLint blue )
95{
96 COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green),
97 INT_TO_FLOAT(blue), 1.0);
98}
99
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000100static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000101loopback_Color3s_f( GLshort red, GLshort green, GLshort blue )
102{
103 COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green),
104 SHORT_TO_FLOAT(blue), 1.0);
105}
106
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000107static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000108loopback_Color3ui_f( GLuint red, GLuint green, GLuint blue )
109{
110 COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green),
111 UINT_TO_FLOAT(blue), 1.0 );
112}
113
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000114static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000115loopback_Color3us_f( GLushort red, GLushort green, GLushort blue )
116{
117 COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green),
118 USHORT_TO_FLOAT(blue), 1.0 );
119}
120
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000121static void GLAPIENTRY
122loopback_Color3ub_f( GLubyte red, GLubyte green, GLubyte blue )
123{
124 COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green),
125 UBYTE_TO_FLOAT(blue), 1.0 );
126}
127
Keith Whitwellb0149862000-11-24 10:30:04 +0000128
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000129static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000130loopback_Color3bv_f( const GLbyte *v )
131{
132 COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]),
133 BYTE_TO_FLOAT(v[2]), 1.0 );
134}
135
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000136static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000137loopback_Color3dv_f( const GLdouble *v )
138{
Brian Paul7c276322001-09-14 21:36:43 +0000139 COLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], 1.0 );
Keith Whitwellb0149862000-11-24 10:30:04 +0000140}
141
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000142static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000143loopback_Color3iv_f( const GLint *v )
144{
145 COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]),
146 INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) );
147}
148
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000149static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000150loopback_Color3sv_f( const GLshort *v )
151{
152 COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]),
153 SHORT_TO_FLOAT(v[2]), 1.0 );
154}
155
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000156static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000157loopback_Color3uiv_f( const GLuint *v )
158{
159 COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]),
160 UINT_TO_FLOAT(v[2]), 1.0 );
161}
162
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000163static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000164loopback_Color3usv_f( const GLushort *v )
165{
166 COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]),
167 USHORT_TO_FLOAT(v[2]), 1.0 );
168}
169
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000170static void GLAPIENTRY
171loopback_Color3ubv_f( const GLubyte *v )
172{
173 COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]),
174 UBYTE_TO_FLOAT(v[2]), 1.0 );
175}
176
Keith Whitwellb0149862000-11-24 10:30:04 +0000177
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000178static void GLAPIENTRY
Gareth Hughes22144ab2001-03-12 00:48:37 +0000179loopback_Color4b_f( GLbyte red, GLbyte green, GLbyte blue,
Keith Whitwellb0149862000-11-24 10:30:04 +0000180 GLbyte alpha )
181{
182 COLORF( BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green),
183 BYTE_TO_FLOAT(blue), BYTE_TO_FLOAT(alpha) );
184}
185
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000186static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000187loopback_Color4d_f( GLdouble red, GLdouble green, GLdouble blue,
188 GLdouble alpha )
189{
Brian Paul7c276322001-09-14 21:36:43 +0000190 COLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue, (GLfloat) alpha );
Keith Whitwellb0149862000-11-24 10:30:04 +0000191}
192
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000193static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000194loopback_Color4i_f( GLint red, GLint green, GLint blue, GLint alpha )
195{
196 COLORF( INT_TO_FLOAT(red), INT_TO_FLOAT(green),
197 INT_TO_FLOAT(blue), INT_TO_FLOAT(alpha) );
198}
199
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000200static void GLAPIENTRY
Gareth Hughes22144ab2001-03-12 00:48:37 +0000201loopback_Color4s_f( GLshort red, GLshort green, GLshort blue,
Keith Whitwellb0149862000-11-24 10:30:04 +0000202 GLshort alpha )
203{
204 COLORF( SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green),
205 SHORT_TO_FLOAT(blue), SHORT_TO_FLOAT(alpha) );
206}
207
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000208static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000209loopback_Color4ui_f( GLuint red, GLuint green, GLuint blue, GLuint alpha )
210{
211 COLORF( UINT_TO_FLOAT(red), UINT_TO_FLOAT(green),
212 UINT_TO_FLOAT(blue), UINT_TO_FLOAT(alpha) );
213}
214
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000215static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000216loopback_Color4us_f( GLushort red, GLushort green, GLushort blue, GLushort alpha )
217{
218 COLORF( USHORT_TO_FLOAT(red), USHORT_TO_FLOAT(green),
219 USHORT_TO_FLOAT(blue), USHORT_TO_FLOAT(alpha) );
220}
221
Karl Schultzd6745692003-12-04 20:23:44 +0000222static void GLAPIENTRY
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000223loopback_Color4ub_f( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha )
224{
225 COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green),
226 UBYTE_TO_FLOAT(blue), UBYTE_TO_FLOAT(alpha) );
227}
228
Keith Whitwellb0149862000-11-24 10:30:04 +0000229
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000230static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000231loopback_Color4iv_f( const GLint *v )
232{
233 COLORF( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]),
234 INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) );
235}
236
237
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000238static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000239loopback_Color4bv_f( const GLbyte *v )
240{
241 COLORF( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]),
242 BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]) );
243}
244
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000245static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000246loopback_Color4dv_f( const GLdouble *v )
247{
Brian Paul7c276322001-09-14 21:36:43 +0000248 COLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000249}
250
251
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000252static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000253loopback_Color4sv_f( const GLshort *v)
254{
255 COLORF( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]),
256 SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3]) );
257}
258
259
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000260static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000261loopback_Color4uiv_f( const GLuint *v)
262{
263 COLORF( UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]),
264 UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3]) );
265}
266
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000267static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000268loopback_Color4usv_f( const GLushort *v)
269{
270 COLORF( USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]),
271 USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3]) );
272}
273
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000274static void GLAPIENTRY
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000275loopback_Color4ubv_f( const GLubyte *v)
276{
277 COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]),
278 UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3]) );
279}
280
281static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000282loopback_FogCoorddEXT( GLdouble d )
283{
Brian Paul7c276322001-09-14 21:36:43 +0000284 FOGCOORDF( (GLfloat) d );
Keith Whitwellb0149862000-11-24 10:30:04 +0000285}
286
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000287static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000288loopback_FogCoorddvEXT( const GLdouble *v )
289{
Brian Paul7c276322001-09-14 21:36:43 +0000290 FOGCOORDF( (GLfloat) *v );
Keith Whitwellb0149862000-11-24 10:30:04 +0000291}
292
293
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000294static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000295loopback_Indexd( GLdouble c )
296{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000297 INDEX( (GLfloat) c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000298}
299
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000300static void GLAPIENTRY
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000301loopback_Indexi( GLint c )
Keith Whitwellb0149862000-11-24 10:30:04 +0000302{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000303 INDEX( (GLfloat) c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000304}
305
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000306static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000307loopback_Indexs( GLshort c )
308{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000309 INDEX( (GLfloat) c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000310}
311
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000312static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000313loopback_Indexub( GLubyte c )
314{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000315 INDEX( (GLfloat) c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000316}
317
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000318static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000319loopback_Indexdv( const GLdouble *c )
320{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000321 INDEX( (GLfloat) *c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000322}
323
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000324static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000325loopback_Indexiv( const GLint *c )
326{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000327 INDEX( (GLfloat) *c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000328}
329
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000330static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000331loopback_Indexsv( const GLshort *c )
332{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000333 INDEX( (GLfloat) *c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000334}
335
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000336static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000337loopback_Indexubv( const GLubyte *c )
338{
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000339 INDEX( (GLfloat) *c );
Keith Whitwellb0149862000-11-24 10:30:04 +0000340}
341
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000342static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000343loopback_Normal3b( GLbyte nx, GLbyte ny, GLbyte nz )
344{
345 NORMAL( BYTE_TO_FLOAT(nx), BYTE_TO_FLOAT(ny), BYTE_TO_FLOAT(nz) );
346}
347
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000348static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000349loopback_Normal3d( GLdouble nx, GLdouble ny, GLdouble nz )
350{
Brian Paul7c276322001-09-14 21:36:43 +0000351 NORMAL((GLfloat) nx, (GLfloat) ny, (GLfloat) nz);
Keith Whitwellb0149862000-11-24 10:30:04 +0000352}
353
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000354static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000355loopback_Normal3i( GLint nx, GLint ny, GLint nz )
356{
357 NORMAL( INT_TO_FLOAT(nx), INT_TO_FLOAT(ny), INT_TO_FLOAT(nz) );
358}
359
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000360static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000361loopback_Normal3s( GLshort nx, GLshort ny, GLshort nz )
362{
363 NORMAL( SHORT_TO_FLOAT(nx), SHORT_TO_FLOAT(ny), SHORT_TO_FLOAT(nz) );
364}
365
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000366static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000367loopback_Normal3bv( const GLbyte *v )
368{
369 NORMAL( BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]), BYTE_TO_FLOAT(v[2]) );
370}
371
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000372static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000373loopback_Normal3dv( const GLdouble *v )
374{
Brian Paul7c276322001-09-14 21:36:43 +0000375 NORMAL( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000376}
377
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000378static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000379loopback_Normal3iv( const GLint *v )
380{
381 NORMAL( INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]), INT_TO_FLOAT(v[2]) );
382}
383
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000384static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000385loopback_Normal3sv( const GLshort *v )
386{
387 NORMAL( SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]), SHORT_TO_FLOAT(v[2]) );
388}
389
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000390static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000391loopback_TexCoord1d( GLdouble s )
392{
Brian Paul7c276322001-09-14 21:36:43 +0000393 TEXCOORD1((GLfloat) s);
Keith Whitwellb0149862000-11-24 10:30:04 +0000394}
395
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000396static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000397loopback_TexCoord1i( GLint s )
398{
Brian Paul7c276322001-09-14 21:36:43 +0000399 TEXCOORD1((GLfloat) s);
Keith Whitwellb0149862000-11-24 10:30:04 +0000400}
401
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000402static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000403loopback_TexCoord1s( GLshort s )
404{
Brian Paul7c276322001-09-14 21:36:43 +0000405 TEXCOORD1((GLfloat) s);
Keith Whitwellb0149862000-11-24 10:30:04 +0000406}
407
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000408static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000409loopback_TexCoord2d( GLdouble s, GLdouble t )
410{
Brian Paul7c276322001-09-14 21:36:43 +0000411 TEXCOORD2((GLfloat) s,(GLfloat) t);
Keith Whitwellb0149862000-11-24 10:30:04 +0000412}
413
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000414static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000415loopback_TexCoord2s( GLshort s, GLshort t )
416{
Brian Paul7c276322001-09-14 21:36:43 +0000417 TEXCOORD2((GLfloat) s,(GLfloat) t);
Keith Whitwellb0149862000-11-24 10:30:04 +0000418}
419
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000420static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000421loopback_TexCoord2i( GLint s, GLint t )
422{
Brian Paul7c276322001-09-14 21:36:43 +0000423 TEXCOORD2((GLfloat) s,(GLfloat) t);
Keith Whitwellb0149862000-11-24 10:30:04 +0000424}
425
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000426static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000427loopback_TexCoord3d( GLdouble s, GLdouble t, GLdouble r )
428{
Brian Paul7c276322001-09-14 21:36:43 +0000429 TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r);
Keith Whitwellb0149862000-11-24 10:30:04 +0000430}
431
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000432static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000433loopback_TexCoord3i( GLint s, GLint t, GLint r )
434{
Brian Paul7c276322001-09-14 21:36:43 +0000435 TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r);
Keith Whitwellb0149862000-11-24 10:30:04 +0000436}
437
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000438static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000439loopback_TexCoord3s( GLshort s, GLshort t, GLshort r )
440{
Brian Paul7c276322001-09-14 21:36:43 +0000441 TEXCOORD3((GLfloat) s,(GLfloat) t,(GLfloat) r);
Keith Whitwellb0149862000-11-24 10:30:04 +0000442}
443
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000444static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000445loopback_TexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q )
446{
Brian Paul7c276322001-09-14 21:36:43 +0000447 TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q);
Keith Whitwellb0149862000-11-24 10:30:04 +0000448}
449
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000450static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000451loopback_TexCoord4i( GLint s, GLint t, GLint r, GLint q )
452{
Brian Paul7c276322001-09-14 21:36:43 +0000453 TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q);
Keith Whitwellb0149862000-11-24 10:30:04 +0000454}
455
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000456static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000457loopback_TexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q )
458{
Brian Paul7c276322001-09-14 21:36:43 +0000459 TEXCOORD4((GLfloat) s,(GLfloat) t,(GLfloat) r,(GLfloat) q);
Keith Whitwellb0149862000-11-24 10:30:04 +0000460}
461
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000462static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000463loopback_TexCoord1dv( const GLdouble *v )
464{
Brian Paul7c276322001-09-14 21:36:43 +0000465 TEXCOORD1((GLfloat) v[0]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000466}
467
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000468static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000469loopback_TexCoord1iv( const GLint *v )
470{
Brian Paul7c276322001-09-14 21:36:43 +0000471 TEXCOORD1((GLfloat) v[0]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000472}
473
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000474static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000475loopback_TexCoord1sv( const GLshort *v )
476{
Brian Paul7c276322001-09-14 21:36:43 +0000477 TEXCOORD1((GLfloat) v[0]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000478}
479
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000480static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000481loopback_TexCoord2dv( const GLdouble *v )
482{
Brian Paul7c276322001-09-14 21:36:43 +0000483 TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000484}
485
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000486static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000487loopback_TexCoord2iv( const GLint *v )
488{
Brian Paul7c276322001-09-14 21:36:43 +0000489 TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000490}
491
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000492static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000493loopback_TexCoord2sv( const GLshort *v )
494{
Brian Paul7c276322001-09-14 21:36:43 +0000495 TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000496}
497
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000498static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000499loopback_TexCoord3dv( const GLdouble *v )
500{
Brian Paul7c276322001-09-14 21:36:43 +0000501 TEXCOORD2((GLfloat) v[0],(GLfloat) v[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000502}
503
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000504static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000505loopback_TexCoord3iv( const GLint *v )
506{
Brian Paul7c276322001-09-14 21:36:43 +0000507 TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000508}
509
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000510static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000511loopback_TexCoord3sv( const GLshort *v )
512{
Brian Paul7c276322001-09-14 21:36:43 +0000513 TEXCOORD3((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000514}
515
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000516static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000517loopback_TexCoord4dv( const GLdouble *v )
518{
Brian Paul7c276322001-09-14 21:36:43 +0000519 TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000520}
521
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000522static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000523loopback_TexCoord4iv( const GLint *v )
524{
Brian Paul7c276322001-09-14 21:36:43 +0000525 TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000526}
527
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000528static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000529loopback_TexCoord4sv( const GLshort *v )
530{
Brian Paul7c276322001-09-14 21:36:43 +0000531 TEXCOORD4((GLfloat) v[0],(GLfloat) v[1],(GLfloat) v[2],(GLfloat) v[3]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000532}
533
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000534static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000535loopback_Vertex2d( GLdouble x, GLdouble y )
536{
537 VERTEX2( (GLfloat) x, (GLfloat) y );
538}
539
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000540static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000541loopback_Vertex2i( GLint x, GLint y )
542{
543 VERTEX2( (GLfloat) x, (GLfloat) y );
544}
545
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000546static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000547loopback_Vertex2s( GLshort x, GLshort y )
548{
549 VERTEX2( (GLfloat) x, (GLfloat) y );
550}
551
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000552static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000553loopback_Vertex3d( GLdouble x, GLdouble y, GLdouble z )
554{
555 VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z );
556}
557
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000558static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000559loopback_Vertex3i( GLint x, GLint y, GLint z )
560{
561 VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z );
562}
563
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000564static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000565loopback_Vertex3s( GLshort x, GLshort y, GLshort z )
566{
567 VERTEX3( (GLfloat) x, (GLfloat) y, (GLfloat) z );
568}
569
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000570static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000571loopback_Vertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w )
572{
573 VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w );
574}
575
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000576static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000577loopback_Vertex4i( GLint x, GLint y, GLint z, GLint w )
578{
579 VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w );
580}
581
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000582static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000583loopback_Vertex4s( GLshort x, GLshort y, GLshort z, GLshort w )
584{
585 VERTEX4( (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w );
586}
587
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000588static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000589loopback_Vertex2dv( const GLdouble *v )
590{
591 VERTEX2( (GLfloat) v[0], (GLfloat) v[1] );
592}
593
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000594static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000595loopback_Vertex2iv( const GLint *v )
596{
597 VERTEX2( (GLfloat) v[0], (GLfloat) v[1] );
598}
599
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000600static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000601loopback_Vertex2sv( const GLshort *v )
602{
603 VERTEX2( (GLfloat) v[0], (GLfloat) v[1] );
604}
605
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000606static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000607loopback_Vertex3dv( const GLdouble *v )
608{
609 VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
610}
611
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000612static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000613loopback_Vertex3iv( const GLint *v )
614{
615 VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
616}
617
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000618static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000619loopback_Vertex3sv( const GLshort *v )
620{
621 VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
622}
623
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000624static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000625loopback_Vertex4dv( const GLdouble *v )
626{
Gareth Hughes22144ab2001-03-12 00:48:37 +0000627 VERTEX4( (GLfloat) v[0], (GLfloat) v[1],
Keith Whitwellb0149862000-11-24 10:30:04 +0000628 (GLfloat) v[2], (GLfloat) v[3] );
629}
630
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000631static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000632loopback_Vertex4iv( const GLint *v )
633{
Gareth Hughes22144ab2001-03-12 00:48:37 +0000634 VERTEX4( (GLfloat) v[0], (GLfloat) v[1],
Keith Whitwellb0149862000-11-24 10:30:04 +0000635 (GLfloat) v[2], (GLfloat) v[3] );
636}
637
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000638static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000639loopback_Vertex4sv( const GLshort *v )
640{
Gareth Hughes22144ab2001-03-12 00:48:37 +0000641 VERTEX4( (GLfloat) v[0], (GLfloat) v[1],
Keith Whitwellb0149862000-11-24 10:30:04 +0000642 (GLfloat) v[2], (GLfloat) v[3] );
643}
644
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000645static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000646loopback_MultiTexCoord1dARB(GLenum target, GLdouble s)
647{
Brian Paul7c276322001-09-14 21:36:43 +0000648 MULTI_TEXCOORD1( target, (GLfloat) s );
Keith Whitwellb0149862000-11-24 10:30:04 +0000649}
650
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000651static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000652loopback_MultiTexCoord1dvARB(GLenum target, const GLdouble *v)
653{
Brian Paul7c276322001-09-14 21:36:43 +0000654 MULTI_TEXCOORD1( target, (GLfloat) v[0] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000655}
656
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000657static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000658loopback_MultiTexCoord1iARB(GLenum target, GLint s)
659{
Brian Paul7c276322001-09-14 21:36:43 +0000660 MULTI_TEXCOORD1( target, (GLfloat) s );
Keith Whitwellb0149862000-11-24 10:30:04 +0000661}
662
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000663static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000664loopback_MultiTexCoord1ivARB(GLenum target, const GLint *v)
665{
Brian Paul7c276322001-09-14 21:36:43 +0000666 MULTI_TEXCOORD1( target, (GLfloat) v[0] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000667}
668
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000669static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000670loopback_MultiTexCoord1sARB(GLenum target, GLshort s)
671{
Brian Paul7c276322001-09-14 21:36:43 +0000672 MULTI_TEXCOORD1( target, (GLfloat) s );
Keith Whitwellb0149862000-11-24 10:30:04 +0000673}
674
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000675static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000676loopback_MultiTexCoord1svARB(GLenum target, const GLshort *v)
677{
Brian Paul7c276322001-09-14 21:36:43 +0000678 MULTI_TEXCOORD1( target, (GLfloat) v[0] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000679}
680
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000681static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000682loopback_MultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t)
683{
Brian Paul7c276322001-09-14 21:36:43 +0000684 MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t );
Keith Whitwellb0149862000-11-24 10:30:04 +0000685}
686
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000687static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000688loopback_MultiTexCoord2dvARB(GLenum target, const GLdouble *v)
689{
Brian Paul7c276322001-09-14 21:36:43 +0000690 MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000691}
692
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000693static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000694loopback_MultiTexCoord2iARB(GLenum target, GLint s, GLint t)
695{
Brian Paul7c276322001-09-14 21:36:43 +0000696 MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t );
Keith Whitwellb0149862000-11-24 10:30:04 +0000697}
698
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000699static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000700loopback_MultiTexCoord2ivARB(GLenum target, const GLint *v)
701{
Brian Paul7c276322001-09-14 21:36:43 +0000702 MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000703}
704
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000705static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000706loopback_MultiTexCoord2sARB(GLenum target, GLshort s, GLshort t)
707{
Brian Paul7c276322001-09-14 21:36:43 +0000708 MULTI_TEXCOORD2( target, (GLfloat) s, (GLfloat) t );
Keith Whitwellb0149862000-11-24 10:30:04 +0000709}
710
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000711static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000712loopback_MultiTexCoord2svARB(GLenum target, const GLshort *v)
713{
Brian Paul7c276322001-09-14 21:36:43 +0000714 MULTI_TEXCOORD2( target, (GLfloat) v[0], (GLfloat) v[1] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000715}
716
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000717static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000718loopback_MultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r)
719{
Brian Paul7c276322001-09-14 21:36:43 +0000720 MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r );
Keith Whitwellb0149862000-11-24 10:30:04 +0000721}
722
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000723static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000724loopback_MultiTexCoord3dvARB(GLenum target, const GLdouble *v)
725{
Brian Paul7c276322001-09-14 21:36:43 +0000726 MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000727}
728
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000729static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000730loopback_MultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r)
731{
Brian Paul7c276322001-09-14 21:36:43 +0000732 MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r );
Keith Whitwellb0149862000-11-24 10:30:04 +0000733}
734
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000735static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000736loopback_MultiTexCoord3ivARB(GLenum target, const GLint *v)
737{
Brian Paul7c276322001-09-14 21:36:43 +0000738 MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000739}
740
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000741static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000742loopback_MultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r)
743{
Brian Paul7c276322001-09-14 21:36:43 +0000744 MULTI_TEXCOORD3( target, (GLfloat) s, (GLfloat) t, (GLfloat) r );
Keith Whitwellb0149862000-11-24 10:30:04 +0000745}
746
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000747static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000748loopback_MultiTexCoord3svARB(GLenum target, const GLshort *v)
749{
Brian Paul7c276322001-09-14 21:36:43 +0000750 MULTI_TEXCOORD3( target, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000751}
752
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000753static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000754loopback_MultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
755{
Brian Paul7c276322001-09-14 21:36:43 +0000756 MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t,
757 (GLfloat) r, (GLfloat) q );
Keith Whitwellb0149862000-11-24 10:30:04 +0000758}
759
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000760static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000761loopback_MultiTexCoord4dvARB(GLenum target, const GLdouble *v)
762{
Brian Paul7c276322001-09-14 21:36:43 +0000763 MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1],
764 (GLfloat) v[2], (GLfloat) v[3] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000765}
766
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000767static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000768loopback_MultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q)
769{
Brian Paul7c276322001-09-14 21:36:43 +0000770 MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t,
771 (GLfloat) r, (GLfloat) q );
Keith Whitwellb0149862000-11-24 10:30:04 +0000772}
773
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000774static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000775loopback_MultiTexCoord4ivARB(GLenum target, const GLint *v)
776{
Brian Paul7c276322001-09-14 21:36:43 +0000777 MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1],
778 (GLfloat) v[2], (GLfloat) v[3] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000779}
780
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000781static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000782loopback_MultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
783{
Brian Paul7c276322001-09-14 21:36:43 +0000784 MULTI_TEXCOORD4( target, (GLfloat) s, (GLfloat) t,
785 (GLfloat) r, (GLfloat) q );
Keith Whitwellb0149862000-11-24 10:30:04 +0000786}
787
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000788static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000789loopback_MultiTexCoord4svARB(GLenum target, const GLshort *v)
790{
Brian Paul7c276322001-09-14 21:36:43 +0000791 MULTI_TEXCOORD4( target, (GLfloat) v[0], (GLfloat) v[1],
792 (GLfloat) v[2], (GLfloat) v[3] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000793}
794
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000795static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000796loopback_EvalCoord2dv( const GLdouble *u )
797{
798 EVALCOORD2( (GLfloat) u[0], (GLfloat) u[1] );
799}
800
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000801static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000802loopback_EvalCoord2fv( const GLfloat *u )
803{
804 EVALCOORD2( u[0], u[1] );
805}
806
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000807static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000808loopback_EvalCoord2d( GLdouble u, GLdouble v )
809{
810 EVALCOORD2( (GLfloat) u, (GLfloat) v );
811}
812
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000813static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000814loopback_EvalCoord1dv( const GLdouble *u )
815{
816 EVALCOORD1( (GLfloat) *u );
817}
818
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000819static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000820loopback_EvalCoord1fv( const GLfloat *u )
821{
822 EVALCOORD1( (GLfloat) *u );
823}
824
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000825static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000826loopback_EvalCoord1d( GLdouble u )
827{
828 EVALCOORD1( (GLfloat) u );
829}
830
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000831static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000832loopback_Materialf( GLenum face, GLenum pname, GLfloat param )
833{
834 GLfloat fparam[4];
835 fparam[0] = param;
836 MATERIALFV( face, pname, fparam );
837}
838
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000839static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000840loopback_Materiali(GLenum face, GLenum pname, GLint param )
841{
842 GLfloat p = (GLfloat) param;
843 MATERIALFV(face, pname, &p);
844}
845
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000846static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000847loopback_Materialiv(GLenum face, GLenum pname, const GLint *params )
848{
849 GLfloat fparam[4];
850 switch (pname) {
851 case GL_AMBIENT:
852 case GL_DIFFUSE:
853 case GL_SPECULAR:
854 case GL_EMISSION:
855 case GL_AMBIENT_AND_DIFFUSE:
856 fparam[0] = INT_TO_FLOAT( params[0] );
857 fparam[1] = INT_TO_FLOAT( params[1] );
858 fparam[2] = INT_TO_FLOAT( params[2] );
859 fparam[3] = INT_TO_FLOAT( params[3] );
860 break;
861 case GL_SHININESS:
862 fparam[0] = (GLfloat) params[0];
863 break;
864 case GL_COLOR_INDEXES:
865 fparam[0] = (GLfloat) params[0];
866 fparam[1] = (GLfloat) params[1];
867 fparam[2] = (GLfloat) params[2];
868 break;
869 default:
870 ;
871 }
872 MATERIALFV(face, pname, fparam);
873}
874
875
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000876static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000877loopback_Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
878{
Brian Paul7c276322001-09-14 21:36:43 +0000879 RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2);
Keith Whitwellb0149862000-11-24 10:30:04 +0000880}
881
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000882static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000883loopback_Rectdv(const GLdouble *v1, const GLdouble *v2)
884{
Brian Paul7c276322001-09-14 21:36:43 +0000885 RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000886}
887
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000888static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000889loopback_Rectfv(const GLfloat *v1, const GLfloat *v2)
890{
891 RECTF(v1[0], v1[1], v2[0], v2[1]);
892}
893
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000894static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000895loopback_Recti(GLint x1, GLint y1, GLint x2, GLint y2)
896{
Brian Paul7c276322001-09-14 21:36:43 +0000897 RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2);
Keith Whitwellb0149862000-11-24 10:30:04 +0000898}
899
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000900static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000901loopback_Rectiv(const GLint *v1, const GLint *v2)
902{
Brian Paul7c276322001-09-14 21:36:43 +0000903 RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000904}
905
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000906static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000907loopback_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
908{
Brian Paul7c276322001-09-14 21:36:43 +0000909 RECTF((GLfloat) x1, (GLfloat) y1, (GLfloat) x2, (GLfloat) y2);
Keith Whitwellb0149862000-11-24 10:30:04 +0000910}
911
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000912static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000913loopback_Rectsv(const GLshort *v1, const GLshort *v2)
914{
Brian Paul7c276322001-09-14 21:36:43 +0000915 RECTF((GLfloat) v1[0], (GLfloat) v1[1], (GLfloat) v2[0], (GLfloat) v2[1]);
Keith Whitwellb0149862000-11-24 10:30:04 +0000916}
917
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000918static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000919loopback_SecondaryColor3bEXT_f( GLbyte red, GLbyte green, GLbyte blue )
920{
921 SECONDARYCOLORF( BYTE_TO_FLOAT(red),
922 BYTE_TO_FLOAT(green),
923 BYTE_TO_FLOAT(blue) );
924}
925
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000926static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000927loopback_SecondaryColor3dEXT_f( GLdouble red, GLdouble green, GLdouble blue )
928{
Brian Paul7c276322001-09-14 21:36:43 +0000929 SECONDARYCOLORF( (GLfloat) red, (GLfloat) green, (GLfloat) blue );
Keith Whitwellb0149862000-11-24 10:30:04 +0000930}
931
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000932static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000933loopback_SecondaryColor3iEXT_f( GLint red, GLint green, GLint blue )
934{
935 SECONDARYCOLORF( INT_TO_FLOAT(red),
936 INT_TO_FLOAT(green),
937 INT_TO_FLOAT(blue));
938}
939
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000940static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000941loopback_SecondaryColor3sEXT_f( GLshort red, GLshort green, GLshort blue )
942{
943 SECONDARYCOLORF(SHORT_TO_FLOAT(red),
944 SHORT_TO_FLOAT(green),
945 SHORT_TO_FLOAT(blue));
946}
947
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000948static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000949loopback_SecondaryColor3uiEXT_f( GLuint red, GLuint green, GLuint blue )
950{
951 SECONDARYCOLORF(UINT_TO_FLOAT(red),
952 UINT_TO_FLOAT(green),
953 UINT_TO_FLOAT(blue));
954}
955
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000956static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000957loopback_SecondaryColor3usEXT_f( GLushort red, GLushort green, GLushort blue )
958{
959 SECONDARYCOLORF(USHORT_TO_FLOAT(red),
960 USHORT_TO_FLOAT(green),
961 USHORT_TO_FLOAT(blue));
962}
963
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000964static void GLAPIENTRY
Keith Whitwellae0eaf92003-11-24 15:23:18 +0000965loopback_SecondaryColor3ubEXT_f( GLubyte red, GLubyte green, GLubyte blue )
966{
967 SECONDARYCOLORF(UBYTE_TO_FLOAT(red),
968 UBYTE_TO_FLOAT(green),
969 UBYTE_TO_FLOAT(blue));
970}
971
972static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000973loopback_SecondaryColor3bvEXT_f( const GLbyte *v )
974{
975 SECONDARYCOLORF(BYTE_TO_FLOAT(v[0]),
976 BYTE_TO_FLOAT(v[1]),
977 BYTE_TO_FLOAT(v[2]));
978}
979
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000980static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000981loopback_SecondaryColor3dvEXT_f( const GLdouble *v )
982{
Brian Paul7c276322001-09-14 21:36:43 +0000983 SECONDARYCOLORF( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
Keith Whitwellb0149862000-11-24 10:30:04 +0000984}
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000985static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000986loopback_SecondaryColor3ivEXT_f( const GLint *v )
987{
988 SECONDARYCOLORF(INT_TO_FLOAT(v[0]),
989 INT_TO_FLOAT(v[1]),
990 INT_TO_FLOAT(v[2]));
991}
992
Kendall Bennettc40d1dd2003-10-21 22:22:17 +0000993static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +0000994loopback_SecondaryColor3svEXT_f( const GLshort *v )
995{
996 SECONDARYCOLORF(SHORT_TO_FLOAT(v[0]),
997 SHORT_TO_FLOAT(v[1]),
998 SHORT_TO_FLOAT(v[2]));
999}
1000
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001001static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +00001002loopback_SecondaryColor3uivEXT_f( const GLuint *v )
1003{
1004 SECONDARYCOLORF(UINT_TO_FLOAT(v[0]),
1005 UINT_TO_FLOAT(v[1]),
1006 UINT_TO_FLOAT(v[2]));
1007}
1008
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001009static void GLAPIENTRY
Keith Whitwellb0149862000-11-24 10:30:04 +00001010loopback_SecondaryColor3usvEXT_f( const GLushort *v )
1011{
1012 SECONDARYCOLORF(USHORT_TO_FLOAT(v[0]),
1013 USHORT_TO_FLOAT(v[1]),
1014 USHORT_TO_FLOAT(v[2]));
1015}
1016
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001017static void GLAPIENTRY
1018loopback_SecondaryColor3ubvEXT_f( const GLubyte *v )
1019{
1020 SECONDARYCOLORF(UBYTE_TO_FLOAT(v[0]),
1021 UBYTE_TO_FLOAT(v[1]),
1022 UBYTE_TO_FLOAT(v[2]));
1023}
1024
Keith Whitwellb0149862000-11-24 10:30:04 +00001025
Brian Paul86b84272001-12-14 02:50:01 +00001026/*
1027 * GL_NV_vertex_program
1028 */
1029
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001030static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001031loopback_VertexAttrib1sNV(GLuint index, GLshort x)
1032{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001033 ATTRIB1(index, (GLfloat) x);
Brian Paul86b84272001-12-14 02:50:01 +00001034}
1035
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001036static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001037loopback_VertexAttrib1fNV(GLuint index, GLfloat x)
1038{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001039 ATTRIB1(index, x);
Brian Paul86b84272001-12-14 02:50:01 +00001040}
1041
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001042static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001043loopback_VertexAttrib1dNV(GLuint index, GLdouble x)
1044{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001045 ATTRIB1(index, (GLfloat) x);
Brian Paul86b84272001-12-14 02:50:01 +00001046}
1047
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001048static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001049loopback_VertexAttrib2sNV(GLuint index, GLshort x, GLshort y)
1050{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001051 ATTRIB2(index, (GLfloat) x, y);
Brian Paul86b84272001-12-14 02:50:01 +00001052}
1053
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001054static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001055loopback_VertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y)
1056{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001057 ATTRIB2(index, (GLfloat) x, y);
Brian Paul86b84272001-12-14 02:50:01 +00001058}
1059
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001060static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001061loopback_VertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y)
1062{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001063 ATTRIB2(index, (GLfloat) x, (GLfloat) y);
Brian Paul86b84272001-12-14 02:50:01 +00001064}
1065
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001066static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001067loopback_VertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z)
1068{
Brian Paul7faf5192004-10-29 04:00:50 +00001069 ATTRIB3(index, (GLfloat) x, (GLfloat) y, (GLfloat) z);
Brian Paul86b84272001-12-14 02:50:01 +00001070}
1071
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001072static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001073loopback_VertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z)
1074{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001075 ATTRIB3(index, x, y, z);
Brian Paul86b84272001-12-14 02:50:01 +00001076}
1077
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001078static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001079loopback_VertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z)
1080{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001081 ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F);
Brian Paul86b84272001-12-14 02:50:01 +00001082}
1083
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001084static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001085loopback_VertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
1086{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001087 ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w);
Brian Paul86b84272001-12-14 02:50:01 +00001088}
1089
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001090static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001091loopback_VertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
1092{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001093 ATTRIB4(index, (GLfloat) x, (GLfloat) y, (GLfloat) z, (GLfloat) w);
Brian Paul86b84272001-12-14 02:50:01 +00001094}
1095
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001096static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001097loopback_VertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
1098{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001099 ATTRIB4(index, UBYTE_TO_FLOAT(x), UBYTE_TO_FLOAT(y),
Brian Paul86b84272001-12-14 02:50:01 +00001100 UBYTE_TO_FLOAT(z), UBYTE_TO_FLOAT(w));
1101}
1102
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001103static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001104loopback_VertexAttrib1svNV(GLuint index, const GLshort *v)
1105{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001106 ATTRIB1(index, (GLfloat) v[0]);
Brian Paul86b84272001-12-14 02:50:01 +00001107}
1108
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001109static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001110loopback_VertexAttrib1fvNV(GLuint index, const GLfloat *v)
1111{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001112 ATTRIB1(index, v[0]);
Brian Paul86b84272001-12-14 02:50:01 +00001113}
1114
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001115static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001116loopback_VertexAttrib1dvNV(GLuint index, const GLdouble *v)
1117{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001118 ATTRIB1(index, (GLfloat) v[0]);
Brian Paul86b84272001-12-14 02:50:01 +00001119}
1120
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001121static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001122loopback_VertexAttrib2svNV(GLuint index, const GLshort *v)
1123{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001124 ATTRIB2(index, (GLfloat) v[0], (GLfloat) v[1]);
Brian Paul86b84272001-12-14 02:50:01 +00001125}
1126
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001127static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001128loopback_VertexAttrib2fvNV(GLuint index, const GLfloat *v)
1129{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001130 ATTRIB2(index, v[0], v[1]);
Brian Paul86b84272001-12-14 02:50:01 +00001131}
1132
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001133static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001134loopback_VertexAttrib2dvNV(GLuint index, const GLdouble *v)
1135{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001136 ATTRIB2(index, (GLfloat) v[0], (GLfloat) v[1]);
Brian Paul86b84272001-12-14 02:50:01 +00001137}
1138
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001139static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001140loopback_VertexAttrib3svNV(GLuint index, const GLshort *v)
1141{
Brian Paul7faf5192004-10-29 04:00:50 +00001142 ATTRIB3(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]);
Brian Paul86b84272001-12-14 02:50:01 +00001143}
1144
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001145static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001146loopback_VertexAttrib3fvNV(GLuint index, const GLfloat *v)
1147{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001148 ATTRIB3(index, v[0], v[1], v[2]);
Brian Paul86b84272001-12-14 02:50:01 +00001149}
1150
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001151static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001152loopback_VertexAttrib3dvNV(GLuint index, const GLdouble *v)
1153{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001154 ATTRIB3(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]);
Brian Paul86b84272001-12-14 02:50:01 +00001155}
1156
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001157static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001158loopback_VertexAttrib4svNV(GLuint index, const GLshort *v)
1159{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001160 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2],
Keith Whitwell33ce4052003-04-05 07:29:23 +00001161 (GLfloat)v[3]);
Brian Paul86b84272001-12-14 02:50:01 +00001162}
1163
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001164static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001165loopback_VertexAttrib4fvNV(GLuint index, const GLfloat *v)
1166{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001167 ATTRIB4(index, v[0], v[1], v[2], v[3]);
Brian Paul86b84272001-12-14 02:50:01 +00001168}
1169
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001170static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001171loopback_VertexAttrib4dvNV(GLuint index, const GLdouble *v)
1172{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001173 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paul86b84272001-12-14 02:50:01 +00001174}
1175
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001176static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001177loopback_VertexAttrib4ubvNV(GLuint index, const GLubyte *v)
1178{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001179 ATTRIB4(index, UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]),
Brian Paul86b84272001-12-14 02:50:01 +00001180 UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3]));
1181}
1182
1183
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001184static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001185loopback_VertexAttribs1svNV(GLuint index, GLsizei n, const GLshort *v)
1186{
1187 GLint i;
1188 for (i = n - 1; i >= 0; i--)
1189 loopback_VertexAttrib1svNV(index + i, v + i);
1190}
1191
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001192static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001193loopback_VertexAttribs1fvNV(GLuint index, GLsizei n, const GLfloat *v)
1194{
1195 GLint i;
1196 for (i = n - 1; i >= 0; i--)
1197 loopback_VertexAttrib1fvNV(index + i, v + i);
1198}
1199
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001200static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001201loopback_VertexAttribs1dvNV(GLuint index, GLsizei n, const GLdouble *v)
1202{
1203 GLint i;
1204 for (i = n - 1; i >= 0; i--)
1205 loopback_VertexAttrib1dvNV(index + i, v + i);
1206}
1207
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001208static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001209loopback_VertexAttribs2svNV(GLuint index, GLsizei n, const GLshort *v)
1210{
1211 GLint i;
1212 for (i = n - 1; i >= 0; i--)
1213 loopback_VertexAttrib2svNV(index + i, v + 2 * i);
1214}
1215
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001216static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001217loopback_VertexAttribs2fvNV(GLuint index, GLsizei n, const GLfloat *v)
1218{
1219 GLint i;
1220 for (i = n - 1; i >= 0; i--)
1221 loopback_VertexAttrib2fvNV(index + i, v + 2 * i);
1222}
1223
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001224static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001225loopback_VertexAttribs2dvNV(GLuint index, GLsizei n, const GLdouble *v)
1226{
1227 GLint i;
1228 for (i = n - 1; i >= 0; i--)
1229 loopback_VertexAttrib2dvNV(index + i, v + 2 * i);
1230}
1231
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001232static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001233loopback_VertexAttribs3svNV(GLuint index, GLsizei n, const GLshort *v)
1234{
1235 GLint i;
1236 for (i = n - 1; i >= 0; i--)
1237 loopback_VertexAttrib3svNV(index + i, v + 3 * i);
1238}
1239
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001240static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001241loopback_VertexAttribs3fvNV(GLuint index, GLsizei n, const GLfloat *v)
1242{
1243 GLint i;
1244 for (i = n - 1; i >= 0; i--)
1245 loopback_VertexAttrib3fvNV(index + i, v + 3 * i);
1246}
1247
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001248static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001249loopback_VertexAttribs3dvNV(GLuint index, GLsizei n, const GLdouble *v)
1250{
1251 GLint i;
1252 for (i = n - 1; i >= 0; i--)
1253 loopback_VertexAttrib3dvNV(index + i, v + 3 * i);
1254}
1255
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001256static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001257loopback_VertexAttribs4svNV(GLuint index, GLsizei n, const GLshort *v)
1258{
1259 GLint i;
1260 for (i = n - 1; i >= 0; i--)
1261 loopback_VertexAttrib4svNV(index + i, v + 4 * i);
1262}
1263
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001264static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001265loopback_VertexAttribs4fvNV(GLuint index, GLsizei n, const GLfloat *v)
1266{
1267 GLint i;
1268 for (i = n - 1; i >= 0; i--)
1269 loopback_VertexAttrib4fvNV(index + i, v + 4 * i);
1270}
1271
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001272static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001273loopback_VertexAttribs4dvNV(GLuint index, GLsizei n, const GLdouble *v)
1274{
1275 GLint i;
1276 for (i = n - 1; i >= 0; i--)
1277 loopback_VertexAttrib4dvNV(index + i, v + 4 * i);
1278}
1279
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001280static void GLAPIENTRY
Brian Paul86b84272001-12-14 02:50:01 +00001281loopback_VertexAttribs4ubvNV(GLuint index, GLsizei n, const GLubyte *v)
1282{
1283 GLint i;
1284 for (i = n - 1; i >= 0; i--)
1285 loopback_VertexAttrib4ubvNV(index + i, v + 4 * i);
1286}
1287
Keith Whitwellcab974c2000-12-26 05:09:27 +00001288
Brian Paule591ad72003-05-10 04:37:47 +00001289/*
1290 * GL_ARB_vertex_program
1291 */
1292
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001293static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001294loopback_VertexAttrib4bvARB(GLuint index, const GLbyte * v)
1295{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001296 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paule591ad72003-05-10 04:37:47 +00001297}
1298
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001299static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001300loopback_VertexAttrib4ivARB(GLuint index, const GLint * v)
1301{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001302 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paule591ad72003-05-10 04:37:47 +00001303}
1304
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001305static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001306loopback_VertexAttrib4ubvARB(GLuint index, const GLubyte * v)
1307{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001308 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paule591ad72003-05-10 04:37:47 +00001309}
1310
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001311static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001312loopback_VertexAttrib4usvARB(GLuint index, const GLushort * v)
1313{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001314 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paule591ad72003-05-10 04:37:47 +00001315}
1316
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001317static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001318loopback_VertexAttrib4uivARB(GLuint index, const GLuint * v)
1319{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001320 ATTRIB4(index, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2], (GLfloat) v[3]);
Brian Paule591ad72003-05-10 04:37:47 +00001321}
1322
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001323static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001324loopback_VertexAttrib4NbvARB(GLuint index, const GLbyte * v)
1325{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001326 ATTRIB4(index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]),
Brian Paule591ad72003-05-10 04:37:47 +00001327 BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]));
1328}
1329
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001330static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001331loopback_VertexAttrib4NsvARB(GLuint index, const GLshort * v)
1332{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001333 ATTRIB4(index, SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]),
Brian Paule591ad72003-05-10 04:37:47 +00001334 SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3]));
1335}
1336
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001337static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001338loopback_VertexAttrib4NivARB(GLuint index, const GLint * v)
1339{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001340 ATTRIB4(index, INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]),
Brian Paule591ad72003-05-10 04:37:47 +00001341 INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]));
1342}
1343
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001344static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001345loopback_VertexAttrib4NusvARB(GLuint index, const GLushort * v)
1346{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001347 ATTRIB4(index, USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]),
Brian Paule591ad72003-05-10 04:37:47 +00001348 USHORT_TO_FLOAT(v[2]), USHORT_TO_FLOAT(v[3]));
1349}
1350
Kendall Bennettc40d1dd2003-10-21 22:22:17 +00001351static void GLAPIENTRY
Brian Paule591ad72003-05-10 04:37:47 +00001352loopback_VertexAttrib4NuivARB(GLuint index, const GLuint * v)
1353{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001354 ATTRIB4(index, UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]),
Brian Paule591ad72003-05-10 04:37:47 +00001355 UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3]));
1356}
1357
1358
Brian Paul03c0c2e2002-01-14 16:06:35 +00001359
Keith Whitwellb0149862000-11-24 10:30:04 +00001360
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001361/*
Keith Whitwellb0149862000-11-24 10:30:04 +00001362 * This code never registers handlers for any of the entry points
Gareth Hughes22144ab2001-03-12 00:48:37 +00001363 * listed in vtxfmt.h.
Keith Whitwellb0149862000-11-24 10:30:04 +00001364 */
1365void
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001366_mesa_loopback_init_api_table( struct _glapi_table *dest )
Keith Whitwellb0149862000-11-24 10:30:04 +00001367{
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001368 dest->Color3b = loopback_Color3b_f;
1369 dest->Color3d = loopback_Color3d_f;
1370 dest->Color3i = loopback_Color3i_f;
1371 dest->Color3s = loopback_Color3s_f;
1372 dest->Color3ui = loopback_Color3ui_f;
1373 dest->Color3us = loopback_Color3us_f;
1374 dest->Color3ub = loopback_Color3ub_f;
1375 dest->Color4b = loopback_Color4b_f;
1376 dest->Color4d = loopback_Color4d_f;
1377 dest->Color4i = loopback_Color4i_f;
1378 dest->Color4s = loopback_Color4s_f;
1379 dest->Color4ui = loopback_Color4ui_f;
1380 dest->Color4us = loopback_Color4us_f;
1381 dest->Color4ub = loopback_Color4ub_f;
1382 dest->Color3bv = loopback_Color3bv_f;
1383 dest->Color3dv = loopback_Color3dv_f;
1384 dest->Color3iv = loopback_Color3iv_f;
1385 dest->Color3sv = loopback_Color3sv_f;
1386 dest->Color3uiv = loopback_Color3uiv_f;
1387 dest->Color3usv = loopback_Color3usv_f;
1388 dest->Color3ubv = loopback_Color3ubv_f;
1389 dest->Color4bv = loopback_Color4bv_f;
1390 dest->Color4dv = loopback_Color4dv_f;
1391 dest->Color4iv = loopback_Color4iv_f;
1392 dest->Color4sv = loopback_Color4sv_f;
1393 dest->Color4uiv = loopback_Color4uiv_f;
1394 dest->Color4usv = loopback_Color4usv_f;
1395 dest->Color4ubv = loopback_Color4ubv_f;
Keith Whitwellb0149862000-11-24 10:30:04 +00001396
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001397 dest->SecondaryColor3bEXT = loopback_SecondaryColor3bEXT_f;
1398 dest->SecondaryColor3dEXT = loopback_SecondaryColor3dEXT_f;
1399 dest->SecondaryColor3iEXT = loopback_SecondaryColor3iEXT_f;
1400 dest->SecondaryColor3sEXT = loopback_SecondaryColor3sEXT_f;
1401 dest->SecondaryColor3uiEXT = loopback_SecondaryColor3uiEXT_f;
1402 dest->SecondaryColor3usEXT = loopback_SecondaryColor3usEXT_f;
1403 dest->SecondaryColor3ubEXT = loopback_SecondaryColor3ubEXT_f;
1404 dest->SecondaryColor3bvEXT = loopback_SecondaryColor3bvEXT_f;
1405 dest->SecondaryColor3dvEXT = loopback_SecondaryColor3dvEXT_f;
1406 dest->SecondaryColor3ivEXT = loopback_SecondaryColor3ivEXT_f;
1407 dest->SecondaryColor3svEXT = loopback_SecondaryColor3svEXT_f;
1408 dest->SecondaryColor3uivEXT = loopback_SecondaryColor3uivEXT_f;
1409 dest->SecondaryColor3usvEXT = loopback_SecondaryColor3usvEXT_f;
1410 dest->SecondaryColor3ubvEXT = loopback_SecondaryColor3ubvEXT_f;
1411
Keith Whitwellb0149862000-11-24 10:30:04 +00001412 dest->Indexd = loopback_Indexd;
Keith Whitwellae0eaf92003-11-24 15:23:18 +00001413 dest->Indexi = loopback_Indexi;
Keith Whitwellb0149862000-11-24 10:30:04 +00001414 dest->Indexs = loopback_Indexs;
1415 dest->Indexub = loopback_Indexub;
1416 dest->Indexdv = loopback_Indexdv;
Keith Whitwellb0149862000-11-24 10:30:04 +00001417 dest->Indexiv = loopback_Indexiv;
1418 dest->Indexsv = loopback_Indexsv;
1419 dest->Indexubv = loopback_Indexubv;
1420 dest->Normal3b = loopback_Normal3b;
1421 dest->Normal3d = loopback_Normal3d;
1422 dest->Normal3i = loopback_Normal3i;
1423 dest->Normal3s = loopback_Normal3s;
1424 dest->Normal3bv = loopback_Normal3bv;
1425 dest->Normal3dv = loopback_Normal3dv;
1426 dest->Normal3iv = loopback_Normal3iv;
1427 dest->Normal3sv = loopback_Normal3sv;
1428 dest->TexCoord1d = loopback_TexCoord1d;
1429 dest->TexCoord1i = loopback_TexCoord1i;
1430 dest->TexCoord1s = loopback_TexCoord1s;
1431 dest->TexCoord2d = loopback_TexCoord2d;
1432 dest->TexCoord2s = loopback_TexCoord2s;
1433 dest->TexCoord2i = loopback_TexCoord2i;
1434 dest->TexCoord3d = loopback_TexCoord3d;
1435 dest->TexCoord3i = loopback_TexCoord3i;
1436 dest->TexCoord3s = loopback_TexCoord3s;
1437 dest->TexCoord4d = loopback_TexCoord4d;
1438 dest->TexCoord4i = loopback_TexCoord4i;
1439 dest->TexCoord4s = loopback_TexCoord4s;
1440 dest->TexCoord1dv = loopback_TexCoord1dv;
1441 dest->TexCoord1iv = loopback_TexCoord1iv;
1442 dest->TexCoord1sv = loopback_TexCoord1sv;
1443 dest->TexCoord2dv = loopback_TexCoord2dv;
1444 dest->TexCoord2iv = loopback_TexCoord2iv;
1445 dest->TexCoord2sv = loopback_TexCoord2sv;
1446 dest->TexCoord3dv = loopback_TexCoord3dv;
1447 dest->TexCoord3iv = loopback_TexCoord3iv;
1448 dest->TexCoord3sv = loopback_TexCoord3sv;
1449 dest->TexCoord4dv = loopback_TexCoord4dv;
1450 dest->TexCoord4iv = loopback_TexCoord4iv;
1451 dest->TexCoord4sv = loopback_TexCoord4sv;
1452 dest->Vertex2d = loopback_Vertex2d;
1453 dest->Vertex2i = loopback_Vertex2i;
1454 dest->Vertex2s = loopback_Vertex2s;
1455 dest->Vertex3d = loopback_Vertex3d;
1456 dest->Vertex3i = loopback_Vertex3i;
1457 dest->Vertex3s = loopback_Vertex3s;
1458 dest->Vertex4d = loopback_Vertex4d;
1459 dest->Vertex4i = loopback_Vertex4i;
1460 dest->Vertex4s = loopback_Vertex4s;
1461 dest->Vertex2dv = loopback_Vertex2dv;
1462 dest->Vertex2iv = loopback_Vertex2iv;
1463 dest->Vertex2sv = loopback_Vertex2sv;
1464 dest->Vertex3dv = loopback_Vertex3dv;
1465 dest->Vertex3iv = loopback_Vertex3iv;
1466 dest->Vertex3sv = loopback_Vertex3sv;
1467 dest->Vertex4dv = loopback_Vertex4dv;
1468 dest->Vertex4iv = loopback_Vertex4iv;
1469 dest->Vertex4sv = loopback_Vertex4sv;
Brian Paul471a7742001-12-04 23:43:31 +00001470 dest->MultiTexCoord1dARB = loopback_MultiTexCoord1dARB;
1471 dest->MultiTexCoord1dvARB = loopback_MultiTexCoord1dvARB;
1472 dest->MultiTexCoord1iARB = loopback_MultiTexCoord1iARB;
1473 dest->MultiTexCoord1ivARB = loopback_MultiTexCoord1ivARB;
1474 dest->MultiTexCoord1sARB = loopback_MultiTexCoord1sARB;
1475 dest->MultiTexCoord1svARB = loopback_MultiTexCoord1svARB;
1476 dest->MultiTexCoord2dARB = loopback_MultiTexCoord2dARB;
1477 dest->MultiTexCoord2dvARB = loopback_MultiTexCoord2dvARB;
1478 dest->MultiTexCoord2iARB = loopback_MultiTexCoord2iARB;
1479 dest->MultiTexCoord2ivARB = loopback_MultiTexCoord2ivARB;
1480 dest->MultiTexCoord2sARB = loopback_MultiTexCoord2sARB;
1481 dest->MultiTexCoord2svARB = loopback_MultiTexCoord2svARB;
1482 dest->MultiTexCoord3dARB = loopback_MultiTexCoord3dARB;
1483 dest->MultiTexCoord3dvARB = loopback_MultiTexCoord3dvARB;
1484 dest->MultiTexCoord3iARB = loopback_MultiTexCoord3iARB;
1485 dest->MultiTexCoord3ivARB = loopback_MultiTexCoord3ivARB;
1486 dest->MultiTexCoord3sARB = loopback_MultiTexCoord3sARB;
1487 dest->MultiTexCoord3svARB = loopback_MultiTexCoord3svARB;
1488 dest->MultiTexCoord4dARB = loopback_MultiTexCoord4dARB;
1489 dest->MultiTexCoord4dvARB = loopback_MultiTexCoord4dvARB;
1490 dest->MultiTexCoord4iARB = loopback_MultiTexCoord4iARB;
1491 dest->MultiTexCoord4ivARB = loopback_MultiTexCoord4ivARB;
1492 dest->MultiTexCoord4sARB = loopback_MultiTexCoord4sARB;
1493 dest->MultiTexCoord4svARB = loopback_MultiTexCoord4svARB;
Keith Whitwellb0149862000-11-24 10:30:04 +00001494 dest->EvalCoord2dv = loopback_EvalCoord2dv;
1495 dest->EvalCoord2fv = loopback_EvalCoord2fv;
1496 dest->EvalCoord2d = loopback_EvalCoord2d;
1497 dest->EvalCoord1dv = loopback_EvalCoord1dv;
1498 dest->EvalCoord1fv = loopback_EvalCoord1fv;
1499 dest->EvalCoord1d = loopback_EvalCoord1d;
1500 dest->Materialf = loopback_Materialf;
1501 dest->Materiali = loopback_Materiali;
1502 dest->Materialiv = loopback_Materialiv;
1503 dest->Rectd = loopback_Rectd;
1504 dest->Rectdv = loopback_Rectdv;
1505 dest->Rectfv = loopback_Rectfv;
1506 dest->Recti = loopback_Recti;
1507 dest->Rectiv = loopback_Rectiv;
1508 dest->Rects = loopback_Rects;
1509 dest->Rectsv = loopback_Rectsv;
1510 dest->FogCoorddEXT = loopback_FogCoorddEXT;
1511 dest->FogCoorddvEXT = loopback_FogCoorddvEXT;
Brian Paul86b84272001-12-14 02:50:01 +00001512
1513 dest->VertexAttrib1sNV = loopback_VertexAttrib1sNV;
1514 dest->VertexAttrib1fNV = loopback_VertexAttrib1fNV;
1515 dest->VertexAttrib1dNV = loopback_VertexAttrib1dNV;
1516 dest->VertexAttrib2sNV = loopback_VertexAttrib2sNV;
1517 dest->VertexAttrib2fNV = loopback_VertexAttrib2fNV;
1518 dest->VertexAttrib2dNV = loopback_VertexAttrib2dNV;
1519 dest->VertexAttrib3sNV = loopback_VertexAttrib3sNV;
1520 dest->VertexAttrib3fNV = loopback_VertexAttrib3fNV;
1521 dest->VertexAttrib3dNV = loopback_VertexAttrib3dNV;
1522 dest->VertexAttrib4sNV = loopback_VertexAttrib4sNV;
1523 dest->VertexAttrib4dNV = loopback_VertexAttrib4dNV;
1524 dest->VertexAttrib4ubNV = loopback_VertexAttrib4ubNV;
1525
1526 dest->VertexAttrib1svNV = loopback_VertexAttrib1svNV;
1527 dest->VertexAttrib1fvNV = loopback_VertexAttrib1fvNV;
1528 dest->VertexAttrib1dvNV = loopback_VertexAttrib1dvNV;
1529 dest->VertexAttrib2svNV = loopback_VertexAttrib2svNV;
1530 dest->VertexAttrib2fvNV = loopback_VertexAttrib2fvNV;
1531 dest->VertexAttrib2dvNV = loopback_VertexAttrib2dvNV;
1532 dest->VertexAttrib3svNV = loopback_VertexAttrib3svNV;
1533 dest->VertexAttrib3fvNV = loopback_VertexAttrib3fvNV;
1534 dest->VertexAttrib3dvNV = loopback_VertexAttrib3dvNV;
1535 dest->VertexAttrib4svNV = loopback_VertexAttrib4svNV;
1536 dest->VertexAttrib4fvNV = loopback_VertexAttrib4fvNV;
1537 dest->VertexAttrib4dvNV = loopback_VertexAttrib4dvNV;
1538 dest->VertexAttrib4ubvNV = loopback_VertexAttrib4ubvNV;
1539
1540 dest->VertexAttribs1svNV = loopback_VertexAttribs1svNV;
1541 dest->VertexAttribs1fvNV = loopback_VertexAttribs1fvNV;
1542 dest->VertexAttribs1dvNV = loopback_VertexAttribs1dvNV;
1543 dest->VertexAttribs2svNV = loopback_VertexAttribs2svNV;
1544 dest->VertexAttribs2fvNV = loopback_VertexAttribs2fvNV;
1545 dest->VertexAttribs2dvNV = loopback_VertexAttribs2dvNV;
1546 dest->VertexAttribs3svNV = loopback_VertexAttribs3svNV;
1547 dest->VertexAttribs3fvNV = loopback_VertexAttribs3fvNV;
1548 dest->VertexAttribs3dvNV = loopback_VertexAttribs3dvNV;
1549 dest->VertexAttribs4svNV = loopback_VertexAttribs4svNV;
1550 dest->VertexAttribs4fvNV = loopback_VertexAttribs4fvNV;
1551 dest->VertexAttribs4dvNV = loopback_VertexAttribs4dvNV;
1552 dest->VertexAttribs4ubvNV = loopback_VertexAttribs4ubvNV;
Brian Paul03c0c2e2002-01-14 16:06:35 +00001553
Brian Paule591ad72003-05-10 04:37:47 +00001554 dest->VertexAttrib4bvARB = loopback_VertexAttrib4bvARB;
1555 dest->VertexAttrib4ivARB = loopback_VertexAttrib4ivARB;
1556 dest->VertexAttrib4ubvARB = loopback_VertexAttrib4ubvARB;
1557 dest->VertexAttrib4usvARB = loopback_VertexAttrib4usvARB;
1558 dest->VertexAttrib4uivARB = loopback_VertexAttrib4uivARB;
1559 dest->VertexAttrib4NbvARB = loopback_VertexAttrib4NbvARB;
1560 dest->VertexAttrib4NsvARB = loopback_VertexAttrib4NsvARB;
1561 dest->VertexAttrib4NivARB = loopback_VertexAttrib4NivARB;
1562 dest->VertexAttrib4NusvARB = loopback_VertexAttrib4NusvARB;
1563 dest->VertexAttrib4NuivARB = loopback_VertexAttrib4NuivARB;
Keith Whitwellb0149862000-11-24 10:30:04 +00001564}