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
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
extern crate csfml_system_sys;
extern crate csfml_window_sys;
use csfml_system_sys::*;
use csfml_window_sys::*;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum sfBlendFactor {
sfBlendFactorZero = 0,
sfBlendFactorOne = 1,
sfBlendFactorSrcColor = 2,
sfBlendFactorOneMinusSrcColor = 3,
sfBlendFactorDstColor = 4,
sfBlendFactorOneMinusDstColor = 5,
sfBlendFactorSrcAlpha = 6,
sfBlendFactorOneMinusSrcAlpha = 7,
sfBlendFactorDstAlpha = 8,
sfBlendFactorOneMinusDstAlpha = 9,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum sfBlendEquation {
sfBlendEquationAdd = 0,
sfBlendEquationSubtract = 1,
sfBlendEquationReverseSubtract = 2,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfBlendMode {
pub colorSrcFactor: sfBlendFactor,
pub colorDstFactor: sfBlendFactor,
pub colorEquation: sfBlendEquation,
pub alphaSrcFactor: sfBlendFactor,
pub alphaDstFactor: sfBlendFactor,
pub alphaEquation: sfBlendEquation,
}
#[test]
fn bindgen_test_layout_sfBlendMode() {
assert_eq!(::std::mem::size_of::<sfBlendMode>() , 24usize , concat ! (
"Size of: " , stringify ! ( sfBlendMode ) ));
assert_eq! (::std::mem::align_of::<sfBlendMode>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfBlendMode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . colorSrcFactor as *
const _ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( colorSrcFactor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . colorDstFactor as *
const _ as usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( colorDstFactor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . colorEquation as *
const _ as usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( colorEquation ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . alphaSrcFactor as *
const _ as usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( alphaSrcFactor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . alphaDstFactor as *
const _ as usize } , 16usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( alphaDstFactor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfBlendMode ) ) . alphaEquation as *
const _ as usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( sfBlendMode ) , "::" ,
stringify ! ( alphaEquation ) ));
}
impl Clone for sfBlendMode {
fn clone(&self) -> Self { *self }
}
extern "C" {
#[link_name = "sfBlendAlpha"]
pub static sfBlendAlpha: sfBlendMode;
}
extern "C" {
#[link_name = "sfBlendAdd"]
pub static sfBlendAdd: sfBlendMode;
}
extern "C" {
#[link_name = "sfBlendMultiply"]
pub static sfBlendMultiply: sfBlendMode;
}
extern "C" {
#[link_name = "sfBlendNone"]
pub static sfBlendNone: sfBlendMode;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfColor {
pub r: sfUint8,
pub g: sfUint8,
pub b: sfUint8,
pub a: sfUint8,
}
#[test]
fn bindgen_test_layout_sfColor() {
assert_eq!(::std::mem::size_of::<sfColor>() , 4usize , concat ! (
"Size of: " , stringify ! ( sfColor ) ));
assert_eq! (::std::mem::align_of::<sfColor>() , 1usize , concat ! (
"Alignment of " , stringify ! ( sfColor ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfColor ) ) . r as * const _ as usize } ,
0usize , concat ! (
"Alignment of field: " , stringify ! ( sfColor ) , "::" ,
stringify ! ( r ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfColor ) ) . g as * const _ as usize } ,
1usize , concat ! (
"Alignment of field: " , stringify ! ( sfColor ) , "::" ,
stringify ! ( g ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfColor ) ) . b as * const _ as usize } ,
2usize , concat ! (
"Alignment of field: " , stringify ! ( sfColor ) , "::" ,
stringify ! ( b ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfColor ) ) . a as * const _ as usize } ,
3usize , concat ! (
"Alignment of field: " , stringify ! ( sfColor ) , "::" ,
stringify ! ( a ) ));
}
impl Clone for sfColor {
fn clone(&self) -> Self { *self }
}
extern "C" {
#[link_name = "sfBlack"]
pub static mut sfBlack: sfColor;
}
extern "C" {
#[link_name = "sfWhite"]
pub static mut sfWhite: sfColor;
}
extern "C" {
#[link_name = "sfRed"]
pub static mut sfRed: sfColor;
}
extern "C" {
#[link_name = "sfGreen"]
pub static mut sfGreen: sfColor;
}
extern "C" {
#[link_name = "sfBlue"]
pub static mut sfBlue: sfColor;
}
extern "C" {
#[link_name = "sfYellow"]
pub static mut sfYellow: sfColor;
}
extern "C" {
#[link_name = "sfMagenta"]
pub static mut sfMagenta: sfColor;
}
extern "C" {
#[link_name = "sfCyan"]
pub static mut sfCyan: sfColor;
}
extern "C" {
#[link_name = "sfTransparent"]
pub static mut sfTransparent: sfColor;
}
extern "C" {
pub fn sfColor_fromRGB(red: sfUint8, green: sfUint8, blue: sfUint8)
-> sfColor;
}
extern "C" {
pub fn sfColor_fromRGBA(red: sfUint8, green: sfUint8, blue: sfUint8,
alpha: sfUint8) -> sfColor;
}
extern "C" {
pub fn sfColor_fromInteger(color: sfUint32) -> sfColor;
}
extern "C" {
pub fn sfColor_toInteger(color: sfColor) -> sfUint32;
}
extern "C" {
pub fn sfColor_add(color1: sfColor, color2: sfColor) -> sfColor;
}
extern "C" {
pub fn sfColor_subtract(color1: sfColor, color2: sfColor) -> sfColor;
}
extern "C" {
pub fn sfColor_modulate(color1: sfColor, color2: sfColor) -> sfColor;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfFloatRect {
pub left: f32,
pub top: f32,
pub width: f32,
pub height: f32,
}
#[test]
fn bindgen_test_layout_sfFloatRect() {
assert_eq!(::std::mem::size_of::<sfFloatRect>() , 16usize , concat ! (
"Size of: " , stringify ! ( sfFloatRect ) ));
assert_eq! (::std::mem::align_of::<sfFloatRect>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfFloatRect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfFloatRect ) ) . left as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfFloatRect ) , "::" ,
stringify ! ( left ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfFloatRect ) ) . top as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfFloatRect ) , "::" ,
stringify ! ( top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfFloatRect ) ) . width as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfFloatRect ) , "::" ,
stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfFloatRect ) ) . height as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfFloatRect ) , "::" ,
stringify ! ( height ) ));
}
impl Clone for sfFloatRect {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfIntRect {
pub left: ::std::os::raw::c_int,
pub top: ::std::os::raw::c_int,
pub width: ::std::os::raw::c_int,
pub height: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sfIntRect() {
assert_eq!(::std::mem::size_of::<sfIntRect>() , 16usize , concat ! (
"Size of: " , stringify ! ( sfIntRect ) ));
assert_eq! (::std::mem::align_of::<sfIntRect>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfIntRect ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfIntRect ) ) . left as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfIntRect ) , "::" ,
stringify ! ( left ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfIntRect ) ) . top as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfIntRect ) , "::" ,
stringify ! ( top ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfIntRect ) ) . width as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfIntRect ) , "::" ,
stringify ! ( width ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfIntRect ) ) . height as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfIntRect ) , "::" ,
stringify ! ( height ) ));
}
impl Clone for sfIntRect {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sfFloatRect_contains(rect: *const sfFloatRect, x: f32, y: f32)
-> sfBool;
}
extern "C" {
pub fn sfIntRect_contains(rect: *const sfIntRect,
x: ::std::os::raw::c_int,
y: ::std::os::raw::c_int) -> sfBool;
}
extern "C" {
pub fn sfFloatRect_intersects(rect1: *const sfFloatRect,
rect2: *const sfFloatRect,
intersection: *mut sfFloatRect) -> sfBool;
}
extern "C" {
pub fn sfIntRect_intersects(rect1: *const sfIntRect,
rect2: *const sfIntRect,
intersection: *mut sfIntRect) -> sfBool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfCircleShape {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfConvexShape {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfFont {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfImage {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfShader {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfRectangleShape {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfRenderTexture {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfRenderWindow {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfShape {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfSprite {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfText {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfTexture {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfTransformable {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfVertexArray {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sfView {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfTransform {
pub matrix: [f32; 9usize],
}
#[test]
fn bindgen_test_layout_sfTransform() {
assert_eq!(::std::mem::size_of::<sfTransform>() , 36usize , concat ! (
"Size of: " , stringify ! ( sfTransform ) ));
assert_eq! (::std::mem::align_of::<sfTransform>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfTransform ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfTransform ) ) . matrix as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfTransform ) , "::" ,
stringify ! ( matrix ) ));
}
impl Clone for sfTransform {
fn clone(&self) -> Self { *self }
}
extern "C" {
#[link_name = "sfTransform_Identity"]
pub static sfTransform_Identity: sfTransform;
}
extern "C" {
pub fn sfTransform_fromMatrix(a00: f32, a01: f32, a02: f32, a10: f32,
a11: f32, a12: f32, a20: f32, a21: f32,
a22: f32) -> sfTransform;
}
extern "C" {
pub fn sfTransform_getMatrix(transform: *const sfTransform,
matrix: *mut f32);
}
extern "C" {
pub fn sfTransform_getInverse(transform: *const sfTransform)
-> sfTransform;
}
extern "C" {
pub fn sfTransform_transformPoint(transform: *const sfTransform,
point: sfVector2f) -> sfVector2f;
}
extern "C" {
pub fn sfTransform_transformRect(transform: *const sfTransform,
rectangle: sfFloatRect) -> sfFloatRect;
}
extern "C" {
pub fn sfTransform_combine(transform: *mut sfTransform,
other: *const sfTransform);
}
extern "C" {
pub fn sfTransform_translate(transform: *mut sfTransform, x: f32, y: f32);
}
extern "C" {
pub fn sfTransform_rotate(transform: *mut sfTransform, angle: f32);
}
extern "C" {
pub fn sfTransform_rotateWithCenter(transform: *mut sfTransform,
angle: f32, centerX: f32,
centerY: f32);
}
extern "C" {
pub fn sfTransform_scale(transform: *mut sfTransform, scaleX: f32,
scaleY: f32);
}
extern "C" {
pub fn sfTransform_scaleWithCenter(transform: *mut sfTransform,
scaleX: f32, scaleY: f32, centerX: f32,
centerY: f32);
}
extern "C" {
pub fn sfCircleShape_create() -> *mut sfCircleShape;
}
extern "C" {
pub fn sfCircleShape_copy(shape: *const sfCircleShape)
-> *mut sfCircleShape;
}
extern "C" {
pub fn sfCircleShape_destroy(shape: *mut sfCircleShape);
}
extern "C" {
pub fn sfCircleShape_setPosition(shape: *mut sfCircleShape,
position: sfVector2f);
}
extern "C" {
pub fn sfCircleShape_setRotation(shape: *mut sfCircleShape, angle: f32);
}
extern "C" {
pub fn sfCircleShape_setScale(shape: *mut sfCircleShape,
scale: sfVector2f);
}
extern "C" {
pub fn sfCircleShape_setOrigin(shape: *mut sfCircleShape,
origin: sfVector2f);
}
extern "C" {
pub fn sfCircleShape_getPosition(shape: *const sfCircleShape)
-> sfVector2f;
}
extern "C" {
pub fn sfCircleShape_getRotation(shape: *const sfCircleShape) -> f32;
}
extern "C" {
pub fn sfCircleShape_getScale(shape: *const sfCircleShape) -> sfVector2f;
}
extern "C" {
pub fn sfCircleShape_getOrigin(shape: *const sfCircleShape) -> sfVector2f;
}
extern "C" {
pub fn sfCircleShape_move(shape: *mut sfCircleShape, offset: sfVector2f);
}
extern "C" {
pub fn sfCircleShape_rotate(shape: *mut sfCircleShape, angle: f32);
}
extern "C" {
pub fn sfCircleShape_scale(shape: *mut sfCircleShape,
factors: sfVector2f);
}
extern "C" {
pub fn sfCircleShape_getTransform(shape: *const sfCircleShape)
-> sfTransform;
}
extern "C" {
pub fn sfCircleShape_getInverseTransform(shape: *const sfCircleShape)
-> sfTransform;
}
extern "C" {
pub fn sfCircleShape_setTexture(shape: *mut sfCircleShape,
texture: *const sfTexture,
resetRect: sfBool);
}
extern "C" {
pub fn sfCircleShape_setTextureRect(shape: *mut sfCircleShape,
rect: sfIntRect);
}
extern "C" {
pub fn sfCircleShape_setFillColor(shape: *mut sfCircleShape,
color: sfColor);
}
extern "C" {
pub fn sfCircleShape_setOutlineColor(shape: *mut sfCircleShape,
color: sfColor);
}
extern "C" {
pub fn sfCircleShape_setOutlineThickness(shape: *mut sfCircleShape,
thickness: f32);
}
extern "C" {
pub fn sfCircleShape_getTexture(shape: *const sfCircleShape)
-> *const sfTexture;
}
extern "C" {
pub fn sfCircleShape_getTextureRect(shape: *const sfCircleShape)
-> sfIntRect;
}
extern "C" {
pub fn sfCircleShape_getFillColor(shape: *const sfCircleShape) -> sfColor;
}
extern "C" {
pub fn sfCircleShape_getOutlineColor(shape: *const sfCircleShape)
-> sfColor;
}
extern "C" {
pub fn sfCircleShape_getOutlineThickness(shape: *const sfCircleShape)
-> f32;
}
extern "C" {
pub fn sfCircleShape_getPointCount(shape: *const sfCircleShape) -> usize;
}
extern "C" {
pub fn sfCircleShape_getPoint(shape: *const sfCircleShape, index: usize)
-> sfVector2f;
}
extern "C" {
pub fn sfCircleShape_setRadius(shape: *mut sfCircleShape, radius: f32);
}
extern "C" {
pub fn sfCircleShape_getRadius(shape: *const sfCircleShape) -> f32;
}
extern "C" {
pub fn sfCircleShape_setPointCount(shape: *mut sfCircleShape,
count: usize);
}
extern "C" {
pub fn sfCircleShape_getLocalBounds(shape: *const sfCircleShape)
-> sfFloatRect;
}
extern "C" {
pub fn sfCircleShape_getGlobalBounds(shape: *const sfCircleShape)
-> sfFloatRect;
}
extern "C" {
pub fn sfConvexShape_create() -> *mut sfConvexShape;
}
extern "C" {
pub fn sfConvexShape_copy(shape: *const sfConvexShape)
-> *mut sfConvexShape;
}
extern "C" {
pub fn sfConvexShape_destroy(shape: *mut sfConvexShape);
}
extern "C" {
pub fn sfConvexShape_setPosition(shape: *mut sfConvexShape,
position: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_setRotation(shape: *mut sfConvexShape, angle: f32);
}
extern "C" {
pub fn sfConvexShape_setScale(shape: *mut sfConvexShape,
scale: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_setOrigin(shape: *mut sfConvexShape,
origin: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_getPosition(shape: *const sfConvexShape)
-> sfVector2f;
}
extern "C" {
pub fn sfConvexShape_getRotation(shape: *const sfConvexShape) -> f32;
}
extern "C" {
pub fn sfConvexShape_getScale(shape: *const sfConvexShape) -> sfVector2f;
}
extern "C" {
pub fn sfConvexShape_getOrigin(shape: *const sfConvexShape) -> sfVector2f;
}
extern "C" {
pub fn sfConvexShape_move(shape: *mut sfConvexShape, offset: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_rotate(shape: *mut sfConvexShape, angle: f32);
}
extern "C" {
pub fn sfConvexShape_scale(shape: *mut sfConvexShape,
factors: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_getTransform(shape: *const sfConvexShape)
-> sfTransform;
}
extern "C" {
pub fn sfConvexShape_getInverseTransform(shape: *const sfConvexShape)
-> sfTransform;
}
extern "C" {
pub fn sfConvexShape_setTexture(shape: *mut sfConvexShape,
texture: *const sfTexture,
resetRect: sfBool);
}
extern "C" {
pub fn sfConvexShape_setTextureRect(shape: *mut sfConvexShape,
rect: sfIntRect);
}
extern "C" {
pub fn sfConvexShape_setFillColor(shape: *mut sfConvexShape,
color: sfColor);
}
extern "C" {
pub fn sfConvexShape_setOutlineColor(shape: *mut sfConvexShape,
color: sfColor);
}
extern "C" {
pub fn sfConvexShape_setOutlineThickness(shape: *mut sfConvexShape,
thickness: f32);
}
extern "C" {
pub fn sfConvexShape_getTexture(shape: *const sfConvexShape)
-> *const sfTexture;
}
extern "C" {
pub fn sfConvexShape_getTextureRect(shape: *const sfConvexShape)
-> sfIntRect;
}
extern "C" {
pub fn sfConvexShape_getFillColor(shape: *const sfConvexShape) -> sfColor;
}
extern "C" {
pub fn sfConvexShape_getOutlineColor(shape: *const sfConvexShape)
-> sfColor;
}
extern "C" {
pub fn sfConvexShape_getOutlineThickness(shape: *const sfConvexShape)
-> f32;
}
extern "C" {
pub fn sfConvexShape_getPointCount(shape: *const sfConvexShape) -> usize;
}
extern "C" {
pub fn sfConvexShape_getPoint(shape: *const sfConvexShape, index: usize)
-> sfVector2f;
}
extern "C" {
pub fn sfConvexShape_setPointCount(shape: *mut sfConvexShape,
count: usize);
}
extern "C" {
pub fn sfConvexShape_setPoint(shape: *mut sfConvexShape, index: usize,
point: sfVector2f);
}
extern "C" {
pub fn sfConvexShape_getLocalBounds(shape: *const sfConvexShape)
-> sfFloatRect;
}
extern "C" {
pub fn sfConvexShape_getGlobalBounds(shape: *const sfConvexShape)
-> sfFloatRect;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfFontInfo {
pub family: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_sfFontInfo() {
assert_eq!(::std::mem::size_of::<sfFontInfo>() , 8usize , concat ! (
"Size of: " , stringify ! ( sfFontInfo ) ));
assert_eq! (::std::mem::align_of::<sfFontInfo>() , 8usize , concat ! (
"Alignment of " , stringify ! ( sfFontInfo ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfFontInfo ) ) . family as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfFontInfo ) , "::" ,
stringify ! ( family ) ));
}
impl Clone for sfFontInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlyph {
pub advance: f32,
pub bounds: sfFloatRect,
pub textureRect: sfIntRect,
}
#[test]
fn bindgen_test_layout_sfGlyph() {
assert_eq!(::std::mem::size_of::<sfGlyph>() , 36usize , concat ! (
"Size of: " , stringify ! ( sfGlyph ) ));
assert_eq! (::std::mem::align_of::<sfGlyph>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlyph ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlyph ) ) . advance as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlyph ) , "::" ,
stringify ! ( advance ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlyph ) ) . bounds as * const _ as
usize } , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlyph ) , "::" ,
stringify ! ( bounds ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlyph ) ) . textureRect as * const _ as
usize } , 20usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlyph ) , "::" ,
stringify ! ( textureRect ) ));
}
impl Clone for sfGlyph {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sfFont_createFromFile(filename: *const ::std::os::raw::c_char)
-> *mut sfFont;
}
extern "C" {
pub fn sfFont_createFromMemory(data: *const ::std::os::raw::c_void,
sizeInBytes: usize) -> *mut sfFont;
}
extern "C" {
pub fn sfFont_createFromStream(stream: *mut sfInputStream) -> *mut sfFont;
}
extern "C" {
pub fn sfFont_copy(font: *const sfFont) -> *mut sfFont;
}
extern "C" {
pub fn sfFont_destroy(font: *mut sfFont);
}
extern "C" {
pub fn sfFont_getGlyph(font: *const sfFont, codePoint: sfUint32,
characterSize: ::std::os::raw::c_uint,
bold: sfBool, outlineThickness: f32) -> sfGlyph;
}
extern "C" {
pub fn sfFont_getKerning(font: *const sfFont, first: sfUint32,
second: sfUint32,
characterSize: ::std::os::raw::c_uint) -> f32;
}
extern "C" {
pub fn sfFont_getLineSpacing(font: *const sfFont,
characterSize: ::std::os::raw::c_uint)
-> f32;
}
extern "C" {
pub fn sfFont_getUnderlinePosition(font: *const sfFont,
characterSize: ::std::os::raw::c_uint)
-> f32;
}
extern "C" {
pub fn sfFont_getUnderlineThickness(font: *const sfFont,
characterSize: ::std::os::raw::c_uint)
-> f32;
}
extern "C" {
pub fn sfFont_getTexture(font: *mut sfFont,
characterSize: ::std::os::raw::c_uint)
-> *const sfTexture;
}
extern "C" {
pub fn sfFont_getInfo(font: *const sfFont) -> sfFontInfo;
}
extern "C" {
pub fn sfImage_create(width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint) -> *mut sfImage;
}
extern "C" {
pub fn sfImage_createFromColor(width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint,
color: sfColor) -> *mut sfImage;
}
extern "C" {
pub fn sfImage_createFromPixels(width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint,
pixels: *const sfUint8) -> *mut sfImage;
}
extern "C" {
pub fn sfImage_createFromFile(filename: *const ::std::os::raw::c_char)
-> *mut sfImage;
}
extern "C" {
pub fn sfImage_createFromMemory(data: *const ::std::os::raw::c_void,
size: usize) -> *mut sfImage;
}
extern "C" {
pub fn sfImage_createFromStream(stream: *mut sfInputStream)
-> *mut sfImage;
}
extern "C" {
pub fn sfImage_copy(image: *const sfImage) -> *mut sfImage;
}
extern "C" {
pub fn sfImage_destroy(image: *mut sfImage);
}
extern "C" {
pub fn sfImage_saveToFile(image: *const sfImage,
filename: *const ::std::os::raw::c_char)
-> sfBool;
}
extern "C" {
pub fn sfImage_getSize(image: *const sfImage) -> sfVector2u;
}
extern "C" {
pub fn sfImage_createMaskFromColor(image: *mut sfImage, color: sfColor,
alpha: sfUint8);
}
extern "C" {
pub fn sfImage_copyImage(image: *mut sfImage, source: *const sfImage,
destX: ::std::os::raw::c_uint,
destY: ::std::os::raw::c_uint,
sourceRect: sfIntRect, applyAlpha: sfBool);
}
extern "C" {
pub fn sfImage_setPixel(image: *mut sfImage, x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint, color: sfColor);
}
extern "C" {
pub fn sfImage_getPixel(image: *const sfImage, x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint) -> sfColor;
}
extern "C" {
pub fn sfImage_getPixelsPtr(image: *const sfImage) -> *const sfUint8;
}
extern "C" {
pub fn sfImage_flipHorizontally(image: *mut sfImage);
}
extern "C" {
pub fn sfImage_flipVertically(image: *mut sfImage);
}
pub const sfPrimitiveType_sfLinesStrip: sfPrimitiveType =
sfPrimitiveType::sfLineStrip;
pub const sfPrimitiveType_sfTrianglesStrip: sfPrimitiveType =
sfPrimitiveType::sfTriangleStrip;
pub const sfPrimitiveType_sfTrianglesFan: sfPrimitiveType =
sfPrimitiveType::sfTriangleFan;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum sfPrimitiveType {
sfPoints = 0,
sfLines = 1,
sfLineStrip = 2,
sfTriangles = 3,
sfTriangleStrip = 4,
sfTriangleFan = 5,
sfQuads = 6,
}
extern "C" {
pub fn sfRectangleShape_create() -> *mut sfRectangleShape;
}
extern "C" {
pub fn sfRectangleShape_copy(shape: *const sfRectangleShape)
-> *mut sfRectangleShape;
}
extern "C" {
pub fn sfRectangleShape_destroy(shape: *mut sfRectangleShape);
}
extern "C" {
pub fn sfRectangleShape_setPosition(shape: *mut sfRectangleShape,
position: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_setRotation(shape: *mut sfRectangleShape,
angle: f32);
}
extern "C" {
pub fn sfRectangleShape_setScale(shape: *mut sfRectangleShape,
scale: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_setOrigin(shape: *mut sfRectangleShape,
origin: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_getPosition(shape: *const sfRectangleShape)
-> sfVector2f;
}
extern "C" {
pub fn sfRectangleShape_getRotation(shape: *const sfRectangleShape)
-> f32;
}
extern "C" {
pub fn sfRectangleShape_getScale(shape: *const sfRectangleShape)
-> sfVector2f;
}
extern "C" {
pub fn sfRectangleShape_getOrigin(shape: *const sfRectangleShape)
-> sfVector2f;
}
extern "C" {
pub fn sfRectangleShape_move(shape: *mut sfRectangleShape,
offset: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_rotate(shape: *mut sfRectangleShape, angle: f32);
}
extern "C" {
pub fn sfRectangleShape_scale(shape: *mut sfRectangleShape,
factors: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_getTransform(shape: *const sfRectangleShape)
-> sfTransform;
}
extern "C" {
pub fn sfRectangleShape_getInverseTransform(shape:
*const sfRectangleShape)
-> sfTransform;
}
extern "C" {
pub fn sfRectangleShape_setTexture(shape: *mut sfRectangleShape,
texture: *const sfTexture,
resetRect: sfBool);
}
extern "C" {
pub fn sfRectangleShape_setTextureRect(shape: *mut sfRectangleShape,
rect: sfIntRect);
}
extern "C" {
pub fn sfRectangleShape_setFillColor(shape: *mut sfRectangleShape,
color: sfColor);
}
extern "C" {
pub fn sfRectangleShape_setOutlineColor(shape: *mut sfRectangleShape,
color: sfColor);
}
extern "C" {
pub fn sfRectangleShape_setOutlineThickness(shape: *mut sfRectangleShape,
thickness: f32);
}
extern "C" {
pub fn sfRectangleShape_getTexture(shape: *const sfRectangleShape)
-> *const sfTexture;
}
extern "C" {
pub fn sfRectangleShape_getTextureRect(shape: *const sfRectangleShape)
-> sfIntRect;
}
extern "C" {
pub fn sfRectangleShape_getFillColor(shape: *const sfRectangleShape)
-> sfColor;
}
extern "C" {
pub fn sfRectangleShape_getOutlineColor(shape: *const sfRectangleShape)
-> sfColor;
}
extern "C" {
pub fn sfRectangleShape_getOutlineThickness(shape:
*const sfRectangleShape)
-> f32;
}
extern "C" {
pub fn sfRectangleShape_getPointCount(shape: *const sfRectangleShape)
-> usize;
}
extern "C" {
pub fn sfRectangleShape_getPoint(shape: *const sfRectangleShape,
index: usize) -> sfVector2f;
}
extern "C" {
pub fn sfRectangleShape_setSize(shape: *mut sfRectangleShape,
size: sfVector2f);
}
extern "C" {
pub fn sfRectangleShape_getSize(shape: *const sfRectangleShape)
-> sfVector2f;
}
extern "C" {
pub fn sfRectangleShape_getLocalBounds(shape: *const sfRectangleShape)
-> sfFloatRect;
}
extern "C" {
pub fn sfRectangleShape_getGlobalBounds(shape: *const sfRectangleShape)
-> sfFloatRect;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfRenderStates {
pub blendMode: sfBlendMode,
pub transform: sfTransform,
pub texture: *const sfTexture,
pub shader: *const sfShader,
}
#[test]
fn bindgen_test_layout_sfRenderStates() {
assert_eq!(::std::mem::size_of::<sfRenderStates>() , 80usize , concat ! (
"Size of: " , stringify ! ( sfRenderStates ) ));
assert_eq! (::std::mem::align_of::<sfRenderStates>() , 8usize , concat ! (
"Alignment of " , stringify ! ( sfRenderStates ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfRenderStates ) ) . blendMode as * const
_ as usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfRenderStates ) , "::"
, stringify ! ( blendMode ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfRenderStates ) ) . transform as * const
_ as usize } , 24usize , concat ! (
"Alignment of field: " , stringify ! ( sfRenderStates ) , "::"
, stringify ! ( transform ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfRenderStates ) ) . texture as * const _
as usize } , 64usize , concat ! (
"Alignment of field: " , stringify ! ( sfRenderStates ) , "::"
, stringify ! ( texture ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfRenderStates ) ) . shader as * const _
as usize } , 72usize , concat ! (
"Alignment of field: " , stringify ! ( sfRenderStates ) , "::"
, stringify ! ( shader ) ));
}
impl Clone for sfRenderStates {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfVertex {
pub position: sfVector2f,
pub color: sfColor,
pub texCoords: sfVector2f,
}
#[test]
fn bindgen_test_layout_sfVertex() {
assert_eq!(::std::mem::size_of::<sfVertex>() , 20usize , concat ! (
"Size of: " , stringify ! ( sfVertex ) ));
assert_eq! (::std::mem::align_of::<sfVertex>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfVertex ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfVertex ) ) . position as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfVertex ) , "::" ,
stringify ! ( position ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfVertex ) ) . color as * const _ as
usize } , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfVertex ) , "::" ,
stringify ! ( color ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfVertex ) ) . texCoords as * const _ as
usize } , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfVertex ) , "::" ,
stringify ! ( texCoords ) ));
}
impl Clone for sfVertex {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sfRenderTexture_create(width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint,
depthBuffer: sfBool)
-> *mut sfRenderTexture;
}
extern "C" {
pub fn sfRenderTexture_destroy(renderTexture: *mut sfRenderTexture);
}
extern "C" {
pub fn sfRenderTexture_getSize(renderTexture: *const sfRenderTexture)
-> sfVector2u;
}
extern "C" {
pub fn sfRenderTexture_setActive(renderTexture: *mut sfRenderTexture,
active: sfBool) -> sfBool;
}
extern "C" {
pub fn sfRenderTexture_display(renderTexture: *mut sfRenderTexture);
}
extern "C" {
pub fn sfRenderTexture_clear(renderTexture: *mut sfRenderTexture,
color: sfColor);
}
extern "C" {
pub fn sfRenderTexture_setView(renderTexture: *mut sfRenderTexture,
view: *const sfView);
}
extern "C" {
pub fn sfRenderTexture_getView(renderTexture: *const sfRenderTexture)
-> *const sfView;
}
extern "C" {
pub fn sfRenderTexture_getDefaultView(renderTexture:
*const sfRenderTexture)
-> *const sfView;
}
extern "C" {
pub fn sfRenderTexture_getViewport(renderTexture: *const sfRenderTexture,
view: *const sfView) -> sfIntRect;
}
extern "C" {
pub fn sfRenderTexture_mapPixelToCoords(renderTexture:
*const sfRenderTexture,
point: sfVector2i,
view: *const sfView)
-> sfVector2f;
}
extern "C" {
pub fn sfRenderTexture_mapCoordsToPixel(renderTexture:
*const sfRenderTexture,
point: sfVector2f,
view: *const sfView)
-> sfVector2i;
}
extern "C" {
pub fn sfRenderTexture_drawSprite(renderTexture: *mut sfRenderTexture,
object: *const sfSprite,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawText(renderTexture: *mut sfRenderTexture,
object: *const sfText,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawShape(renderTexture: *mut sfRenderTexture,
object: *const sfShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawCircleShape(renderTexture:
*mut sfRenderTexture,
object: *const sfCircleShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawConvexShape(renderTexture:
*mut sfRenderTexture,
object: *const sfConvexShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawRectangleShape(renderTexture:
*mut sfRenderTexture,
object: *const sfRectangleShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawVertexArray(renderTexture:
*mut sfRenderTexture,
object: *const sfVertexArray,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_drawPrimitives(renderTexture: *mut sfRenderTexture,
vertices: *const sfVertex,
vertexCount: usize,
type_: sfPrimitiveType,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderTexture_pushGLStates(renderTexture: *mut sfRenderTexture);
}
extern "C" {
pub fn sfRenderTexture_popGLStates(renderTexture: *mut sfRenderTexture);
}
extern "C" {
pub fn sfRenderTexture_resetGLStates(renderTexture: *mut sfRenderTexture);
}
extern "C" {
pub fn sfRenderTexture_getTexture(renderTexture: *const sfRenderTexture)
-> *const sfTexture;
}
extern "C" {
pub fn sfRenderTexture_setSmooth(renderTexture: *mut sfRenderTexture,
smooth: sfBool);
}
extern "C" {
pub fn sfRenderTexture_isSmooth(renderTexture: *const sfRenderTexture)
-> sfBool;
}
extern "C" {
pub fn sfRenderTexture_setRepeated(renderTexture: *mut sfRenderTexture,
repeated: sfBool);
}
extern "C" {
pub fn sfRenderTexture_isRepeated(renderTexture: *const sfRenderTexture)
-> sfBool;
}
extern "C" {
pub fn sfRenderTexture_generateMipmap(renderTexture: *mut sfRenderTexture)
-> sfBool;
}
extern "C" {
pub fn sfRenderWindow_create(mode: sfVideoMode,
title: *const ::std::os::raw::c_char,
style: sfUint32,
settings: *const sfContextSettings)
-> *mut sfRenderWindow;
}
extern "C" {
pub fn sfRenderWindow_createUnicode(mode: sfVideoMode,
title: *const sfUint32,
style: sfUint32,
settings: *const sfContextSettings)
-> *mut sfRenderWindow;
}
extern "C" {
pub fn sfRenderWindow_createFromHandle(handle: sfWindowHandle,
settings: *const sfContextSettings)
-> *mut sfRenderWindow;
}
extern "C" {
pub fn sfRenderWindow_destroy(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_close(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_isOpen(renderWindow: *const sfRenderWindow)
-> sfBool;
}
extern "C" {
pub fn sfRenderWindow_getSettings(renderWindow: *const sfRenderWindow)
-> sfContextSettings;
}
extern "C" {
pub fn sfRenderWindow_pollEvent(renderWindow: *mut sfRenderWindow,
event: *mut sfEvent) -> sfBool;
}
extern "C" {
pub fn sfRenderWindow_waitEvent(renderWindow: *mut sfRenderWindow,
event: *mut sfEvent) -> sfBool;
}
extern "C" {
pub fn sfRenderWindow_getPosition(renderWindow: *const sfRenderWindow)
-> sfVector2i;
}
extern "C" {
pub fn sfRenderWindow_setPosition(renderWindow: *mut sfRenderWindow,
position: sfVector2i);
}
extern "C" {
pub fn sfRenderWindow_getSize(renderWindow: *const sfRenderWindow)
-> sfVector2u;
}
extern "C" {
pub fn sfRenderWindow_setSize(renderWindow: *mut sfRenderWindow,
size: sfVector2u);
}
extern "C" {
pub fn sfRenderWindow_setTitle(renderWindow: *mut sfRenderWindow,
title: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn sfRenderWindow_setUnicodeTitle(renderWindow: *mut sfRenderWindow,
title: *const sfUint32);
}
extern "C" {
pub fn sfRenderWindow_setIcon(renderWindow: *mut sfRenderWindow,
width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint,
pixels: *const sfUint8);
}
extern "C" {
pub fn sfRenderWindow_setVisible(renderWindow: *mut sfRenderWindow,
visible: sfBool);
}
extern "C" {
pub fn sfRenderWindow_setVerticalSyncEnabled(renderWindow:
*mut sfRenderWindow,
enabled: sfBool);
}
extern "C" {
pub fn sfRenderWindow_setMouseCursorVisible(renderWindow:
*mut sfRenderWindow,
show: sfBool);
}
extern "C" {
pub fn sfRenderWindow_setMouseCursorGrabbed(renderWindow:
*mut sfRenderWindow,
grabbed: sfBool);
}
extern "C" {
pub fn sfRenderWindow_setKeyRepeatEnabled(renderWindow:
*mut sfRenderWindow,
enabled: sfBool);
}
extern "C" {
pub fn sfRenderWindow_setFramerateLimit(renderWindow: *mut sfRenderWindow,
limit: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfRenderWindow_setJoystickThreshold(renderWindow:
*mut sfRenderWindow,
threshold: f32);
}
extern "C" {
pub fn sfRenderWindow_setActive(renderWindow: *mut sfRenderWindow,
active: sfBool) -> sfBool;
}
extern "C" {
pub fn sfRenderWindow_requestFocus(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_hasFocus(renderWindow: *const sfRenderWindow)
-> sfBool;
}
extern "C" {
pub fn sfRenderWindow_display(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_getSystemHandle(renderWindow: *const sfRenderWindow)
-> sfWindowHandle;
}
extern "C" {
pub fn sfRenderWindow_clear(renderWindow: *mut sfRenderWindow,
color: sfColor);
}
extern "C" {
pub fn sfRenderWindow_setView(renderWindow: *mut sfRenderWindow,
view: *const sfView);
}
extern "C" {
pub fn sfRenderWindow_getView(renderWindow: *const sfRenderWindow)
-> *const sfView;
}
extern "C" {
pub fn sfRenderWindow_getDefaultView(renderWindow: *const sfRenderWindow)
-> *const sfView;
}
extern "C" {
pub fn sfRenderWindow_getViewport(renderWindow: *const sfRenderWindow,
view: *const sfView) -> sfIntRect;
}
extern "C" {
pub fn sfRenderWindow_mapPixelToCoords(renderWindow:
*const sfRenderWindow,
point: sfVector2i,
view: *const sfView) -> sfVector2f;
}
extern "C" {
pub fn sfRenderWindow_mapCoordsToPixel(renderWindow:
*const sfRenderWindow,
point: sfVector2f,
view: *const sfView) -> sfVector2i;
}
extern "C" {
pub fn sfRenderWindow_drawSprite(renderWindow: *mut sfRenderWindow,
object: *const sfSprite,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawText(renderWindow: *mut sfRenderWindow,
object: *const sfText,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawShape(renderWindow: *mut sfRenderWindow,
object: *const sfShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawCircleShape(renderWindow: *mut sfRenderWindow,
object: *const sfCircleShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawConvexShape(renderWindow: *mut sfRenderWindow,
object: *const sfConvexShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawRectangleShape(renderWindow:
*mut sfRenderWindow,
object: *const sfRectangleShape,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawVertexArray(renderWindow: *mut sfRenderWindow,
object: *const sfVertexArray,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_drawPrimitives(renderWindow: *mut sfRenderWindow,
vertices: *const sfVertex,
vertexCount: usize,
type_: sfPrimitiveType,
states: *const sfRenderStates);
}
extern "C" {
pub fn sfRenderWindow_pushGLStates(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_popGLStates(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_resetGLStates(renderWindow: *mut sfRenderWindow);
}
extern "C" {
pub fn sfRenderWindow_capture(renderWindow: *const sfRenderWindow)
-> *mut sfImage;
}
extern "C" {
pub fn sfMouse_getPositionRenderWindow(relativeTo: *const sfRenderWindow)
-> sfVector2i;
}
extern "C" {
pub fn sfMouse_setPositionRenderWindow(position: sfVector2i,
relativeTo: *const sfRenderWindow);
}
extern "C" {
pub fn sfTouch_getPositionRenderWindow(finger: ::std::os::raw::c_uint,
relativeTo: *const sfRenderWindow)
-> sfVector2i;
}
pub type sfGlslVec2 = sfVector2f;
pub type sfGlslIvec2 = sfVector2i;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslBvec2 {
pub x: sfBool,
pub y: sfBool,
}
#[test]
fn bindgen_test_layout_sfGlslBvec2() {
assert_eq!(::std::mem::size_of::<sfGlslBvec2>() , 8usize , concat ! (
"Size of: " , stringify ! ( sfGlslBvec2 ) ));
assert_eq! (::std::mem::align_of::<sfGlslBvec2>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslBvec2 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec2 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec2 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec2 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec2 ) , "::" ,
stringify ! ( y ) ));
}
impl Clone for sfGlslBvec2 {
fn clone(&self) -> Self { *self }
}
pub type sfGlslVec3 = sfVector3f;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslIvec3 {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub z: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sfGlslIvec3() {
assert_eq!(::std::mem::size_of::<sfGlslIvec3>() , 12usize , concat ! (
"Size of: " , stringify ! ( sfGlslIvec3 ) ));
assert_eq! (::std::mem::align_of::<sfGlslIvec3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslIvec3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec3 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec3 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec3 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec3 ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec3 ) ) . z as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec3 ) , "::" ,
stringify ! ( z ) ));
}
impl Clone for sfGlslIvec3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslBvec3 {
pub x: sfBool,
pub y: sfBool,
pub z: sfBool,
}
#[test]
fn bindgen_test_layout_sfGlslBvec3() {
assert_eq!(::std::mem::size_of::<sfGlslBvec3>() , 12usize , concat ! (
"Size of: " , stringify ! ( sfGlslBvec3 ) ));
assert_eq! (::std::mem::align_of::<sfGlslBvec3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslBvec3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec3 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec3 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec3 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec3 ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec3 ) ) . z as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec3 ) , "::" ,
stringify ! ( z ) ));
}
impl Clone for sfGlslBvec3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslVec4 {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}
#[test]
fn bindgen_test_layout_sfGlslVec4() {
assert_eq!(::std::mem::size_of::<sfGlslVec4>() , 16usize , concat ! (
"Size of: " , stringify ! ( sfGlslVec4 ) ));
assert_eq! (::std::mem::align_of::<sfGlslVec4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslVec4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslVec4 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslVec4 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslVec4 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslVec4 ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslVec4 ) ) . z as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslVec4 ) , "::" ,
stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslVec4 ) ) . w as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslVec4 ) , "::" ,
stringify ! ( w ) ));
}
impl Clone for sfGlslVec4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslIvec4 {
pub x: ::std::os::raw::c_int,
pub y: ::std::os::raw::c_int,
pub z: ::std::os::raw::c_int,
pub w: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_sfGlslIvec4() {
assert_eq!(::std::mem::size_of::<sfGlslIvec4>() , 16usize , concat ! (
"Size of: " , stringify ! ( sfGlslIvec4 ) ));
assert_eq! (::std::mem::align_of::<sfGlslIvec4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslIvec4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec4 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec4 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec4 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec4 ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec4 ) ) . z as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec4 ) , "::" ,
stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslIvec4 ) ) . w as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslIvec4 ) , "::" ,
stringify ! ( w ) ));
}
impl Clone for sfGlslIvec4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslBvec4 {
pub x: sfBool,
pub y: sfBool,
pub z: sfBool,
pub w: sfBool,
}
#[test]
fn bindgen_test_layout_sfGlslBvec4() {
assert_eq!(::std::mem::size_of::<sfGlslBvec4>() , 16usize , concat ! (
"Size of: " , stringify ! ( sfGlslBvec4 ) ));
assert_eq! (::std::mem::align_of::<sfGlslBvec4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslBvec4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec4 ) ) . x as * const _ as usize
} , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec4 ) , "::" ,
stringify ! ( x ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec4 ) ) . y as * const _ as usize
} , 4usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec4 ) , "::" ,
stringify ! ( y ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec4 ) ) . z as * const _ as usize
} , 8usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec4 ) , "::" ,
stringify ! ( z ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslBvec4 ) ) . w as * const _ as usize
} , 12usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslBvec4 ) , "::" ,
stringify ! ( w ) ));
}
impl Clone for sfGlslBvec4 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslMat3 {
pub array: [f32; 9usize],
}
#[test]
fn bindgen_test_layout_sfGlslMat3() {
assert_eq!(::std::mem::size_of::<sfGlslMat3>() , 36usize , concat ! (
"Size of: " , stringify ! ( sfGlslMat3 ) ));
assert_eq! (::std::mem::align_of::<sfGlslMat3>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslMat3 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslMat3 ) ) . array as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslMat3 ) , "::" ,
stringify ! ( array ) ));
}
impl Clone for sfGlslMat3 {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct sfGlslMat4 {
pub array: [f32; 16usize],
}
#[test]
fn bindgen_test_layout_sfGlslMat4() {
assert_eq!(::std::mem::size_of::<sfGlslMat4>() , 64usize , concat ! (
"Size of: " , stringify ! ( sfGlslMat4 ) ));
assert_eq! (::std::mem::align_of::<sfGlslMat4>() , 4usize , concat ! (
"Alignment of " , stringify ! ( sfGlslMat4 ) ));
assert_eq! (unsafe {
& ( * ( 0 as * const sfGlslMat4 ) ) . array as * const _ as
usize } , 0usize , concat ! (
"Alignment of field: " , stringify ! ( sfGlslMat4 ) , "::" ,
stringify ! ( array ) ));
}
impl Clone for sfGlslMat4 {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn sfShader_createFromFile(vertexShaderFilename:
*const ::std::os::raw::c_char,
geometryShaderFilename:
*const ::std::os::raw::c_char,
fragmentShaderFilename:
*const ::std::os::raw::c_char)
-> *mut sfShader;
}
extern "C" {
pub fn sfShader_createFromMemory(vertexShader:
*const ::std::os::raw::c_char,
geometryShader:
*const ::std::os::raw::c_char,
fragmentShader:
*const ::std::os::raw::c_char)
-> *mut sfShader;
}
extern "C" {
pub fn sfShader_createFromStream(vertexShaderStream: *mut sfInputStream,
geometryShaderStream: *mut sfInputStream,
fragmentShaderStream: *mut sfInputStream)
-> *mut sfShader;
}
extern "C" {
pub fn sfShader_destroy(shader: *mut sfShader);
}
extern "C" {
pub fn sfShader_setFloatUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: f32);
}
extern "C" {
pub fn sfShader_setVec2Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslVec2);
}
extern "C" {
pub fn sfShader_setVec3Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslVec3);
}
extern "C" {
pub fn sfShader_setVec4Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslVec4);
}
extern "C" {
pub fn sfShader_setColorUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
color: sfColor);
}
extern "C" {
pub fn sfShader_setIntUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: ::std::os::raw::c_int);
}
extern "C" {
pub fn sfShader_setIvec2Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslIvec2);
}
extern "C" {
pub fn sfShader_setIvec3Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslIvec3);
}
extern "C" {
pub fn sfShader_setIvec4Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslIvec4);
}
extern "C" {
pub fn sfShader_setIntColorUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
color: sfColor);
}
extern "C" {
pub fn sfShader_setBoolUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: sfBool);
}
extern "C" {
pub fn sfShader_setBvec2Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslBvec2);
}
extern "C" {
pub fn sfShader_setBvec3Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslBvec3);
}
extern "C" {
pub fn sfShader_setBvec4Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfGlslBvec4);
}
extern "C" {
pub fn sfShader_setMat3Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
matrix: *const sfGlslMat3);
}
extern "C" {
pub fn sfShader_setMat4Uniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
matrix: *const sfGlslMat4);
}
extern "C" {
pub fn sfShader_setTextureUniform(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
texture: *const sfTexture);
}
extern "C" {
pub fn sfShader_setCurrentTextureUniform(shader: *mut sfShader,
name:
*const ::std::os::raw::c_char);
}
extern "C" {
pub fn sfShader_setFloatUniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
scalarArray: *const f32,
length: usize);
}
extern "C" {
pub fn sfShader_setVec2UniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vectorArray: *const sfGlslVec2,
length: usize);
}
extern "C" {
pub fn sfShader_setVec3UniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vectorArray: *const sfGlslVec3,
length: usize);
}
extern "C" {
pub fn sfShader_setVec4UniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vectorArray: *const sfGlslVec4,
length: usize);
}
extern "C" {
pub fn sfShader_setMat3UniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
matrixArray: *const sfGlslMat3,
length: usize);
}
extern "C" {
pub fn sfShader_setMat4UniformArray(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
matrixArray: *const sfGlslMat4,
length: usize);
}
extern "C" {
pub fn sfShader_setFloatParameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: f32);
}
extern "C" {
pub fn sfShader_setFloat2Parameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: f32, y: f32);
}
extern "C" {
pub fn sfShader_setFloat3Parameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: f32, y: f32, z: f32);
}
extern "C" {
pub fn sfShader_setFloat4Parameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
x: f32, y: f32, z: f32, w: f32);
}
extern "C" {
pub fn sfShader_setVector2Parameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfVector2f);
}
extern "C" {
pub fn sfShader_setVector3Parameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
vector: sfVector3f);
}
extern "C" {
pub fn sfShader_setColorParameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
color: sfColor);
}
extern "C" {
pub fn sfShader_setTransformParameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
transform: sfTransform);
}
extern "C" {
pub fn sfShader_setTextureParameter(shader: *mut sfShader,
name: *const ::std::os::raw::c_char,
texture: *const sfTexture);
}
extern "C" {
pub fn sfShader_setCurrentTextureParameter(shader: *mut sfShader,
name:
*const ::std::os::raw::c_char);
}
extern "C" {
pub fn sfShader_getNativeHandle(shader: *const sfShader)
-> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sfShader_bind(shader: *const sfShader);
}
extern "C" {
pub fn sfShader_isAvailable() -> sfBool;
}
extern "C" {
pub fn sfShader_isGeometryAvailable() -> sfBool;
}
pub type sfShapeGetPointCountCallback =
::std::option::Option<unsafe extern "C" fn(arg1:
*mut ::std::os::raw::c_void)
-> usize>;
pub type sfShapeGetPointCallback =
::std::option::Option<unsafe extern "C" fn(arg1: usize,
arg2:
*mut ::std::os::raw::c_void)
-> sfVector2f>;
extern "C" {
pub fn sfShape_create(getPointCount: sfShapeGetPointCountCallback,
getPoint: sfShapeGetPointCallback,
userData: *mut ::std::os::raw::c_void)
-> *mut sfShape;
}
extern "C" {
pub fn sfShape_destroy(shape: *mut sfShape);
}
extern "C" {
pub fn sfShape_setPosition(shape: *mut sfShape, position: sfVector2f);
}
extern "C" {
pub fn sfShape_setRotation(shape: *mut sfShape, angle: f32);
}
extern "C" {
pub fn sfShape_setScale(shape: *mut sfShape, scale: sfVector2f);
}
extern "C" {
pub fn sfShape_setOrigin(shape: *mut sfShape, origin: sfVector2f);
}
extern "C" {
pub fn sfShape_getPosition(shape: *const sfShape) -> sfVector2f;
}
extern "C" {
pub fn sfShape_getRotation(shape: *const sfShape) -> f32;
}
extern "C" {
pub fn sfShape_getScale(shape: *const sfShape) -> sfVector2f;
}
extern "C" {
pub fn sfShape_getOrigin(shape: *const sfShape) -> sfVector2f;
}
extern "C" {
pub fn sfShape_move(shape: *mut sfShape, offset: sfVector2f);
}
extern "C" {
pub fn sfShape_rotate(shape: *mut sfShape, angle: f32);
}
extern "C" {
pub fn sfShape_scale(shape: *mut sfShape, factors: sfVector2f);
}
extern "C" {
pub fn sfShape_getTransform(shape: *const sfShape) -> sfTransform;
}
extern "C" {
pub fn sfShape_getInverseTransform(shape: *const sfShape) -> sfTransform;
}
extern "C" {
pub fn sfShape_setTexture(shape: *mut sfShape, texture: *const sfTexture,
resetRect: sfBool);
}
extern "C" {
pub fn sfShape_setTextureRect(shape: *mut sfShape, rect: sfIntRect);
}
extern "C" {
pub fn sfShape_setFillColor(shape: *mut sfShape, color: sfColor);
}
extern "C" {
pub fn sfShape_setOutlineColor(shape: *mut sfShape, color: sfColor);
}
extern "C" {
pub fn sfShape_setOutlineThickness(shape: *mut sfShape, thickness: f32);
}
extern "C" {
pub fn sfShape_getTexture(shape: *const sfShape) -> *const sfTexture;
}
extern "C" {
pub fn sfShape_getTextureRect(shape: *const sfShape) -> sfIntRect;
}
extern "C" {
pub fn sfShape_getFillColor(shape: *const sfShape) -> sfColor;
}
extern "C" {
pub fn sfShape_getOutlineColor(shape: *const sfShape) -> sfColor;
}
extern "C" {
pub fn sfShape_getOutlineThickness(shape: *const sfShape) -> f32;
}
extern "C" {
pub fn sfShape_getPointCount(shape: *const sfShape) -> usize;
}
extern "C" {
pub fn sfShape_getPoint(shape: *const sfShape, index: usize)
-> sfVector2f;
}
extern "C" {
pub fn sfShape_getLocalBounds(shape: *const sfShape) -> sfFloatRect;
}
extern "C" {
pub fn sfShape_getGlobalBounds(shape: *const sfShape) -> sfFloatRect;
}
extern "C" {
pub fn sfShape_update(shape: *mut sfShape);
}
extern "C" {
pub fn sfSprite_create() -> *mut sfSprite;
}
extern "C" {
pub fn sfSprite_copy(sprite: *const sfSprite) -> *mut sfSprite;
}
extern "C" {
pub fn sfSprite_destroy(sprite: *mut sfSprite);
}
extern "C" {
pub fn sfSprite_setPosition(sprite: *mut sfSprite, position: sfVector2f);
}
extern "C" {
pub fn sfSprite_setRotation(sprite: *mut sfSprite, angle: f32);
}
extern "C" {
pub fn sfSprite_setScale(sprite: *mut sfSprite, scale: sfVector2f);
}
extern "C" {
pub fn sfSprite_setOrigin(sprite: *mut sfSprite, origin: sfVector2f);
}
extern "C" {
pub fn sfSprite_getPosition(sprite: *const sfSprite) -> sfVector2f;
}
extern "C" {
pub fn sfSprite_getRotation(sprite: *const sfSprite) -> f32;
}
extern "C" {
pub fn sfSprite_getScale(sprite: *const sfSprite) -> sfVector2f;
}
extern "C" {
pub fn sfSprite_getOrigin(sprite: *const sfSprite) -> sfVector2f;
}
extern "C" {
pub fn sfSprite_move(sprite: *mut sfSprite, offset: sfVector2f);
}
extern "C" {
pub fn sfSprite_rotate(sprite: *mut sfSprite, angle: f32);
}
extern "C" {
pub fn sfSprite_scale(sprite: *mut sfSprite, factors: sfVector2f);
}
extern "C" {
pub fn sfSprite_getTransform(sprite: *const sfSprite) -> sfTransform;
}
extern "C" {
pub fn sfSprite_getInverseTransform(sprite: *const sfSprite)
-> sfTransform;
}
extern "C" {
pub fn sfSprite_setTexture(sprite: *mut sfSprite,
texture: *const sfTexture, resetRect: sfBool);
}
extern "C" {
pub fn sfSprite_setTextureRect(sprite: *mut sfSprite,
rectangle: sfIntRect);
}
extern "C" {
pub fn sfSprite_setColor(sprite: *mut sfSprite, color: sfColor);
}
extern "C" {
pub fn sfSprite_getTexture(sprite: *const sfSprite) -> *const sfTexture;
}
extern "C" {
pub fn sfSprite_getTextureRect(sprite: *const sfSprite) -> sfIntRect;
}
extern "C" {
pub fn sfSprite_getColor(sprite: *const sfSprite) -> sfColor;
}
extern "C" {
pub fn sfSprite_getLocalBounds(sprite: *const sfSprite) -> sfFloatRect;
}
extern "C" {
pub fn sfSprite_getGlobalBounds(sprite: *const sfSprite) -> sfFloatRect;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum sfTextStyle {
sfTextRegular = 0,
sfTextBold = 1,
sfTextItalic = 2,
sfTextUnderlined = 4,
sfTextStrikeThrough = 8,
}
extern "C" {
pub fn sfText_create() -> *mut sfText;
}
extern "C" {
pub fn sfText_copy(text: *const sfText) -> *mut sfText;
}
extern "C" {
pub fn sfText_destroy(text: *mut sfText);
}
extern "C" {
pub fn sfText_setPosition(text: *mut sfText, position: sfVector2f);
}
extern "C" {
pub fn sfText_setRotation(text: *mut sfText, angle: f32);
}
extern "C" {
pub fn sfText_setScale(text: *mut sfText, scale: sfVector2f);
}
extern "C" {
pub fn sfText_setOrigin(text: *mut sfText, origin: sfVector2f);
}
extern "C" {
pub fn sfText_getPosition(text: *const sfText) -> sfVector2f;
}
extern "C" {
pub fn sfText_getRotation(text: *const sfText) -> f32;
}
extern "C" {
pub fn sfText_getScale(text: *const sfText) -> sfVector2f;
}
extern "C" {
pub fn sfText_getOrigin(text: *const sfText) -> sfVector2f;
}
extern "C" {
pub fn sfText_move(text: *mut sfText, offset: sfVector2f);
}
extern "C" {
pub fn sfText_rotate(text: *mut sfText, angle: f32);
}
extern "C" {
pub fn sfText_scale(text: *mut sfText, factors: sfVector2f);
}
extern "C" {
pub fn sfText_getTransform(text: *const sfText) -> sfTransform;
}
extern "C" {
pub fn sfText_getInverseTransform(text: *const sfText) -> sfTransform;
}
extern "C" {
pub fn sfText_setString(text: *mut sfText,
string: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn sfText_setUnicodeString(text: *mut sfText,
string: *const sfUint32);
}
extern "C" {
pub fn sfText_setFont(text: *mut sfText, font: *const sfFont);
}
extern "C" {
pub fn sfText_setCharacterSize(text: *mut sfText,
size: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfText_setStyle(text: *mut sfText, style: sfUint32);
}
extern "C" {
pub fn sfText_setColor(text: *mut sfText, color: sfColor);
}
extern "C" {
pub fn sfText_setFillColor(text: *mut sfText, color: sfColor);
}
extern "C" {
pub fn sfText_setOutlineColor(text: *mut sfText, color: sfColor);
}
extern "C" {
pub fn sfText_setOutlineThickness(text: *mut sfText, thickness: f32);
}
extern "C" {
pub fn sfText_getString(text: *const sfText)
-> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn sfText_getUnicodeString(text: *const sfText) -> *const sfUint32;
}
extern "C" {
pub fn sfText_getFont(text: *const sfText) -> *const sfFont;
}
extern "C" {
pub fn sfText_getCharacterSize(text: *const sfText)
-> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sfText_getStyle(text: *const sfText) -> sfUint32;
}
extern "C" {
pub fn sfText_getColor(text: *const sfText) -> sfColor;
}
extern "C" {
pub fn sfText_getFillColor(text: *const sfText) -> sfColor;
}
extern "C" {
pub fn sfText_getOutlineColor(text: *const sfText) -> sfColor;
}
extern "C" {
pub fn sfText_getOutlineThickness(text: *const sfText) -> f32;
}
extern "C" {
pub fn sfText_findCharacterPos(text: *const sfText, index: usize)
-> sfVector2f;
}
extern "C" {
pub fn sfText_getLocalBounds(text: *const sfText) -> sfFloatRect;
}
extern "C" {
pub fn sfText_getGlobalBounds(text: *const sfText) -> sfFloatRect;
}
extern "C" {
pub fn sfTexture_create(width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint) -> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_createFromFile(filename: *const ::std::os::raw::c_char,
area: *const sfIntRect) -> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_createFromMemory(data: *const ::std::os::raw::c_void,
sizeInBytes: usize,
area: *const sfIntRect)
-> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_createFromStream(stream: *mut sfInputStream,
area: *const sfIntRect)
-> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_createFromImage(image: *const sfImage,
area: *const sfIntRect)
-> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_copy(texture: *const sfTexture) -> *mut sfTexture;
}
extern "C" {
pub fn sfTexture_destroy(texture: *mut sfTexture);
}
extern "C" {
pub fn sfTexture_getSize(texture: *const sfTexture) -> sfVector2u;
}
extern "C" {
pub fn sfTexture_copyToImage(texture: *const sfTexture) -> *mut sfImage;
}
extern "C" {
pub fn sfTexture_updateFromPixels(texture: *mut sfTexture,
pixels: *const sfUint8,
width: ::std::os::raw::c_uint,
height: ::std::os::raw::c_uint,
x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfTexture_updateFromImage(texture: *mut sfTexture,
image: *const sfImage,
x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfTexture_updateFromWindow(texture: *mut sfTexture,
window: *const sfWindow,
x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfTexture_updateFromRenderWindow(texture: *mut sfTexture,
renderWindow:
*const sfRenderWindow,
x: ::std::os::raw::c_uint,
y: ::std::os::raw::c_uint);
}
extern "C" {
pub fn sfTexture_setSmooth(texture: *mut sfTexture, smooth: sfBool);
}
extern "C" {
pub fn sfTexture_isSmooth(texture: *const sfTexture) -> sfBool;
}
extern "C" {
pub fn sfTexture_setSrgb(texture: *mut sfTexture, sRgb: sfBool);
}
extern "C" {
pub fn sfTexture_isSrgb(texture: *const sfTexture) -> sfBool;
}
extern "C" {
pub fn sfTexture_setRepeated(texture: *mut sfTexture, repeated: sfBool);
}
extern "C" {
pub fn sfTexture_isRepeated(texture: *const sfTexture) -> sfBool;
}
extern "C" {
pub fn sfTexture_generateMipmap(texture: *mut sfTexture) -> sfBool;
}
extern "C" {
pub fn sfTexture_getNativeHandle(texture: *const sfTexture)
-> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sfTexture_bind(texture: *const sfTexture);
}
extern "C" {
pub fn sfTexture_getMaximumSize() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn sfTransformable_create() -> *mut sfTransformable;
}
extern "C" {
pub fn sfTransformable_copy(transformable: *const sfTransformable)
-> *mut sfTransformable;
}
extern "C" {
pub fn sfTransformable_destroy(transformable: *mut sfTransformable);
}
extern "C" {
pub fn sfTransformable_setPosition(transformable: *mut sfTransformable,
position: sfVector2f);
}
extern "C" {
pub fn sfTransformable_setRotation(transformable: *mut sfTransformable,
angle: f32);
}
extern "C" {
pub fn sfTransformable_setScale(transformable: *mut sfTransformable,
scale: sfVector2f);
}
extern "C" {
pub fn sfTransformable_setOrigin(transformable: *mut sfTransformable,
origin: sfVector2f);
}
extern "C" {
pub fn sfTransformable_getPosition(transformable: *const sfTransformable)
-> sfVector2f;
}
extern "C" {
pub fn sfTransformable_getRotation(transformable: *const sfTransformable)
-> f32;
}
extern "C" {
pub fn sfTransformable_getScale(transformable: *const sfTransformable)
-> sfVector2f;
}
extern "C" {
pub fn sfTransformable_getOrigin(transformable: *const sfTransformable)
-> sfVector2f;
}
extern "C" {
pub fn sfTransformable_move(transformable: *mut sfTransformable,
offset: sfVector2f);
}
extern "C" {
pub fn sfTransformable_rotate(transformable: *mut sfTransformable,
angle: f32);
}
extern "C" {
pub fn sfTransformable_scale(transformable: *mut sfTransformable,
factors: sfVector2f);
}
extern "C" {
pub fn sfTransformable_getTransform(transformable: *const sfTransformable)
-> sfTransform;
}
extern "C" {
pub fn sfTransformable_getInverseTransform(transformable:
*const sfTransformable)
-> sfTransform;
}
extern "C" {
pub fn sfVertexArray_create() -> *mut sfVertexArray;
}
extern "C" {
pub fn sfVertexArray_copy(vertexArray: *const sfVertexArray)
-> *mut sfVertexArray;
}
extern "C" {
pub fn sfVertexArray_destroy(vertexArray: *mut sfVertexArray);
}
extern "C" {
pub fn sfVertexArray_getVertexCount(vertexArray: *const sfVertexArray)
-> usize;
}
extern "C" {
pub fn sfVertexArray_getVertex(vertexArray: *mut sfVertexArray,
index: usize) -> *mut sfVertex;
}
extern "C" {
pub fn sfVertexArray_clear(vertexArray: *mut sfVertexArray);
}
extern "C" {
pub fn sfVertexArray_resize(vertexArray: *mut sfVertexArray,
vertexCount: usize);
}
extern "C" {
pub fn sfVertexArray_append(vertexArray: *mut sfVertexArray,
vertex: sfVertex);
}
extern "C" {
pub fn sfVertexArray_setPrimitiveType(vertexArray: *mut sfVertexArray,
type_: sfPrimitiveType);
}
extern "C" {
pub fn sfVertexArray_getPrimitiveType(vertexArray: *mut sfVertexArray)
-> sfPrimitiveType;
}
extern "C" {
pub fn sfVertexArray_getBounds(vertexArray: *mut sfVertexArray)
-> sfFloatRect;
}
extern "C" {
pub fn sfView_create() -> *mut sfView;
}
extern "C" {
pub fn sfView_createFromRect(rectangle: sfFloatRect) -> *mut sfView;
}
extern "C" {
pub fn sfView_copy(view: *const sfView) -> *mut sfView;
}
extern "C" {
pub fn sfView_destroy(view: *mut sfView);
}
extern "C" {
pub fn sfView_setCenter(view: *mut sfView, center: sfVector2f);
}
extern "C" {
pub fn sfView_setSize(view: *mut sfView, size: sfVector2f);
}
extern "C" {
pub fn sfView_setRotation(view: *mut sfView, angle: f32);
}
extern "C" {
pub fn sfView_setViewport(view: *mut sfView, viewport: sfFloatRect);
}
extern "C" {
pub fn sfView_reset(view: *mut sfView, rectangle: sfFloatRect);
}
extern "C" {
pub fn sfView_getCenter(view: *const sfView) -> sfVector2f;
}
extern "C" {
pub fn sfView_getSize(view: *const sfView) -> sfVector2f;
}
extern "C" {
pub fn sfView_getRotation(view: *const sfView) -> f32;
}
extern "C" {
pub fn sfView_getViewport(view: *const sfView) -> sfFloatRect;
}
extern "C" {
pub fn sfView_move(view: *mut sfView, offset: sfVector2f);
}
extern "C" {
pub fn sfView_rotate(view: *mut sfView, angle: f32);
}
extern "C" {
pub fn sfView_zoom(view: *mut sfView, factor: f32);
}