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
/* automatically generated by rust-bindgen 0.54.1 */

pub use crate::no_render::*;

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _mjrRect {
    pub left: ::std::os::raw::c_int,
    pub bottom: ::std::os::raw::c_int,
    pub width: ::std::os::raw::c_int,
    pub height: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__mjrRect() {
    assert_eq!(
        ::std::mem::size_of::<_mjrRect>(),
        16usize,
        concat!("Size of: ", stringify!(_mjrRect))
    );
    assert_eq!(
        ::std::mem::align_of::<_mjrRect>(),
        4usize,
        concat!("Alignment of ", stringify!(_mjrRect))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrRect>())).left as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrRect),
            "::",
            stringify!(left)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrRect>())).bottom as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrRect),
            "::",
            stringify!(bottom)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrRect>())).width as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrRect),
            "::",
            stringify!(width)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrRect>())).height as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrRect),
            "::",
            stringify!(height)
        )
    );
}
pub type mjrRect = _mjrRect;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _mjrContext {
    pub lineWidth: f32,
    pub shadowClip: f32,
    pub shadowScale: f32,
    pub fogStart: f32,
    pub fogEnd: f32,
    pub fogRGBA: [f32; 4usize],
    pub shadowSize: ::std::os::raw::c_int,
    pub offWidth: ::std::os::raw::c_int,
    pub offHeight: ::std::os::raw::c_int,
    pub offSamples: ::std::os::raw::c_int,
    pub fontScale: ::std::os::raw::c_int,
    pub auxWidth: [::std::os::raw::c_int; 10usize],
    pub auxHeight: [::std::os::raw::c_int; 10usize],
    pub auxSamples: [::std::os::raw::c_int; 10usize],
    pub offFBO: ::std::os::raw::c_uint,
    pub offFBO_r: ::std::os::raw::c_uint,
    pub offColor: ::std::os::raw::c_uint,
    pub offColor_r: ::std::os::raw::c_uint,
    pub offDepthStencil: ::std::os::raw::c_uint,
    pub offDepthStencil_r: ::std::os::raw::c_uint,
    pub shadowFBO: ::std::os::raw::c_uint,
    pub shadowTex: ::std::os::raw::c_uint,
    pub auxFBO: [::std::os::raw::c_uint; 10usize],
    pub auxFBO_r: [::std::os::raw::c_uint; 10usize],
    pub auxColor: [::std::os::raw::c_uint; 10usize],
    pub auxColor_r: [::std::os::raw::c_uint; 10usize],
    pub ntexture: ::std::os::raw::c_int,
    pub textureType: [::std::os::raw::c_int; 100usize],
    pub texture: [::std::os::raw::c_uint; 100usize],
    pub basePlane: ::std::os::raw::c_uint,
    pub baseMesh: ::std::os::raw::c_uint,
    pub baseHField: ::std::os::raw::c_uint,
    pub baseBuiltin: ::std::os::raw::c_uint,
    pub baseFontNormal: ::std::os::raw::c_uint,
    pub baseFontShadow: ::std::os::raw::c_uint,
    pub baseFontBig: ::std::os::raw::c_uint,
    pub rangePlane: ::std::os::raw::c_int,
    pub rangeMesh: ::std::os::raw::c_int,
    pub rangeHField: ::std::os::raw::c_int,
    pub rangeBuiltin: ::std::os::raw::c_int,
    pub rangeFont: ::std::os::raw::c_int,
    pub nskin: ::std::os::raw::c_int,
    pub skinvertVBO: *mut ::std::os::raw::c_uint,
    pub skinnormalVBO: *mut ::std::os::raw::c_uint,
    pub skintexcoordVBO: *mut ::std::os::raw::c_uint,
    pub skinfaceVBO: *mut ::std::os::raw::c_uint,
    pub charWidth: [::std::os::raw::c_int; 127usize],
    pub charWidthBig: [::std::os::raw::c_int; 127usize],
    pub charHeight: ::std::os::raw::c_int,
    pub charHeightBig: ::std::os::raw::c_int,
    pub glewInitialized: ::std::os::raw::c_int,
    pub windowAvailable: ::std::os::raw::c_int,
    pub windowSamples: ::std::os::raw::c_int,
    pub windowStereo: ::std::os::raw::c_int,
    pub windowDoublebuffer: ::std::os::raw::c_int,
    pub currentBuffer: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__mjrContext() {
    assert_eq!(
        ::std::mem::size_of::<_mjrContext>(),
        2304usize,
        concat!("Size of: ", stringify!(_mjrContext))
    );
    assert_eq!(
        ::std::mem::align_of::<_mjrContext>(),
        8usize,
        concat!("Alignment of ", stringify!(_mjrContext))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).lineWidth as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(lineWidth)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).shadowClip as *const _ as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(shadowClip)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).shadowScale as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(shadowScale)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).fogStart as *const _ as usize
        },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(fogStart)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).fogEnd as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(fogEnd)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).fogRGBA as *const _ as usize },
        20usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(fogRGBA)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).shadowSize as *const _ as usize
        },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(shadowSize)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offWidth as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offWidth)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offHeight as *const _ as usize
        },
        44usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offHeight)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offSamples as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offSamples)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).fontScale as *const _ as usize
        },
        52usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(fontScale)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxWidth as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxWidth)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxHeight as *const _ as usize
        },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxHeight)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxSamples as *const _ as usize
        },
        136usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxSamples)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).offFBO as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offFBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offFBO_r as *const _ as usize
        },
        180usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offFBO_r)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offColor as *const _ as usize
        },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offColor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offColor_r as *const _ as usize
        },
        188usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offColor_r)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offDepthStencil as *const _ as usize
        },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offDepthStencil)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).offDepthStencil_r as *const _
                as usize
        },
        196usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(offDepthStencil_r)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).shadowFBO as *const _ as usize
        },
        200usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(shadowFBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).shadowTex as *const _ as usize
        },
        204usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(shadowTex)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).auxFBO as *const _ as usize },
        208usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxFBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxFBO_r as *const _ as usize
        },
        248usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxFBO_r)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxColor as *const _ as usize
        },
        288usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxColor)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).auxColor_r as *const _ as usize
        },
        328usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(auxColor_r)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).ntexture as *const _ as usize
        },
        368usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(ntexture)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).textureType as *const _ as usize
        },
        372usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(textureType)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).texture as *const _ as usize },
        772usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(texture)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).basePlane as *const _ as usize
        },
        1172usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(basePlane)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseMesh as *const _ as usize
        },
        1176usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseMesh)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseHField as *const _ as usize
        },
        1180usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseHField)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseBuiltin as *const _ as usize
        },
        1184usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseBuiltin)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseFontNormal as *const _ as usize
        },
        1188usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseFontNormal)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseFontShadow as *const _ as usize
        },
        1192usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseFontShadow)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).baseFontBig as *const _ as usize
        },
        1196usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(baseFontBig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).rangePlane as *const _ as usize
        },
        1200usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(rangePlane)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).rangeMesh as *const _ as usize
        },
        1204usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(rangeMesh)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).rangeHField as *const _ as usize
        },
        1208usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(rangeHField)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).rangeBuiltin as *const _ as usize
        },
        1212usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(rangeBuiltin)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).rangeFont as *const _ as usize
        },
        1216usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(rangeFont)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_mjrContext>())).nskin as *const _ as usize },
        1220usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(nskin)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).skinvertVBO as *const _ as usize
        },
        1224usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(skinvertVBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).skinnormalVBO as *const _ as usize
        },
        1232usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(skinnormalVBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).skintexcoordVBO as *const _ as usize
        },
        1240usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(skintexcoordVBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).skinfaceVBO as *const _ as usize
        },
        1248usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(skinfaceVBO)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).charWidth as *const _ as usize
        },
        1256usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(charWidth)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).charWidthBig as *const _ as usize
        },
        1764usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(charWidthBig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).charHeight as *const _ as usize
        },
        2272usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(charHeight)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).charHeightBig as *const _ as usize
        },
        2276usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(charHeightBig)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).glewInitialized as *const _ as usize
        },
        2280usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(glewInitialized)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).windowAvailable as *const _ as usize
        },
        2284usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(windowAvailable)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).windowSamples as *const _ as usize
        },
        2288usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(windowSamples)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).windowStereo as *const _ as usize
        },
        2292usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(windowStereo)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).windowDoublebuffer as *const _
                as usize
        },
        2296usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(windowDoublebuffer)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_mjrContext>())).currentBuffer as *const _ as usize
        },
        2300usize,
        concat!(
            "Offset of field: ",
            stringify!(_mjrContext),
            "::",
            stringify!(currentBuffer)
        )
    );
}
pub type mjrContext = _mjrContext;
extern "C" {
    pub fn mjr_defaultContext(con: *mut mjrContext);
}
extern "C" {
    pub fn mjr_makeContext(
        m: *const mjModel,
        con: *mut mjrContext,
        fontscale: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mjr_changeFont(fontscale: ::std::os::raw::c_int, con: *mut mjrContext);
}
extern "C" {
    pub fn mjr_addAux(
        index: ::std::os::raw::c_int,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        samples: ::std::os::raw::c_int,
        con: *mut mjrContext,
    );
}
extern "C" {
    pub fn mjr_freeContext(con: *mut mjrContext);
}
extern "C" {
    pub fn mjr_uploadTexture(
        m: *const mjModel,
        con: *const mjrContext,
        texid: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mjr_uploadMesh(
        m: *const mjModel,
        con: *const mjrContext,
        meshid: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mjr_uploadHField(
        m: *const mjModel,
        con: *const mjrContext,
        hfieldid: ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn mjr_restoreBuffer(con: *const mjrContext);
}
extern "C" {
    pub fn mjr_setBuffer(framebuffer: ::std::os::raw::c_int, con: *mut mjrContext);
}
extern "C" {
    pub fn mjr_readPixels(
        rgb: *mut ::std::os::raw::c_uchar,
        depth: *mut f32,
        viewport: mjrRect,
        con: *const mjrContext,
    );
}
extern "C" {
    pub fn mjr_drawPixels(
        rgb: *const ::std::os::raw::c_uchar,
        depth: *const f32,
        viewport: mjrRect,
        con: *const mjrContext,
    );
}
extern "C" {
    pub fn mjr_blitBuffer(
        src: mjrRect,
        dst: mjrRect,
        flg_color: ::std::os::raw::c_int,
        flg_depth: ::std::os::raw::c_int,
        con: *const mjrContext,
    );
}
extern "C" {
    pub fn mjr_setAux(index: ::std::os::raw::c_int, con: *const mjrContext);
}
extern "C" {
    pub fn mjr_blitAux(
        index: ::std::os::raw::c_int,
        src: mjrRect,
        left: ::std::os::raw::c_int,
        bottom: ::std::os::raw::c_int,
        con: *const mjrContext,
    );
}
extern "C" {
    pub fn mjr_text(
        font: ::std::os::raw::c_int,
        txt: *const ::std::os::raw::c_char,
        con: *const mjrContext,
        x: f32,
        y: f32,
        r: f32,
        g: f32,
        b: f32,
    );
}
extern "C" {
    pub fn mjr_overlay(
        font: ::std::os::raw::c_int,
        gridpos: ::std::os::raw::c_int,
        viewport: mjrRect,
        overlay: *const ::std::os::raw::c_char,
        overlay2: *const ::std::os::raw::c_char,
        con: *const mjrContext,
    );
}
extern "C" {
    pub fn mjr_maxViewport(con: *const mjrContext) -> mjrRect;
}
extern "C" {
    pub fn mjr_rectangle(viewport: mjrRect, r: f32, g: f32, b: f32, a: f32);
}
extern "C" {
    pub fn mjr_figure(viewport: mjrRect, fig: *mut mjvFigure, con: *const mjrContext);
}
extern "C" {
    pub fn mjr_render(viewport: mjrRect, scn: *mut mjvScene, con: *const mjrContext);
}
extern "C" {
    pub fn mjr_finish();
}
extern "C" {
    pub fn mjr_getError() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mjr_findRect(
        x: ::std::os::raw::c_int,
        y: ::std::os::raw::c_int,
        nrect: ::std::os::raw::c_int,
        rect: *const mjrRect,
    ) -> ::std::os::raw::c_int;
}