forked from mario-deluna/php-glfw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpglfw_constants.h
6609 lines (4966 loc) · 175 KB
/
phpglfw_constants.h
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
/**
* PHP-glfw
*
* Extension constants
*
* Copyright (c) 2018-2022 Mario Döring
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef PHP_GLFW_CONSTANTS_H
#define PHP_GLFW_CONSTANTS_H 1
#ifdef _WIN32
#define _GLFW_WIN32
#endif
#include <zend_API.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
void phpglfw_register_constants(INIT_FUNC_ARGS);
/**
* PHPGlfw Extension
* ----------------------------------------------------------------------------
*
*/
#define PHPGLFW_C_PHPGLFW_COMPILED_API "gl"
#define PHPGLFW_C_PHPGLFW_COMPILED_API_VERSION "4.1"
#define PHPGLFW_C_GL_SIZEOF_BYTE sizeof(GLbyte)
#define PHPGLFW_C_GL_SIZEOF_UNSIGNED_BYTE sizeof(GLubyte)
#define PHPGLFW_C_GL_SIZEOF_SHORT sizeof(GLshort)
#define PHPGLFW_C_GL_SIZEOF_UNSIGNED_SHORT sizeof(GLushort)
#define PHPGLFW_C_GL_SIZEOF_INT sizeof(GLint)
#define PHPGLFW_C_GL_SIZEOF_UNSIGNED_INT sizeof(GLuint)
#define PHPGLFW_C_GL_SIZEOF_FLOAT sizeof(GLfloat)
#define PHPGLFW_C_GL_SIZEOF_HALF_FLOAT sizeof(GLhalf)
#define PHPGLFW_C_GL_SIZEOF_DOUBLE sizeof(GLdouble)
/**
* AttribMask
* ----------------------------------------------------------------------------
*
*/
#ifdef GL_DEPTH_BUFFER_BIT
#define PHPGLFW_C_GL_DEPTH_BUFFER_BIT GL_DEPTH_BUFFER_BIT // => 0x00000100
#endif
#ifdef GL_STENCIL_BUFFER_BIT
#define PHPGLFW_C_GL_STENCIL_BUFFER_BIT GL_STENCIL_BUFFER_BIT // => 0x00000400
#endif
#ifdef GL_COLOR_BUFFER_BIT
#define PHPGLFW_C_GL_COLOR_BUFFER_BIT GL_COLOR_BUFFER_BIT // => 0x00004000
#endif
#ifdef GL_CURRENT_BIT
#define PHPGLFW_C_GL_CURRENT_BIT GL_CURRENT_BIT // => 0x00000001
#endif
#ifdef GL_POINT_BIT
#define PHPGLFW_C_GL_POINT_BIT GL_POINT_BIT // => 0x00000002
#endif
#ifdef GL_LINE_BIT
#define PHPGLFW_C_GL_LINE_BIT GL_LINE_BIT // => 0x00000004
#endif
#ifdef GL_POLYGON_BIT
#define PHPGLFW_C_GL_POLYGON_BIT GL_POLYGON_BIT // => 0x00000008
#endif
#ifdef GL_POLYGON_STIPPLE_BIT
#define PHPGLFW_C_GL_POLYGON_STIPPLE_BIT GL_POLYGON_STIPPLE_BIT // => 0x00000010
#endif
#ifdef GL_PIXEL_MODE_BIT
#define PHPGLFW_C_GL_PIXEL_MODE_BIT GL_PIXEL_MODE_BIT // => 0x00000020
#endif
#ifdef GL_LIGHTING_BIT
#define PHPGLFW_C_GL_LIGHTING_BIT GL_LIGHTING_BIT // => 0x00000040
#endif
#ifdef GL_FOG_BIT
#define PHPGLFW_C_GL_FOG_BIT GL_FOG_BIT // => 0x00000080
#endif
#ifdef GL_ACCUM_BUFFER_BIT
#define PHPGLFW_C_GL_ACCUM_BUFFER_BIT GL_ACCUM_BUFFER_BIT // => 0x00000200
#endif
#ifdef GL_VIEWPORT_BIT
#define PHPGLFW_C_GL_VIEWPORT_BIT GL_VIEWPORT_BIT // => 0x00000800
#endif
#ifdef GL_TRANSFORM_BIT
#define PHPGLFW_C_GL_TRANSFORM_BIT GL_TRANSFORM_BIT // => 0x00001000
#endif
#ifdef GL_ENABLE_BIT
#define PHPGLFW_C_GL_ENABLE_BIT GL_ENABLE_BIT // => 0x00002000
#endif
#ifdef GL_HINT_BIT
#define PHPGLFW_C_GL_HINT_BIT GL_HINT_BIT // => 0x00008000
#endif
#ifdef GL_EVAL_BIT
#define PHPGLFW_C_GL_EVAL_BIT GL_EVAL_BIT // => 0x00010000
#endif
#ifdef GL_LIST_BIT
#define PHPGLFW_C_GL_LIST_BIT GL_LIST_BIT // => 0x00020000
#endif
#ifdef GL_TEXTURE_BIT
#define PHPGLFW_C_GL_TEXTURE_BIT GL_TEXTURE_BIT // => 0x00040000
#endif
#ifdef GL_SCISSOR_BIT
#define PHPGLFW_C_GL_SCISSOR_BIT GL_SCISSOR_BIT // => 0x00080000
#endif
#ifdef GL_ALL_ATTRIB_BITS
#define PHPGLFW_C_GL_ALL_ATTRIB_BITS GL_ALL_ATTRIB_BITS // => 0xFFFFFFFF
#endif
#ifdef GL_MULTISAMPLE_BIT
#define PHPGLFW_C_GL_MULTISAMPLE_BIT GL_MULTISAMPLE_BIT // => 0x20000000
#endif
/**
* SpecialNumbers
* ----------------------------------------------------------------------------
* @vendor ARB
* Tokens whose numeric value is intrinsically meaningful
*/
#ifdef GL_FALSE
#define PHPGLFW_C_GL_FALSE GL_FALSE // => 0
#endif
#ifdef GL_TRUE
#define PHPGLFW_C_GL_TRUE GL_TRUE // => 1
#endif
#ifdef GL_ZERO
#define PHPGLFW_C_GL_ZERO GL_ZERO // => 0
#endif
#ifdef GL_ONE
#define PHPGLFW_C_GL_ONE GL_ONE // => 1
#endif
#ifdef GL_NONE
#define PHPGLFW_C_GL_NONE GL_NONE // => 0
#endif
#ifdef GL_NO_ERROR
#define PHPGLFW_C_GL_NO_ERROR GL_NO_ERROR // => 0
#endif
#ifdef GL_INVALID_INDEX
#define PHPGLFW_C_GL_INVALID_INDEX GL_INVALID_INDEX // => 0xFFFFFFFF
#endif
#ifdef GL_TIMEOUT_IGNORED
#define PHPGLFW_C_GL_TIMEOUT_IGNORED GL_TIMEOUT_IGNORED // => 0xFFFFFFFFFFFFFFFF
#endif
/**
* @vendor ARB
* Mostly OpenGL 1.0/1.1 enum assignments. Unused ranges should generally remain
* unused.
*/
#ifdef GL_POINTS
#define PHPGLFW_C_GL_POINTS GL_POINTS // => 0x0000
#endif
#ifdef GL_LINES
#define PHPGLFW_C_GL_LINES GL_LINES // => 0x0001
#endif
#ifdef GL_LINE_LOOP
#define PHPGLFW_C_GL_LINE_LOOP GL_LINE_LOOP // => 0x0002
#endif
#ifdef GL_LINE_STRIP
#define PHPGLFW_C_GL_LINE_STRIP GL_LINE_STRIP // => 0x0003
#endif
#ifdef GL_TRIANGLES
#define PHPGLFW_C_GL_TRIANGLES GL_TRIANGLES // => 0x0004
#endif
#ifdef GL_TRIANGLE_STRIP
#define PHPGLFW_C_GL_TRIANGLE_STRIP GL_TRIANGLE_STRIP // => 0x0005
#endif
#ifdef GL_TRIANGLE_FAN
#define PHPGLFW_C_GL_TRIANGLE_FAN GL_TRIANGLE_FAN // => 0x0006
#endif
#ifdef GL_QUADS
#define PHPGLFW_C_GL_QUADS GL_QUADS // => 0x0007
#endif
#ifdef GL_NEVER
#define PHPGLFW_C_GL_NEVER GL_NEVER // => 0x0200
#endif
#ifdef GL_LESS
#define PHPGLFW_C_GL_LESS GL_LESS // => 0x0201
#endif
#ifdef GL_EQUAL
#define PHPGLFW_C_GL_EQUAL GL_EQUAL // => 0x0202
#endif
#ifdef GL_LEQUAL
#define PHPGLFW_C_GL_LEQUAL GL_LEQUAL // => 0x0203
#endif
#ifdef GL_GREATER
#define PHPGLFW_C_GL_GREATER GL_GREATER // => 0x0204
#endif
#ifdef GL_NOTEQUAL
#define PHPGLFW_C_GL_NOTEQUAL GL_NOTEQUAL // => 0x0205
#endif
#ifdef GL_GEQUAL
#define PHPGLFW_C_GL_GEQUAL GL_GEQUAL // => 0x0206
#endif
#ifdef GL_ALWAYS
#define PHPGLFW_C_GL_ALWAYS GL_ALWAYS // => 0x0207
#endif
#ifdef GL_SRC_COLOR
#define PHPGLFW_C_GL_SRC_COLOR GL_SRC_COLOR // => 0x0300
#endif
#ifdef GL_ONE_MINUS_SRC_COLOR
#define PHPGLFW_C_GL_ONE_MINUS_SRC_COLOR GL_ONE_MINUS_SRC_COLOR // => 0x0301
#endif
#ifdef GL_SRC_ALPHA
#define PHPGLFW_C_GL_SRC_ALPHA GL_SRC_ALPHA // => 0x0302
#endif
#ifdef GL_ONE_MINUS_SRC_ALPHA
#define PHPGLFW_C_GL_ONE_MINUS_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA // => 0x0303
#endif
#ifdef GL_DST_ALPHA
#define PHPGLFW_C_GL_DST_ALPHA GL_DST_ALPHA // => 0x0304
#endif
#ifdef GL_ONE_MINUS_DST_ALPHA
#define PHPGLFW_C_GL_ONE_MINUS_DST_ALPHA GL_ONE_MINUS_DST_ALPHA // => 0x0305
#endif
#ifdef GL_DST_COLOR
#define PHPGLFW_C_GL_DST_COLOR GL_DST_COLOR // => 0x0306
#endif
#ifdef GL_ONE_MINUS_DST_COLOR
#define PHPGLFW_C_GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_DST_COLOR // => 0x0307
#endif
#ifdef GL_SRC_ALPHA_SATURATE
#define PHPGLFW_C_GL_SRC_ALPHA_SATURATE GL_SRC_ALPHA_SATURATE // => 0x0308
#endif
#ifdef GL_FRONT_LEFT
#define PHPGLFW_C_GL_FRONT_LEFT GL_FRONT_LEFT // => 0x0400
#endif
#ifdef GL_FRONT_RIGHT
#define PHPGLFW_C_GL_FRONT_RIGHT GL_FRONT_RIGHT // => 0x0401
#endif
#ifdef GL_BACK_LEFT
#define PHPGLFW_C_GL_BACK_LEFT GL_BACK_LEFT // => 0x0402
#endif
#ifdef GL_BACK_RIGHT
#define PHPGLFW_C_GL_BACK_RIGHT GL_BACK_RIGHT // => 0x0403
#endif
#ifdef GL_FRONT
#define PHPGLFW_C_GL_FRONT GL_FRONT // => 0x0404
#endif
#ifdef GL_BACK
#define PHPGLFW_C_GL_BACK GL_BACK // => 0x0405
#endif
#ifdef GL_LEFT
#define PHPGLFW_C_GL_LEFT GL_LEFT // => 0x0406
#endif
#ifdef GL_RIGHT
#define PHPGLFW_C_GL_RIGHT GL_RIGHT // => 0x0407
#endif
#ifdef GL_FRONT_AND_BACK
#define PHPGLFW_C_GL_FRONT_AND_BACK GL_FRONT_AND_BACK // => 0x0408
#endif
#ifdef GL_INVALID_ENUM
#define PHPGLFW_C_GL_INVALID_ENUM GL_INVALID_ENUM // => 0x0500
#endif
#ifdef GL_INVALID_VALUE
#define PHPGLFW_C_GL_INVALID_VALUE GL_INVALID_VALUE // => 0x0501
#endif
#ifdef GL_INVALID_OPERATION
#define PHPGLFW_C_GL_INVALID_OPERATION GL_INVALID_OPERATION // => 0x0502
#endif
#ifdef GL_OUT_OF_MEMORY
#define PHPGLFW_C_GL_OUT_OF_MEMORY GL_OUT_OF_MEMORY // => 0x0505
#endif
#ifdef GL_CW
#define PHPGLFW_C_GL_CW GL_CW // => 0x0900
#endif
#ifdef GL_CCW
#define PHPGLFW_C_GL_CCW GL_CCW // => 0x0901
#endif
#ifdef GL_POINT_SIZE
#define PHPGLFW_C_GL_POINT_SIZE GL_POINT_SIZE // => 0x0B11
#endif
#ifdef GL_POINT_SIZE_RANGE
#define PHPGLFW_C_GL_POINT_SIZE_RANGE GL_POINT_SIZE_RANGE // => 0x0B12
#endif
#ifdef GL_POINT_SIZE_GRANULARITY
#define PHPGLFW_C_GL_POINT_SIZE_GRANULARITY GL_POINT_SIZE_GRANULARITY // => 0x0B13
#endif
#ifdef GL_LINE_SMOOTH
#define PHPGLFW_C_GL_LINE_SMOOTH GL_LINE_SMOOTH // => 0x0B20
#endif
#ifdef GL_LINE_WIDTH
#define PHPGLFW_C_GL_LINE_WIDTH GL_LINE_WIDTH // => 0x0B21
#endif
#ifdef GL_LINE_WIDTH_RANGE
#define PHPGLFW_C_GL_LINE_WIDTH_RANGE GL_LINE_WIDTH_RANGE // => 0x0B22
#endif
#ifdef GL_LINE_WIDTH_GRANULARITY
#define PHPGLFW_C_GL_LINE_WIDTH_GRANULARITY GL_LINE_WIDTH_GRANULARITY // => 0x0B23
#endif
#ifdef GL_POLYGON_MODE
#define PHPGLFW_C_GL_POLYGON_MODE GL_POLYGON_MODE // => 0x0B40
#endif
#ifdef GL_POLYGON_SMOOTH
#define PHPGLFW_C_GL_POLYGON_SMOOTH GL_POLYGON_SMOOTH // => 0x0B41
#endif
#ifdef GL_CULL_FACE
#define PHPGLFW_C_GL_CULL_FACE GL_CULL_FACE // => 0x0B44
#endif
#ifdef GL_CULL_FACE_MODE
#define PHPGLFW_C_GL_CULL_FACE_MODE GL_CULL_FACE_MODE // => 0x0B45
#endif
#ifdef GL_FRONT_FACE
#define PHPGLFW_C_GL_FRONT_FACE GL_FRONT_FACE // => 0x0B46
#endif
#ifdef GL_DEPTH_RANGE
#define PHPGLFW_C_GL_DEPTH_RANGE GL_DEPTH_RANGE // => 0x0B70
#endif
#ifdef GL_DEPTH_TEST
#define PHPGLFW_C_GL_DEPTH_TEST GL_DEPTH_TEST // => 0x0B71
#endif
#ifdef GL_DEPTH_WRITEMASK
#define PHPGLFW_C_GL_DEPTH_WRITEMASK GL_DEPTH_WRITEMASK // => 0x0B72
#endif
#ifdef GL_DEPTH_CLEAR_VALUE
#define PHPGLFW_C_GL_DEPTH_CLEAR_VALUE GL_DEPTH_CLEAR_VALUE // => 0x0B73
#endif
#ifdef GL_DEPTH_FUNC
#define PHPGLFW_C_GL_DEPTH_FUNC GL_DEPTH_FUNC // => 0x0B74
#endif
#ifdef GL_STENCIL_TEST
#define PHPGLFW_C_GL_STENCIL_TEST GL_STENCIL_TEST // => 0x0B90
#endif
#ifdef GL_STENCIL_CLEAR_VALUE
#define PHPGLFW_C_GL_STENCIL_CLEAR_VALUE GL_STENCIL_CLEAR_VALUE // => 0x0B91
#endif
#ifdef GL_STENCIL_FUNC
#define PHPGLFW_C_GL_STENCIL_FUNC GL_STENCIL_FUNC // => 0x0B92
#endif
#ifdef GL_STENCIL_VALUE_MASK
#define PHPGLFW_C_GL_STENCIL_VALUE_MASK GL_STENCIL_VALUE_MASK // => 0x0B93
#endif
#ifdef GL_STENCIL_FAIL
#define PHPGLFW_C_GL_STENCIL_FAIL GL_STENCIL_FAIL // => 0x0B94
#endif
#ifdef GL_STENCIL_PASS_DEPTH_FAIL
#define PHPGLFW_C_GL_STENCIL_PASS_DEPTH_FAIL GL_STENCIL_PASS_DEPTH_FAIL // => 0x0B95
#endif
#ifdef GL_STENCIL_PASS_DEPTH_PASS
#define PHPGLFW_C_GL_STENCIL_PASS_DEPTH_PASS GL_STENCIL_PASS_DEPTH_PASS // => 0x0B96
#endif
#ifdef GL_STENCIL_REF
#define PHPGLFW_C_GL_STENCIL_REF GL_STENCIL_REF // => 0x0B97
#endif
#ifdef GL_STENCIL_WRITEMASK
#define PHPGLFW_C_GL_STENCIL_WRITEMASK GL_STENCIL_WRITEMASK // => 0x0B98
#endif
#ifdef GL_VIEWPORT
#define PHPGLFW_C_GL_VIEWPORT GL_VIEWPORT // => 0x0BA2
#endif
#ifdef GL_DITHER
#define PHPGLFW_C_GL_DITHER GL_DITHER // => 0x0BD0
#endif
#ifdef GL_BLEND_DST
#define PHPGLFW_C_GL_BLEND_DST GL_BLEND_DST // => 0x0BE0
#endif
#ifdef GL_BLEND_SRC
#define PHPGLFW_C_GL_BLEND_SRC GL_BLEND_SRC // => 0x0BE1
#endif
#ifdef GL_BLEND
#define PHPGLFW_C_GL_BLEND GL_BLEND // => 0x0BE2
#endif
#ifdef GL_LOGIC_OP_MODE
#define PHPGLFW_C_GL_LOGIC_OP_MODE GL_LOGIC_OP_MODE // => 0x0BF0
#endif
#ifdef GL_DRAW_BUFFER
#define PHPGLFW_C_GL_DRAW_BUFFER GL_DRAW_BUFFER // => 0x0C01
#endif
#ifdef GL_READ_BUFFER
#define PHPGLFW_C_GL_READ_BUFFER GL_READ_BUFFER // => 0x0C02
#endif
#ifdef GL_SCISSOR_BOX
#define PHPGLFW_C_GL_SCISSOR_BOX GL_SCISSOR_BOX // => 0x0C10
#endif
#ifdef GL_SCISSOR_TEST
#define PHPGLFW_C_GL_SCISSOR_TEST GL_SCISSOR_TEST // => 0x0C11
#endif
#ifdef GL_COLOR_CLEAR_VALUE
#define PHPGLFW_C_GL_COLOR_CLEAR_VALUE GL_COLOR_CLEAR_VALUE // => 0x0C22
#endif
#ifdef GL_COLOR_WRITEMASK
#define PHPGLFW_C_GL_COLOR_WRITEMASK GL_COLOR_WRITEMASK // => 0x0C23
#endif
#ifdef GL_DOUBLEBUFFER
#define PHPGLFW_C_GL_DOUBLEBUFFER GL_DOUBLEBUFFER // => 0x0C32
#endif
#ifdef GL_STEREO
#define PHPGLFW_C_GL_STEREO GL_STEREO // => 0x0C33
#endif
#ifdef GL_LINE_SMOOTH_HINT
#define PHPGLFW_C_GL_LINE_SMOOTH_HINT GL_LINE_SMOOTH_HINT // => 0x0C52
#endif
#ifdef GL_POLYGON_SMOOTH_HINT
#define PHPGLFW_C_GL_POLYGON_SMOOTH_HINT GL_POLYGON_SMOOTH_HINT // => 0x0C53
#endif
#ifdef GL_UNPACK_SWAP_BYTES
#define PHPGLFW_C_GL_UNPACK_SWAP_BYTES GL_UNPACK_SWAP_BYTES // => 0x0CF0
#endif
#ifdef GL_UNPACK_LSB_FIRST
#define PHPGLFW_C_GL_UNPACK_LSB_FIRST GL_UNPACK_LSB_FIRST // => 0x0CF1
#endif
#ifdef GL_UNPACK_ROW_LENGTH
#define PHPGLFW_C_GL_UNPACK_ROW_LENGTH GL_UNPACK_ROW_LENGTH // => 0x0CF2
#endif
#ifdef GL_UNPACK_SKIP_ROWS
#define PHPGLFW_C_GL_UNPACK_SKIP_ROWS GL_UNPACK_SKIP_ROWS // => 0x0CF3
#endif
#ifdef GL_UNPACK_SKIP_PIXELS
#define PHPGLFW_C_GL_UNPACK_SKIP_PIXELS GL_UNPACK_SKIP_PIXELS // => 0x0CF4
#endif
#ifdef GL_UNPACK_ALIGNMENT
#define PHPGLFW_C_GL_UNPACK_ALIGNMENT GL_UNPACK_ALIGNMENT // => 0x0CF5
#endif
#ifdef GL_PACK_SWAP_BYTES
#define PHPGLFW_C_GL_PACK_SWAP_BYTES GL_PACK_SWAP_BYTES // => 0x0D00
#endif
#ifdef GL_PACK_LSB_FIRST
#define PHPGLFW_C_GL_PACK_LSB_FIRST GL_PACK_LSB_FIRST // => 0x0D01
#endif
#ifdef GL_PACK_ROW_LENGTH
#define PHPGLFW_C_GL_PACK_ROW_LENGTH GL_PACK_ROW_LENGTH // => 0x0D02
#endif
#ifdef GL_PACK_SKIP_ROWS
#define PHPGLFW_C_GL_PACK_SKIP_ROWS GL_PACK_SKIP_ROWS // => 0x0D03
#endif
#ifdef GL_PACK_SKIP_PIXELS
#define PHPGLFW_C_GL_PACK_SKIP_PIXELS GL_PACK_SKIP_PIXELS // => 0x0D04
#endif
#ifdef GL_PACK_ALIGNMENT
#define PHPGLFW_C_GL_PACK_ALIGNMENT GL_PACK_ALIGNMENT // => 0x0D05
#endif
#ifdef GL_MAX_TEXTURE_SIZE
#define PHPGLFW_C_GL_MAX_TEXTURE_SIZE GL_MAX_TEXTURE_SIZE // => 0x0D33
#endif
#ifdef GL_MAX_VIEWPORT_DIMS
#define PHPGLFW_C_GL_MAX_VIEWPORT_DIMS GL_MAX_VIEWPORT_DIMS // => 0x0D3A
#endif
#ifdef GL_SUBPIXEL_BITS
#define PHPGLFW_C_GL_SUBPIXEL_BITS GL_SUBPIXEL_BITS // => 0x0D50
#endif
#ifdef GL_TEXTURE_1D
#define PHPGLFW_C_GL_TEXTURE_1D GL_TEXTURE_1D // => 0x0DE0
#endif
#ifdef GL_TEXTURE_2D
#define PHPGLFW_C_GL_TEXTURE_2D GL_TEXTURE_2D // => 0x0DE1
#endif
#ifdef GL_TEXTURE_WIDTH
#define PHPGLFW_C_GL_TEXTURE_WIDTH GL_TEXTURE_WIDTH // => 0x1000
#endif
#ifdef GL_TEXTURE_HEIGHT
#define PHPGLFW_C_GL_TEXTURE_HEIGHT GL_TEXTURE_HEIGHT // => 0x1001
#endif
#ifdef GL_TEXTURE_BORDER_COLOR
#define PHPGLFW_C_GL_TEXTURE_BORDER_COLOR GL_TEXTURE_BORDER_COLOR // => 0x1004
#endif
#ifdef GL_DONT_CARE
#define PHPGLFW_C_GL_DONT_CARE GL_DONT_CARE // => 0x1100
#endif
#ifdef GL_FASTEST
#define PHPGLFW_C_GL_FASTEST GL_FASTEST // => 0x1101
#endif
#ifdef GL_NICEST
#define PHPGLFW_C_GL_NICEST GL_NICEST // => 0x1102
#endif
#ifdef GL_BYTE
#define PHPGLFW_C_GL_BYTE GL_BYTE // => 0x1400
#endif
#ifdef GL_UNSIGNED_BYTE
#define PHPGLFW_C_GL_UNSIGNED_BYTE GL_UNSIGNED_BYTE // => 0x1401
#endif
#ifdef GL_SHORT
#define PHPGLFW_C_GL_SHORT GL_SHORT // => 0x1402
#endif
#ifdef GL_UNSIGNED_SHORT
#define PHPGLFW_C_GL_UNSIGNED_SHORT GL_UNSIGNED_SHORT // => 0x1403
#endif
#ifdef GL_INT
#define PHPGLFW_C_GL_INT GL_INT // => 0x1404
#endif
#ifdef GL_UNSIGNED_INT
#define PHPGLFW_C_GL_UNSIGNED_INT GL_UNSIGNED_INT // => 0x1405
#endif
#ifdef GL_FLOAT
#define PHPGLFW_C_GL_FLOAT GL_FLOAT // => 0x1406
#endif
#ifdef GL_STACK_OVERFLOW
#define PHPGLFW_C_GL_STACK_OVERFLOW GL_STACK_OVERFLOW // => 0x0503
#endif
#ifdef GL_STACK_UNDERFLOW
#define PHPGLFW_C_GL_STACK_UNDERFLOW GL_STACK_UNDERFLOW // => 0x0504
#endif
#ifdef GL_CLEAR
#define PHPGLFW_C_GL_CLEAR GL_CLEAR // => 0x1500
#endif
#ifdef GL_AND
#define PHPGLFW_C_GL_AND GL_AND // => 0x1501
#endif
#ifdef GL_AND_REVERSE
#define PHPGLFW_C_GL_AND_REVERSE GL_AND_REVERSE // => 0x1502
#endif
#ifdef GL_COPY
#define PHPGLFW_C_GL_COPY GL_COPY // => 0x1503
#endif
#ifdef GL_AND_INVERTED
#define PHPGLFW_C_GL_AND_INVERTED GL_AND_INVERTED // => 0x1504
#endif
#ifdef GL_NOOP
#define PHPGLFW_C_GL_NOOP GL_NOOP // => 0x1505
#endif
#ifdef GL_XOR
#define PHPGLFW_C_GL_XOR GL_XOR // => 0x1506
#endif
#ifdef GL_OR
#define PHPGLFW_C_GL_OR GL_OR // => 0x1507
#endif
#ifdef GL_NOR
#define PHPGLFW_C_GL_NOR GL_NOR // => 0x1508
#endif
#ifdef GL_EQUIV
#define PHPGLFW_C_GL_EQUIV GL_EQUIV // => 0x1509
#endif
#ifdef GL_INVERT
#define PHPGLFW_C_GL_INVERT GL_INVERT // => 0x150A
#endif
#ifdef GL_OR_REVERSE
#define PHPGLFW_C_GL_OR_REVERSE GL_OR_REVERSE // => 0x150B
#endif
#ifdef GL_COPY_INVERTED
#define PHPGLFW_C_GL_COPY_INVERTED GL_COPY_INVERTED // => 0x150C
#endif
#ifdef GL_OR_INVERTED
#define PHPGLFW_C_GL_OR_INVERTED GL_OR_INVERTED // => 0x150D
#endif
#ifdef GL_NAND
#define PHPGLFW_C_GL_NAND GL_NAND // => 0x150E
#endif
#ifdef GL_SET
#define PHPGLFW_C_GL_SET GL_SET // => 0x150F
#endif
#ifdef GL_TEXTURE
#define PHPGLFW_C_GL_TEXTURE GL_TEXTURE // => 0x1702
#endif
#ifdef GL_COLOR
#define PHPGLFW_C_GL_COLOR GL_COLOR // => 0x1800
#endif
#ifdef GL_DEPTH
#define PHPGLFW_C_GL_DEPTH GL_DEPTH // => 0x1801
#endif
#ifdef GL_STENCIL
#define PHPGLFW_C_GL_STENCIL GL_STENCIL // => 0x1802
#endif
#ifdef GL_STENCIL_INDEX
#define PHPGLFW_C_GL_STENCIL_INDEX GL_STENCIL_INDEX // => 0x1901
#endif
#ifdef GL_DEPTH_COMPONENT
#define PHPGLFW_C_GL_DEPTH_COMPONENT GL_DEPTH_COMPONENT // => 0x1902
#endif
#ifdef GL_RED
#define PHPGLFW_C_GL_RED GL_RED // => 0x1903
#endif
#ifdef GL_GREEN
#define PHPGLFW_C_GL_GREEN GL_GREEN // => 0x1904
#endif
#ifdef GL_BLUE
#define PHPGLFW_C_GL_BLUE GL_BLUE // => 0x1905
#endif
#ifdef GL_ALPHA
#define PHPGLFW_C_GL_ALPHA GL_ALPHA // => 0x1906
#endif
#ifdef GL_RGB
#define PHPGLFW_C_GL_RGB GL_RGB // => 0x1907
#endif
#ifdef GL_RGBA
#define PHPGLFW_C_GL_RGBA GL_RGBA // => 0x1908
#endif
#ifdef GL_POINT
#define PHPGLFW_C_GL_POINT GL_POINT // => 0x1B00
#endif
#ifdef GL_LINE
#define PHPGLFW_C_GL_LINE GL_LINE // => 0x1B01
#endif
#ifdef GL_FILL
#define PHPGLFW_C_GL_FILL GL_FILL // => 0x1B02
#endif
#ifdef GL_KEEP
#define PHPGLFW_C_GL_KEEP GL_KEEP // => 0x1E00
#endif
#ifdef GL_REPLACE
#define PHPGLFW_C_GL_REPLACE GL_REPLACE // => 0x1E01
#endif
#ifdef GL_INCR
#define PHPGLFW_C_GL_INCR GL_INCR // => 0x1E02
#endif
#ifdef GL_DECR
#define PHPGLFW_C_GL_DECR GL_DECR // => 0x1E03
#endif
#ifdef GL_VENDOR
#define PHPGLFW_C_GL_VENDOR GL_VENDOR // => 0x1F00
#endif
#ifdef GL_RENDERER
#define PHPGLFW_C_GL_RENDERER GL_RENDERER // => 0x1F01
#endif
#ifdef GL_VERSION
#define PHPGLFW_C_GL_VERSION GL_VERSION // => 0x1F02
#endif
#ifdef GL_EXTENSIONS
#define PHPGLFW_C_GL_EXTENSIONS GL_EXTENSIONS // => 0x1F03
#endif
#ifdef GL_NEAREST
#define PHPGLFW_C_GL_NEAREST GL_NEAREST // => 0x2600
#endif
#ifdef GL_LINEAR
#define PHPGLFW_C_GL_LINEAR GL_LINEAR // => 0x2601
#endif
#ifdef GL_NEAREST_MIPMAP_NEAREST
#define PHPGLFW_C_GL_NEAREST_MIPMAP_NEAREST GL_NEAREST_MIPMAP_NEAREST // => 0x2700
#endif
#ifdef GL_LINEAR_MIPMAP_NEAREST
#define PHPGLFW_C_GL_LINEAR_MIPMAP_NEAREST GL_LINEAR_MIPMAP_NEAREST // => 0x2701
#endif
#ifdef GL_NEAREST_MIPMAP_LINEAR
#define PHPGLFW_C_GL_NEAREST_MIPMAP_LINEAR GL_NEAREST_MIPMAP_LINEAR // => 0x2702
#endif
#ifdef GL_LINEAR_MIPMAP_LINEAR
#define PHPGLFW_C_GL_LINEAR_MIPMAP_LINEAR GL_LINEAR_MIPMAP_LINEAR // => 0x2703
#endif
#ifdef GL_TEXTURE_MAG_FILTER
#define PHPGLFW_C_GL_TEXTURE_MAG_FILTER GL_TEXTURE_MAG_FILTER // => 0x2800
#endif
#ifdef GL_TEXTURE_MIN_FILTER
#define PHPGLFW_C_GL_TEXTURE_MIN_FILTER GL_TEXTURE_MIN_FILTER // => 0x2801
#endif
#ifdef GL_TEXTURE_WRAP_S
#define PHPGLFW_C_GL_TEXTURE_WRAP_S GL_TEXTURE_WRAP_S // => 0x2802
#endif
#ifdef GL_TEXTURE_WRAP_T
#define PHPGLFW_C_GL_TEXTURE_WRAP_T GL_TEXTURE_WRAP_T // => 0x2803
#endif
#ifdef GL_REPEAT
#define PHPGLFW_C_GL_REPEAT GL_REPEAT // => 0x2901
#endif
#ifdef GL_QUAD_STRIP
#define PHPGLFW_C_GL_QUAD_STRIP GL_QUAD_STRIP // => 0x0008
#endif
#ifdef GL_POLYGON
#define PHPGLFW_C_GL_POLYGON GL_POLYGON // => 0x0009
#endif
#ifdef GL_ACCUM
#define PHPGLFW_C_GL_ACCUM GL_ACCUM // => 0x0100
#endif
#ifdef GL_LOAD
#define PHPGLFW_C_GL_LOAD GL_LOAD // => 0x0101
#endif
#ifdef GL_RETURN
#define PHPGLFW_C_GL_RETURN GL_RETURN // => 0x0102
#endif
#ifdef GL_MULT
#define PHPGLFW_C_GL_MULT GL_MULT // => 0x0103
#endif
#ifdef GL_ADD
#define PHPGLFW_C_GL_ADD GL_ADD // => 0x0104
#endif
#ifdef GL_AUX0
#define PHPGLFW_C_GL_AUX0 GL_AUX0 // => 0x0409
#endif
#ifdef GL_AUX1
#define PHPGLFW_C_GL_AUX1 GL_AUX1 // => 0x040A
#endif
#ifdef GL_AUX2
#define PHPGLFW_C_GL_AUX2 GL_AUX2 // => 0x040B
#endif
#ifdef GL_AUX3
#define PHPGLFW_C_GL_AUX3 GL_AUX3 // => 0x040C
#endif
#ifdef GL_2D
#define PHPGLFW_C_GL_2D GL_2D // => 0x0600
#endif
#ifdef GL_3D
#define PHPGLFW_C_GL_3D GL_3D // => 0x0601
#endif
#ifdef GL_3D_COLOR
#define PHPGLFW_C_GL_3D_COLOR GL_3D_COLOR // => 0x0602
#endif
#ifdef GL_3D_COLOR_TEXTURE
#define PHPGLFW_C_GL_3D_COLOR_TEXTURE GL_3D_COLOR_TEXTURE // => 0x0603
#endif
#ifdef GL_4D_COLOR_TEXTURE
#define PHPGLFW_C_GL_4D_COLOR_TEXTURE GL_4D_COLOR_TEXTURE // => 0x0604
#endif
#ifdef GL_PASS_THROUGH_TOKEN
#define PHPGLFW_C_GL_PASS_THROUGH_TOKEN GL_PASS_THROUGH_TOKEN // => 0x0700
#endif
#ifdef GL_POINT_TOKEN
#define PHPGLFW_C_GL_POINT_TOKEN GL_POINT_TOKEN // => 0x0701
#endif
#ifdef GL_LINE_TOKEN
#define PHPGLFW_C_GL_LINE_TOKEN GL_LINE_TOKEN // => 0x0702
#endif
#ifdef GL_POLYGON_TOKEN
#define PHPGLFW_C_GL_POLYGON_TOKEN GL_POLYGON_TOKEN // => 0x0703
#endif
#ifdef GL_BITMAP_TOKEN
#define PHPGLFW_C_GL_BITMAP_TOKEN GL_BITMAP_TOKEN // => 0x0704
#endif
#ifdef GL_DRAW_PIXEL_TOKEN
#define PHPGLFW_C_GL_DRAW_PIXEL_TOKEN GL_DRAW_PIXEL_TOKEN // => 0x0705
#endif
#ifdef GL_COPY_PIXEL_TOKEN
#define PHPGLFW_C_GL_COPY_PIXEL_TOKEN GL_COPY_PIXEL_TOKEN // => 0x0706
#endif
#ifdef GL_LINE_RESET_TOKEN
#define PHPGLFW_C_GL_LINE_RESET_TOKEN GL_LINE_RESET_TOKEN // => 0x0707
#endif
#ifdef GL_EXP
#define PHPGLFW_C_GL_EXP GL_EXP // => 0x0800
#endif
#ifdef GL_EXP2
#define PHPGLFW_C_GL_EXP2 GL_EXP2 // => 0x0801
#endif
#ifdef GL_COEFF
#define PHPGLFW_C_GL_COEFF GL_COEFF // => 0x0A00
#endif
#ifdef GL_ORDER
#define PHPGLFW_C_GL_ORDER GL_ORDER // => 0x0A01
#endif
#ifdef GL_DOMAIN
#define PHPGLFW_C_GL_DOMAIN GL_DOMAIN // => 0x0A02
#endif
#ifdef GL_PIXEL_MAP_I_TO_I
#define PHPGLFW_C_GL_PIXEL_MAP_I_TO_I GL_PIXEL_MAP_I_TO_I // => 0x0C70
#endif
#ifdef GL_PIXEL_MAP_S_TO_S
#define PHPGLFW_C_GL_PIXEL_MAP_S_TO_S GL_PIXEL_MAP_S_TO_S // => 0x0C71
#endif
#ifdef GL_PIXEL_MAP_I_TO_R
#define PHPGLFW_C_GL_PIXEL_MAP_I_TO_R GL_PIXEL_MAP_I_TO_R // => 0x0C72
#endif
#ifdef GL_PIXEL_MAP_I_TO_G
#define PHPGLFW_C_GL_PIXEL_MAP_I_TO_G GL_PIXEL_MAP_I_TO_G // => 0x0C73
#endif
#ifdef GL_PIXEL_MAP_I_TO_B
#define PHPGLFW_C_GL_PIXEL_MAP_I_TO_B GL_PIXEL_MAP_I_TO_B // => 0x0C74
#endif
#ifdef GL_PIXEL_MAP_I_TO_A
#define PHPGLFW_C_GL_PIXEL_MAP_I_TO_A GL_PIXEL_MAP_I_TO_A // => 0x0C75
#endif
#ifdef GL_PIXEL_MAP_R_TO_R
#define PHPGLFW_C_GL_PIXEL_MAP_R_TO_R GL_PIXEL_MAP_R_TO_R // => 0x0C76
#endif
#ifdef GL_PIXEL_MAP_G_TO_G
#define PHPGLFW_C_GL_PIXEL_MAP_G_TO_G GL_PIXEL_MAP_G_TO_G // => 0x0C77
#endif