ReactOS 0.4.15-dev-7113-g9ea2222
api.c
Go to the documentation of this file.
1/*
2 * Mesa 3-D graphics library
3 * Version: 2.5
4 * Copyright (C) 1995-1997 Brian Paul
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21#ifdef PC_HEADER
22#include "all.h"
23#else
24#include <stdio.h>
25#include <stdlib.h>
26#include "api.h"
27#include "bitmap.h"
28#include "context.h"
29
30#include "drawpix.h"
31
32#include "eval.h"
33#include "image.h"
34#include "macros.h"
35#include "matrix.h"
36#include "teximage.h"
37#include "types.h"
38#include "vb.h"
39#endif
40
42{
44 (*CC->API.Accum)(CC, op, value);
45}
46
48{
50 (*CC->API.AlphaFunc)(CC, func, ref);
51}
52
53
56{
58 return (*CC->API.AreTexturesResident)(CC, n, textures, residences);
59}
60
62{
64 (*CC->API.ArrayElement)(CC, i);
65}
66
67
69{
71 (*CC->API.Begin)( CC, mode );
72}
73
74
76{
78 (*CC->API.BindTexture)(CC, target, texture);
79}
80
81
83 GLfloat xorig, GLfloat yorig,
84 GLfloat xmove, GLfloat ymove,
85 const GLubyte *bitmap )
86{
88 if (!CC->CompileFlag) {
89 /* execute only, try optimized case where no unpacking needed */
90 if ( CC->Unpack.LsbFirst==GL_FALSE
91 && CC->Unpack.Alignment==1
92 && CC->Unpack.RowLength==0
93 && CC->Unpack.SkipPixels==0
94 && CC->Unpack.SkipRows==0) {
95 /* Special case: no unpacking needed */
96 struct gl_image image;
97 image.Width = width;
98 image.Height = height;
99 image.Components = 0;
100 image.Type = GL_BITMAP;
101 image.Format = GL_COLOR_INDEX;
102 image.Data = (GLvoid *) bitmap;
103 (*CC->Exec.Bitmap)( CC, width, height, xorig, yorig,
104 xmove, ymove, &image );
105 }
106 else {
107 struct gl_image *image;
109 (*CC->Exec.Bitmap)( CC, width, height, xorig, yorig,
110 xmove, ymove, image );
111 if (image) {
113 }
114 }
115 }
116 else {
117 /* compile and maybe execute */
118 struct gl_image *image;
120 (*CC->API.Bitmap)(CC, width, height, xorig, yorig, xmove, ymove, image );
121 }
122}
123
124
126{
128 (*CC->API.BlendFunc)(CC, sfactor, dfactor);
129}
130
131
133{
135 (*CC->API.CallList)(CC, list);
136}
137
138
140{
142 (*CC->API.CallLists)(CC, n, type, lists);
143}
144
145
147{
149 (*CC->API.Clear)(CC, mask);
150}
151
152
155{
157 (*CC->API.ClearAccum)(CC, red, green, blue, alpha);
158}
159
160
161
163{
165 (*CC->API.ClearIndex)(CC, c);
166}
167
168
173{
175 (*CC->API.ClearColor)(CC, red, green, blue, alpha);
176}
177
178
180{
182 (*CC->API.ClearDepth)( CC, depth );
183}
184
185
187{
189 (*CC->API.ClearStencil)(CC, s);
190}
191
192
194{
195 GLfloat eq[4];
197 eq[0] = (GLfloat) equation[0];
198 eq[1] = (GLfloat) equation[1];
199 eq[2] = (GLfloat) equation[2];
200 eq[3] = (GLfloat) equation[3];
201 (*CC->API.ClipPlane)(CC, plane, eq );
202}
203
204
206{
208 (*CC->API.Color3f)( CC, BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green),
210}
211
212
214{
216 (*CC->API.Color3f)( CC, (GLfloat) red, (GLfloat) green, (GLfloat) blue );
217}
218
219
221{
223 (*CC->API.Color3f)( CC, red, green, blue );
224}
225
226
228{
230 (*CC->API.Color3f)( CC, INT_TO_FLOAT(red), INT_TO_FLOAT(green),
232}
233
234
236{
238 (*CC->API.Color3f)( CC, SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green),
240}
241
242
244{
246 (*CC->API.Color4ub)( CC, red, green, blue, 255 );
247}
248
249
251{
253 (*CC->API.Color3f)( CC, UINT_TO_FLOAT(red), UINT_TO_FLOAT(green),
255}
256
257
259{
263}
264
265
267{
269 (*CC->API.Color4f)( CC, BYTE_TO_FLOAT(red), BYTE_TO_FLOAT(green),
271}
272
273
275{
277 (*CC->API.Color4f)( CC, (GLfloat) red, (GLfloat) green,
278 (GLfloat) blue, (GLfloat) alpha );
279}
280
281
283{
285 (*CC->API.Color4f)( CC, red, green, blue, alpha );
286}
287
289{
291 (*CC->API.Color4f)( CC, INT_TO_FLOAT(red), INT_TO_FLOAT(green),
293}
294
295
297{
299 (*CC->API.Color4f)( CC, SHORT_TO_FLOAT(red), SHORT_TO_FLOAT(green),
301}
302
304{
306 (*CC->API.Color4ub)( CC, red, green, blue, alpha );
307}
308
310{
312 (*CC->API.Color4f)( CC, UINT_TO_FLOAT(red), UINT_TO_FLOAT(green),
314}
315
317{
321}
322
323
325{
327 (*CC->API.Color3f)( CC, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]),
328 BYTE_TO_FLOAT(v[2]) );
329}
330
331
333{
335 (*CC->API.Color3f)( CC, (GLdouble) v[0], (GLdouble) v[1], (GLdouble) v[2] );
336}
337
338
340{
342 (*CC->API.Color3fv)( CC, v );
343}
344
345
347{
349 (*CC->API.Color3f)( CC, INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]),
350 INT_TO_FLOAT(v[2]) );
351}
352
353
355{
357 (*CC->API.Color3f)( CC, SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]),
358 SHORT_TO_FLOAT(v[2]) );
359}
360
361
363{
365 (*CC->API.Color4ub)( CC, v[0], v[1], v[2], 255 );
366}
367
368
370{
372 (*CC->API.Color3f)( CC, UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]),
373 UINT_TO_FLOAT(v[2]) );
374}
375
376
378{
380 (*CC->API.Color3f)( CC, USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]),
381 USHORT_TO_FLOAT(v[2]) );
382
383}
384
385
387{
389 (*CC->API.Color4f)( CC, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1]),
390 BYTE_TO_FLOAT(v[2]), BYTE_TO_FLOAT(v[3]) );
391}
392
393
395{
397 (*CC->API.Color4f)( CC, (GLdouble) v[0], (GLdouble) v[1],
398 (GLdouble) v[2], (GLdouble) v[3] );
399}
400
401
403{
405 (*CC->API.Color4f)( CC, v[0], v[1], v[2], v[3] );
406}
407
408
410{
412 (*CC->API.Color4f)( CC, INT_TO_FLOAT(v[0]), INT_TO_FLOAT(v[1]),
413 INT_TO_FLOAT(v[2]), INT_TO_FLOAT(v[3]) );
414}
415
416
418{
420 (*CC->API.Color4f)( CC, SHORT_TO_FLOAT(v[0]), SHORT_TO_FLOAT(v[1]),
421 SHORT_TO_FLOAT(v[2]), SHORT_TO_FLOAT(v[3]) );
422}
423
424
426{
428 (*CC->API.Color4ubv)( CC, v );
429}
430
431
433{
435 (*CC->API.Color4f)( CC, UINT_TO_FLOAT(v[0]), UINT_TO_FLOAT(v[1]),
436 UINT_TO_FLOAT(v[2]), UINT_TO_FLOAT(v[3]) );
437}
438
439
441{
443 (*CC->API.Color4f)( CC, USHORT_TO_FLOAT(v[0]), USHORT_TO_FLOAT(v[1]),
445}
446
447
450{
452 (*CC->API.ColorMask)(CC, red, green, blue, alpha);
453}
454
455
457{
459 (*CC->API.ColorMaterial)(CC, face, mode);
460}
461
462
464 const GLvoid *ptr )
465{
467 (*CC->API.ColorPointer)(CC, size, type, stride, ptr);
468}
469
470
472 GLenum type )
473{
475 (*CC->API.CopyPixels)(CC, x, y, width, height, type);
476}
477
478
481 GLint x, GLint y,
483{
485 (*CC->API.CopyTexImage1D)( CC, target, level, internalformat,
486 x, y, width, border );
487}
488
489
492 GLint x, GLint y,
494{
496 (*CC->API.CopyTexImage2D)( CC, target, level, internalformat,
497 x, y, width, height, border );
498}
499
500
503 GLsizei width )
504{
506 (*CC->API.CopyTexSubImage1D)( CC, target, level, xoffset, x, y, width );
507}
508
509
512 GLint x, GLint y,
514{
516 (*CC->API.CopyTexSubImage2D)( CC, target, level, xoffset, yoffset,
517 x, y, width, height );
518}
519
520
521
523{
525 (*CC->API.CullFace)(CC, mode);
526}
527
528
530{
532 (*CC->API.DepthFunc)( CC, func );
533}
534
535
537{
539 (*CC->API.DepthMask)( CC, flag );
540}
541
542
544{
546 (*CC->API.DepthRange)( CC, near_val, far_val );
547}
548
549
551{
553 (*CC->API.DeleteLists)(CC, list, range);
554}
555
556
558{
560 (*CC->API.DeleteTextures)(CC, n, textures);
561}
562
563
565{
567 (*CC->API.Disable)( CC, cap );
568}
569
570
572{
574 (*CC->API.DisableClientState)( CC, cap );
575}
576
577
579{
581 (*CC->API.DrawArrays)(CC, mode, first, count);
582}
583
584
586{
588 (*CC->API.DrawBuffer)(CC, mode);
589}
590
591
593 GLenum type, const GLvoid *indices )
594{
596 (*CC->API.DrawElements)( CC, mode, count, type, indices );
597}
598
599
602{
604 (*CC->API.DrawPixels)( CC, width, height, format, type, pixels );
605}
606
607
609{
611 (*CC->API.Enable)( CC, cap );
612}
613
614
616{
618 (*CC->API.EnableClientState)( CC, cap );
619}
620
621
622void APIENTRY _mesa_End( void )
623{
625 (*CC->API.End)( CC );
626}
627
628
630{
632 (*CC->API.EndList)(CC);
633}
634
635
636
637
639{
641 (*CC->API.EvalCoord1f)( CC, (GLfloat) u );
642}
643
644
646{
648 (*CC->API.EvalCoord1f)( CC, u );
649}
650
651
653{
655 (*CC->API.EvalCoord1f)( CC, (GLfloat) *u );
656}
657
658
660{
662 (*CC->API.EvalCoord1f)( CC, (GLfloat) *u );
663}
664
665
667{
669 (*CC->API.EvalCoord2f)( CC, (GLfloat) u, (GLfloat) v );
670}
671
672
674{
676 (*CC->API.EvalCoord2f)( CC, u, v );
677}
678
679
681{
683 (*CC->API.EvalCoord2f)( CC, (GLfloat) u[0], (GLfloat) u[1] );
684}
685
686
688{
690 (*CC->API.EvalCoord2f)( CC, u[0], u[1] );
691}
692
693
695{
697 (*CC->API.EvalPoint1)( CC, i );
698}
699
700
702{
704 (*CC->API.EvalPoint2)( CC, i, j );
705}
706
707
709{
711 (*CC->API.EvalMesh1)( CC, mode, i1, i2 );
712}
713
714
716{
718 (*CC->API.EdgeFlag)(CC, flag);
719}
720
721
723{
725 (*CC->API.EdgeFlag)(CC, *flag);
726}
727
728
730{
732 (*CC->API.EdgeFlagPointer)(CC, stride, ptr);
733}
734
735
737{
739 (*CC->API.EvalMesh2)( CC, mode, i1, i2, j1, j2 );
740}
741
742
744{
746 (*CC->API.FeedbackBuffer)(CC, size, type, buffer);
747}
748
749
751{
753 (*CC->API.Finish)(CC);
754}
755
756
758{
760 (*CC->API.Flush)(CC);
761}
762
763
765{
767 (*CC->API.Fogfv)(CC, pname, &param);
768}
769
770
772{
773 GLfloat fparam = (GLfloat) param;
775 (*CC->API.Fogfv)(CC, pname, &fparam);
776}
777
778
780{
782 (*CC->API.Fogfv)(CC, pname, params);
783}
784
785
787{
788 GLfloat p[4];
790
791 switch (pname) {
792 case GL_FOG_MODE:
793 case GL_FOG_DENSITY:
794 case GL_FOG_START:
795 case GL_FOG_END:
796 case GL_FOG_INDEX:
797 p[0] = (GLfloat) *params;
798 break;
799 case GL_FOG_COLOR:
800 p[0] = INT_TO_FLOAT( params[0] );
801 p[1] = INT_TO_FLOAT( params[1] );
802 p[2] = INT_TO_FLOAT( params[2] );
803 p[3] = INT_TO_FLOAT( params[3] );
804 break;
805 default:
806 /* Error will be caught later in gl_Fogfv */
807 ;
808 }
809 (*CC->API.Fogfv)( CC, pname, p );
810}
811
812
813
815{
817 (*CC->API.FrontFace)(CC, mode);
818}
819
820
823 GLdouble nearval, GLdouble farval )
824{
826 (*CC->API.Frustum)(CC, left, right, bottom, top, nearval, farval);
827}
828
829
831{
833 return (*CC->API.GenLists)(CC, range);
834}
835
836
838{
840 (*CC->API.GenTextures)(CC, n, textures);
841}
842
843
845{
847 (*CC->API.GetBooleanv)(CC, pname, params);
848}
849
850
852{
854 (*CC->API.GetClipPlane)(CC, plane, equation);
855}
856
858{
860 (*CC->API.GetDoublev)(CC, pname, params);
861}
862
863
865{
867 if (!CC) {
868 /* No current context */
869 return GL_NO_ERROR;
870 }
871 return (*CC->API.GetError)(CC);
872}
873
874
876{
878 (*CC->API.GetFloatv)(CC, pname, params);
879}
880
881
883{
885 (*CC->API.GetIntegerv)(CC, pname, params);
886}
887
888
890{
892 (*CC->API.GetLightfv)(CC, light, pname, params);
893}
894
895
897{
899 (*CC->API.GetLightiv)(CC, light, pname, params);
900}
901
902
904{
906 (*CC->API.GetMapdv)( CC, target, query, v );
907}
908
909
911{
913 (*CC->API.GetMapfv)( CC, target, query, v );
914}
915
916
918{
920 (*CC->API.GetMapiv)( CC, target, query, v );
921}
922
923
925{
927 (*CC->API.GetMaterialfv)(CC, face, pname, params);
928}
929
930
932{
934 (*CC->API.GetMaterialiv)(CC, face, pname, params);
935}
936
937
939{
941 (*CC->API.GetPixelMapfv)(CC, map, values);
942}
943
944
946{
948 (*CC->API.GetPixelMapuiv)(CC, map, values);
949}
950
951
953{
955 (*CC->API.GetPixelMapusv)(CC, map, values);
956}
957
958
960{
962 (*CC->API.GetPointerv)(CC, pname, params);
963}
964
965
967{
969 (*CC->API.GetPolygonStipple)(CC, mask);
970}
971
972
974{
976 return (*CC->API.GetString)(CC, name);
977}
978
979
980
982{
984 (*CC->API.GetTexEnvfv)(CC, target, pname, params);
985}
986
987
989{
991 (*CC->API.GetTexEnviv)(CC, target, pname, params);
992}
993
994
996{
998 (*CC->API.GetTexGeniv)(CC, coord, pname, params);
999}
1000
1001
1003{
1005 (*CC->API.GetTexGendv)(CC, coord, pname, params);
1006}
1007
1008
1010{
1012 (*CC->API.GetTexGenfv)(CC, coord, pname, params);
1013}
1014
1015
1016
1019{
1021 (*CC->API.GetTexImage)(CC, target, level, format, type, pixels);
1022}
1023
1024
1027{
1029 (*CC->API.GetTexLevelParameterfv)(CC, target, level, pname, params);
1030}
1031
1032
1035{
1037 (*CC->API.GetTexLevelParameteriv)(CC, target, level, pname, params);
1038}
1039
1040
1041
1042
1044{
1046 (*CC->API.GetTexParameterfv)(CC, target, pname, params);
1047}
1048
1049
1051{
1053 (*CC->API.GetTexParameteriv)(CC, target, pname, params);
1054}
1055
1056
1058{
1060 (*CC->API.Hint)(CC, target, mode);
1061}
1062
1063
1065{
1067 (*CC->API.Indexf)( CC, (GLfloat) c );
1068}
1069
1070
1072{
1074 (*CC->API.Indexf)( CC, c );
1075}
1076
1077
1079{
1081 (*CC->API.Indexi)( CC, c );
1082}
1083
1084
1086{
1088 (*CC->API.Indexi)( CC, (GLint) c );
1089}
1090
1091
1092#ifdef GL_VERSION_1_1
1093void APIENTRY _mesa_Indexub( GLubyte c )
1094{
1096 (*CC->API.Indexi)( CC, (GLint) c );
1097}
1098#endif
1099
1100
1102{
1104 (*CC->API.Indexf)( CC, (GLfloat) *c );
1105}
1106
1107
1109{
1111 (*CC->API.Indexf)( CC, *c );
1112}
1113
1114
1116{
1118 (*CC->API.Indexi)( CC, *c );
1119}
1120
1121
1123{
1125 (*CC->API.Indexi)( CC, (GLint) *c );
1126}
1127
1128
1129#ifdef GL_VERSION_1_1
1130void APIENTRY _mesa_Indexubv( const GLubyte *c )
1131{
1133 (*CC->API.Indexi)( CC, (GLint) *c );
1134}
1135#endif
1136
1137
1139{
1141 (*CC->API.IndexMask)(CC, mask);
1142}
1143
1144
1146{
1148 (*CC->API.IndexPointer)(CC, type, stride, ptr);
1149}
1150
1151
1153 const GLvoid *pointer )
1154{
1156 (*CC->API.InterleavedArrays)( CC, format, stride, pointer );
1157}
1158
1159
1161{
1163 (*CC->API.InitNames)(CC);
1164}
1165
1166
1168{
1170 return (*CC->API.IsList)(CC, list);
1171}
1172
1173
1175{
1177 return (*CC->API.IsTexture)(CC, texture);
1178}
1179
1180
1182{
1184 (*CC->API.Lightfv)( CC, light, pname, &param, 1 );
1185}
1186
1187
1188
1190{
1191 GLfloat fparam = (GLfloat) param;
1193 (*CC->API.Lightfv)( CC, light, pname, &fparam, 1 );
1194}
1195
1196
1197
1199{
1201 (*CC->API.Lightfv)( CC, light, pname, params, 4 );
1202}
1203
1204
1205
1207{
1208 GLfloat fparam[4];
1210
1211 switch (pname) {
1212 case GL_AMBIENT:
1213 case GL_DIFFUSE:
1214 case GL_SPECULAR:
1215 fparam[0] = INT_TO_FLOAT( params[0] );
1216 fparam[1] = INT_TO_FLOAT( params[1] );
1217 fparam[2] = INT_TO_FLOAT( params[2] );
1218 fparam[3] = INT_TO_FLOAT( params[3] );
1219 break;
1220 case GL_POSITION:
1221 fparam[0] = (GLfloat) params[0];
1222 fparam[1] = (GLfloat) params[1];
1223 fparam[2] = (GLfloat) params[2];
1224 fparam[3] = (GLfloat) params[3];
1225 break;
1226 case GL_SPOT_DIRECTION:
1227 fparam[0] = (GLfloat) params[0];
1228 fparam[1] = (GLfloat) params[1];
1229 fparam[2] = (GLfloat) params[2];
1230 break;
1231 case GL_SPOT_EXPONENT:
1232 case GL_SPOT_CUTOFF:
1236 fparam[0] = (GLfloat) params[0];
1237 break;
1238 default:
1239 /* error will be caught later in gl_Lightfv */
1240 ;
1241 }
1242 (*CC->API.Lightfv)( CC, light, pname, fparam, 4 );
1243}
1244
1245
1246
1248{
1250 (*CC->API.LightModelfv)( CC, pname, &param );
1251}
1252
1253
1255{
1256 GLfloat fparam[4];
1258 fparam[0] = (GLfloat) param;
1259 (*CC->API.LightModelfv)( CC, pname, fparam );
1260}
1261
1262
1264{
1266 (*CC->API.LightModelfv)( CC, pname, params );
1267}
1268
1269
1271{
1272 GLfloat fparam[4];
1274
1275 switch (pname) {
1277 fparam[0] = INT_TO_FLOAT( params[0] );
1278 fparam[1] = INT_TO_FLOAT( params[1] );
1279 fparam[2] = INT_TO_FLOAT( params[2] );
1280 fparam[3] = INT_TO_FLOAT( params[3] );
1281 break;
1284 fparam[0] = (GLfloat) params[0];
1285 break;
1286 default:
1287 /* Error will be caught later in gl_LightModelfv */
1288 ;
1289 }
1290 (*CC->API.LightModelfv)( CC, pname, fparam );
1291}
1292
1293
1295{
1297 (*CC->API.LineWidth)(CC, width);
1298}
1299
1300
1302{
1304 (*CC->API.LineStipple)(CC, factor, pattern);
1305}
1306
1307
1309{
1311 (*CC->API.ListBase)(CC, base);
1312}
1313
1314
1316{
1318 (*CC->API.LoadIdentity)( CC );
1319}
1320
1321
1323{
1324 GLfloat fm[16];
1325 GLuint i;
1327
1328 for (i=0;i<16;i++) {
1329 fm[i] = (GLfloat) m[i];
1330 }
1331
1332 (*CC->API.LoadMatrixf)( CC, fm );
1333}
1334
1335
1337{
1339 (*CC->API.LoadMatrixf)( CC, m );
1340}
1341
1342
1344{
1346 (*CC->API.LoadName)(CC, name);
1347}
1348
1349
1351{
1353 (*CC->API.LogicOp)(CC, opcode);
1354}
1355
1356
1357
1359 GLint order, const GLdouble *points )
1360{
1361 GLfloat *pnts;
1362 GLboolean retain;
1364
1366 retain = CC->CompileFlag;
1367 (*CC->API.Map1f)( CC, target, u1, u2, stride, order, pnts, retain );
1368}
1369
1370
1372 GLint order, const GLfloat *points )
1373{
1374 GLfloat *pnts;
1375 GLboolean retain;
1377
1379 retain = CC->CompileFlag;
1380 (*CC->API.Map1f)( CC, target, u1, u2, stride, order, pnts, retain );
1381}
1382
1383
1387 const GLdouble *points )
1388{
1389 GLfloat *pnts;
1390 GLboolean retain;
1392
1394 vstride, vorder, points );
1395 retain = CC->CompileFlag;
1396 (*CC->API.Map2f)( CC, target, u1, u2, ustride, uorder,
1397 v1, v2, vstride, vorder, pnts, retain );
1398}
1399
1400
1404 const GLfloat *points )
1405{
1406 GLfloat *pnts;
1407 GLboolean retain;
1409
1411 vstride, vorder, points );
1412 retain = CC->CompileFlag;
1413 (*CC->API.Map2f)( CC, target, u1, u2, ustride, uorder,
1414 v1, v2, vstride, vorder, pnts, retain );
1415}
1416
1417
1419{
1421 (*CC->API.MapGrid1f)( CC, un, (GLfloat) u1, (GLfloat) u2 );
1422}
1423
1424
1426{
1428 (*CC->API.MapGrid1f)( CC, un, u1, u2 );
1429}
1430
1431
1434{
1436 (*CC->API.MapGrid2f)( CC, un, (GLfloat) u1, (GLfloat) u2,
1437 vn, (GLfloat) v1, (GLfloat) v2 );
1438}
1439
1440
1443{
1445 (*CC->API.MapGrid2f)( CC, un, u1, u2, vn, v1, v2 );
1446}
1447
1448
1450{
1452 (*CC->API.Materialfv)( CC, face, pname, &param );
1453}
1454
1455
1456
1458{
1459 GLfloat fparam[4];
1461 fparam[0] = (GLfloat) param;
1462 (*CC->API.Materialfv)( CC, face, pname, fparam );
1463}
1464
1465
1467{
1469 (*CC->API.Materialfv)( CC, face, pname, params );
1470}
1471
1472
1474{
1475 GLfloat fparam[4];
1477 switch (pname) {
1478 case GL_AMBIENT:
1479 case GL_DIFFUSE:
1480 case GL_SPECULAR:
1481 case GL_EMISSION:
1483 fparam[0] = INT_TO_FLOAT( params[0] );
1484 fparam[1] = INT_TO_FLOAT( params[1] );
1485 fparam[2] = INT_TO_FLOAT( params[2] );
1486 fparam[3] = INT_TO_FLOAT( params[3] );
1487 break;
1488 case GL_SHININESS:
1489 fparam[0] = (GLfloat) params[0];
1490 break;
1491 case GL_COLOR_INDEXES:
1492 fparam[0] = (GLfloat) params[0];
1493 fparam[1] = (GLfloat) params[1];
1494 fparam[2] = (GLfloat) params[2];
1495 break;
1496 default:
1497 /* Error will be caught later in gl_Materialfv */
1498 ;
1499 }
1500 (*CC->API.Materialfv)( CC, face, pname, fparam );
1501}
1502
1503
1505{
1507 (*CC->API.MatrixMode)( CC, mode );
1508}
1509
1510
1512{
1513 GLfloat fm[16];
1514 GLuint i;
1516
1517 for (i=0;i<16;i++) {
1518 fm[i] = (GLfloat) m[i];
1519 }
1520
1521 (*CC->API.MultMatrixf)( CC, fm );
1522}
1523
1524
1526{
1528 (*CC->API.MultMatrixf)( CC, m );
1529}
1530
1531
1533{
1535 (*CC->API.NewList)(CC, list, mode);
1536}
1537
1539{
1541 (*CC->API.Normal3f)( CC, BYTE_TO_FLOAT(nx),
1543}
1544
1545
1547{
1548 GLfloat fx, fy, fz;
1550 if (ABSD(nx)<0.00001) fx = 0.0F; else fx = nx;
1551 if (ABSD(ny)<0.00001) fy = 0.0F; else fy = ny;
1552 if (ABSD(nz)<0.00001) fz = 0.0F; else fz = nz;
1553 (*CC->API.Normal3f)( CC, fx, fy, fz );
1554}
1555
1556
1558{
1560#ifdef SHORTCUT
1561 if (CC->CompileFlag) {
1562 (*CC->Save.Normal3f)( CC, nx, ny, nz );
1563 }
1564 else {
1565 /* Execute */
1566 CC->Current.Normal[0] = nx;
1567 CC->Current.Normal[1] = ny;
1568 CC->Current.Normal[2] = nz;
1569 CC->VB->MonoNormal = GL_FALSE;
1570 }
1571#else
1572 (*CC->API.Normal3f)( CC, nx, ny, nz );
1573#endif
1574}
1575
1576
1578{
1580 (*CC->API.Normal3f)( CC, INT_TO_FLOAT(nx),
1582}
1583
1584
1586{
1588 (*CC->API.Normal3f)( CC, SHORT_TO_FLOAT(nx),
1590}
1591
1592
1594{
1596 (*CC->API.Normal3f)( CC, BYTE_TO_FLOAT(v[0]),
1597 BYTE_TO_FLOAT(v[1]), BYTE_TO_FLOAT(v[2]) );
1598}
1599
1600
1602{
1603 GLfloat fx, fy, fz;
1605 if (ABSD(v[0])<0.00001) fx = 0.0F; else fx = v[0];
1606 if (ABSD(v[1])<0.00001) fy = 0.0F; else fy = v[1];
1607 if (ABSD(v[2])<0.00001) fz = 0.0F; else fz = v[2];
1608 (*CC->API.Normal3f)( CC, fx, fy, fz );
1609}
1610
1611
1613{
1615#ifdef SHORTCUT
1616 if (CC->CompileFlag) {
1617 (*CC->Save.Normal3fv)( CC, v );
1618 }
1619 else {
1620 /* Execute */
1621 GLfloat *n = CC->Current.Normal;
1622 n[0] = v[0];
1623 n[1] = v[1];
1624 n[2] = v[2];
1625 CC->VB->MonoNormal = GL_FALSE;
1626 }
1627#else
1628 (*CC->API.Normal3fv)( CC, v );
1629#endif
1630}
1631
1632
1634{
1636 (*CC->API.Normal3f)( CC, INT_TO_FLOAT(v[0]),
1637 INT_TO_FLOAT(v[1]), INT_TO_FLOAT(v[2]) );
1638}
1639
1640
1642{
1644 (*CC->API.Normal3f)( CC, SHORT_TO_FLOAT(v[0]),
1645 SHORT_TO_FLOAT(v[1]), SHORT_TO_FLOAT(v[2]) );
1646}
1647
1648
1650{
1652 (*CC->API.NormalPointer)(CC, type, stride, ptr);
1653}
1656 GLdouble nearval, GLdouble farval )
1657{
1659 (*CC->API.Ortho)(CC, left, right, bottom, top, nearval, farval);
1660}
1661
1662
1664{
1666 (*CC->API.PassThrough)(CC, token);
1667}
1668
1669
1671{
1673 (*CC->API.PixelMapfv)( CC, map, mapsize, values );
1674}
1675
1676
1678{
1680 GLuint i;
1682
1684 for (i=0;i<mapsize;i++) {
1685 fvalues[i] = (GLfloat) values[i];
1686 }
1687 }
1688 else {
1689 for (i=0;i<mapsize;i++) {
1690 fvalues[i] = UINT_TO_FLOAT( values[i] );
1691 }
1692 }
1693 (*CC->API.PixelMapfv)( CC, map, mapsize, fvalues );
1694}
1695
1696
1697
1699{
1701 GLuint i;
1703
1705 for (i=0;i<mapsize;i++) {
1706 fvalues[i] = (GLfloat) values[i];
1707 }
1708 }
1709 else {
1710 for (i=0;i<mapsize;i++) {
1711 fvalues[i] = USHORT_TO_FLOAT( values[i] );
1712 }
1713 }
1714 (*CC->API.PixelMapfv)( CC, map, mapsize, fvalues );
1715}
1716
1717
1719{
1721 (*CC->API.PixelStorei)( CC, pname, (GLint) param );
1722}
1723
1724
1726{
1728 (*CC->API.PixelStorei)( CC, pname, param );
1729}
1730
1731
1733{
1735 (*CC->API.PixelTransferf)(CC, pname, param);
1736}
1737
1738
1740{
1742 (*CC->API.PixelTransferf)(CC, pname, (GLfloat) param);
1743}
1744
1745
1746void APIENTRY _mesa_PixelZoom( GLfloat xfactor, GLfloat yfactor )
1747{
1749 (*CC->API.PixelZoom)(CC, xfactor, yfactor);
1750}
1751
1752
1754{
1756 (*CC->API.PointSize)(CC, size);
1757}
1758
1759
1761{
1763 (*CC->API.PolygonMode)(CC, face, mode);
1764}
1765
1766
1768{
1770 (*CC->API.PolygonOffset)( CC, factor, units );
1771}
1772
1774{
1776 (*CC->API.PolygonStipple)(CC, mask);
1777}
1778
1779
1781{
1783 (*CC->API.PopAttrib)(CC);
1784}
1785
1786
1788{
1790 (*CC->API.PopClientAttrib)(CC);
1791}
1792
1793
1795{
1797 (*CC->API.PopMatrix)( CC );
1798}
1799
1800
1802{
1804 (*CC->API.PopName)(CC);
1805}
1806
1807
1809 const GLclampf *priorities )
1810{
1812 (*CC->API.PrioritizeTextures)(CC, n, textures, priorities);
1813}
1814
1815
1817{
1819 (*CC->API.PushMatrix)( CC );
1820}
1821
1822
1824{
1826 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, 0.0F, 1.0F );
1827}
1828
1829
1831{
1833 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, 0.0F, 1.0F );
1834}
1835
1836
1838{
1840 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, 0.0F, 1.0F );
1841}
1842
1843
1845{
1847 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, 0.0F, 1.0F );
1848}
1849
1850
1852{
1854 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F );
1855}
1856
1857
1859{
1861 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F );
1862}
1863
1864
1866{
1868 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F );
1869}
1870
1871
1873{
1875 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z, 1.0F );
1876}
1877
1878
1880{
1882 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y,
1883 (GLfloat) z, (GLfloat) w );
1884}
1885
1886
1888{
1890 (*CC->API.RasterPos4f)( CC, x, y, z, w );
1891}
1892
1893
1895{
1897 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y,
1898 (GLfloat) z, (GLfloat) w );
1899}
1900
1901
1903{
1905 (*CC->API.RasterPos4f)( CC, (GLfloat) x, (GLfloat) y,
1906 (GLfloat) z, (GLfloat) w );
1907}
1908
1909
1911{
1913 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1], 0.0F, 1.0F );
1914}
1915
1916
1918{
1920 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1], 0.0F, 1.0F );
1921}
1922
1923
1925{
1927 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1], 0.0F, 1.0F );
1928}
1929
1930
1932{
1934 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1], 0.0F, 1.0F );
1935}
1936
1937
1938/*** 3 element vector ***/
1939
1941{
1943 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1944 (GLfloat) v[2], 1.0F );
1945}
1946
1947
1949{
1951 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1952 (GLfloat) v[2], 1.0F );
1953}
1954
1955
1957{
1959 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1960 (GLfloat) v[2], 1.0F );
1961}
1962
1963
1965{
1967 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1968 (GLfloat) v[2], 1.0F );
1969}
1970
1971
1973{
1975 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1976 (GLfloat) v[2], (GLfloat) v[3] );
1977}
1978
1979
1981{
1983 (*CC->API.RasterPos4f)( CC, v[0], v[1], v[2], v[3] );
1984}
1985
1986
1988{
1990 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1991 (GLfloat) v[2], (GLfloat) v[3] );
1992}
1993
1994
1996{
1998 (*CC->API.RasterPos4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
1999 (GLfloat) v[2], (GLfloat) v[3] );
2000}
2001
2002
2004{
2006 (*CC->API.ReadBuffer)( CC, mode );
2007}
2008
2009
2012{
2014 (*CC->API.ReadPixels)( CC, x, y, width, height, format, type, pixels );
2015}
2016
2017
2019{
2021 (*CC->API.Rectf)( CC, (GLfloat) x1, (GLfloat) y1,
2022 (GLfloat) x2, (GLfloat) y2 );
2023}
2024
2025
2027{
2029 (*CC->API.Rectf)( CC, x1, y1, x2, y2 );
2030}
2031
2032
2034{
2036 (*CC->API.Rectf)( CC, (GLfloat) x1, (GLfloat) y1,
2037 (GLfloat) x2, (GLfloat) y2 );
2038}
2039
2040
2042{
2044 (*CC->API.Rectf)( CC, (GLfloat) x1, (GLfloat) y1,
2045 (GLfloat) x2, (GLfloat) y2 );
2046}
2047
2048
2050{
2052 (*CC->API.Rectf)(CC, (GLfloat) v1[0], (GLfloat) v1[1],
2053 (GLfloat) v2[0], (GLfloat) v2[1]);
2054}
2055
2056
2058{
2060 (*CC->API.Rectf)(CC, v1[0], v1[1], v2[0], v2[1]);
2061}
2062
2063
2064void APIENTRY _mesa_Rectiv( const GLint *v1, const GLint *v2 )
2065{
2067 (*CC->API.Rectf)( CC, (GLfloat) v1[0], (GLfloat) v1[1],
2068 (GLfloat) v2[0], (GLfloat) v2[1] );
2069}
2070
2071
2073{
2075 (*CC->API.Rectf)(CC, (GLfloat) v1[0], (GLfloat) v1[1],
2076 (GLfloat) v2[0], (GLfloat) v2[1]);
2077}
2078
2079
2081{
2083 (*CC->API.Scissor)(CC, x, y, width, height);
2084}
2085
2086
2088{
2090 return (*CC->API.IsEnabled)( CC, cap );
2091}
2092
2093
2094
2096{
2098 (*CC->API.PushAttrib)(CC, mask);
2099}
2100
2101
2103{
2105 (*CC->API.PushClientAttrib)(CC, mask);
2106}
2107
2108
2110{
2112 (*CC->API.PushName)(CC, name);
2113}
2114
2115
2117{
2119 return (*CC->API.RenderMode)(CC, mode);
2120}
2121
2122
2124{
2126 (*CC->API.Rotatef)( CC, (GLfloat) angle,
2127 (GLfloat) x, (GLfloat) y, (GLfloat) z );
2128}
2129
2130
2132{
2134 (*CC->API.Rotatef)( CC, angle, x, y, z );
2135}
2136
2137
2139{
2141 (*CC->API.SelectBuffer)(CC, size, buffer);
2142}
2143
2144
2146{
2148 (*CC->API.Scalef)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z );
2149}
2150
2151
2153{
2155 (*CC->API.Scalef)( CC, x, y, z );
2156}
2157
2158
2160{
2162 (*CC->API.ShadeModel)(CC, mode);
2163}
2164
2165
2167{
2169 (*CC->API.StencilFunc)(CC, func, ref, mask);
2170}
2171
2172
2174{
2176 (*CC->API.StencilMask)(CC, mask);
2177}
2178
2179
2180void APIENTRY _mesa_StencilOp( GLenum fail, GLenum zfail, GLenum zpass )
2181{
2183 (*CC->API.StencilOp)(CC, fail, zfail, zpass);
2184}
2185
2186
2188{
2190 (*CC->API.TexCoord4f)( CC, (GLfloat) s, 0.0, 0.0, 1.0 );
2191}
2192
2193
2195{
2197 (*CC->API.TexCoord4f)( CC, s, 0.0, 0.0, 1.0 );
2198}
2199
2200
2202{
2204 (*CC->API.TexCoord4f)( CC, (GLfloat) s, 0.0, 0.0, 1.0 );
2205}
2206
2207
2209{
2211 (*CC->API.TexCoord4f)( CC, (GLfloat) s, 0.0, 0.0, 1.0 );
2212}
2213
2214
2216{
2218 (*CC->API.TexCoord2f)( CC, (GLfloat) s, (GLfloat) t );
2219}
2220
2221
2223{
2225 (*CC->API.TexCoord2f)( CC, s, t );
2226}
2227
2228
2230{
2232 (*CC->API.TexCoord2f)( CC, (GLfloat) s, (GLfloat) t );
2233}
2234
2235
2237{
2239 (*CC->API.TexCoord2f)( CC, (GLfloat) s, (GLfloat) t );
2240}
2241
2242
2244{
2246 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t, (GLfloat) r, 1.0 );
2247}
2248
2249
2251{
2253 (*CC->API.TexCoord4f)( CC, s, t, r, 1.0 );
2254}
2255
2256
2258{
2260 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t,
2261 (GLfloat) r, 1.0 );
2262}
2263
2264
2266{
2268 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t,
2269 (GLfloat) r, 1.0 );
2270}
2271
2272
2274{
2276 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t,
2277 (GLfloat) r, (GLfloat) q );
2278}
2279
2280
2282{
2284 (*CC->API.TexCoord4f)( CC, s, t, r, q );
2285}
2286
2287
2289{
2291 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t,
2292 (GLfloat) r, (GLfloat) q );
2293}
2294
2295
2297{
2299 (*CC->API.TexCoord4f)( CC, (GLfloat) s, (GLfloat) t,
2300 (GLfloat) r, (GLfloat) q );
2301}
2302
2303
2305{
2307 (*CC->API.TexCoord4f)( CC, (GLfloat) *v, 0.0, 0.0, 1.0 );
2308}
2309
2310
2312{
2314 (*CC->API.TexCoord4f)( CC, *v, 0.0, 0.0, 1.0 );
2315}
2316
2317
2319{
2321 (*CC->API.TexCoord4f)( CC, *v, 0.0, 0.0, 1.0 );
2322}
2323
2324
2326{
2328 (*CC->API.TexCoord4f)( CC, (GLfloat) *v, 0.0, 0.0, 1.0 );
2329}
2330
2331
2333{
2335 (*CC->API.TexCoord2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2336}
2337
2338
2340{
2342 (*CC->API.TexCoord2f)( CC, v[0], v[1] );
2343}
2344
2345
2347{
2349 (*CC->API.TexCoord2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2350}
2351
2352
2354{
2356 (*CC->API.TexCoord2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2357}
2358
2359
2361{
2363 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2364 (GLfloat) v[2], 1.0 );
2365}
2366
2367
2369{
2371 (*CC->API.TexCoord4f)( CC, v[0], v[1], v[2], 1.0 );
2372}
2373
2374
2376{
2378 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2379 (GLfloat) v[2], 1.0 );
2380}
2381
2382
2384{
2386 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2387 (GLfloat) v[2], 1.0 );
2388}
2389
2390
2392{
2394 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2395 (GLfloat) v[2], (GLfloat) v[3] );
2396}
2397
2398
2400{
2402 (*CC->API.TexCoord4f)( CC, v[0], v[1], v[2], v[3] );
2403}
2404
2405
2407{
2409 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2410 (GLfloat) v[2], (GLfloat) v[3] );
2411}
2412
2413
2415{
2417 (*CC->API.TexCoord4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2418 (GLfloat) v[2], (GLfloat) v[3] );
2419}
2420
2421
2423 const GLvoid *ptr )
2424{
2426 (*CC->API.TexCoordPointer)(CC, size, type, stride, ptr);
2427}
2428
2429
2431{
2432 GLfloat p = (GLfloat) param;
2434 (*CC->API.TexGenfv)( CC, coord, pname, &p );
2435}
2436
2437
2439{
2441 (*CC->API.TexGenfv)( CC, coord, pname, &param );
2442}
2443
2444
2446{
2447 GLfloat p = (GLfloat) param;
2449 (*CC->API.TexGenfv)( CC, coord, pname, &p );
2450}
2451
2452
2454{
2455 GLfloat p[4];
2457 p[0] = params[0];
2458 p[1] = params[1];
2459 p[2] = params[2];
2460 p[3] = params[3];
2461 (*CC->API.TexGenfv)( CC, coord, pname, p );
2462}
2463
2464
2466{
2467 GLfloat p[4];
2469 p[0] = params[0];
2470 p[1] = params[1];
2471 p[2] = params[2];
2472 p[3] = params[3];
2473 (*CC->API.TexGenfv)( CC, coord, pname, p );
2474}
2475
2476
2478{
2480 (*CC->API.TexGenfv)( CC, coord, pname, params );
2481}
2482
2483
2484
2485
2487{
2489 (*CC->API.TexEnvfv)( CC, target, pname, &param );
2490}
2491
2492
2493
2495{
2496 GLfloat p[4];
2498 p[0] = (GLfloat) param;
2499 p[1] = p[2] = p[3] = 0.0;
2500 (*CC->API.TexEnvfv)( CC, target, pname, p );
2501}
2502
2503
2504
2506{
2508 (*CC->API.TexEnvfv)( CC, target, pname, param );
2509}
2510
2511
2512
2514{
2515 GLfloat p[4];
2517 p[0] = INT_TO_FLOAT( param[0] );
2518 p[1] = INT_TO_FLOAT( param[1] );
2519 p[2] = INT_TO_FLOAT( param[2] );
2520 p[3] = INT_TO_FLOAT( param[3] );
2521 (*CC->API.TexEnvfv)( CC, target, pname, p );
2522}
2523
2524
2528{
2529 struct gl_image *teximage;
2531 teximage = gl_unpack_image( CC, width, 1, format, type, pixels );
2532 (*CC->API.TexImage1D)( CC, target, level, internalformat,
2533 width, border, format, type, teximage );
2534}
2535
2536
2537
2541{
2542 struct gl_image *teximage;
2543
2545
2546 teximage = gl_unpack_image( CC, width, height, format, type, pixels );
2547 (*CC->API.TexImage2D)( CC, target, level, internalformat,
2548 width, height, border, format, type, teximage );
2549}
2550
2551
2553{
2555 (*CC->API.TexParameterfv)( CC, target, pname, &param );
2556}
2557
2558
2560{
2561 GLfloat fparam[4];
2563 fparam[0] = (GLfloat) param;
2564 fparam[1] = fparam[2] = fparam[3] = 0.0;
2565 (*CC->API.TexParameterfv)( CC, target, pname, fparam );
2566}
2567
2568
2570{
2572 (*CC->API.TexParameterfv)( CC, target, pname, params );
2573}
2574
2575
2577{
2578 GLfloat p[4];
2581 p[0] = INT_TO_FLOAT( params[0] );
2582 p[1] = INT_TO_FLOAT( params[1] );
2583 p[2] = INT_TO_FLOAT( params[2] );
2584 p[3] = INT_TO_FLOAT( params[3] );
2585 }
2586 else {
2587 p[0] = (GLfloat) params[0];
2588 p[1] = (GLfloat) params[1];
2589 p[2] = (GLfloat) params[2];
2590 p[3] = (GLfloat) params[3];
2591 }
2592 (*CC->API.TexParameterfv)( CC, target, pname, p );
2593}
2594
2595
2598 GLenum type, const GLvoid *pixels )
2599{
2600 struct gl_image *image;
2603 (*CC->API.TexSubImage1D)( CC, target, level, xoffset, width,
2604 format, type, image );
2605}
2606
2607
2612 const GLvoid *pixels )
2613{
2614 struct gl_image *image;
2617 (*CC->API.TexSubImage2D)( CC, target, level, xoffset, yoffset,
2619}
2620
2621
2623{
2625 (*CC->API.Translatef)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z );
2626}
2627
2628
2630{
2632 (*CC->API.Translatef)( CC, x, y, z );
2633}
2634
2635
2637{
2639 (*CC->API.Vertex2f)( CC, (GLfloat) x, (GLfloat) y );
2640}
2641
2642
2644{
2646 (*CC->API.Vertex2f)( CC, x, y );
2647}
2648
2649
2651{
2653 (*CC->API.Vertex2f)( CC, (GLfloat) x, (GLfloat) y );
2654}
2655
2656
2658{
2660 (*CC->API.Vertex2f)( CC, (GLfloat) x, (GLfloat) y );
2661}
2662
2663
2665{
2667 (*CC->API.Vertex3f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z );
2668}
2669
2670
2672{
2674 (*CC->API.Vertex3f)( CC, x, y, z );
2675}
2676
2677
2679{
2681 (*CC->API.Vertex3f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z );
2682}
2683
2684
2686{
2688 (*CC->API.Vertex3f)( CC, (GLfloat) x, (GLfloat) y, (GLfloat) z );
2689}
2690
2691
2693{
2695 (*CC->API.Vertex4f)( CC, (GLfloat) x, (GLfloat) y,
2696 (GLfloat) z, (GLfloat) w );
2697}
2698
2699
2701{
2703 (*CC->API.Vertex4f)( CC, x, y, z, w );
2704}
2705
2706
2708{
2710 (*CC->API.Vertex4f)( CC, (GLfloat) x, (GLfloat) y,
2711 (GLfloat) z, (GLfloat) w );
2712}
2713
2714
2716{
2718 (*CC->API.Vertex4f)( CC, (GLfloat) x, (GLfloat) y,
2719 (GLfloat) z, (GLfloat) w );
2720}
2721
2722
2724{
2726 (*CC->API.Vertex2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2727}
2728
2729
2731{
2733 (*CC->API.Vertex2f)( CC, v[0], v[1] );
2734}
2735
2736
2738{
2740 (*CC->API.Vertex2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2741}
2742
2743
2745{
2747 (*CC->API.Vertex2f)( CC, (GLfloat) v[0], (GLfloat) v[1] );
2748}
2749
2750
2752{
2754 (*CC->API.Vertex3f)( CC, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
2755}
2756
2757
2759{
2761 (*CC->API.Vertex3fv)( CC, v );
2762}
2763
2764
2766{
2768 (*CC->API.Vertex3f)( CC, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
2769}
2770
2771
2773{
2775 (*CC->API.Vertex3f)( CC, (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
2776}
2777
2778
2780{
2782 (*CC->API.Vertex4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2783 (GLfloat) v[2], (GLfloat) v[3] );
2784}
2785
2786
2788{
2790 (*CC->API.Vertex4f)( CC, v[0], v[1], v[2], v[3] );
2791}
2792
2793
2795{
2797 (*CC->API.Vertex4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2798 (GLfloat) v[2], (GLfloat) v[3] );
2799}
2800
2801
2803{
2805 (*CC->API.Vertex4f)( CC, (GLfloat) v[0], (GLfloat) v[1],
2806 (GLfloat) v[2], (GLfloat) v[3] );
2807}
2808
2809
2811 const GLvoid *ptr )
2812{
2814 (*CC->API.VertexPointer)(CC, size, type, stride, ptr);
2815}
2816
2817
2819{
2821 (*CC->API.Viewport)( CC, x, y, width, height );
2822}
2823
2824/* GL_EXT_paletted_texture */
2825
2828 const GLvoid *table )
2829{
2830 struct gl_image *image;
2833 (*CC->API.ColorTable)( CC, target, internalFormat, image );
2834 if (image->RefCount == 0)
2836}
2837
2838
2841 const GLvoid *data )
2842{
2843 struct gl_image *image;
2846 (*CC->API.ColorSubTable)( CC, target, start, image );
2847 if (image->RefCount == 0)
2849}
2850
2853{
2855 (*CC->API.GetColorTable)(CC, target, format, type, table);
2856}
2857
2858
2860 GLint *params )
2861{
2863 (*CC->API.GetColorTableParameteriv)(CC, target, pname, params);
2864}
2865
2866
2868 GLfloat *params )
2869{
2870 GLint iparams;
2872 *params = (GLfloat) iparams;
2873}
2874/* End GL_EXT_paletted_texture */
#define nz(x)
Definition: list.h:37
Definition: _map.h:48
GLcontext * CC
UINT op
Definition: effect.c:236
void APIENTRY _mesa_Color4usv(const GLushort *v)
Definition: api.c:440
void APIENTRY _mesa_GetMaterialiv(GLenum face, GLenum pname, GLint *params)
Definition: api.c:931
void APIENTRY _mesa_Normal3s(GLshort nx, GLshort ny, GLshort nz)
Definition: api.c:1585
void APIENTRY _mesa_RasterPos2f(GLfloat x, GLfloat y)
Definition: api.c:1830
void APIENTRY _mesa_Vertex2s(GLshort x, GLshort y)
Definition: api.c:2657
void APIENTRY _mesa_Map1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
Definition: api.c:1358
void APIENTRY _mesa_RasterPos2sv(const GLshort *v)
Definition: api.c:1931
void APIENTRY _mesa_DisableClientState(GLenum cap)
Definition: api.c:571
void APIENTRY _mesa_CopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
Definition: api.c:479
void APIENTRY _mesa_TexGend(GLenum coord, GLenum pname, GLdouble param)
Definition: api.c:2430
void APIENTRY _mesa_IndexPointer(GLenum type, GLsizei stride, const GLvoid *ptr)
Definition: api.c:1145
void APIENTRY _mesa_Indexdv(const GLdouble *c)
Definition: api.c:1101
void APIENTRY _mesa_RasterPos2d(GLdouble x, GLdouble y)
Definition: api.c:1823
void APIENTRY _mesa_RasterPos3d(GLdouble x, GLdouble y, GLdouble z)
Definition: api.c:1851
void APIENTRY _mesa_Finish(void)
Definition: api.c:750
void APIENTRY _mesa_Color4fv(const GLfloat *v)
Definition: api.c:402
GLboolean APIENTRY _mesa_IsList(GLuint list)
Definition: api.c:1167
void APIENTRY _mesa_Materialiv(GLenum face, GLenum pname, const GLint *params)
Definition: api.c:1473
void APIENTRY _mesa_PushClientAttrib(GLbitfield mask)
Definition: api.c:2102
void APIENTRY _mesa_Color4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
Definition: api.c:296
void APIENTRY _mesa_RasterPos4iv(const GLint *v)
Definition: api.c:1987
void APIENTRY _mesa_TexCoord4sv(const GLshort *v)
Definition: api.c:2414
void APIENTRY _mesa_Vertex2iv(const GLint *v)
Definition: api.c:2737
void APIENTRY _mesa_MapGrid1d(GLint un, GLdouble u1, GLdouble u2)
Definition: api.c:1418
void APIENTRY _mesa_Color3iv(const GLint *v)
Definition: api.c:346
void APIENTRY _mesa_MapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
Definition: api.c:1432
void APIENTRY _mesa_GetColorTableParameterfvEXT(GLenum target, GLenum pname, GLfloat *params)
Definition: api.c:2867
void APIENTRY _mesa_Color3ub(GLubyte red, GLubyte green, GLubyte blue)
Definition: api.c:243
void APIENTRY _mesa_Accum(GLenum op, GLfloat value)
Definition: api.c:41
void APIENTRY _mesa_Color4i(GLint red, GLint green, GLint blue, GLint alpha)
Definition: api.c:288
void APIENTRY _mesa_AlphaFunc(GLenum func, GLclampf ref)
Definition: api.c:47
void APIENTRY _mesa_Color3ubv(const GLubyte *v)
Definition: api.c:362
void APIENTRY _mesa_TexCoord2i(GLint s, GLint t)
Definition: api.c:2229
void APIENTRY _mesa_ClearStencil(GLint s)
Definition: api.c:186
void APIENTRY _mesa_DrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
Definition: api.c:600
void APIENTRY _mesa_Color3us(GLushort red, GLushort green, GLushort blue)
Definition: api.c:258
void APIENTRY _mesa_ClearDepth(GLclampd depth)
Definition: api.c:179
void APIENTRY _mesa_TexCoord3s(GLshort s, GLshort t, GLshort r)
Definition: api.c:2265
void APIENTRY _mesa_Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
Definition: api.c:303
void APIENTRY _mesa_TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
Definition: api.c:2538
void APIENTRY _mesa_Normal3i(GLint nx, GLint ny, GLint nz)
Definition: api.c:1577
void APIENTRY _mesa_Color3b(GLbyte red, GLbyte green, GLbyte blue)
Definition: api.c:205
void APIENTRY _mesa_RasterPos2i(GLint x, GLint y)
Definition: api.c:1837
GLint APIENTRY _mesa_RenderMode(GLenum mode)
Definition: api.c:2116
void APIENTRY _mesa_RasterPos3dv(const GLdouble *v)
Definition: api.c:1940
void APIENTRY _mesa_Vertex4fv(const GLfloat *v)
Definition: api.c:2787
void APIENTRY _mesa_EvalCoord1d(GLdouble u)
Definition: api.c:638
void APIENTRY _mesa_RasterPos2iv(const GLint *v)
Definition: api.c:1924
void APIENTRY _mesa_TexCoord3dv(const GLdouble *v)
Definition: api.c:2360
void APIENTRY _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
Definition: api.c:2422
void APIENTRY _mesa_Normal3fv(const GLfloat *v)
Definition: api.c:1612
void APIENTRY _mesa_TexCoord2s(GLshort s, GLshort t)
Definition: api.c:2236
void APIENTRY _mesa_LineWidth(GLfloat width)
Definition: api.c:1294
void APIENTRY _mesa_ReadBuffer(GLenum mode)
Definition: api.c:2003
void APIENTRY _mesa_RasterPos3sv(const GLshort *v)
Definition: api.c:1964
void APIENTRY _mesa_Normal3f(GLfloat nx, GLfloat ny, GLfloat nz)
Definition: api.c:1557
void APIENTRY _mesa_TexCoord3i(GLint s, GLint t, GLint r)
Definition: api.c:2257
void APIENTRY _mesa_GetMapiv(GLenum target, GLenum query, GLint *v)
Definition: api.c:917
void APIENTRY _mesa_RasterPos3i(GLint x, GLint y, GLint z)
Definition: api.c:1865
void APIENTRY _mesa_Materiali(GLenum face, GLenum pname, GLint param)
Definition: api.c:1457
void APIENTRY _mesa_Vertex4dv(const GLdouble *v)
Definition: api.c:2779
void APIENTRY _mesa_Color4dv(const GLdouble *v)
Definition: api.c:394
void APIENTRY _mesa_CallList(GLuint list)
Definition: api.c:132
void APIENTRY _mesa_TexCoord1s(GLshort s)
Definition: api.c:2208
void APIENTRY _mesa_Color3s(GLshort red, GLshort green, GLshort blue)
Definition: api.c:235
void APIENTRY _mesa_Color4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
Definition: api.c:274
GLenum APIENTRY _mesa_GetError(void)
Definition: api.c:864
void APIENTRY _mesa_PixelTransferf(GLenum pname, GLfloat param)
Definition: api.c:1732
void APIENTRY _mesa_Vertex2dv(const GLdouble *v)
Definition: api.c:2723
void APIENTRY _mesa_ClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Definition: api.c:153
void APIENTRY _mesa_Lightf(GLenum light, GLenum pname, GLfloat param)
Definition: api.c:1181
void APIENTRY _mesa_RasterPos4sv(const GLshort *v)
Definition: api.c:1995
void APIENTRY _mesa_Indexiv(const GLint *c)
Definition: api.c:1115
void APIENTRY _mesa_GetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
Definition: api.c:1002
void APIENTRY _mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
Definition: api.c:2010
void APIENTRY _mesa_RasterPos3fv(const GLfloat *v)
Definition: api.c:1948
void APIENTRY _mesa_GetLightfv(GLenum light, GLenum pname, GLfloat *params)
Definition: api.c:889
void APIENTRY _mesa_EdgeFlagv(const GLboolean *flag)
Definition: api.c:722
void APIENTRY _mesa_RasterPos4i(GLint x, GLint y, GLint z, GLint w)
Definition: api.c:1894
void APIENTRY _mesa_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
Definition: api.c:2026
void APIENTRY _mesa_Vertex2f(GLfloat x, GLfloat y)
Definition: api.c:2643
void APIENTRY _mesa_TexCoord2d(GLdouble s, GLdouble t)
Definition: api.c:2215
void APIENTRY _mesa_Materialf(GLenum face, GLenum pname, GLfloat param)
Definition: api.c:1449
void APIENTRY _mesa_LogicOp(GLenum opcode)
Definition: api.c:1350
void APIENTRY _mesa_PushName(GLuint name)
Definition: api.c:2109
void APIENTRY _mesa_Vertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
Definition: api.c:2715
void APIENTRY _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count)
Definition: api.c:578
void APIENTRY _mesa_ListBase(GLuint base)
Definition: api.c:1308
void APIENTRY _mesa_TexCoord2dv(const GLdouble *v)
Definition: api.c:2332
void APIENTRY _mesa_Color4bv(const GLbyte *v)
Definition: api.c:386
void APIENTRY _mesa_RasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
Definition: api.c:1902
void APIENTRY _mesa_Fogf(GLenum pname, GLfloat param)
Definition: api.c:764
void APIENTRY _mesa_PixelMapusv(GLenum map, GLint mapsize, const GLushort *values)
Definition: api.c:1698
void APIENTRY _mesa_Indexd(GLdouble c)
Definition: api.c:1064
void APIENTRY _mesa_DepthMask(GLboolean flag)
Definition: api.c:536
void APIENTRY _mesa_PopClientAttrib(void)
Definition: api.c:1787
void APIENTRY _mesa_Indexfv(const GLfloat *c)
Definition: api.c:1108
void APIENTRY _mesa_Normal3b(GLbyte nx, GLbyte ny, GLbyte nz)
Definition: api.c:1538
void APIENTRY _mesa_DeleteTextures(GLsizei n, const GLuint *textures)
Definition: api.c:557
void APIENTRY _mesa_Begin(GLenum mode)
Definition: api.c:68
void APIENTRY _mesa_Vertex4i(GLint x, GLint y, GLint z, GLint w)
Definition: api.c:2707
void APIENTRY _mesa_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
Definition: api.c:736
void APIENTRY _mesa_EnableClientState(GLenum cap)
Definition: api.c:615
void APIENTRY _mesa_Vertex3d(GLdouble x, GLdouble y, GLdouble z)
Definition: api.c:2664
void APIENTRY _mesa_RasterPos3s(GLshort x, GLshort y, GLshort z)
Definition: api.c:1872
void APIENTRY _mesa_EvalCoord2f(GLfloat u, GLfloat v)
Definition: api.c:673
void APIENTRY _mesa_PushMatrix(void)
Definition: api.c:1816
void APIENTRY _mesa_Hint(GLenum target, GLenum mode)
Definition: api.c:1057
void APIENTRY _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param)
Definition: api.c:2552
void APIENTRY _mesa_Rects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
Definition: api.c:2041
void APIENTRY _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
Definition: api.c:1152
void APIENTRY _mesa_Disable(GLenum cap)
Definition: api.c:564
void APIENTRY _mesa_Normal3dv(const GLdouble *v)
Definition: api.c:1601
void APIENTRY _mesa_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Definition: api.c:510
void APIENTRY _mesa_Translated(GLdouble x, GLdouble y, GLdouble z)
Definition: api.c:2622
void APIENTRY _mesa_ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Definition: api.c:448
void APIENTRY _mesa_DrawBuffer(GLenum mode)
Definition: api.c:585
void APIENTRY _mesa_GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
Definition: api.c:1025
void APIENTRY _mesa_Vertex2i(GLint x, GLint y)
Definition: api.c:2650
void APIENTRY _mesa_Rectsv(const GLshort *v1, const GLshort *v2)
Definition: api.c:2072
void APIENTRY _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
Definition: api.c:2576
void APIENTRY _mesa_Frustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearval, GLdouble farval)
Definition: api.c:821
void APIENTRY _mesa_DepthRange(GLclampd near_val, GLclampd far_val)
Definition: api.c:543
void APIENTRY _mesa_TexCoord2f(GLfloat s, GLfloat t)
Definition: api.c:2222
void APIENTRY _mesa_Normal3d(GLdouble nx, GLdouble ny, GLdouble nz)
Definition: api.c:1546
void APIENTRY _mesa_DeleteLists(GLuint list, GLsizei range)
Definition: api.c:550
void APIENTRY _mesa_GetPixelMapuiv(GLenum map, GLuint *values)
Definition: api.c:945
void APIENTRY _mesa_Color4sv(const GLshort *v)
Definition: api.c:417
void APIENTRY _mesa_PrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
Definition: api.c:1808
void APIENTRY _mesa_TexCoord1fv(const GLfloat *v)
Definition: api.c:2311
void APIENTRY _mesa_FrontFace(GLenum mode)
Definition: api.c:814
void APIENTRY _mesa_GetMapdv(GLenum target, GLenum query, GLdouble *v)
Definition: api.c:903
void APIENTRY _mesa_PolygonStipple(const GLubyte *mask)
Definition: api.c:1773
void APIENTRY _mesa_Translatef(GLfloat x, GLfloat y, GLfloat z)
Definition: api.c:2629
void APIENTRY _mesa_TexCoord2sv(const GLshort *v)
Definition: api.c:2353
void APIENTRY _mesa_PixelStorei(GLenum pname, GLint param)
Definition: api.c:1725
void APIENTRY _mesa_TexCoord1d(GLdouble s)
Definition: api.c:2187
void APIENTRY _mesa_SelectBuffer(GLsizei size, GLuint *buffer)
Definition: api.c:2138
void APIENTRY _mesa_Lightiv(GLenum light, GLenum pname, const GLint *params)
Definition: api.c:1206
void APIENTRY _mesa_TexCoord3fv(const GLfloat *v)
Definition: api.c:2368
void APIENTRY _mesa_Vertex3dv(const GLdouble *v)
Definition: api.c:2751
void APIENTRY _mesa_TexGeniv(GLenum coord, GLenum pname, const GLint *params)
Definition: api.c:2465
void APIENTRY _mesa_Rotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
Definition: api.c:2123
void APIENTRY _mesa_Fogfv(GLenum pname, const GLfloat *params)
Definition: api.c:779
void APIENTRY _mesa_TexCoord1f(GLfloat s)
Definition: api.c:2194
void APIENTRY _mesa_GetBooleanv(GLenum pname, GLboolean *params)
Definition: api.c:844
void APIENTRY _mesa_PointSize(GLfloat size)
Definition: api.c:1753
void APIENTRY _mesa_CopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
Definition: api.c:501
void APIENTRY _mesa_BindTexture(GLenum target, GLuint texture)
Definition: api.c:75
void APIENTRY _mesa_Color4iv(const GLint *v)
Definition: api.c:409
void APIENTRY _mesa_PushAttrib(GLbitfield mask)
Definition: api.c:2095
void APIENTRY _mesa_EvalCoord1fv(const GLfloat *u)
Definition: api.c:659
void APIENTRY _mesa_Vertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Definition: api.c:2700
void APIENTRY _mesa_LightModelf(GLenum pname, GLfloat param)
Definition: api.c:1247
void APIENTRY _mesa_LineStipple(GLint factor, GLushort pattern)
Definition: api.c:1301
void APIENTRY _mesa_Indexf(GLfloat c)
Definition: api.c:1071
void APIENTRY _mesa_Scalef(GLfloat x, GLfloat y, GLfloat z)
Definition: api.c:2152
void APIENTRY _mesa_GetColorTableEXT(GLenum target, GLenum format, GLenum type, GLvoid *table)
Definition: api.c:2851
void APIENTRY _mesa_Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
Definition: api.c:2080
void APIENTRY _mesa_MatrixMode(GLenum mode)
Definition: api.c:1504
void APIENTRY _mesa_Color3fv(const GLfloat *v)
Definition: api.c:339
void APIENTRY _mesa_TexCoord1i(GLint s)
Definition: api.c:2201
void APIENTRY _mesa_Indexi(GLint c)
Definition: api.c:1078
void APIENTRY _mesa_PolygonOffset(GLfloat factor, GLfloat units)
Definition: api.c:1767
GLboolean APIENTRY _mesa_IsTexture(GLuint texture)
Definition: api.c:1174
void APIENTRY _mesa_TexParameteri(GLenum target, GLenum pname, GLint param)
Definition: api.c:2559
void APIENTRY _mesa_ClipPlane(GLenum plane, const GLdouble *equation)
Definition: api.c:193
void APIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask)
Definition: api.c:2166
void APIENTRY _mesa_PassThrough(GLfloat token)
Definition: api.c:1663
void APIENTRY _mesa_GetPolygonStipple(GLubyte *mask)
Definition: api.c:966
void APIENTRY _mesa_GetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
Definition: api.c:1009
void APIENTRY _mesa_RasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
Definition: api.c:1879
void APIENTRY _mesa_LoadIdentity(void)
Definition: api.c:1315
void APIENTRY _mesa_GetPointerv(GLenum pname, GLvoid **params)
Definition: api.c:959
void APIENTRY _mesa_Scaled(GLdouble x, GLdouble y, GLdouble z)
Definition: api.c:2145
void APIENTRY _mesa_GetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
Definition: api.c:924
void APIENTRY _mesa_Lightfv(GLenum light, GLenum pname, const GLfloat *params)
Definition: api.c:1198
void APIENTRY _mesa_MapGrid1f(GLint un, GLfloat u1, GLfloat u2)
Definition: api.c:1425
void APIENTRY _mesa_PopAttrib(void)
Definition: api.c:1780
void APIENTRY _mesa_TexCoord4iv(const GLint *v)
Definition: api.c:2406
void APIENTRY _mesa_Indexsv(const GLshort *c)
Definition: api.c:1122
void APIENTRY _mesa_Fogiv(GLenum pname, const GLint *params)
Definition: api.c:786
void APIENTRY _mesa_Rectfv(const GLfloat *v1, const GLfloat *v2)
Definition: api.c:2057
void APIENTRY _mesa_Materialfv(GLenum face, GLenum pname, const GLfloat *params)
Definition: api.c:1466
void APIENTRY _mesa_EvalCoord2d(GLdouble u, GLdouble v)
Definition: api.c:666
void APIENTRY _mesa_Color3d(GLdouble red, GLdouble green, GLdouble blue)
Definition: api.c:213
void APIENTRY _mesa_TexCoord3f(GLfloat s, GLfloat t, GLfloat r)
Definition: api.c:2250
void APIENTRY _mesa_GetPixelMapusv(GLenum map, GLushort *values)
Definition: api.c:952
void APIENTRY _mesa_ColorTableEXT(GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
Definition: api.c:2826
void APIENTRY _mesa_Vertex4iv(const GLint *v)
Definition: api.c:2794
void APIENTRY _mesa_PopMatrix(void)
Definition: api.c:1794
void APIENTRY _mesa_TexCoord1dv(const GLdouble *v)
Definition: api.c:2304
void APIENTRY _mesa_PolygonMode(GLenum face, GLenum mode)
Definition: api.c:1760
void APIENTRY _mesa_GetDoublev(GLenum pname, GLdouble *params)
Definition: api.c:857
void APIENTRY _mesa_Vertex2fv(const GLfloat *v)
Definition: api.c:2730
void APIENTRY _mesa_ColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
Definition: api.c:2839
void APIENTRY _mesa_Vertex2d(GLdouble x, GLdouble y)
Definition: api.c:2636
void APIENTRY _mesa_GetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
Definition: api.c:981
void APIENTRY _mesa_GenTextures(GLsizei n, GLuint *textures)
Definition: api.c:837
void APIENTRY _mesa_StencilMask(GLuint mask)
Definition: api.c:2173
void APIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
Definition: api.c:592
void APIENTRY _mesa_Vertex3sv(const GLshort *v)
Definition: api.c:2772
void APIENTRY _mesa_PixelZoom(GLfloat xfactor, GLfloat yfactor)
Definition: api.c:1746
void APIENTRY _mesa_Color4uiv(const GLuint *v)
Definition: api.c:432
void APIENTRY _mesa_TexCoord1sv(const GLshort *v)
Definition: api.c:2325
void APIENTRY _mesa_TexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
Definition: api.c:2525
void APIENTRY _mesa_TexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
Definition: api.c:2273
void APIENTRY _mesa_CopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Definition: api.c:490
void APIENTRY _mesa_PopName(void)
Definition: api.c:1801
void APIENTRY _mesa_Map2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
Definition: api.c:1384
void APIENTRY _mesa_RasterPos3iv(const GLint *v)
Definition: api.c:1956
void APIENTRY _mesa_Color3f(GLfloat red, GLfloat green, GLfloat blue)
Definition: api.c:220
void APIENTRY _mesa_EvalMesh1(GLenum mode, GLint i1, GLint i2)
Definition: api.c:708
GLuint APIENTRY _mesa_GenLists(GLsizei range)
Definition: api.c:830
void APIENTRY _mesa_TexCoord2iv(const GLint *v)
Definition: api.c:2346
void APIENTRY _mesa_InitNames(void)
Definition: api.c:1160
void APIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
Definition: api.c:2180
void APIENTRY _mesa_GetMapfv(GLenum target, GLenum query, GLfloat *v)
Definition: api.c:910
void APIENTRY _mesa_MultMatrixf(const GLfloat *m)
Definition: api.c:1525
void APIENTRY _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
Definition: api.c:2810
void APIENTRY _mesa_Color3uiv(const GLuint *v)
Definition: api.c:369
void APIENTRY _mesa_TexCoord4i(GLint s, GLint t, GLint r, GLint q)
Definition: api.c:2288
void APIENTRY _mesa_EdgeFlagPointer(GLsizei stride, const GLboolean *ptr)
Definition: api.c:729
void APIENTRY _mesa_Rectiv(const GLint *v1, const GLint *v2)
Definition: api.c:2064
void APIENTRY _mesa_ClearIndex(GLfloat c)
Definition: api.c:162
void APIENTRY _mesa_EvalPoint1(GLint i)
Definition: api.c:694
void APIENTRY _mesa_EvalCoord1f(GLfloat u)
Definition: api.c:645
void APIENTRY _mesa_Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
Definition: api.c:2131
void APIENTRY _mesa_TexEnvi(GLenum target, GLenum pname, GLint param)
Definition: api.c:2494
void APIENTRY _mesa_ShadeModel(GLenum mode)
Definition: api.c:2159
void APIENTRY _mesa_GetColorTableParameterivEXT(GLenum target, GLenum pname, GLint *params)
Definition: api.c:2859
void APIENTRY _mesa_Enable(GLenum cap)
Definition: api.c:608
void APIENTRY _mesa_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Definition: api.c:169
void APIENTRY _mesa_Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Definition: api.c:282
void APIENTRY _mesa_TexCoord4fv(const GLfloat *v)
Definition: api.c:2399
void APIENTRY _mesa_Normal3sv(const GLshort *v)
Definition: api.c:1641
void APIENTRY _mesa_Indexs(GLshort c)
Definition: api.c:1085
void APIENTRY _mesa_Color3usv(const GLushort *v)
Definition: api.c:377
void APIENTRY _mesa_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
Definition: api.c:2608
void APIENTRY _mesa_CullFace(GLenum mode)
Definition: api.c:522
void APIENTRY _mesa_RasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Definition: api.c:1887
void APIENTRY _mesa_Vertex4sv(const GLshort *v)
Definition: api.c:2802
void APIENTRY _mesa_ColorMaterial(GLenum face, GLenum mode)
Definition: api.c:456
void APIENTRY _mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid *ptr)
Definition: api.c:1649
void APIENTRY _mesa_EdgeFlag(GLboolean flag)
Definition: api.c:715
void APIENTRY _mesa_TexEnvf(GLenum target, GLenum pname, GLfloat param)
Definition: api.c:2486
void APIENTRY _mesa_Color3bv(const GLbyte *v)
Definition: api.c:324
void APIENTRY _mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
Definition: api.c:463
void APIENTRY _mesa_TexGenf(GLenum coord, GLenum pname, GLfloat param)
Definition: api.c:2438
void APIENTRY _mesa_TexEnvfv(GLenum target, GLenum pname, const GLfloat *param)
Definition: api.c:2505
void APIENTRY _mesa_GetIntegerv(GLenum pname, GLint *params)
Definition: api.c:882
void APIENTRY _mesa_EvalCoord1dv(const GLdouble *u)
Definition: api.c:652
void APIENTRY _mesa_RasterPos3f(GLfloat x, GLfloat y, GLfloat z)
Definition: api.c:1858
void APIENTRY _mesa_Map2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
Definition: api.c:1401
void APIENTRY _mesa_TexCoord3sv(const GLshort *v)
Definition: api.c:2383
void APIENTRY _mesa_TexCoord3iv(const GLint *v)
<