summaryrefslogtreecommitdiffstats
path: root/opengl/java/android/opengl/GLES10.java
blob: fed84d509a54ca5532a7ee2943b2b1745f1ef10a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
/*
**
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/

// This source file is automatically generated

package android.opengl;

import java.nio.Buffer;

public class GLES10 {
    public static final int GL_ADD                                   = 0x0104;
    public static final int GL_ALIASED_LINE_WIDTH_RANGE              = 0x846E;
    public static final int GL_ALIASED_POINT_SIZE_RANGE              = 0x846D;
    public static final int GL_ALPHA                                 = 0x1906;
    public static final int GL_ALPHA_BITS                            = 0x0D55;
    public static final int GL_ALPHA_TEST                            = 0x0BC0;
    public static final int GL_ALWAYS                                = 0x0207;
    public static final int GL_AMBIENT                               = 0x1200;
    public static final int GL_AMBIENT_AND_DIFFUSE                   = 0x1602;
    public static final int GL_AND                                   = 0x1501;
    public static final int GL_AND_INVERTED                          = 0x1504;
    public static final int GL_AND_REVERSE                           = 0x1502;
    public static final int GL_BACK                                  = 0x0405;
    public static final int GL_BLEND                                 = 0x0BE2;
    public static final int GL_BLUE_BITS                             = 0x0D54;
    public static final int GL_BYTE                                  = 0x1400;
    public static final int GL_CCW                                   = 0x0901;
    public static final int GL_CLAMP_TO_EDGE                         = 0x812F;
    public static final int GL_CLEAR                                 = 0x1500;
    public static final int GL_COLOR_ARRAY                           = 0x8076;
    public static final int GL_COLOR_BUFFER_BIT                      = 0x4000;
    public static final int GL_COLOR_LOGIC_OP                        = 0x0BF2;
    public static final int GL_COLOR_MATERIAL                        = 0x0B57;
    public static final int GL_COMPRESSED_TEXTURE_FORMATS            = 0x86A3;
    public static final int GL_CONSTANT_ATTENUATION                  = 0x1207;
    public static final int GL_COPY                                  = 0x1503;
    public static final int GL_COPY_INVERTED                         = 0x150C;
    public static final int GL_CULL_FACE                             = 0x0B44;
    public static final int GL_CW                                    = 0x0900;
    public static final int GL_DECAL                                 = 0x2101;
    public static final int GL_DECR                                  = 0x1E03;
    public static final int GL_DEPTH_BITS                            = 0x0D56;
    public static final int GL_DEPTH_BUFFER_BIT                      = 0x0100;
    public static final int GL_DEPTH_TEST                            = 0x0B71;
    public static final int GL_DIFFUSE                               = 0x1201;
    public static final int GL_DITHER                                = 0x0BD0;
    public static final int GL_DONT_CARE                             = 0x1100;
    public static final int GL_DST_ALPHA                             = 0x0304;
    public static final int GL_DST_COLOR                             = 0x0306;
    public static final int GL_EMISSION                              = 0x1600;
    public static final int GL_EQUAL                                 = 0x0202;
    public static final int GL_EQUIV                                 = 0x1509;
    public static final int GL_EXP                                   = 0x0800;
    public static final int GL_EXP2                                  = 0x0801;
    public static final int GL_EXTENSIONS                            = 0x1F03;
    public static final int GL_FALSE                                 = 0;
    public static final int GL_FASTEST                               = 0x1101;
    public static final int GL_FIXED                                 = 0x140C;
    public static final int GL_FLAT                                  = 0x1D00;
    public static final int GL_FLOAT                                 = 0x1406;
    public static final int GL_FOG                                   = 0x0B60;
    public static final int GL_FOG_COLOR                             = 0x0B66;
    public static final int GL_FOG_DENSITY                           = 0x0B62;
    public static final int GL_FOG_END                               = 0x0B64;
    public static final int GL_FOG_HINT                              = 0x0C54;
    public static final int GL_FOG_MODE                              = 0x0B65;
    public static final int GL_FOG_START                             = 0x0B63;
    public static final int GL_FRONT                                 = 0x0404;
    public static final int GL_FRONT_AND_BACK                        = 0x0408;
    public static final int GL_GEQUAL                                = 0x0206;
    public static final int GL_GREATER                               = 0x0204;
    public static final int GL_GREEN_BITS                            = 0x0D53;
    public static final int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES  = 0x8B9B;
    public static final int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES    = 0x8B9A;
    public static final int GL_INCR                                  = 0x1E02;
    public static final int GL_INVALID_ENUM                          = 0x0500;
    public static final int GL_INVALID_OPERATION                     = 0x0502;
    public static final int GL_INVALID_VALUE                         = 0x0501;
    public static final int GL_INVERT                                = 0x150A;
    public static final int GL_KEEP                                  = 0x1E00;
    public static final int GL_LEQUAL                                = 0x0203;
    public static final int GL_LESS                                  = 0x0201;
    public static final int GL_LIGHT_MODEL_AMBIENT                   = 0x0B53;
    public static final int GL_LIGHT_MODEL_TWO_SIDE                  = 0x0B52;
    public static final int GL_LIGHT0                                = 0x4000;
    public static final int GL_LIGHT1                                = 0x4001;
    public static final int GL_LIGHT2                                = 0x4002;
    public static final int GL_LIGHT3                                = 0x4003;
    public static final int GL_LIGHT4                                = 0x4004;
    public static final int GL_LIGHT5                                = 0x4005;
    public static final int GL_LIGHT6                                = 0x4006;
    public static final int GL_LIGHT7                                = 0x4007;
    public static final int GL_LIGHTING                              = 0x0B50;
    public static final int GL_LINE_LOOP                             = 0x0002;
    public static final int GL_LINE_SMOOTH                           = 0x0B20;
    public static final int GL_LINE_SMOOTH_HINT                      = 0x0C52;
    public static final int GL_LINE_STRIP                            = 0x0003;
    public static final int GL_LINEAR                                = 0x2601;
    public static final int GL_LINEAR_ATTENUATION                    = 0x1208;
    public static final int GL_LINEAR_MIPMAP_LINEAR                  = 0x2703;
    public static final int GL_LINEAR_MIPMAP_NEAREST                 = 0x2701;
    public static final int GL_LINES                                 = 0x0001;
    public static final int GL_LUMINANCE                             = 0x1909;
    public static final int GL_LUMINANCE_ALPHA                       = 0x190A;
    public static final int GL_MAX_ELEMENTS_INDICES                  = 0x80E9;
    public static final int GL_MAX_ELEMENTS_VERTICES                 = 0x80E8;
    public static final int GL_MAX_LIGHTS                            = 0x0D31;
    public static final int GL_MAX_MODELVIEW_STACK_DEPTH             = 0x0D36;
    public static final int GL_MAX_PROJECTION_STACK_DEPTH            = 0x0D38;
    public static final int GL_MAX_TEXTURE_SIZE                      = 0x0D33;
    public static final int GL_MAX_TEXTURE_STACK_DEPTH               = 0x0D39;
    public static final int GL_MAX_TEXTURE_UNITS                     = 0x84E2;
    public static final int GL_MAX_VIEWPORT_DIMS                     = 0x0D3A;
    public static final int GL_MODELVIEW                             = 0x1700;
    public static final int GL_MODULATE                              = 0x2100;
    public static final int GL_MULTISAMPLE                           = 0x809D;
    public static final int GL_NAND                                  = 0x150E;
    public static final int GL_NEAREST                               = 0x2600;
    public static final int GL_NEAREST_MIPMAP_LINEAR                 = 0x2702;
    public static final int GL_NEAREST_MIPMAP_NEAREST                = 0x2700;
    public static final int GL_NEVER                                 = 0x0200;
    public static final int GL_NICEST                                = 0x1102;
    public static final int GL_NO_ERROR                              = 0;
    public static final int GL_NOOP                                  = 0x1505;
    public static final int GL_NOR                                   = 0x1508;
    public static final int GL_NORMAL_ARRAY                          = 0x8075;
    public static final int GL_NORMALIZE                             = 0x0BA1;
    public static final int GL_NOTEQUAL                              = 0x0205;
    public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS        = 0x86A2;
    public static final int GL_ONE                                   = 1;
    public static final int GL_ONE_MINUS_DST_ALPHA                   = 0x0305;
    public static final int GL_ONE_MINUS_DST_COLOR                   = 0x0307;
    public static final int GL_ONE_MINUS_SRC_ALPHA                   = 0x0303;
    public static final int GL_ONE_MINUS_SRC_COLOR                   = 0x0301;
    public static final int GL_OR                                    = 0x1507;
    public static final int GL_OR_INVERTED                           = 0x150D;
    public static final int GL_OR_REVERSE                            = 0x150B;
    public static final int GL_OUT_OF_MEMORY                         = 0x0505;
    public static final int GL_PACK_ALIGNMENT                        = 0x0D05;
    public static final int GL_PALETTE4_R5_G6_B5_OES                 = 0x8B92;
    public static final int GL_PALETTE4_RGB5_A1_OES                  = 0x8B94;
    public static final int GL_PALETTE4_RGB8_OES                     = 0x8B90;
    public static final int GL_PALETTE4_RGBA4_OES                    = 0x8B93;
    public static final int GL_PALETTE4_RGBA8_OES                    = 0x8B91;
    public static final int GL_PALETTE8_R5_G6_B5_OES                 = 0x8B97;
    public static final int GL_PALETTE8_RGB5_A1_OES                  = 0x8B99;
    public static final int GL_PALETTE8_RGB8_OES                     = 0x8B95;
    public static final int GL_PALETTE8_RGBA4_OES                    = 0x8B98;
    public static final int GL_PALETTE8_RGBA8_OES                    = 0x8B96;
    public static final int GL_PERSPECTIVE_CORRECTION_HINT           = 0x0C50;
    public static final int GL_POINT_SMOOTH                          = 0x0B10;
    public static final int GL_POINT_SMOOTH_HINT                     = 0x0C51;
    public static final int GL_POINTS                                = 0x0000;
    public static final int GL_POINT_FADE_THRESHOLD_SIZE             = 0x8128;
    public static final int GL_POINT_SIZE                            = 0x0B11;
    public static final int GL_POLYGON_OFFSET_FILL                   = 0x8037;
    public static final int GL_POLYGON_SMOOTH_HINT                   = 0x0C53;
    public static final int GL_POSITION                              = 0x1203;
    public static final int GL_PROJECTION                            = 0x1701;
    public static final int GL_QUADRATIC_ATTENUATION                 = 0x1209;
    public static final int GL_RED_BITS                              = 0x0D52;
    public static final int GL_RENDERER                              = 0x1F01;
    public static final int GL_REPEAT                                = 0x2901;
    public static final int GL_REPLACE                               = 0x1E01;
    public static final int GL_RESCALE_NORMAL                        = 0x803A;
    public static final int GL_RGB                                   = 0x1907;
    public static final int GL_RGBA                                  = 0x1908;
    public static final int GL_SAMPLE_ALPHA_TO_COVERAGE              = 0x809E;
    public static final int GL_SAMPLE_ALPHA_TO_ONE                   = 0x809F;
    public static final int GL_SAMPLE_COVERAGE                       = 0x80A0;
    public static final int GL_SCISSOR_TEST                          = 0x0C11;
    public static final int GL_SET                                   = 0x150F;
    public static final int GL_SHININESS                             = 0x1601;
    public static final int GL_SHORT                                 = 0x1402;
    public static final int GL_SMOOTH                                = 0x1D01;
    public static final int GL_SMOOTH_LINE_WIDTH_RANGE               = 0x0B22;
    public static final int GL_SMOOTH_POINT_SIZE_RANGE               = 0x0B12;
    public static final int GL_SPECULAR                              = 0x1202;
    public static final int GL_SPOT_CUTOFF                           = 0x1206;
    public static final int GL_SPOT_DIRECTION                        = 0x1204;
    public static final int GL_SPOT_EXPONENT                         = 0x1205;
    public static final int GL_SRC_ALPHA                             = 0x0302;
    public static final int GL_SRC_ALPHA_SATURATE                    = 0x0308;
    public static final int GL_SRC_COLOR                             = 0x0300;
    public static final int GL_STACK_OVERFLOW                        = 0x0503;
    public static final int GL_STACK_UNDERFLOW                       = 0x0504;
    public static final int GL_STENCIL_BITS                          = 0x0D57;
    public static final int GL_STENCIL_BUFFER_BIT                    = 0x0400;
    public static final int GL_STENCIL_TEST                          = 0x0B90;
    public static final int GL_SUBPIXEL_BITS                         = 0x0D50;
    public static final int GL_TEXTURE                               = 0x1702;
    public static final int GL_TEXTURE_2D                            = 0x0DE1;
    public static final int GL_TEXTURE_COORD_ARRAY                   = 0x8078;
    public static final int GL_TEXTURE_ENV                           = 0x2300;
    public static final int GL_TEXTURE_ENV_COLOR                     = 0x2201;
    public static final int GL_TEXTURE_ENV_MODE                      = 0x2200;
    public static final int GL_TEXTURE_MAG_FILTER                    = 0x2800;
    public static final int GL_TEXTURE_MIN_FILTER                    = 0x2801;
    public static final int GL_TEXTURE_WRAP_S                        = 0x2802;
    public static final int GL_TEXTURE_WRAP_T                        = 0x2803;
    public static final int GL_TEXTURE0                              = 0x84C0;
    public static final int GL_TEXTURE1                              = 0x84C1;
    public static final int GL_TEXTURE2                              = 0x84C2;
    public static final int GL_TEXTURE3                              = 0x84C3;
    public static final int GL_TEXTURE4                              = 0x84C4;
    public static final int GL_TEXTURE5                              = 0x84C5;
    public static final int GL_TEXTURE6                              = 0x84C6;
    public static final int GL_TEXTURE7                              = 0x84C7;
    public static final int GL_TEXTURE8                              = 0x84C8;
    public static final int GL_TEXTURE9                              = 0x84C9;
    public static final int GL_TEXTURE10                             = 0x84CA;
    public static final int GL_TEXTURE11                             = 0x84CB;
    public static final int GL_TEXTURE12                             = 0x84CC;
    public static final int GL_TEXTURE13                             = 0x84CD;
    public static final int GL_TEXTURE14                             = 0x84CE;
    public static final int GL_TEXTURE15                             = 0x84CF;
    public static final int GL_TEXTURE16                             = 0x84D0;
    public static final int GL_TEXTURE17                             = 0x84D1;
    public static final int GL_TEXTURE18                             = 0x84D2;
    public static final int GL_TEXTURE19                             = 0x84D3;
    public static final int GL_TEXTURE20                             = 0x84D4;
    public static final int GL_TEXTURE21                             = 0x84D5;
    public static final int GL_TEXTURE22                             = 0x84D6;
    public static final int GL_TEXTURE23                             = 0x84D7;
    public static final int GL_TEXTURE24                             = 0x84D8;
    public static final int GL_TEXTURE25                             = 0x84D9;
    public static final int GL_TEXTURE26                             = 0x84DA;
    public static final int GL_TEXTURE27                             = 0x84DB;
    public static final int GL_TEXTURE28                             = 0x84DC;
    public static final int GL_TEXTURE29                             = 0x84DD;
    public static final int GL_TEXTURE30                             = 0x84DE;
    public static final int GL_TEXTURE31                             = 0x84DF;
    public static final int GL_TRIANGLE_FAN                          = 0x0006;
    public static final int GL_TRIANGLE_STRIP                        = 0x0005;
    public static final int GL_TRIANGLES                             = 0x0004;
    public static final int GL_TRUE                                  = 1;
    public static final int GL_UNPACK_ALIGNMENT                      = 0x0CF5;
    public static final int GL_UNSIGNED_BYTE                         = 0x1401;
    public static final int GL_UNSIGNED_SHORT                        = 0x1403;
    public static final int GL_UNSIGNED_SHORT_4_4_4_4                = 0x8033;
    public static final int GL_UNSIGNED_SHORT_5_5_5_1                = 0x8034;
    public static final int GL_UNSIGNED_SHORT_5_6_5                  = 0x8363;
    public static final int GL_VENDOR                                = 0x1F00;
    public static final int GL_VERSION                               = 0x1F02;
    public static final int GL_VERTEX_ARRAY                          = 0x8074;
    public static final int GL_XOR                                   = 0x1506;
    public static final int GL_ZERO                                  = 0;

    native private static void _nativeClassInit();
    static {
        _nativeClassInit();
    }

    private static Buffer _colorPointer;
    private static Buffer _normalPointer;
    private static Buffer _texCoordPointer;
    private static Buffer _vertexPointer;

    // C function void glActiveTexture ( GLenum texture )

    public static native void glActiveTexture(
        int texture
    );

    // C function void glAlphaFunc ( GLenum func, GLclampf ref )

    public static native void glAlphaFunc(
        int func,
        float ref
    );

    // C function void glAlphaFuncx ( GLenum func, GLclampx ref )

    public static native void glAlphaFuncx(
        int func,
        int ref
    );

    // C function void glBindTexture ( GLenum target, GLuint texture )

    public static native void glBindTexture(
        int target,
        int texture
    );

    // C function void glBlendFunc ( GLenum sfactor, GLenum dfactor )

    public static native void glBlendFunc(
        int sfactor,
        int dfactor
    );

    // C function void glClear ( GLbitfield mask )

    public static native void glClear(
        int mask
    );

    // C function void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )

    public static native void glClearColor(
        float red,
        float green,
        float blue,
        float alpha
    );

    // C function void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha )

    public static native void glClearColorx(
        int red,
        int green,
        int blue,
        int alpha
    );

    // C function void glClearDepthf ( GLclampf depth )

    public static native void glClearDepthf(
        float depth
    );

    // C function void glClearDepthx ( GLclampx depth )

    public static native void glClearDepthx(
        int depth
    );

    // C function void glClearStencil ( GLint s )

    public static native void glClearStencil(
        int s
    );

    // C function void glClientActiveTexture ( GLenum texture )

    public static native void glClientActiveTexture(
        int texture
    );

    // C function void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )

    public static native void glColor4f(
        float red,
        float green,
        float blue,
        float alpha
    );

    // C function void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha )

    public static native void glColor4x(
        int red,
        int green,
        int blue,
        int alpha
    );

    // C function void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )

    public static native void glColorMask(
        boolean red,
        boolean green,
        boolean blue,
        boolean alpha
    );

    // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )

    private static native void glColorPointerBounds(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer,
        int remaining
    );

    public static void glColorPointer(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer
    ) {
        glColorPointerBounds(
            size,
            type,
            stride,
            pointer,
            pointer.remaining()
        );
        if ((size == 4) &&
            ((type == GL_FLOAT) ||
             (type == GL_UNSIGNED_BYTE) ||
             (type == GL_FIXED)) &&
            (stride >= 0)) {
            _colorPointer = pointer;
        }
    }

    // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data )

    public static native void glCompressedTexImage2D(
        int target,
        int level,
        int internalformat,
        int width,
        int height,
        int border,
        int imageSize,
        java.nio.Buffer data
    );

    // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data )

    public static native void glCompressedTexSubImage2D(
        int target,
        int level,
        int xoffset,
        int yoffset,
        int width,
        int height,
        int format,
        int imageSize,
        java.nio.Buffer data
    );

    // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border )

    public static native void glCopyTexImage2D(
        int target,
        int level,
        int internalformat,
        int x,
        int y,
        int width,
        int height,
        int border
    );

    // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height )

    public static native void glCopyTexSubImage2D(
        int target,
        int level,
        int xoffset,
        int yoffset,
        int x,
        int y,
        int width,
        int height
    );

    // C function void glCullFace ( GLenum mode )

    public static native void glCullFace(
        int mode
    );

    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )

    public static native void glDeleteTextures(
        int n,
        int[] textures,
        int offset
    );

    // C function void glDeleteTextures ( GLsizei n, const GLuint *textures )

    public static native void glDeleteTextures(
        int n,
        java.nio.IntBuffer textures
    );

    // C function void glDepthFunc ( GLenum func )

    public static native void glDepthFunc(
        int func
    );

    // C function void glDepthMask ( GLboolean flag )

    public static native void glDepthMask(
        boolean flag
    );

    // C function void glDepthRangef ( GLclampf zNear, GLclampf zFar )

    public static native void glDepthRangef(
        float zNear,
        float zFar
    );

    // C function void glDepthRangex ( GLclampx zNear, GLclampx zFar )

    public static native void glDepthRangex(
        int zNear,
        int zFar
    );

    // C function void glDisable ( GLenum cap )

    public static native void glDisable(
        int cap
    );

    // C function void glDisableClientState ( GLenum array )

    public static native void glDisableClientState(
        int array
    );

    // C function void glDrawArrays ( GLenum mode, GLint first, GLsizei count )

    public static native void glDrawArrays(
        int mode,
        int first,
        int count
    );

    // C function void glDrawElements ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices )

    public static native void glDrawElements(
        int mode,
        int count,
        int type,
        java.nio.Buffer indices
    );

    // C function void glEnable ( GLenum cap )

    public static native void glEnable(
        int cap
    );

    // C function void glEnableClientState ( GLenum array )

    public static native void glEnableClientState(
        int array
    );

    // C function void glFinish ( void )

    public static native void glFinish(
    );

    // C function void glFlush ( void )

    public static native void glFlush(
    );

    // C function void glFogf ( GLenum pname, GLfloat param )

    public static native void glFogf(
        int pname,
        float param
    );

    // C function void glFogfv ( GLenum pname, const GLfloat *params )

    public static native void glFogfv(
        int pname,
        float[] params,
        int offset
    );

    // C function void glFogfv ( GLenum pname, const GLfloat *params )

    public static native void glFogfv(
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glFogx ( GLenum pname, GLfixed param )

    public static native void glFogx(
        int pname,
        int param
    );

    // C function void glFogxv ( GLenum pname, const GLfixed *params )

    public static native void glFogxv(
        int pname,
        int[] params,
        int offset
    );

    // C function void glFogxv ( GLenum pname, const GLfixed *params )

    public static native void glFogxv(
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glFrontFace ( GLenum mode )

    public static native void glFrontFace(
        int mode
    );

    // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar )

    public static native void glFrustumf(
        float left,
        float right,
        float bottom,
        float top,
        float zNear,
        float zFar
    );

    // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar )

    public static native void glFrustumx(
        int left,
        int right,
        int bottom,
        int top,
        int zNear,
        int zFar
    );

    // C function void glGenTextures ( GLsizei n, GLuint *textures )

    public static native void glGenTextures(
        int n,
        int[] textures,
        int offset
    );

    // C function void glGenTextures ( GLsizei n, GLuint *textures )

    public static native void glGenTextures(
        int n,
        java.nio.IntBuffer textures
    );

    // C function GLenum glGetError ( void )

    public static native int glGetError(
    );

    // C function void glGetIntegerv ( GLenum pname, GLint *params )

    public static native void glGetIntegerv(
        int pname,
        int[] params,
        int offset
    );

    // C function void glGetIntegerv ( GLenum pname, GLint *params )

    public static native void glGetIntegerv(
        int pname,
        java.nio.IntBuffer params
    );

    // C function const GLubyte * glGetString ( GLenum name )

    public static native String glGetString(
        int name
    );
    // C function void glHint ( GLenum target, GLenum mode )

    public static native void glHint(
        int target,
        int mode
    );

    // C function void glLightModelf ( GLenum pname, GLfloat param )

    public static native void glLightModelf(
        int pname,
        float param
    );

    // C function void glLightModelfv ( GLenum pname, const GLfloat *params )

    public static native void glLightModelfv(
        int pname,
        float[] params,
        int offset
    );

    // C function void glLightModelfv ( GLenum pname, const GLfloat *params )

    public static native void glLightModelfv(
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glLightModelx ( GLenum pname, GLfixed param )

    public static native void glLightModelx(
        int pname,
        int param
    );

    // C function void glLightModelxv ( GLenum pname, const GLfixed *params )

    public static native void glLightModelxv(
        int pname,
        int[] params,
        int offset
    );

    // C function void glLightModelxv ( GLenum pname, const GLfixed *params )

    public static native void glLightModelxv(
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glLightf ( GLenum light, GLenum pname, GLfloat param )

    public static native void glLightf(
        int light,
        int pname,
        float param
    );

    // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params )

    public static native void glLightfv(
        int light,
        int pname,
        float[] params,
        int offset
    );

    // C function void glLightfv ( GLenum light, GLenum pname, const GLfloat *params )

    public static native void glLightfv(
        int light,
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glLightx ( GLenum light, GLenum pname, GLfixed param )

    public static native void glLightx(
        int light,
        int pname,
        int param
    );

    // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params )

    public static native void glLightxv(
        int light,
        int pname,
        int[] params,
        int offset
    );

    // C function void glLightxv ( GLenum light, GLenum pname, const GLfixed *params )

    public static native void glLightxv(
        int light,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glLineWidth ( GLfloat width )

    public static native void glLineWidth(
        float width
    );

    // C function void glLineWidthx ( GLfixed width )

    public static native void glLineWidthx(
        int width
    );

    // C function void glLoadIdentity ( void )

    public static native void glLoadIdentity(
    );

    // C function void glLoadMatrixf ( const GLfloat *m )

    public static native void glLoadMatrixf(
        float[] m,
        int offset
    );

    // C function void glLoadMatrixf ( const GLfloat *m )

    public static native void glLoadMatrixf(
        java.nio.FloatBuffer m
    );

    // C function void glLoadMatrixx ( const GLfixed *m )

    public static native void glLoadMatrixx(
        int[] m,
        int offset
    );

    // C function void glLoadMatrixx ( const GLfixed *m )

    public static native void glLoadMatrixx(
        java.nio.IntBuffer m
    );

    // C function void glLogicOp ( GLenum opcode )

    public static native void glLogicOp(
        int opcode
    );

    // C function void glMaterialf ( GLenum face, GLenum pname, GLfloat param )

    public static native void glMaterialf(
        int face,
        int pname,
        float param
    );

    // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params )

    public static native void glMaterialfv(
        int face,
        int pname,
        float[] params,
        int offset
    );

    // C function void glMaterialfv ( GLenum face, GLenum pname, const GLfloat *params )

    public static native void glMaterialfv(
        int face,
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glMaterialx ( GLenum face, GLenum pname, GLfixed param )

    public static native void glMaterialx(
        int face,
        int pname,
        int param
    );

    // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params )

    public static native void glMaterialxv(
        int face,
        int pname,
        int[] params,
        int offset
    );

    // C function void glMaterialxv ( GLenum face, GLenum pname, const GLfixed *params )

    public static native void glMaterialxv(
        int face,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glMatrixMode ( GLenum mode )

    public static native void glMatrixMode(
        int mode
    );

    // C function void glMultMatrixf ( const GLfloat *m )

    public static native void glMultMatrixf(
        float[] m,
        int offset
    );

    // C function void glMultMatrixf ( const GLfloat *m )

    public static native void glMultMatrixf(
        java.nio.FloatBuffer m
    );

    // C function void glMultMatrixx ( const GLfixed *m )

    public static native void glMultMatrixx(
        int[] m,
        int offset
    );

    // C function void glMultMatrixx ( const GLfixed *m )

    public static native void glMultMatrixx(
        java.nio.IntBuffer m
    );

    // C function void glMultiTexCoord4f ( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q )

    public static native void glMultiTexCoord4f(
        int target,
        float s,
        float t,
        float r,
        float q
    );

    // C function void glMultiTexCoord4x ( GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q )

    public static native void glMultiTexCoord4x(
        int target,
        int s,
        int t,
        int r,
        int q
    );

    // C function void glNormal3f ( GLfloat nx, GLfloat ny, GLfloat nz )

    public static native void glNormal3f(
        float nx,
        float ny,
        float nz
    );

    // C function void glNormal3x ( GLfixed nx, GLfixed ny, GLfixed nz )

    public static native void glNormal3x(
        int nx,
        int ny,
        int nz
    );

    // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer )

    private static native void glNormalPointerBounds(
        int type,
        int stride,
        java.nio.Buffer pointer,
        int remaining
    );

    public static void glNormalPointer(
        int type,
        int stride,
        java.nio.Buffer pointer
    ) {
        glNormalPointerBounds(
            type,
            stride,
            pointer,
            pointer.remaining()
        );
        if (((type == GL_FLOAT) ||
             (type == GL_BYTE) ||
             (type == GL_SHORT) ||
             (type == GL_FIXED)) &&
            (stride >= 0)) {
            _normalPointer = pointer;
        }
    }

    // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar )

    public static native void glOrthof(
        float left,
        float right,
        float bottom,
        float top,
        float zNear,
        float zFar
    );

    // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar )

    public static native void glOrthox(
        int left,
        int right,
        int bottom,
        int top,
        int zNear,
        int zFar
    );

    // C function void glPixelStorei ( GLenum pname, GLint param )

    public static native void glPixelStorei(
        int pname,
        int param
    );

    // C function void glPointSize ( GLfloat size )

    public static native void glPointSize(
        float size
    );

    // C function void glPointSizex ( GLfixed size )

    public static native void glPointSizex(
        int size
    );

    // C function void glPolygonOffset ( GLfloat factor, GLfloat units )

    public static native void glPolygonOffset(
        float factor,
        float units
    );

    // C function void glPolygonOffsetx ( GLfixed factor, GLfixed units )

    public static native void glPolygonOffsetx(
        int factor,
        int units
    );

    // C function void glPopMatrix ( void )

    public static native void glPopMatrix(
    );

    // C function void glPushMatrix ( void )

    public static native void glPushMatrix(
    );

    // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )

    public static native void glReadPixels(
        int x,
        int y,
        int width,
        int height,
        int format,
        int type,
        java.nio.Buffer pixels
    );

    // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z )

    public static native void glRotatef(
        float angle,
        float x,
        float y,
        float z
    );

    // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )

    public static native void glRotatex(
        int angle,
        int x,
        int y,
        int z
    );

    // C function void glSampleCoverage ( GLclampf value, GLboolean invert )

    public static native void glSampleCoverage(
        float value,
        boolean invert
    );

    // C function void glSampleCoveragex ( GLclampx value, GLboolean invert )

    public static native void glSampleCoveragex(
        int value,
        boolean invert
    );

    // C function void glScalef ( GLfloat x, GLfloat y, GLfloat z )

    public static native void glScalef(
        float x,
        float y,
        float z
    );

    // C function void glScalex ( GLfixed x, GLfixed y, GLfixed z )

    public static native void glScalex(
        int x,
        int y,
        int z
    );

    // C function void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height )

    public static native void glScissor(
        int x,
        int y,
        int width,
        int height
    );

    // C function void glShadeModel ( GLenum mode )

    public static native void glShadeModel(
        int mode
    );

    // C function void glStencilFunc ( GLenum func, GLint ref, GLuint mask )

    public static native void glStencilFunc(
        int func,
        int ref,
        int mask
    );

    // C function void glStencilMask ( GLuint mask )

    public static native void glStencilMask(
        int mask
    );

    // C function void glStencilOp ( GLenum fail, GLenum zfail, GLenum zpass )

    public static native void glStencilOp(
        int fail,
        int zfail,
        int zpass
    );

    // C function void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )

    private static native void glTexCoordPointerBounds(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer,
        int remaining
    );

    public static void glTexCoordPointer(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer
    ) {
        glTexCoordPointerBounds(
            size,
            type,
            stride,
            pointer,
            pointer.remaining()
        );
        if (((size == 2) ||
             (size == 3) ||
             (size == 4)) &&
            ((type == GL_FLOAT) ||
             (type == GL_BYTE) ||
             (type == GL_SHORT) ||
             (type == GL_FIXED)) &&
            (stride >= 0)) {
            _texCoordPointer = pointer;
        }
    }

    // C function void glTexEnvf ( GLenum target, GLenum pname, GLfloat param )

    public static native void glTexEnvf(
        int target,
        int pname,
        float param
    );

    // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params )

    public static native void glTexEnvfv(
        int target,
        int pname,
        float[] params,
        int offset
    );

    // C function void glTexEnvfv ( GLenum target, GLenum pname, const GLfloat *params )

    public static native void glTexEnvfv(
        int target,
        int pname,
        java.nio.FloatBuffer params
    );

    // C function void glTexEnvx ( GLenum target, GLenum pname, GLfixed param )

    public static native void glTexEnvx(
        int target,
        int pname,
        int param
    );

    // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params )

    public static native void glTexEnvxv(
        int target,
        int pname,
        int[] params,
        int offset
    );

    // C function void glTexEnvxv ( GLenum target, GLenum pname, const GLfixed *params )

    public static native void glTexEnvxv(
        int target,
        int pname,
        java.nio.IntBuffer params
    );

    // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )

    public static native void glTexImage2D(
        int target,
        int level,
        int internalformat,
        int width,
        int height,
        int border,
        int format,
        int type,
        java.nio.Buffer pixels
    );

    // C function void glTexParameterf ( GLenum target, GLenum pname, GLfloat param )

    public static native void glTexParameterf(
        int target,
        int pname,
        float param
    );

    // C function void glTexParameterx ( GLenum target, GLenum pname, GLfixed param )

    public static native void glTexParameterx(
        int target,
        int pname,
        int param
    );

    // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )

    public static native void glTexSubImage2D(
        int target,
        int level,
        int xoffset,
        int yoffset,
        int width,
        int height,
        int format,
        int type,
        java.nio.Buffer pixels
    );

    // C function void glTranslatef ( GLfloat x, GLfloat y, GLfloat z )

    public static native void glTranslatef(
        float x,
        float y,
        float z
    );

    // C function void glTranslatex ( GLfixed x, GLfixed y, GLfixed z )

    public static native void glTranslatex(
        int x,
        int y,
        int z
    );

    // C function void glVertexPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )

    private static native void glVertexPointerBounds(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer,
        int remaining
    );

    public static void glVertexPointer(
        int size,
        int type,
        int stride,
        java.nio.Buffer pointer
    ) {
        glVertexPointerBounds(
            size,
            type,
            stride,
            pointer,
            pointer.remaining()
        );
        if (((size == 2) ||
             (size == 3) ||
             (size == 4)) &&
            ((type == GL_FLOAT) ||
             (type == GL_BYTE) ||
             (type == GL_SHORT) ||
             (type == GL_FIXED)) &&
            (stride >= 0)) {
            _vertexPointer = pointer;
        }
    }

    // C function void glViewport ( GLint x, GLint y, GLsizei width, GLsizei height )

    public static native void glViewport(
        int x,
        int y,
        int width,
        int height
    );

}