Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84a3503262 | ||
|
|
5117bf1f85 | ||
|
|
d4a29f2a44 | ||
|
|
6129e7c864 | ||
|
|
51371dce80 | ||
|
|
4814088265 | ||
|
|
2344c391d2 | ||
|
|
105267612b | ||
|
|
69ef78b2e8 | ||
|
|
f4349988c4 | ||
|
|
1b42131c6f | ||
|
|
c8db86379d | ||
|
|
40d2bf816c | ||
|
|
ca3f40ddf1 | ||
|
|
38bfb58f78 | ||
|
|
1fa50e12a8 | ||
|
|
f73e616b97 | ||
|
|
fe0ade1d9c | ||
|
|
1fb60e8230 | ||
|
|
efe7009650 | ||
|
|
19a4e379d7 | ||
|
|
4e8865d495 | ||
|
|
dfca24b370 | ||
|
|
a4c2fd2414 | ||
|
|
aa985823ba | ||
|
|
b779c9e63d | ||
|
|
c58e54544d | ||
|
|
c080fc8732 | ||
|
|
24163a7c92 | ||
|
|
d934197246 | ||
|
|
76747b4677 | ||
|
|
5268fc2d19 | ||
|
|
bcd54110d5 | ||
|
|
83d538b16a | ||
|
|
2a6a7e1d2b | ||
|
|
c977c4fc45 | ||
|
|
87e0b55f01 | ||
|
|
54f5b5ebfb | ||
|
|
b421893646 | ||
|
|
237aeb7834 | ||
|
|
7dbd95d556 | ||
|
|
1e4ba39691 | ||
|
|
a7805ae3f0 | ||
|
|
325338bfbf | ||
|
|
01a54e4d0b | ||
|
|
e2df018e38 | ||
|
|
33b62cba33 | ||
|
|
29b4f78b64 | ||
|
|
bce18e3d61 | ||
|
|
e9c2b982c6 | ||
|
|
67e1793f49 | ||
|
|
80613a8a49 | ||
|
|
b017a72026 | ||
|
|
a7c5254a32 | ||
|
|
9dd1a47969 | ||
|
|
bbbd42e653 | ||
|
|
2b7f2da5ee | ||
|
|
23ba827726 | ||
|
|
326a28ec36 | ||
|
|
19d6a1600e | ||
|
|
3095303a4b | ||
|
|
2a1807422c | ||
|
|
4676885521 | ||
|
|
30cea37248 | ||
|
|
080d3c6b18 | ||
|
|
df10855483 | ||
|
|
dc6bf05f35 | ||
|
|
871545024d | ||
|
|
aeb172f2ab | ||
|
|
ec757ceb2c | ||
|
|
e00783da82 | ||
|
|
52a9486974 | ||
|
|
26b26b8f25 | ||
|
|
81f7335b05 | ||
|
|
f603106ac8 | ||
|
|
5675eefeb2 | ||
|
|
1d0fb17da4 | ||
|
|
f53d37052a | ||
|
|
cae5e73d7d | ||
|
|
4fccb48d2a | ||
|
|
3e0150d4f3 | ||
|
|
7c1f17bb8d | ||
|
|
c8ae4a89d9 | ||
|
|
42b1f849c0 | ||
|
|
c0f24ebbbc | ||
|
|
de73c53665 | ||
|
|
908e073628 | ||
|
|
eaee95a026 | ||
|
|
456a380e3a | ||
|
|
c428472c6f | ||
|
|
feff5a7c17 | ||
|
|
ae306351ba | ||
|
|
03de30df3e | ||
|
|
e45c72f525 | ||
|
|
36c43d89e6 | ||
|
|
f34a47c50d | ||
|
|
24895874ed | ||
|
|
129f88b6a7 | ||
|
|
cb5c4e482e | ||
|
|
db2062ed1d | ||
|
|
45ee50b47d | ||
|
|
694a8eeb69 | ||
|
|
908bba2c8a | ||
|
|
7325c8dbfd | ||
|
|
88363cf45d | ||
|
|
e5c18ae1f1 | ||
|
|
4bb5b8fa04 | ||
|
|
509e7140e3 | ||
|
|
056f919bbe | ||
|
|
548cad76b2 | ||
|
|
95d8864faa | ||
|
|
e26fb91350 | ||
|
|
da67f6feb8 | ||
|
|
8cc73bc482 | ||
|
|
28685ea658 | ||
|
|
a69df8807d | ||
|
|
d4a130f1dc | ||
|
|
8ccf4eb9ba | ||
|
|
cdb7b6fede | ||
|
|
fcae072625 | ||
|
|
26fc417555 | ||
|
|
bb3dd435f0 | ||
|
|
16a531272f | ||
|
|
ba5b79e48a | ||
|
|
59470ddbd4 | ||
|
|
82c4191516 | ||
|
|
8a305d3c79 | ||
|
|
7c507c7b3b | ||
|
|
ca27dad6c1 | ||
|
|
383d55cac6 | ||
|
|
0e2ffdeb1d | ||
|
|
b84d101337 | ||
|
|
eb04271c83 | ||
|
|
852aa74d62 | ||
|
|
aa06459c09 | ||
|
|
54e7ad571e | ||
|
|
1d3dae01e9 | ||
|
|
736a626ccf | ||
|
|
a4cc8b0585 | ||
|
|
333c94be52 | ||
|
|
92ec4e65c1 | ||
|
|
a3e97b90f6 | ||
|
|
c07502bf5a | ||
|
|
f751161693 | ||
|
|
ed16c4fd9f | ||
|
|
41407538d4 | ||
|
|
5f394cd938 | ||
|
|
e5bae89d0f | ||
|
|
f749800276 | ||
|
|
5289027272 | ||
|
|
77f4d4ef3b | ||
|
|
a94740f5e9 | ||
|
|
ab27090ecf | ||
|
|
93d0106c28 | ||
|
|
27433f6fb5 | ||
|
|
f8e5049d76 | ||
|
|
2009cdeaeb | ||
|
|
0f43f19b71 | ||
|
|
1ac7852bd2 | ||
|
|
f5e7b65ae0 | ||
|
|
4c5d34e82c | ||
|
|
0dad927c05 | ||
|
|
f231417465 | ||
|
|
51b8dc9101 | ||
|
|
71e9c4f5af | ||
|
|
1acae3e4af | ||
|
|
4c04d09d18 | ||
|
|
b99cd88947 | ||
|
|
4a786449c4 | ||
|
|
aef6dcdbc9 | ||
|
|
0e9ec096c2 | ||
|
|
50ce3c4431 | ||
|
|
c6c1dbd066 | ||
|
|
ece8d9e80c | ||
|
|
fdcbd276e9 | ||
|
|
6d77672ee3 | ||
|
|
28aec6cad5 | ||
|
|
1f028f523e | ||
|
|
349bf06e4b | ||
|
|
e044db73f5 | ||
|
|
7555d689db | ||
|
|
a6438da531 | ||
|
|
8c6893cff6 | ||
|
|
af03b51191 | ||
|
|
178d8b7b53 | ||
|
|
de99a3036d | ||
|
|
5c613f6c8f | ||
|
|
59628377fa | ||
|
|
278f3c3ef6 | ||
|
|
3ba1596976 | ||
|
|
02f6fa0665 | ||
|
|
f4aec1d591 | ||
|
|
5c2a87dea6 | ||
|
|
6f17ed0883 | ||
|
|
d5aa9ae0f1 | ||
|
|
6096822cbb | ||
|
|
0030367649 | ||
|
|
66f67c91e8 | ||
|
|
c73c1af2d5 | ||
|
|
638e95325a | ||
|
|
66ce745e91 | ||
|
|
2b39d137b4 | ||
|
|
1ed616dcef | ||
|
|
24ef2819b0 | ||
|
|
a9732e9564 | ||
|
|
c262d3f532 | ||
|
|
ae456fee31 | ||
|
|
68f69049d4 | ||
|
|
e180918e48 | ||
|
|
951c090b35 | ||
|
|
a87e07155a | ||
|
|
da16ce3a23 | ||
|
|
64bdae5e5d | ||
|
|
4f91a0b234 | ||
|
|
bb0a59540f | ||
|
|
dd9d6de0d6 | ||
|
|
3de4c7cbad | ||
|
|
0eeacaf51e | ||
|
|
a4684b3004 | ||
|
|
9c014eb2ea | ||
|
|
37579187cc | ||
|
|
af8ce028ba | ||
|
|
9310a68cff | ||
|
|
89b8121282 | ||
|
|
b2260bbebb | ||
|
|
6a9aea4dd1 | ||
|
|
6f4dfb35fa | ||
|
|
459b2e62ce | ||
|
|
5765f3df5a | ||
|
|
8488da4b1a | ||
|
|
c82495f48b | ||
|
|
f55b8793ec | ||
|
|
b0b048c703 | ||
|
|
b7f1a0b631 | ||
|
|
02d6fccfa9 | ||
|
|
513613d83b | ||
|
|
f2afc5135c | ||
|
|
3783e30a8a | ||
|
|
ff80a34627 | ||
|
|
38c96d5ec2 | ||
|
|
2ec467f062 | ||
|
|
b3106d55d1 | ||
|
|
90c3d02dbf | ||
|
|
48dc5461cd | ||
|
|
0843a586f8 | ||
|
|
8c8f96cf49 | ||
|
|
55afe9be7e | ||
|
|
fe54f2fba2 | ||
|
|
b12989f51c | ||
|
|
57990100c5 | ||
|
|
32504b9e8e | ||
|
|
ba3404d823 | ||
|
|
c9f50ca0c8 | ||
|
|
b6943ce92e | ||
|
|
41b78feef5 | ||
|
|
c9b6276a02 | ||
|
|
39a5165d91 | ||
|
|
e5a03dc3bb | ||
|
|
4deebf8912 | ||
|
|
fa8901f6b0 | ||
|
|
23512f0a6c | ||
|
|
b44548b7ac | ||
|
|
955812bd8d | ||
|
|
e4ac394d29 | ||
|
|
2b6185d7d6 | ||
|
|
2753052ee7 | ||
|
|
3c9292c137 | ||
|
|
e68136de3e | ||
|
|
e852c23441 | ||
|
|
031e8ee477 | ||
|
|
d7422b8ec9 | ||
|
|
0bbd8246cc | ||
|
|
9e8ddd5f9e | ||
|
|
3964d4e188 | ||
|
|
005af4362e | ||
|
|
f817676033 | ||
|
|
79140b3bdc | ||
|
|
48722ef591 | ||
|
|
6be5478fa8 | ||
|
|
953d9d15d6 | ||
|
|
0c56755e09 | ||
|
|
c166075754 | ||
|
|
90ff1c4fc0 | ||
|
|
1d0fedddfd | ||
|
|
f5b60c3f36 | ||
|
|
78ad3e9710 | ||
|
|
b03d5c53ed | ||
|
|
c5dce0e785 | ||
|
|
f85c7ef961 | ||
|
|
0ceaca4b2f | ||
|
|
4d211f8f82 | ||
|
|
8d3435291b | ||
|
|
8f007155cd | ||
|
|
af9fa77501 | ||
|
|
58a38ac6c4 | ||
|
|
1e1dbfc450 | ||
|
|
2eac9fc295 | ||
|
|
21920112ee | ||
|
|
9b7bf5e7d8 | ||
|
|
4416be2ddc | ||
|
|
524168b20b | ||
|
|
10b52c11ac | ||
|
|
db732bd1bd | ||
|
|
146d4da72c | ||
|
|
20c570c97c | ||
|
|
e550edb93e | ||
|
|
fac4d3c2c0 | ||
|
|
7d2bcbd1ee | ||
|
|
f3bbb5af56 | ||
|
|
8e8ef04860 | ||
|
|
98b105c02a | ||
|
|
ccdb73f861 | ||
|
|
9cb150b8eb | ||
|
|
e6af82f450 | ||
|
|
7400eeac2a | ||
|
|
2656a87e46 | ||
|
|
202e24c69c | ||
|
|
c7d78fe948 | ||
|
|
f381239825 | ||
|
|
394beb7533 | ||
|
|
2ea1ac9331 | ||
|
|
34f8181e56 | ||
|
|
ab13b28106 | ||
|
|
7e5019bd36 | ||
|
|
423ca0eca0 | ||
|
|
939354f483 | ||
|
|
418ee2ce5f | ||
|
|
934184a006 | ||
|
|
e94ef8d9c3 | ||
|
|
ba985248ea | ||
|
|
65bd06aae5 | ||
|
|
2434acf825 | ||
|
|
b85a718500 | ||
|
|
a0e023527c | ||
|
|
a6dce95eca | ||
|
|
f05ac73df6 | ||
|
|
c90fe4627b | ||
|
|
0efedae2c3 | ||
|
|
a6d6c03a58 | ||
|
|
2d5664b54a | ||
|
|
a25b3f6e59 | ||
|
|
9edcbe22f4 | ||
|
|
8f4385c39b | ||
|
|
e383b0885d | ||
|
|
adcd62ed59 | ||
|
|
7cdf69c6a1 | ||
|
|
ee12d25a8f | ||
|
|
881c9f8e43 | ||
|
|
b1ac9f94cd | ||
|
|
9ab4d01b8c | ||
|
|
7378ca8479 | ||
|
|
a87a7ccbda | ||
|
|
4a5449905b | ||
|
|
3c8bdd7862 | ||
|
|
9b26f1fdcb | ||
|
|
76560f4179 | ||
|
|
f48fdda3f3 | ||
|
|
2c73593fcd | ||
|
|
4613ec48b3 | ||
|
|
3269b62225 | ||
|
|
7e8f6d759c | ||
|
|
75cfd382f6 | ||
|
|
e524d3edab | ||
|
|
8c9fb9f146 | ||
|
|
ff2fc6170d | ||
|
|
f27cb0ba8f | ||
|
|
58705fb184 | ||
|
|
487b71f82c | ||
|
|
2b1b4544f9 | ||
|
|
af1507b530 | ||
|
|
a193604d0f | ||
|
|
e359c8dcd0 | ||
|
|
f0d2685a60 | ||
|
|
f3de6c15eb | ||
|
|
53cea0a835 | ||
|
|
4b4d038ac8 | ||
|
|
9ba305eb77 | ||
|
|
fcadd03607 | ||
|
|
e1ad48ec16 | ||
|
|
fbb77e8428 | ||
|
|
72c05fae77 | ||
|
|
8867dc959e | ||
|
|
e9fc57b97d | ||
|
|
7c490de93e | ||
|
|
3c85295622 | ||
|
|
bdeb7e5e9d | ||
|
|
2e766a7e16 | ||
|
|
9bab3d5795 | ||
|
|
1015800483 | ||
|
|
c4149e26e8 | ||
|
|
602e4df5b9 | ||
|
|
9be5780597 | ||
|
|
363f4c56f4 | ||
|
|
9ca21f1fb4 | ||
|
|
826183ce2a | ||
|
|
ec41a7152c | ||
|
|
4e394951bc | ||
|
|
837f74f28a | ||
|
|
fb02389922 | ||
|
|
f12f5b8bd1 | ||
|
|
20a3f4b6f3 | ||
|
|
f1ca991041 | ||
|
|
83df870bb5 | ||
|
|
8e56998c9a | ||
|
|
43e5f694bc | ||
|
|
9197a50c5b | ||
|
|
40fb4da2e8 | ||
|
|
f458fdbebe | ||
|
|
069f8bc009 | ||
|
|
a9f579d949 | ||
|
|
7b0b2d8cd7 | ||
|
|
4dce42e458 | ||
|
|
f819471c06 | ||
|
|
45393cbb78 | ||
|
|
bf6727b43a | ||
|
|
87134a42b4 | ||
|
|
d27a849d79 | ||
|
|
2aaa52c639 | ||
|
|
5348739a2c | ||
|
|
b21396bd34 | ||
|
|
19c97d3137 | ||
|
|
421dca5615 | ||
|
|
d5b64a4df3 | ||
|
|
098d1afb50 | ||
|
|
9d122aa686 | ||
|
|
e465e83cb3 | ||
|
|
619a8e2f42 | ||
|
|
b3c0c6f2b4 | ||
|
|
f0a1cd01c3 | ||
|
|
144740a270 | ||
|
|
0b478b7a91 | ||
|
|
d23451b6e7 | ||
|
|
20897deeee | ||
|
|
677e381a2c | ||
|
|
4b06a3eabf | ||
|
|
36c1369041 | ||
|
|
d4b179d59e | ||
|
|
81fbd75646 | ||
|
|
c7e37eac05 | ||
|
|
dd6403691f | ||
|
|
e42b179fad | ||
|
|
ebb0ebcab0 | ||
|
|
347a5ed40a | ||
|
|
dee91ed1ef | ||
|
|
a80f702bb8 | ||
|
|
7d91d06ce0 | ||
|
|
ab1f04ac31 | ||
|
|
0696ac7340 | ||
|
|
137a917f58 | ||
|
|
00cfdfef27 | ||
|
|
c1d5d153aa | ||
|
|
1fb3b2110c | ||
|
|
ef9472097d | ||
|
|
ed75d89baf | ||
|
|
fed4c934ad | ||
|
|
63ea13ab3c | ||
|
|
2c802799e8 | ||
|
|
fe30cbb4aa | ||
|
|
ca1d3e337a | ||
|
|
28f1ee6335 | ||
|
|
91f377b382 | ||
|
|
6d6fa156f3 | ||
|
|
5383fee6af | ||
|
|
a2c7b68a60 | ||
|
|
7be0b38f47 | ||
|
|
4e05679b10 | ||
|
|
36d3c76a52 | ||
|
|
eee263c2c2 | ||
|
|
c1cdb83e8d | ||
|
|
451ab81f0b | ||
|
|
d803c1b9cd | ||
|
|
72b26c19ce | ||
|
|
f35d827bd4 | ||
|
|
358eeaa981 | ||
|
|
55e88cf740 | ||
|
|
be4125e4ca | ||
|
|
920b00348e | ||
|
|
80aeae1692 | ||
|
|
0e52845f50 | ||
|
|
ca5dd9e78f | ||
|
|
956fc099ad | ||
|
|
1da376e777 | ||
|
|
b0b4259af6 | ||
|
|
26343b4449 | ||
|
|
a46926f5cc | ||
|
|
49518059d1 | ||
|
|
e6ce425bbd | ||
|
|
19b9ec0521 | ||
|
|
c98861be6e | ||
|
|
29db810c54 | ||
|
|
14bf24ed27 | ||
|
|
ff5bb34204 | ||
|
|
77a00b08a5 | ||
|
|
27caf1bc70 | ||
|
|
01b24e5417 | ||
|
|
7a320c9c54 | ||
|
|
3a65b687a8 | ||
|
|
0919ad015c | ||
|
|
437f900c25 | ||
|
|
cd7ce5698c | ||
|
|
86eda4f358 | ||
|
|
d791d2ce55 | ||
|
|
1883a4884a | ||
|
|
403c34fe5c | ||
|
|
f86a99cd1b | ||
|
|
85cac497ea | ||
|
|
92d6c2b7b0 | ||
|
|
46be62b256 | ||
|
|
f67f8e7dbf | ||
|
|
191fd4b68a | ||
|
|
c504c0f8f0 | ||
|
|
6adf39b460 | ||
|
|
e160427108 | ||
|
|
275d28c9c6 | ||
|
|
2a848e32e4 | ||
|
|
039daa0145 | ||
|
|
a425935bc4 | ||
|
|
6af09bd215 | ||
|
|
015d9208e3 | ||
|
|
f247796ffc | ||
|
|
29c72be994 | ||
|
|
8d70016edc | ||
|
|
6919b9fd91 | ||
|
|
c5d58f5de2 | ||
|
|
4855d29d31 | ||
|
|
2d22c2b265 | ||
|
|
acf121cac6 | ||
|
|
94d01d1ee9 | ||
|
|
e3c9ae6de5 | ||
|
|
dff8f549da | ||
|
|
b93a5c5305 | ||
|
|
0c75d8aca3 | ||
|
|
71c28ad00b | ||
|
|
7e5acd72c1 | ||
|
|
29006e9926 | ||
|
|
10d4365376 | ||
|
|
611edea6e0 | ||
|
|
fcbf45521a | ||
|
|
32d8120516 | ||
|
|
fdba6a253a | ||
|
|
18bdbfdb07 | ||
|
|
6f93299aaf | ||
|
|
c47814c29a | ||
|
|
0dd49869f5 | ||
|
|
74c9c09fcd | ||
|
|
6f891dd235 | ||
|
|
6e123b0732 | ||
|
|
2c51c9f5f8 | ||
|
|
8a781b4fa2 | ||
|
|
e3a79ab099 | ||
|
|
05364cc4dc | ||
|
|
3c5d997eff | ||
|
|
696a9ea464 | ||
|
|
c2d97397e8 | ||
|
|
4f534c5ce3 | ||
|
|
15288ced57 | ||
|
|
30eca524d9 | ||
|
|
168a2c9684 | ||
|
|
0e05dca3d5 | ||
|
|
717f5e3c13 | ||
|
|
2cad7f7210 | ||
|
|
34783cfe94 | ||
|
|
12149a4773 | ||
|
|
7d81990699 | ||
|
|
531de8bd1e | ||
|
|
232e6a4b5b | ||
|
|
65d3684d0b | ||
|
|
6017543666 | ||
|
|
7c7f924ef1 | ||
|
|
ba40d45321 | ||
|
|
3af0009453 | ||
|
|
7ac01390d0 | ||
|
|
6dee986a28 | ||
|
|
145eecf8a4 | ||
|
|
080719c251 | ||
|
|
d58719d09b | ||
|
|
05d1eab441 | ||
|
|
caffda3221 | ||
|
|
650a50278a | ||
|
|
1ef0909204 | ||
|
|
42878841e6 | ||
|
|
34e4cf123d | ||
|
|
7ffb3ebdfe | ||
|
|
684a43a95c | ||
|
|
4fcb41f659 | ||
|
|
2d1c876e0d | ||
|
|
8d1ef1721f | ||
|
|
02ffceb300 | ||
|
|
44fe156751 | ||
|
|
aca48d69cd | ||
|
|
294ce055cd | ||
|
|
4117eb5b40 | ||
|
|
a9068ee162 | ||
|
|
9549a204a5 | ||
|
|
c276736002 | ||
|
|
cfd960124e | ||
|
|
77cd898bd2 | ||
|
|
e7c40dd914 | ||
|
|
bcb1a1d5eb | ||
|
|
bf53db8d68 | ||
|
|
b5dfe74cfe | ||
|
|
6c891f1146 | ||
|
|
7d06f59da5 | ||
|
|
9dee0f0ea8 | ||
|
|
9338b5b10f | ||
|
|
b7ecffedcd | ||
|
|
71ab8c0b7d | ||
|
|
8901c62201 | ||
|
|
7deeb4486f | ||
|
|
a559e36306 | ||
|
|
602bd1a010 | ||
|
|
f57b8092fc | ||
|
|
5777c638f1 | ||
|
|
60307da80e | ||
|
|
d6e97c328a | ||
|
|
e4f35e827d | ||
|
|
e7cab1a376 | ||
|
|
6eb1114d17 | ||
|
|
e6a0b4f58b | ||
|
|
c8d9ff6575 | ||
|
|
0d9d176415 | ||
|
|
e1413764f6 | ||
|
|
ca04e084a2 | ||
|
|
56d03042ec | ||
|
|
0c8df833e9 | ||
|
|
f275eb5f9a | ||
|
|
88081068e9 | ||
|
|
9893584b4f | ||
|
|
0b4fad3cca | ||
|
|
bbb4749815 | ||
|
|
4fc780298f | ||
|
|
f24f3b5b23 | ||
|
|
ff6279a406 | ||
|
|
c36f64e97b | ||
|
|
2c4bee6e6a | ||
|
|
7b776f01bd | ||
|
|
43b7492300 | ||
|
|
1fe79fe236 | ||
|
|
222b63d2c3 | ||
|
|
a7c41b458a | ||
|
|
3901c7c7da | ||
|
|
932a08b2da | ||
|
|
4c97a4f9e0 | ||
|
|
a1d16b4613 | ||
|
|
16e1e00c67 | ||
|
|
b76fc9699a | ||
|
|
cb3638e3ab | ||
|
|
e85d91e682 | ||
|
|
2653b59af4 | ||
|
|
caff071a1b | ||
|
|
86ccf40884 | ||
|
|
85dba64b84 | ||
|
|
40165fd6db | ||
|
|
c701e1fe7e | ||
|
|
525e19566e | ||
|
|
27e734bde0 | ||
|
|
fa10eb5801 | ||
|
|
2e44a50f7f | ||
|
|
bd53786887 | ||
|
|
ad1b1eabe4 | ||
|
|
2de9a2be68 | ||
|
|
e120907e0f | ||
|
|
b0c217201e | ||
|
|
dac7026739 | ||
|
|
91a4646f19 | ||
|
|
8963e17b83 | ||
|
|
8ba52e2530 | ||
|
|
bf2184582a | ||
|
|
501a770fee | ||
|
|
327f7085f6 | ||
|
|
8aef549cfc | ||
|
|
8dd268b83e | ||
|
|
5fddc3156b | ||
|
|
d6976ca64f | ||
|
|
809219d5e8 | ||
|
|
278dd12ced | ||
|
|
f3cfa969c9 | ||
|
|
7b64b22012 | ||
|
|
267ccae3a9 | ||
|
|
5f77dbb946 | ||
|
|
1a46d7d16c | ||
|
|
c8a2278cb7 | ||
|
|
75b269d4bb | ||
|
|
35e499027d | ||
|
|
356b2f279c | ||
|
|
eba5965220 | ||
|
|
feda0bae80 | ||
|
|
44ecb677ad | ||
|
|
3e99f4d142 | ||
|
|
2891983cde | ||
|
|
612f910b9c | ||
|
|
a9d0e2154b | ||
|
|
16a0953d1d | ||
|
|
737ae08355 | ||
|
|
6d83a7e187 | ||
|
|
56df9b6af3 | ||
|
|
7f2435d821 | ||
|
|
b180f29fd9 | ||
|
|
32c85f96a4 | ||
|
|
ec83c60320 | ||
|
|
fb4a912dba | ||
|
|
123b2aa60b | ||
|
|
bd82a8db29 | ||
|
|
6f71fc17c2 | ||
|
|
d8c3e9f41c | ||
|
|
e10345b4de | ||
|
|
2ab66b113c | ||
|
|
f64263cf6f | ||
|
|
55c72f32da | ||
|
|
53bc12baad | ||
|
|
b391e763bc | ||
|
|
2bae0bdb0f | ||
|
|
d42df54901 | ||
|
|
e6256d448f | ||
|
|
ad1a980eb1 | ||
|
|
1b50858fa6 | ||
|
|
3276bbb7b6 | ||
|
|
dc00fa3429 | ||
|
|
dc9276b73c | ||
|
|
271d70d6f3 | ||
|
|
e52a6c430b | ||
|
|
d77d25acf8 | ||
|
|
9898809f0a | ||
|
|
48768aa13c | ||
|
|
b1c01a763f | ||
|
|
d9bcd6007c | ||
|
|
d1b478b3b1 | ||
|
|
14b421f533 | ||
|
|
7310a8e4df | ||
|
|
c1c3a7dc78 | ||
|
|
ff10b77414 | ||
|
|
4667c332b4 | ||
|
|
4a9f6b6a22 | ||
|
|
f1d78243d0 | ||
|
|
6e41c8a2a0 | ||
|
|
9c5955feb0 | ||
|
|
0764b180f7 | ||
|
|
b883e4e4fe | ||
|
|
f78688b684 | ||
|
|
097cd5e2ca | ||
|
|
cd4836ae99 | ||
|
|
f0acf179c2 | ||
|
|
836ad12c40 | ||
|
|
a147fa3100 | ||
|
|
a68a05a838 | ||
|
|
95504547df | ||
|
|
ceb2a70664 | ||
|
|
8593a1975c | ||
|
|
2049353647 | ||
|
|
48d9b2bc98 | ||
|
|
939bf588b3 | ||
|
|
a61b028e97 | ||
|
|
e29bdd09c5 | ||
|
|
74b082760d | ||
|
|
4460fa608b | ||
|
|
949192c570 | ||
|
|
4fa0ca2304 | ||
|
|
d9d2f043fa | ||
|
|
1ea51f29c5 | ||
|
|
b0653416f6 | ||
|
|
b4570cbdaa | ||
|
|
f2dc344bf8 | ||
|
|
c0654448f0 | ||
|
|
2bf3912633 | ||
|
|
4d71fb8409 | ||
|
|
8543a099f4 | ||
|
|
9c6ec02b18 | ||
|
|
bb9118ee32 | ||
|
|
1847aac223 | ||
|
|
14be968089 | ||
|
|
9f678263d0 | ||
|
|
cb0667921e | ||
|
|
52ab27a825 | ||
|
|
38b89093fa | ||
|
|
224ce007e1 | ||
|
|
2800685cfc | ||
|
|
0241d7fe00 | ||
|
|
5d8bb3223f | ||
|
|
5e1f943a38 | ||
|
|
fca7b4a837 | ||
|
|
02ce2ff5ec | ||
|
|
d2bab80b29 | ||
|
|
667a8bb166 | ||
|
|
76a18d001f | ||
|
|
78ab90c1a6 | ||
|
|
45b9aeb85a | ||
|
|
d580306b8a | ||
|
|
102e944fd5 | ||
|
|
3748896ebc | ||
|
|
79988dea3d | ||
|
|
4409a5848f | ||
|
|
07c13636fc | ||
|
|
51cc706b1e | ||
|
|
54bd31c80a | ||
|
|
61534d7356 | ||
|
|
9bd4a933cf | ||
|
|
e233635783 | ||
|
|
da24ba20c7 | ||
|
|
74bdabc636 | ||
|
|
4b129314d3 | ||
|
|
3a55972997 | ||
|
|
6e04e4171e | ||
|
|
cccfaaabfd | ||
|
|
eadbe9c2e5 | ||
|
|
9bbabcee06 | ||
|
|
7ca6fa6772 | ||
|
|
6317e9c510 | ||
|
|
0a80985771 | ||
|
|
548d52cc60 | ||
|
|
11c6c69a00 | ||
|
|
08025d2da3 | ||
|
|
4169e7bd71 | ||
|
|
bfb7a6b08d | ||
|
|
58abb0d4c3 | ||
|
|
9658279cb1 | ||
|
|
d1a6394e52 | ||
|
|
6f4e387061 | ||
|
|
33ef566fd2 | ||
|
|
eeecd954e2 | ||
|
|
ccb804a4ed | ||
|
|
a21029ee9e | ||
|
|
ccc90842a7 | ||
|
|
dc069d7bb5 | ||
|
|
f4a827dfc2 | ||
|
|
4f3232b6cc | ||
|
|
7393eb728c | ||
|
|
1e715f8cd7 | ||
|
|
d6b838f7cb | ||
|
|
7aadc77a69 | ||
|
|
27e1406e6d | ||
|
|
796204d376 | ||
|
|
acabd1a03e | ||
|
|
c08aae2622 | ||
|
|
3eba512ad4 | ||
|
|
c99115d552 | ||
|
|
bf6c682cc1 | ||
|
|
dc2f0b5707 | ||
|
|
9488d98cfd | ||
|
|
906b8165d3 | ||
|
|
74c8325987 | ||
|
|
e30efbfe6c | ||
|
|
5d4bb0f5ce | ||
|
|
e63777c7d6 | ||
|
|
a34ca05bff | ||
|
|
af9ffc1f6f | ||
|
|
18816453f4 | ||
|
|
1eb8a75058 | ||
|
|
5abf42fe75 | ||
|
|
1306a233b8 | ||
|
|
46f8c6b7a5 | ||
|
|
face5cf447 | ||
|
|
603267b753 | ||
|
|
7cf3113d67 | ||
|
|
397fa962b1 | ||
|
|
d2637ab71f | ||
|
|
a6e020adeb | ||
|
|
d50dcac0c0 | ||
|
|
dd6bc23a8e | ||
|
|
71575f5cf8 | ||
|
|
3685502edf | ||
|
|
9899747a7f | ||
|
|
d2a415380d | ||
|
|
dd7ffd7dfe | ||
|
|
770f9af5e1 | ||
|
|
c2ab5be8b8 | ||
|
|
b8ae656968 | ||
|
|
553b61e1f5 | ||
|
|
f87bcef079 | ||
|
|
c3458afe2b | ||
|
|
17bc8a4a36 | ||
|
|
b04f017ab6 | ||
|
|
083ddb6396 | ||
|
|
c3129742c3 | ||
|
|
877bd640f3 | ||
|
|
3233df9c6c | ||
|
|
9ad5f5189c | ||
|
|
c7718dea79 | ||
|
|
5a0fb59b26 | ||
|
|
07c52e6af5 | ||
|
|
405c566038 | ||
|
|
78780799ea | ||
|
|
82b9457aa7 | ||
|
|
4e6abb39dd | ||
|
|
14400097dd | ||
|
|
c44c0e10c1 | ||
|
|
bbf49db184 | ||
|
|
15787a97bb | ||
|
|
b76ce23ed2 | ||
|
|
d6c5066bfd | ||
|
|
60783d7109 | ||
|
|
db525f15da | ||
|
|
f33daf6bee | ||
|
|
d13928b394 | ||
|
|
5613a0d173 | ||
|
|
aa38586f82 | ||
|
|
d2b1ceb641 | ||
|
|
9dd7e9a25f | ||
|
|
1648273ddd | ||
|
|
3f90e4f12a | ||
|
|
2b9d565f0c | ||
|
|
70af63cc94 | ||
|
|
64b92881f9 | ||
|
|
be5ea069ad | ||
|
|
71e9357114 | ||
|
|
e28f86ac32 | ||
|
|
f97fe4bd65 | ||
|
|
3d0ac03f06 | ||
|
|
094132b7d3 | ||
|
|
51b9c9ae5a | ||
|
|
d31941ef13 | ||
|
|
48db826142 | ||
|
|
32b62d19ff | ||
|
|
e4f2961129 | ||
|
|
eba09dfad2 | ||
|
|
d9b72fcae6 | ||
|
|
6f17e7f735 | ||
|
|
047b82acc0 | ||
|
|
5347039d75 | ||
|
|
edc8095577 | ||
|
|
06f69723c2 | ||
|
|
8218fd4f57 | ||
|
|
6ee22edac5 | ||
|
|
37215ef1f4 | ||
|
|
a2eb2222b9 | ||
|
|
d63b4d9463 | ||
|
|
3bd85c20bc | ||
|
|
f70063c7d8 | ||
|
|
a2f7dd7408 | ||
|
|
147014d43a | ||
|
|
9460d1e9a1 | ||
|
|
b3a9a6b59a | ||
|
|
69f7d669c8 | ||
|
|
74a68b1462 | ||
|
|
006ea90493 | ||
|
|
aede063266 | ||
|
|
5aaeff4c5d | ||
|
|
5f80d6c18d | ||
|
|
7c59c9e6ec | ||
|
|
aae83b3235 | ||
|
|
520165128a | ||
|
|
556ced63cf | ||
|
|
063bf830ff | ||
|
|
7fd3bd412c | ||
|
|
47b9508af2 | ||
|
|
417c44aad0 | ||
|
|
1fefa0a99a | ||
|
|
06db4d2b62 | ||
|
|
bf7fc12a8d | ||
|
|
395daf57fa | ||
|
|
97219b7a84 | ||
|
|
0d5d677eff | ||
|
|
3bd6c99a3b | ||
|
|
1d2d8d58db | ||
|
|
9909b002fe | ||
|
|
ccda1ef104 | ||
|
|
52a882bda2 | ||
|
|
177c60e857 | ||
|
|
0566b96738 | ||
|
|
f72c179f56 | ||
|
|
0da963c794 | ||
|
|
7d885f7100 | ||
|
|
c1c2f794e3 | ||
|
|
8bb1c7a032 | ||
|
|
804123afc1 | ||
|
|
8e4f278ce4 | ||
|
|
3193241b11 | ||
|
|
edb44fa6a2 | ||
|
|
66e9ac3657 | ||
|
|
87e0796bf4 | ||
|
|
6bc6db3665 | ||
|
|
2a4aa51373 | ||
|
|
e15b052570 | ||
|
|
629e249a12 | ||
|
|
86a260bb89 | ||
|
|
6ab2de2787 | ||
|
|
8effdc1615 | ||
|
|
561fc2d01a | ||
|
|
3fd9cf573b | ||
|
|
d7c0bed4eb | ||
|
|
afd1f595e1 | ||
|
|
f47a43df2f | ||
|
|
4385327101 | ||
|
|
4e73c05ef9 | ||
|
|
c01ef035a5 | ||
|
|
b59c080943 | ||
|
|
814c65b290 | ||
|
|
9f1c1c3f18 | ||
|
|
e0df7dfba5 | ||
|
|
220db7212f | ||
|
|
d59f45a26a | ||
|
|
f88d92ecee | ||
|
|
c28188b6d8 | ||
|
|
80419748db | ||
|
|
874e6cd5af | ||
|
|
cd500fc344 | ||
|
|
ae7afc5749 | ||
|
|
b0fa94c781 | ||
|
|
9bf717fae9 | ||
|
|
859c1020e6 | ||
|
|
9108d64820 | ||
|
|
e9d3c1a421 | ||
|
|
f36e069f40 | ||
|
|
1f5c7b1d12 | ||
|
|
94ecb9e634 | ||
|
|
b9db67bc08 | ||
|
|
c152799295 | ||
|
|
f91165857d | ||
|
|
29b93f02f1 | ||
|
|
f9a6452528 | ||
|
|
e7e51957e9 | ||
|
|
f8903e7ce7 | ||
|
|
d3548a4dfb | ||
|
|
eca72c6dc6 | ||
|
|
6e378f4de6 | ||
|
|
94ac52d792 | ||
|
|
1f276a7eb6 | ||
|
|
a28a590078 | ||
|
|
91d052d25e | ||
|
|
2f6ded132d | ||
|
|
51cdc1ce90 | ||
|
|
494fe0b1e7 | ||
|
|
eac5310f5e | ||
|
|
7f4a2f9943 | ||
|
|
28a31301d4 | ||
|
|
1c5e575718 | ||
|
|
4a2d6b2241 | ||
|
|
001baec444 | ||
|
|
1b35d4f03b | ||
|
|
75fc8cb766 | ||
|
|
28bef8c54f | ||
|
|
787973a3d5 | ||
|
|
f0e3ca7c1f | ||
|
|
1b837a81ef | ||
|
|
b74dd85ef2 | ||
|
|
fc9cc62b12 | ||
|
|
e665edb652 | ||
|
|
e81cde8753 | ||
|
|
4e995436c5 | ||
|
|
c57154a8e5 | ||
|
|
31fbba057a | ||
|
|
46fa6e7ba4 | ||
|
|
bbb0379813 | ||
|
|
156b63440e | ||
|
|
20e062b031 | ||
|
|
c98ebc9f35 | ||
|
|
c6001c7bf6 | ||
|
|
2d0945264f | ||
|
|
3d0981cf7b | ||
|
|
cce581fa51 | ||
|
|
2446b804c7 | ||
|
|
20cdb1c5ec | ||
|
|
212b184320 | ||
|
|
37e98f342c | ||
|
|
578f5b85dd | ||
|
|
99b1e3f969 | ||
|
|
8c9ef0e8f3 | ||
|
|
f91d3ccf24 | ||
|
|
691063983e | ||
|
|
b912047f68 | ||
|
|
f2ddbf1e68 | ||
|
|
5cd36e55ab | ||
|
|
1cb590ebb8 | ||
|
|
280e937844 | ||
|
|
5afb55547d | ||
|
|
e3c91629db | ||
|
|
1b0496b1e7 | ||
|
|
b7369b40cb | ||
|
|
6567313de6 | ||
|
|
5ecf3cc36c | ||
|
|
71e3d89181 | ||
|
|
a284ece8e4 | ||
|
|
e73e75e740 | ||
|
|
9bfd61fabc | ||
|
|
a2aeaa51e8 | ||
|
|
b558c3db98 | ||
|
|
0f70bcbf28 | ||
|
|
f7c4600007 | ||
|
|
8910f073e5 | ||
|
|
ea18be1866 | ||
|
|
0bd687eb15 | ||
|
|
25b74bf3dd | ||
|
|
e4f9ca3f3c | ||
|
|
38a3f403bd | ||
|
|
51dd2030a0 | ||
|
|
7e31067e6a | ||
|
|
9bf06ff30b | ||
|
|
85aa726bb7 | ||
|
|
3a67ff3afa | ||
|
|
0a022a4348 | ||
|
|
ad24beea5b | ||
|
|
9026ae7a16 | ||
|
|
2fee9b861f | ||
|
|
b7e2bcf02e | ||
|
|
d548848b18 | ||
|
|
4c628ea74f | ||
|
|
d3ef97f637 | ||
|
|
02bd819f7e | ||
|
|
ea3b4ddeb0 | ||
|
|
ab3ea7475f | ||
|
|
b9b97d0a56 | ||
|
|
e19db23bb5 | ||
|
|
5ec1ca46e5 | ||
|
|
c2c918fdda | ||
|
|
4627989401 | ||
|
|
9552e09471 | ||
|
|
c8fb25066b | ||
|
|
b1cb6d42f4 | ||
|
|
caf7e4a1cf | ||
|
|
6a5c0223c4 | ||
|
|
9ff2d66079 | ||
|
|
2db2b9309d | ||
|
|
7a38c15d59 | ||
|
|
cb7375f873 | ||
|
|
41e52f9e88 | ||
|
|
ce7e30a752 | ||
|
|
3214811fcb | ||
|
|
edda2a5399 | ||
|
|
926bc8e72c | ||
|
|
eadffb6be3 | ||
|
|
cf04e8c23c | ||
|
|
ec5840f840 | ||
|
|
7dc4a7177d | ||
|
|
3d91de8178 | ||
|
|
6ea1abfedc | ||
|
|
5251482dd7 | ||
|
|
dd73787c8b | ||
|
|
340450a67e | ||
|
|
0d40989f4c | ||
|
|
c640096d9c | ||
|
|
76081869e3 | ||
|
|
9156c1b850 | ||
|
|
d78718d8f4 | ||
|
|
eef1e986a6 | ||
|
|
8fa99c34be | ||
|
|
a35fbdd1b5 | ||
|
|
0efef78684 | ||
|
|
62ce17cb4c | ||
|
|
6112be232a | ||
|
|
c1a9c58eb5 | ||
|
|
0393588fe8 | ||
|
|
b7ff0325ea | ||
|
|
c4d39eae25 | ||
|
|
0e88981425 | ||
|
|
ed7fcae33b | ||
|
|
8b967fb3b7 | ||
|
|
4d68a5dc2b | ||
|
|
ecd6ef40ef | ||
|
|
0c9dc33ff0 | ||
|
|
98c27fe8ef | ||
|
|
3d490f52b2 | ||
|
|
c78c17d953 | ||
|
|
ee5d667a24 | ||
|
|
b9653b4ff8 | ||
|
|
78bcfa8cfa | ||
|
|
1f1130efda | ||
|
|
3d7b05d633 | ||
|
|
343bbd8a1a | ||
|
|
f702df48f5 | ||
|
|
bc382366a1 | ||
|
|
c158144b7b | ||
|
|
d4337fbc56 | ||
|
|
e822d8e7d1 | ||
|
|
dc95b2e8d7 | ||
|
|
d226ad38ff | ||
|
|
2a160c5247 | ||
|
|
641a9dc4e2 | ||
|
|
7e71af8d25 | ||
|
|
8e33d2e1b2 | ||
|
|
61118b348c | ||
|
|
84faff82a2 | ||
|
|
d6cf7cc06f | ||
|
|
0688b94729 | ||
|
|
695f53194d | ||
|
|
1b963c9439 | ||
|
|
b50d6dd389 | ||
|
|
2afad9490e | ||
|
|
812a275add | ||
|
|
90ccf7699b | ||
|
|
31ed12d88a | ||
|
|
5a4e44d064 | ||
|
|
515c67fa3a | ||
|
|
81d60165a3 | ||
|
|
cc0fac3546 | ||
|
|
d71ad13fcf | ||
|
|
0d13811305 | ||
|
|
b69cc4e34a | ||
|
|
caf8f383ad | ||
|
|
7db160a8e2 | ||
|
|
202a3d1fb1 | ||
|
|
332135fc6f | ||
|
|
7e895f82b2 | ||
|
|
c5c61f7692 | ||
|
|
bd8a392882 | ||
|
|
36183e6dc8 | ||
|
|
5ae4af54da | ||
|
|
620bdd1419 | ||
|
|
c18eacbb81 | ||
|
|
bb8acc5f51 | ||
|
|
d41f4810d7 | ||
|
|
387c4edb3b | ||
|
|
c3fd7c1a7a | ||
|
|
94f1ec18de | ||
|
|
e00f8f6cee | ||
|
|
79b0a9c833 | ||
|
|
5e8e2f4b3a | ||
|
|
f0158dd915 | ||
|
|
10cf251b46 | ||
|
|
72231e5658 | ||
|
|
c510ff3b1c | ||
|
|
936e138fee | ||
|
|
8325696b55 | ||
|
|
d63f517ae5 | ||
|
|
e74df8db90 | ||
|
|
1a0bf67452 | ||
|
|
f0df9b399b | ||
|
|
f9345308ff | ||
|
|
6ed7c75448 | ||
|
|
cb71167fb7 | ||
|
|
d4292987cc | ||
|
|
5da24a18dc | ||
|
|
1cf7b3e697 | ||
|
|
3f3672497b | ||
|
|
7714304c7a | ||
|
|
ff640639b2 | ||
|
|
0965603c8f | ||
|
|
b8412cec96 | ||
|
|
86b7e192b2 | ||
|
|
32b9e6094b | ||
|
|
3ff7f3158b | ||
|
|
bd83ba8ca9 | ||
|
|
785881c90e | ||
|
|
567ccf8a59 | ||
|
|
11423a6d78 | ||
|
|
ab6b716e78 | ||
|
|
7b1be2e34f | ||
|
|
19d0d247b4 | ||
|
|
1074a9e1d2 | ||
|
|
0648f384bb | ||
|
|
58d72204cc | ||
|
|
067b4c260f | ||
|
|
9e7e4d5fe7 | ||
|
|
7d9609be76 | ||
|
|
7e510f8bc5 | ||
|
|
a16e009370 | ||
|
|
a021c497b6 | ||
|
|
e77159cb58 | ||
|
|
36ac353f1f | ||
|
|
58122bf023 | ||
|
|
c5da23bb02 | ||
|
|
fd45391616 | ||
|
|
11dd80e4e7 | ||
|
|
298f8ef842 | ||
|
|
4c45b9fb85 | ||
|
|
599cea3238 | ||
|
|
0c5685e9eb | ||
|
|
760b82fd63 | ||
|
|
340034adf7 | ||
|
|
d978bfd0db | ||
|
|
de9f9722ac | ||
|
|
4dd9dc03fe | ||
|
|
47fc4aa39a | ||
|
|
84ad608d70 | ||
|
|
d4dd0c9992 | ||
|
|
ac93d027af | ||
|
|
190a95584c | ||
|
|
9ad368e420 | ||
|
|
a524215479 | ||
|
|
6104c36455 | ||
|
|
a04287c9f6 | ||
|
|
99876e3f73 | ||
|
|
f16f498f27 | ||
|
|
4f9b5923bd | ||
|
|
84476cd51f | ||
|
|
bf9a6bde82 | ||
|
|
a6f8f57725 | ||
|
|
02f4c334f0 | ||
|
|
9884b294c6 | ||
|
|
49f22b5790 | ||
|
|
841270e824 | ||
|
|
630ce57303 | ||
|
|
94aed4d1d1 | ||
|
|
cdc0ec96a9 | ||
|
|
751188bcd8 | ||
|
|
c0c44d46bc | ||
|
|
19d8749abf | ||
|
|
c6f9fb2ac2 | ||
|
|
b1cfdfbc14 | ||
|
|
360df11aa6 | ||
|
|
d88cc3251f | ||
|
|
cd7079da92 | ||
|
|
77a0e8213b | ||
|
|
5efa778509 | ||
|
|
02e6463fae | ||
|
|
b411787fe7 | ||
|
|
8fd91194a7 | ||
|
|
4f85e1d603 | ||
|
|
fae0aeb442 | ||
|
|
ec77824a96 | ||
|
|
4127936eef | ||
|
|
ae829375a0 | ||
|
|
a1afcbc855 | ||
|
|
e1e3aa899d | ||
|
|
2644a3bf6e | ||
|
|
6b4e81e1ec | ||
|
|
c705a0f35a | ||
|
|
b1b3102b31 | ||
|
|
2d823d34f9 | ||
|
|
1bb9fb2c67 | ||
|
|
b90e3ce9da | ||
|
|
e04a074a79 | ||
|
|
f98c3311af | ||
|
|
1a8c44af27 | ||
|
|
a57089c1a9 | ||
|
|
87001f7e78 | ||
|
|
1fbb05c938 | ||
|
|
3eef9d3b62 | ||
|
|
af2adf0134 | ||
|
|
bbdfee8d33 | ||
|
|
2c4da83502 | ||
|
|
75f2868971 | ||
|
|
87d9ecc3c8 | ||
|
|
b637943bd9 | ||
|
|
0514475155 | ||
|
|
8cfb39e035 | ||
|
|
a9a7cb7be0 | ||
|
|
f8649a24aa | ||
|
|
ee5a860e07 | ||
|
|
e6f03c1136 | ||
|
|
780162f516 | ||
|
|
a6d32d834b | ||
|
|
cef3c7f032 | ||
|
|
07f8a532f9 | ||
|
|
352adf526a | ||
|
|
df48f9caf9 | ||
|
|
f611053d4f | ||
|
|
39011cd93b | ||
|
|
562cb8cebd | ||
|
|
89ae721421 | ||
|
|
f65f4b32e2 | ||
|
|
303fca6bcc | ||
|
|
4aba159ee8 | ||
|
|
5838e60bf6 | ||
|
|
527e436d57 | ||
|
|
60ede73ff8 | ||
|
|
298d5e95fc | ||
|
|
e9a68f0b7d | ||
|
|
d613cf4d4c | ||
|
|
3487fae95d | ||
|
|
9ee47a071b | ||
|
|
3579fc3dea | ||
|
|
921bff19f1 | ||
|
|
d07420eaeb | ||
|
|
8028db77d8 | ||
|
|
e49a059783 | ||
|
|
482b6e6844 | ||
|
|
aa70635919 | ||
|
|
c331b0fa89 | ||
|
|
fe55744de2 | ||
|
|
15e9d85a14 | ||
|
|
51043b61a1 | ||
|
|
6620d5fb26 | ||
|
|
f547020fc5 | ||
|
|
89ea473c3b | ||
|
|
b60d9d0be7 | ||
|
|
4fdb2174f0 | ||
|
|
06a48584d6 | ||
|
|
e9f9c1009d | ||
|
|
b66ceda525 | ||
|
|
7c9c28f026 | ||
|
|
72f0552ef1 | ||
|
|
877a1f15a9 | ||
|
|
efa2a68805 | ||
|
|
023209bb76 | ||
|
|
da5dcde6ee | ||
|
|
e92c5e1bf9 | ||
|
|
2b7c4ae76c | ||
|
|
ea26db2cbd | ||
|
|
b9e3747f99 | ||
|
|
4d608b7f37 | ||
|
|
9c42b77879 | ||
|
|
a2d0ea9d11 | ||
|
|
298b4d23e8 | ||
|
|
875adb17b1 | ||
|
|
9eb68bf052 | ||
|
|
8cec2dab82 | ||
|
|
5f58e7b343 | ||
|
|
28bb88e9b4 | ||
|
|
04455c9625 | ||
|
|
9853150e57 | ||
|
|
85c7216eaa | ||
|
|
a54384a579 | ||
|
|
19f1d8b847 | ||
|
|
8270b64624 | ||
|
|
81e3810c32 | ||
|
|
c266151071 | ||
|
|
27d55260e8 | ||
|
|
233583657e | ||
|
|
7bb1eed249 | ||
|
|
aa85fc3787 | ||
|
|
c9a88617b1 | ||
|
|
2f899fdfcc | ||
|
|
cdd2b6560e | ||
|
|
60f29edbca | ||
|
|
60cffe1ed1 | ||
|
|
e77e7d1643 | ||
|
|
5dc22f502e | ||
|
|
7a309c1175 | ||
|
|
9ce5baad9e | ||
|
|
a4aa9a76f2 | ||
|
|
befa25de5c | ||
|
|
83175d5c09 | ||
|
|
d8df8e8778 | ||
|
|
09957d0279 | ||
|
|
9e44985f56 | ||
|
|
b657a84699 | ||
|
|
5ec7835556 | ||
|
|
03a864156d | ||
|
|
c823bf3320 | ||
|
|
4f4d2f1f4c | ||
|
|
1bb389052d | ||
|
|
31fdc5bbc1 | ||
|
|
db3833430d | ||
|
|
6d2212d259 | ||
|
|
912c0e7fc4 | ||
|
|
43d232819a | ||
|
|
302eaf60b5 | ||
|
|
84535faa90 | ||
|
|
8c55d3c705 | ||
|
|
ec11b9268f | ||
|
|
a45af4a80c | ||
|
|
df627b6830 | ||
|
|
dfbeaf30ad | ||
|
|
a03f74b125 | ||
|
|
1a01f1299c | ||
|
|
91f0cdbaca | ||
|
|
e50bd4125d | ||
|
|
ded2c8a7c8 | ||
|
|
88ce9fc0a6 | ||
|
|
3c713248b3 | ||
|
|
75f3edcd92 | ||
|
|
081a7779a6 | ||
|
|
6e995207a6 | ||
|
|
3492b77aa0 | ||
|
|
e864901035 | ||
|
|
7ee6de6b6a | ||
|
|
553b8ccf6b | ||
|
|
bceef0b861 | ||
|
|
53cce6c6bb | ||
|
|
b95047d09f | ||
|
|
c6cb4375f5 | ||
|
|
a07e2b8eda | ||
|
|
98e7002167 | ||
|
|
3428dde3c6 | ||
|
|
13d48f982b | ||
|
|
b2e4dc27e4 | ||
|
|
deddeab049 | ||
|
|
c3a6410822 | ||
|
|
c5915091aa | ||
|
|
4401f0659e | ||
|
|
a0c72d32e8 | ||
|
|
1493045ec4 | ||
|
|
210efb2be7 | ||
|
|
a02fc1de63 | ||
|
|
7755bfc861 | ||
|
|
01172bca77 | ||
|
|
143cbc8587 | ||
|
|
b65f655a8a | ||
|
|
ed04c86369 | ||
|
|
c0eaa17eb3 | ||
|
|
6383a55038 | ||
|
|
574df60d58 | ||
|
|
61ee575cd3 | ||
|
|
bdd963081e | ||
|
|
6b908d7a14 | ||
|
|
7d0d70c094 | ||
|
|
e75c5a9248 | ||
|
|
b8ed5f4f1a | ||
|
|
660d7060e4 | ||
|
|
79c5f57714 | ||
|
|
606d8fbe55 | ||
|
|
edfa116a40 | ||
|
|
55ca0c712f | ||
|
|
16bef488ee | ||
|
|
82d784d9f8 | ||
|
|
103fb2dfc1 | ||
|
|
bba3e1810b | ||
|
|
af5333f63e | ||
|
|
ea77a5fb53 | ||
|
|
a4aef0894b | ||
|
|
bab7972518 | ||
|
|
88853a7aee | ||
|
|
d3339df853 | ||
|
|
385614b448 | ||
|
|
c47ba80f5d | ||
|
|
6de0700f49 | ||
|
|
d9fe52b1a1 | ||
|
|
ccfc476ec0 | ||
|
|
f518b3c48b | ||
|
|
81d52db722 | ||
|
|
df9973da99 | ||
|
|
ca4c779c66 | ||
|
|
7897352175 | ||
|
|
e0e75eac33 | ||
|
|
31d83dd26e | ||
|
|
698a0b811f | ||
|
|
f69609b403 | ||
|
|
56259e3476 | ||
|
|
f3dfa53f31 | ||
|
|
e10d60c08e | ||
|
|
ad4037351f | ||
|
|
f9e1da8c9f | ||
|
|
2f05137af7 | ||
|
|
c305e31c2e | ||
|
|
a55fabe4f9 | ||
|
|
c58848b298 | ||
|
|
ede644d3c4 | ||
|
|
4ff98e62a9 | ||
|
|
e87fd2fff6 | ||
|
|
33e8b10579 | ||
|
|
d11780f62d | ||
|
|
7706aa0bf0 | ||
|
|
cf96e10552 | ||
|
|
1d01e1e6cd | ||
|
|
a5c4759662 | ||
|
|
e7ff1d693b | ||
|
|
9b4354a057 | ||
|
|
51a46ba92c | ||
|
|
31c4e0d59f | ||
|
|
6b246548c3 | ||
|
|
57dda3843a | ||
|
|
b04ac14751 | ||
|
|
5ad8497db2 | ||
|
|
672f07a5ee | ||
|
|
aceffafc4e | ||
|
|
891b3183ed | ||
|
|
26dd066280 | ||
|
|
157ebdb5fe | ||
|
|
1a18839f82 | ||
|
|
e7f8e7628f | ||
|
|
07190571a1 | ||
|
|
f04d922fca | ||
|
|
7fa382d4e9 | ||
|
|
97766710c0 | ||
|
|
994ee060a7 | ||
|
|
589c27fdcf | ||
|
|
37a018fda4 | ||
|
|
f49381d1c5 | ||
|
|
573095bbad | ||
|
|
0fdcc8e288 | ||
|
|
03d7e26c3d | ||
|
|
3a5cd835ad | ||
|
|
47a8f081e9 | ||
|
|
ad8d691c11 | ||
|
|
8186696e62 | ||
|
|
183ec22923 | ||
|
|
5376995350 | ||
|
|
acb6e30fad | ||
|
|
fe0dabb177 | ||
|
|
194ae46ce8 | ||
|
|
2e9f1bfe90 | ||
|
|
a82adc4948 | ||
|
|
6440c70a38 | ||
|
|
748eb07c9a | ||
|
|
5be2f591d2 | ||
|
|
f2e4950e89 | ||
|
|
7444c5b826 | ||
|
|
5f6cca68cc | ||
|
|
3d33e5351b | ||
|
|
c6e245450d | ||
|
|
36854a16b7 | ||
|
|
b4ee8229ee | ||
|
|
cf0a3841e8 | ||
|
|
3ebd2257f8 | ||
|
|
844d1967cc | ||
|
|
dac37f8938 | ||
|
|
dd74bc7c2b | ||
|
|
7eec58a834 | ||
|
|
da81998c71 | ||
|
|
d1552e7b71 | ||
|
|
c64e10083b | ||
|
|
43e2be58da | ||
|
|
63b60d2546 | ||
|
|
91ddc709eb | ||
|
|
1bcb67ffb9 | ||
|
|
976177c244 | ||
|
|
a37c81a142 | ||
|
|
58de3a35a0 | ||
|
|
44b8a8a0d8 | ||
|
|
b0f5f4338f | ||
|
|
6457847633 | ||
|
|
69d47a5e53 | ||
|
|
02177a7794 | ||
|
|
65c15126f1 | ||
|
|
76c78b8e63 | ||
|
|
f63342ff0f | ||
|
|
e3410cf34c | ||
|
|
7a129047e7 | ||
|
|
343716b7da | ||
|
|
1687fb9120 | ||
|
|
3e89057c23 | ||
|
|
774587efa6 | ||
|
|
2dc8bf321e | ||
|
|
992813d770 | ||
|
|
46882dee93 | ||
|
|
8bbb7b540f | ||
|
|
f5f1ab036d | ||
|
|
f15d556c05 | ||
|
|
570a664db8 | ||
|
|
52f69324d9 | ||
|
|
ea6016b1ba | ||
|
|
30fcffd63c | ||
|
|
50446bbde4 | ||
|
|
b307033aab | ||
|
|
3e5985833c | ||
|
|
8421f02aab | ||
|
|
b6daafec17 | ||
|
|
fc058b669e | ||
|
|
99214b98b9 | ||
|
|
ab35a44ed9 | ||
|
|
125b82a5bb | ||
|
|
f294ea157f | ||
|
|
486ae052ef | ||
|
|
53b5442dad | ||
|
|
507c5f75bd | ||
|
|
0fb72c579e | ||
|
|
c5d6ac63c5 | ||
|
|
a934c76263 | ||
|
|
0098c3bbc0 | ||
|
|
f3eedc03e6 | ||
|
|
17c71a2528 | ||
|
|
d2ecbd7c6e | ||
|
|
2ce7dc0c37 | ||
|
|
b648424c18 | ||
|
|
301754c857 | ||
|
|
c9a3c4c9b8 | ||
|
|
ce0c8b363a | ||
|
|
9d6c38004c | ||
|
|
19a58cc8c6 | ||
|
|
d855c39da2 | ||
|
|
03f4bfecc1 | ||
|
|
c8d9e4c7b3 | ||
|
|
cb2b8f2e7c | ||
|
|
0272dd4c24 | ||
|
|
3b327937c2 | ||
|
|
f8f2f17184 | ||
|
|
2efaebcf89 | ||
|
|
150c695979 | ||
|
|
6fe87ab05a | ||
|
|
f6613a5555 | ||
|
|
947d5c2739 | ||
|
|
1544706ff4 | ||
|
|
e121d1a8a1 | ||
|
|
badbdbf03f | ||
|
|
3b5495b53a | ||
|
|
545027ae64 | ||
|
|
91896433f8 | ||
|
|
a60074fc8a | ||
|
|
eb82aa14bb | ||
|
|
cb4b640730 | ||
|
|
266d9a3c71 | ||
|
|
7a5a704a15 | ||
|
|
29ed8de935 | ||
|
|
3418cab5de | ||
|
|
e2ce015d49 | ||
|
|
0d0ab3f414 | ||
|
|
22b5bcc7e1 | ||
|
|
34d5d73d7e | ||
|
|
7ae4441731 | ||
|
|
d0b7f6203c | ||
|
|
3757f3ae57 | ||
|
|
8f9366da5a | ||
|
|
b8e55f87a9 | ||
|
|
b469f70e02 | ||
|
|
6df69b24db | ||
|
|
0133a5eb23 | ||
|
|
86712c2c48 | ||
|
|
5195caa3c6 | ||
|
|
684ad38d4b | ||
|
|
c6d292a3d7 | ||
|
|
246414a735 | ||
|
|
429bcffaf8 | ||
|
|
d92e7b138c | ||
|
|
cd51ad2a25 | ||
|
|
8732825404 | ||
|
|
fc37cdcc95 | ||
|
|
2435ec9515 | ||
|
|
623fab8ea8 | ||
|
|
e063345c4b | ||
|
|
27533a1dcd | ||
|
|
d232e0e2c6 | ||
|
|
0475489e24 | ||
|
|
34b35db27f | ||
|
|
b47bc12e48 | ||
|
|
4d102dcf68 | ||
|
|
a8c9663200 | ||
|
|
57660cc5af | ||
|
|
c459e918af | ||
|
|
962abba1b2 | ||
|
|
5297d18f92 | ||
|
|
7853e48a6f | ||
|
|
303d87f69d | ||
|
|
9dcdc9500d | ||
|
|
7723bafff6 | ||
|
|
d74a89c6c1 | ||
|
|
cce443be0b | ||
|
|
81fa3d27bf | ||
|
|
493091cd66 | ||
|
|
c75f5ee961 | ||
|
|
083e0ca2e0 | ||
|
|
79bd89016c | ||
|
|
eca7e38763 | ||
|
|
b5cbfb970f | ||
|
|
74e1cafd9d | ||
|
|
ee7381b67d | ||
|
|
7f93bc305d | ||
|
|
c7931ca69c | ||
|
|
90f06a3289 | ||
|
|
0e344a7e02 | ||
|
|
3f91a4e908 | ||
|
|
fb443c58ab | ||
|
|
b233514b58 | ||
|
|
11615171d1 | ||
|
|
2df4738af2 | ||
|
|
9e62f5bd52 | ||
|
|
80349ae8ee | ||
|
|
06d51f2648 | ||
|
|
fcc810f703 | ||
|
|
d6d70e1525 | ||
|
|
e5f79e061c | ||
|
|
ad3c0a1ffd | ||
|
|
2ef935198a | ||
|
|
dc3b9c648a | ||
|
|
2d610d40b6 | ||
|
|
d2c686f48b | ||
|
|
5cafec3262 | ||
|
|
580c42d167 | ||
|
|
dcfec35e57 | ||
|
|
701bac6e11 | ||
|
|
0c46d593d8 | ||
|
|
b867de0667 | ||
|
|
e207b75c7a | ||
|
|
fc3df5bfe4 | ||
|
|
dfb05b9d39 | ||
|
|
19702daecd | ||
|
|
dde4b4df3b | ||
|
|
c070930a8c | ||
|
|
d36b5f7c59 | ||
|
|
0e517907ce | ||
|
|
739e9716ab | ||
|
|
0e5972d895 | ||
|
|
71975658ca | ||
|
|
6572e29a64 | ||
|
|
41b21c2a0c | ||
|
|
2b19d2e6de | ||
|
|
f99aa3459c | ||
|
|
5bce9d5abf | ||
|
|
abe102649e | ||
|
|
424fcdc63a | ||
|
|
a3fd451c74 | ||
|
|
731fd113d2 | ||
|
|
c9ca1bda5c | ||
|
|
58ea822050 | ||
|
|
671484d6f9 | ||
|
|
e6e74194bc | ||
|
|
04432c8368 | ||
|
|
6782876c0c | ||
|
|
4b09e92d7c | ||
|
|
3266f64fb9 | ||
|
|
2a9886e698 | ||
|
|
1319e3a811 | ||
|
|
6cbb40f874 | ||
|
|
07fd6a3ad4 | ||
|
|
8891869013 | ||
|
|
04fc735e12 | ||
|
|
7b9860f1be | ||
|
|
38f26a2bd8 | ||
|
|
a9750f8cff | ||
|
|
ad86e7f34a | ||
|
|
496435ef3b | ||
|
|
5275b31e7e | ||
|
|
e341991703 | ||
|
|
fb65496507 | ||
|
|
abe52ba440 | ||
|
|
ee5d097201 | ||
|
|
0ea182d04f | ||
|
|
8d737c96c9 | ||
|
|
5c93b90c2e | ||
|
|
41bee850da | ||
|
|
416c2a9e9d | ||
|
|
8fa9fccc79 | ||
|
|
c5a4071a06 | ||
|
|
930e48ad39 | ||
|
|
868678f321 | ||
|
|
8530b6512c | ||
|
|
2a5f487e5f | ||
|
|
141f6c51dc | ||
|
|
1fc9492b30 | ||
|
|
65782d3d75 | ||
|
|
b5cb6dfb9d | ||
|
|
6667e4b8bc | ||
|
|
5e2492a930 | ||
|
|
4f07372e0f | ||
|
|
80a1a97083 | ||
|
|
204476c55d | ||
|
|
8fab258778 | ||
|
|
12059955e5 | ||
|
|
3ca1f957ba | ||
|
|
b11362aec1 | ||
|
|
75630df10e | ||
|
|
4d93abb7ac | ||
|
|
731943f980 | ||
|
|
265dc1f296 | ||
|
|
c449ffcc98 | ||
|
|
34500d32d0 | ||
|
|
d3e5dfc346 | ||
|
|
8ed11107eb | ||
|
|
2f51108783 | ||
|
|
2667a66419 | ||
|
|
0fd073f2f0 | ||
|
|
840cf4e00a | ||
|
|
d5d99f94b7 | ||
|
|
dea19e4416 | ||
|
|
f7612d7398 | ||
|
|
e39182607e | ||
|
|
79f1febbce | ||
|
|
120def9676 | ||
|
|
82562bc20d | ||
|
|
1c51361120 | ||
|
|
c07e79deb7 | ||
|
|
81cb1111b4 | ||
|
|
369307181e | ||
|
|
7881e04e6b | ||
|
|
66a72eb1be | ||
|
|
ad77f11859 | ||
|
|
96d177876f | ||
|
|
dc7392f86b | ||
|
|
6f6252b6f8 | ||
|
|
20b32df2c6 | ||
|
|
d413d02bf7 | ||
|
|
426c0366cc | ||
|
|
d3d3655580 | ||
|
|
d4a011ee6d | ||
|
|
b08118734e | ||
|
|
41ee6de784 | ||
|
|
139d2e6be8 | ||
|
|
a866461b0a | ||
|
|
6f61331d46 | ||
|
|
7731ca9fb2 | ||
|
|
3de0c4f5d8 | ||
|
|
2e602f8861 | ||
|
|
1a7d92a082 | ||
|
|
5aa2a0c821 | ||
|
|
4f2328b8dc | ||
|
|
e929e524a3 | ||
|
|
e6b9f18d3d | ||
|
|
7f197ef84e | ||
|
|
a9d7ca3332 | ||
|
|
a65e586de5 | ||
|
|
7072a50060 | ||
|
|
fc1a367c2e | ||
|
|
3b376d85d4 | ||
|
|
9aca8438a2 | ||
|
|
c2d37dfb61 | ||
|
|
3c3bd0f0ea | ||
|
|
958db336b7 | ||
|
|
342d570b3b | ||
|
|
67457c25df | ||
|
|
a98d46f8a8 | ||
|
|
b2fca84b15 | ||
|
|
2e31169738 | ||
|
|
4cda2c8093 | ||
|
|
73b4e8a988 | ||
|
|
82dbfb4379 | ||
|
|
0e2ff2390a | ||
|
|
220d5db739 | ||
|
|
212d475f50 | ||
|
|
b7fbd0433f | ||
|
|
d28dd96aa0 | ||
|
|
0e46f91c51 | ||
|
|
d6dabacb05 | ||
|
|
4363473955 | ||
|
|
7e5fd4e290 | ||
|
|
c30a0cd4f1 | ||
|
|
98d56a38f5 | ||
|
|
f26e95e7c9 | ||
|
|
f39e1a9b70 | ||
|
|
1d5b531ba3 | ||
|
|
a90bd08405 | ||
|
|
1cbb726cab | ||
|
|
ce61d00dcf | ||
|
|
2d92b798c6 | ||
|
|
cc62164a7c | ||
|
|
af510bce93 | ||
|
|
4ba60bedcd | ||
|
|
583bf26129 | ||
|
|
d8c3623141 | ||
|
|
2cd0875da6 | ||
|
|
73d0848f7e | ||
|
|
d757e82e3f | ||
|
|
007238e7dd | ||
|
|
944e019020 | ||
|
|
634f8897b4 | ||
|
|
7651d31c50 | ||
|
|
1702873ab1 | ||
|
|
44e7d5249c | ||
|
|
8ab37040db | ||
|
|
ac203b0ccb | ||
|
|
557546c9c3 | ||
|
|
52a94dbe78 | ||
|
|
f4ffc19981 | ||
|
|
ac3c117b03 | ||
|
|
1ac008ab02 | ||
|
|
58ac86e3bf | ||
|
|
1daf06858b | ||
|
|
a4e8ce7f01 | ||
|
|
ed6e16cdce | ||
|
|
57bb92a36c | ||
|
|
142540e263 | ||
|
|
5a17430747 | ||
|
|
23c84a9e96 | ||
|
|
6bb9dcc216 | ||
|
|
1901e4dbdc | ||
|
|
1657f769da | ||
|
|
c82eb489fe | ||
|
|
9f05befd70 | ||
|
|
f274ed3fd8 | ||
|
|
f6e027abcb | ||
|
|
a92114a854 | ||
|
|
ffb84705d3 | ||
|
|
2f8366b6f9 | ||
|
|
a6f062c126 | ||
|
|
41c24f3bc9 | ||
|
|
af40bdb11b | ||
|
|
00a69e6aed | ||
|
|
04b2d784ce | ||
|
|
a5de51b039 | ||
|
|
4a80e9f20f | ||
|
|
8676769a8f | ||
|
|
2f8c7a81ca | ||
|
|
ac11af6048 | ||
|
|
7c558802a4 | ||
|
|
5a516aa1ad | ||
|
|
4d1b6ed974 | ||
|
|
e8e6bb0499 | ||
|
|
58f94666d1 | ||
|
|
085efaa605 | ||
|
|
6028e392f0 | ||
|
|
fa67dd74a0 | ||
|
|
cb734b50c3 | ||
|
|
087e58b88b | ||
|
|
78b9d67aaa | ||
|
|
a6015e4647 | ||
|
|
fcbe95447a | ||
|
|
760fe392a8 | ||
|
|
5dab606980 | ||
|
|
c265575dfd | ||
|
|
4a1f526ac6 | ||
|
|
497b633661 | ||
|
|
c7f54a98e0 | ||
|
|
7da8c20409 | ||
|
|
116328c7bf | ||
|
|
bd68fef4a2 | ||
|
|
7759d56ad3 | ||
|
|
9c7020a369 | ||
|
|
f8c1903316 | ||
|
|
652423ad14 |
No files matched your search
@@ -1,73 +0,0 @@
|
|||||||
version: 2
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
working_directory: /root/SRB2
|
|
||||||
docker:
|
|
||||||
- image: debian:stretch
|
|
||||||
environment:
|
|
||||||
CC: ccache gcc -m32
|
|
||||||
PKG_CONFIG_LIBDIR: /usr/lib/i386-linux-gnu/pkgconfig
|
|
||||||
LIBGME_CFLAGS: -I/usr/include
|
|
||||||
LIBGME_LDFLAGS: -lgme
|
|
||||||
CCACHE_COMPRESS: true
|
|
||||||
WFLAGS: -Wno-unsuffixed-float-constants
|
|
||||||
GCC49: true
|
|
||||||
#- image: ubuntu:trusty
|
|
||||||
# environment:
|
|
||||||
# CC: ccache gcc -m32
|
|
||||||
# PKG_CONFIG_LIBDIR: /usr/lib/i386-linux-gnu/pkgconfig
|
|
||||||
# LIBGME_CFLAGS: -I/usr/include
|
|
||||||
# LIBGME_LDFLAGS: -lgme
|
|
||||||
# CCACHE_COMPRESS: true
|
|
||||||
# WFLAGS: -Wno-unsuffixed-float-constants
|
|
||||||
# GCC48: true
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: Add i386 arch
|
|
||||||
command: dpkg --add-architecture i386
|
|
||||||
- run:
|
|
||||||
name: Add STJr PPA
|
|
||||||
command: |
|
|
||||||
apt-get -qq update
|
|
||||||
apt-get -qq -y install dirmngr
|
|
||||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0B1702D71499D9C25F986507F240F4449D3B0EC6
|
|
||||||
echo "deb http://ppa.launchpad.net/stjr/srb2/ubuntu trusty main" >> /etc/apt/sources.list
|
|
||||||
- run:
|
|
||||||
name: Update APT listing
|
|
||||||
command: apt-get -qq update
|
|
||||||
- run:
|
|
||||||
name: Support S3 upload
|
|
||||||
command: apt-get -qq -y install ca-certificates
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-SRB2-APT
|
|
||||||
- run:
|
|
||||||
name: Install SDK
|
|
||||||
command: apt-get -qq -y --no-install-recommends install git build-essential libpng-dev:i386 libsdl2-mixer-dev:i386 libgme-dev:i386 libcurl4-openssl-dev:i386 libopenmpt-dev:i386 gettext ccache wget gcc-multilib upx openssh-client
|
|
||||||
- save_cache:
|
|
||||||
key: v1-SRB2-APT
|
|
||||||
paths:
|
|
||||||
- /var/cache/apt/archives
|
|
||||||
- checkout
|
|
||||||
#- run:
|
|
||||||
# name: Compile without network support and BLUA
|
|
||||||
# command: make -C src LINUX=1 ERRORMODE=1 -k NONET=1 NO_LUA=1
|
|
||||||
#- run:
|
|
||||||
# name: wipe build
|
|
||||||
# command: make -C src LINUX=1 cleandep
|
|
||||||
- run:
|
|
||||||
name: rebuild depend
|
|
||||||
command: make -C src LINUX=1 clean
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }}
|
|
||||||
- run:
|
|
||||||
name: Compile
|
|
||||||
command: make -C src LINUX=1 ERRORMODE=1 -k
|
|
||||||
- store_artifacts:
|
|
||||||
path: /root/SRB2/bin/Linux/Release/
|
|
||||||
destination: bin
|
|
||||||
- save_cache:
|
|
||||||
key: v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }}
|
|
||||||
paths:
|
|
||||||
- /root/.ccache
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
*.plg
|
*.plg
|
||||||
*.suo
|
*.suo
|
||||||
*.vcproj.*.*.user
|
*.vcproj.*.*.user
|
||||||
|
*.kate-swp
|
||||||
Win32_LIB_ASM_Debug
|
Win32_LIB_ASM_Debug
|
||||||
Win32_LIB_ASM_Release
|
Win32_LIB_ASM_Release
|
||||||
*.bsc
|
*.bsc
|
||||||
|
|||||||
-436
@@ -1,436 +0,0 @@
|
|||||||
default:
|
|
||||||
image: debian:stable-slim
|
|
||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
|
||||||
- build
|
|
||||||
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: clone
|
|
||||||
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH
|
|
||||||
|
|
||||||
.job_template: &job_build # This job runs in the build stage, which runs first.
|
|
||||||
|
|
||||||
stage: build
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG
|
|
||||||
fallback_keys:
|
|
||||||
- cache-$CI_PROJECT_PATH_SLUG-$CI_DEFAULT_BRANCH
|
|
||||||
- cache-$CI_PROJECT_PATH_SLUG-default
|
|
||||||
paths:
|
|
||||||
- ccache
|
|
||||||
- ccache_statslog
|
|
||||||
|
|
||||||
- key: apt-$CI_JOB_IMAGE
|
|
||||||
paths:
|
|
||||||
- apt-cache
|
|
||||||
unprotect: true
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- - |
|
|
||||||
# debconf
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- export DEBIAN_FRONTEND="noninteractive"
|
|
||||||
- export DEBIAN_PRIORITY="low"
|
|
||||||
- export DEBCONF_NONINTERACTIVE_SEEN="true"
|
|
||||||
- |
|
|
||||||
# debconf
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
- - |
|
|
||||||
# dpkg_aa
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg"
|
|
||||||
- dpkg --add-architecture i386
|
|
||||||
- dpkg --add-architecture amd64
|
|
||||||
- dpkg --add-architecture arm64
|
|
||||||
- |
|
|
||||||
# dpkg_aa
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:dpkg_aa\r\e[0K"
|
|
||||||
- - |
|
|
||||||
# apt_conf
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_conf[collapsed=true]\r\e[0KSetting up APT conf"
|
|
||||||
- export APT_CACHE_DIR=`pwd`/apt-cache
|
|
||||||
- mkdir --parents --verbose $APT_CACHE_DIR/partial/
|
|
||||||
- touch /etc/apt/apt.conf.d/99build
|
|
||||||
- |
|
|
||||||
# apt.conf
|
|
||||||
echo Adding options to apt.conf':'
|
|
||||||
- |
|
|
||||||
# APT::Install-Recommends
|
|
||||||
echo APT::Install-Recommends "false"\; | tee --append /etc/apt/apt.conf.d/99build
|
|
||||||
- |
|
|
||||||
# quit
|
|
||||||
echo quiet "1"\; | tee --append /etc/apt/apt.conf.d/99build
|
|
||||||
- |
|
|
||||||
# APT::Get::Assume-Yes
|
|
||||||
echo APT::Get::Assume-Yes "true"\; | tee --append /etc/apt/apt.conf.d/99build
|
|
||||||
- |
|
|
||||||
# Dir::Cache::Archives
|
|
||||||
echo Dir::Cache::Archives "$APT_CACHE_DIR"\; | tee --append /etc/apt/apt.conf.d/99build
|
|
||||||
- |
|
|
||||||
# apt_conf
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_conf\r\e[0K"
|
|
||||||
- - |
|
|
||||||
# apt_update
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_update[collapsed=true]\r\e[0KUpdating APT listing"
|
|
||||||
- apt-get update
|
|
||||||
- |
|
|
||||||
# apt_update
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_update\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_pre
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_pre[collapsed=true]\r\e[0KInstalling pre packages"
|
|
||||||
- apt-get install apt-utils
|
|
||||||
- |
|
|
||||||
# apt_pre
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_pre\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_upgrade
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_upgrade[collapsed=true]\r\e[0KUpdating existing packages"
|
|
||||||
- apt-get upgrade
|
|
||||||
- |
|
|
||||||
# apt_update
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_upgrade\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_common
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_common[collapsed=true]\r\e[0KInstalling common packages"
|
|
||||||
- apt-get install make git ccache
|
|
||||||
- |
|
|
||||||
# apt_common
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_common\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# ccache_config
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:ccache_config[collapsed=true]\r\e[0KSetting up ccache config"
|
|
||||||
- mkdir --parents --verbose ~/.ccache/
|
|
||||||
- touch ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# cache.conf
|
|
||||||
echo Adding ccache configution option
|
|
||||||
- |
|
|
||||||
# base_dir
|
|
||||||
echo base_dir = $PWD | tee --append ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# cache_dir
|
|
||||||
echo cache_dir = $PWD/ccache | tee --append ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# compiler_check
|
|
||||||
echo compiler_check = content | tee --append ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# stats_log
|
|
||||||
echo stats_log = $PWD/ccache_statslog | tee --append ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# max_size
|
|
||||||
echo max_size = 50M | tee --append ~/.ccache/ccache.conf
|
|
||||||
- |
|
|
||||||
# ccache_config
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:ccache_config\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# cache_reset
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:ccache_reset[collapsed=true]\r\e[0KResetting ccache statistics"
|
|
||||||
- ccache --zero-stats
|
|
||||||
- ccache --show-stats
|
|
||||||
- |
|
|
||||||
# ccache_reset
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:ccache_reset\r\e[0K"
|
|
||||||
|
|
||||||
after_script:
|
|
||||||
- - |
|
|
||||||
# apt_clean
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_clean[collapsed=true]\r\e[0KCleaning of unneeded APT packages"
|
|
||||||
- apt-get autoclean
|
|
||||||
- |
|
|
||||||
# apt_clean
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_clean\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# ccache_stats
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:ccache_stats[collapsed=true]\r\e[0Kccache statistics:"
|
|
||||||
- ccache --show-stats --verbose
|
|
||||||
- ccache --show-log-stats --verbose
|
|
||||||
- |
|
|
||||||
# ccahe_stats
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:ccache_stats\r\e[0K"
|
|
||||||
|
|
||||||
Debian testing GCC:
|
|
||||||
<<: *job_build
|
|
||||||
image: debian:testing-slim
|
|
||||||
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debian GCC testing"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-gcc"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: gcc
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
||||||
- apt-get install libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev libopenmpt-dev
|
|
||||||
- |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Windows x86:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win32"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
PREFIX: i686-w64-mingw32
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc-mingw-w64-i686-win32
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW=1 SDL=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW=1 SDL=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Debian stable:amd64:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debian amd64"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-x86-64"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: x86_64-linux-gnu-gcc
|
|
||||||
OBJCOPY: x86_64-linux-gnu-objcopy
|
|
||||||
OBJDUMP: x86_64-linux-gnu-objdump
|
|
||||||
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc-x86-64-linux-gnu || apt-get install gcc
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
||||||
- apt-get install libsdl2-mixer-dev:amd64 libpng-dev:amd64 libcurl4-openssl-dev:amd64 libgme-dev:amd64 libopenmpt-dev:amd64
|
|
||||||
- |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Debian stable:i386:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debian i386"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-i686"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: i686-linux-gnu-gcc
|
|
||||||
OBJCOPY: i686-linux-gnu-objcopy
|
|
||||||
OBJDUMP: i686-linux-gnu-objdump
|
|
||||||
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc-i686-linux-gnu || apt-get install gcc
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
||||||
- apt-get install libsdl2-mixer-dev:i386 libpng-dev:i386 libcurl4-openssl-dev:i386 libgme-dev:i386 libopenmpt-dev:i386
|
|
||||||
- |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Debian stable:arm64:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debian arm64"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-aarch64"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: aarch64-linux-gnu-gcc
|
|
||||||
OBJCOPY: aarch64-linux-gnu-objcopy
|
|
||||||
OBJDUMP: aarch64-linux-gnu-objdump
|
|
||||||
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc-aarch64-linux-gnu || apt-get install gcc
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
||||||
- apt-get install libsdl2-mixer-dev:arm64 libpng-dev:arm64 libcurl4-openssl-dev:arm64 libgme-dev:arm64 libopenmpt-dev:arm64
|
|
||||||
- |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 NONX86=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Windows x64:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Win64"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win64"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
PREFIX: x86_64-w64-mingw32
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install gcc-mingw-w64-x86-64-win32
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW64=1 SDL=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW64=1 SDL=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Debian stable Clang:
|
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debian Clang"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-clang"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: clang
|
|
||||||
WFLAGS: -Wno-cast-align
|
|
||||||
|
|
||||||
script:
|
|
||||||
- - |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
||||||
- apt-get install clang
|
|
||||||
- |
|
|
||||||
# apt_toolchain
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
||||||
- apt-get install libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev libopenmpt-dev
|
|
||||||
- |
|
|
||||||
# apt_development
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
||||||
|
|
||||||
- - |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
||||||
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1
|
|
||||||
- |
|
|
||||||
# make
|
|
||||||
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|
|
||||||
|
|
||||||
Debian testing Clang:
|
|
||||||
extends: Debian stable Clang
|
|
||||||
|
|
||||||
image: debian:testing-slim
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "bin/"
|
|
||||||
- "src/comptime.h"
|
|
||||||
expose_as: "Debina Clang testing"
|
|
||||||
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-clang"
|
|
||||||
|
|
||||||
variables:
|
|
||||||
CC: clang
|
|
||||||
WFLAGS: -Wno-cast-align -Wno-deprecated-non-prototype
|
|
||||||
-712
@@ -1,712 +0,0 @@
|
|||||||
# Travis-CI Config
|
|
||||||
#
|
|
||||||
# You may use the Deployer to upload packages and builds to external servers.
|
|
||||||
# See deployer/travis/deployer_defaults.sh for environment variables to configure.
|
|
||||||
|
|
||||||
language: c
|
|
||||||
sudo: required
|
|
||||||
dist: trusty
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
################################
|
|
||||||
# Test Buildbots
|
|
||||||
# Deployer does not operate on these. See Deployer Buildbots, below.
|
|
||||||
# These bots are disabled when a deployment is triggered by 'deployer' branch name AND DPL_TERMINATE_TESTS=1.
|
|
||||||
# These bots remain enabled when a deployment is triggered by release tag.
|
|
||||||
################################
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.4
|
|
||||||
compiler: gcc-4.4
|
|
||||||
env: GCC44=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-4.4 (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.6
|
|
||||||
compiler: gcc-4.6
|
|
||||||
env: GCC46=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.7
|
|
||||||
compiler: gcc-4.7
|
|
||||||
env: GCC47=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-4.7
|
|
||||||
- os: linux
|
|
||||||
compiler: gcc
|
|
||||||
env: GCC48=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
env: GCC48=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-7
|
|
||||||
compiler: gcc-7
|
|
||||||
env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough" GCC72=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-7 (Ubuntu 7.2.0-1ubuntu1~14.04) 7.2.0 20170802
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-8
|
|
||||||
compiler: gcc-8
|
|
||||||
env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough -Wno-error=format-overflow -Wno-error=format-truncation" GCC81=1
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#gcc-8 (Ubuntu 7.2.0-1ubuntu1~14.04) 8.1.0
|
|
||||||
- os: linux
|
|
||||||
compiler: clang
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#clang version 3.5.0 (tags/RELEASE_350/final)
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise-3.5
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- clang-3.5
|
|
||||||
compiler: clang-3.5
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise-3.6
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- clang-3.6
|
|
||||||
compiler: clang-3.6
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#Ubuntu clang version 3.6.2-svn240577-1~exp1 (branches/release_36) (based on LLVM 3.6.2)
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise-3.7
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- clang-3.7
|
|
||||||
compiler: clang-3.7
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#Ubuntu clang version 3.7.1-svn253571-1~exp1 (branches/release_37) (based on LLVM 3.7.1)
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise-3.8
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- clang-3.8
|
|
||||||
compiler: clang-3.8
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#clang version 3.8.1-svn271127-1~exp1 (branches/release_38)
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- llvm-toolchain-precise-3.9
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- clang-3.9
|
|
||||||
compiler: clang-3.9
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#clang version 3.9.X
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# sources:
|
|
||||||
# - llvm-toolchain-precise-4.0
|
|
||||||
# - ubuntu-toolchain-r-test
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - clang-4.0
|
|
||||||
# compiler: clang-4.0
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #clang version 4.0.X
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# sources:
|
|
||||||
# - llvm-toolchain-precise-5.0
|
|
||||||
# - ubuntu-toolchain-r-test
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - clang-5.0
|
|
||||||
# compiler: clang-5.0
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #clang version 5.0.X
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: beta-xcode6.1
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: beta-xcode6.2
|
|
||||||
# compiler: gcc
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
|
|
||||||
## - os: osx
|
|
||||||
## osx_image: beta-xcode6.3
|
|
||||||
## if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
## #I think xcode.6.3 VM is broken, it does not boot
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode6.4
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode7
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 7.0.0 (clang-700.0.72)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode7.1
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 7.0.0 (clang-700.1.76)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode7.2
|
|
||||||
# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
# #Apple LLVM version 7.0.2 (clang-700.1.81)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode7.3
|
|
||||||
# #Apple LLVM version 7.3.0 (clang-703.0.31)
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode7.3
|
|
||||||
# #Apple LLVM version 7.3.0 (clang-703.0.31)
|
|
||||||
- os: osx
|
|
||||||
if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/
|
|
||||||
#Default: macOS 10.13 and Xcode 9.4.1
|
|
||||||
|
|
||||||
|
|
||||||
################################
|
|
||||||
# Deployer Buildbots - OSX
|
|
||||||
################################
|
|
||||||
- os: osx
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=osx
|
|
||||||
- _DPL_FTP_TARGET=1
|
|
||||||
- _DPL_PACKAGE_BINARY=1
|
|
||||||
#Apple LLVM version 7.3.0 (clang-703.0.31)
|
|
||||||
|
|
||||||
|
|
||||||
################################
|
|
||||||
# Deployer Buildbots - Linux assets
|
|
||||||
# Set DPL_TERMINATE_ASSETS to disable all of these
|
|
||||||
# List Ubuntu LTS next, newest to oldest
|
|
||||||
# Then list non-LTS, newest to oldest
|
|
||||||
################################
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: xenial
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_ASSETS) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=bionic-asset
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- _DPL_PACKAGE_MAIN=0
|
|
||||||
- _DPL_PACKAGE_ASSET=1
|
|
||||||
- PACKAGE_DISTRO=bionic
|
|
||||||
#- PACKAGE_SUBVERSION=~18.04bionic
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
|
|
||||||
################################
|
|
||||||
# The below asset bots produce packages that occupy too much space.
|
|
||||||
# It would be nice if the asset files were not included in the source package itself,
|
|
||||||
# so these can deploy to each Ubuntu target without manual intervention.
|
|
||||||
#
|
|
||||||
# Currently, to get around Launchpad's space limitation,
|
|
||||||
# copy the packages from *one* bot and the space usage is not increased.
|
|
||||||
################################
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - gcc-4.8
|
|
||||||
# compiler: gcc-4.8
|
|
||||||
# dist: trusty
|
|
||||||
# if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
# AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
# AND env(DPL_TERMINATE_ASSETS) != "1"
|
|
||||||
# env:
|
|
||||||
# - _DPL_JOB_ENABLED=1
|
|
||||||
# - _DPL_JOB_NAME=trusty-asset
|
|
||||||
# - _DPL_DPUT_TARGET=1
|
|
||||||
# - _DPL_PACKAGE_SOURCE=1
|
|
||||||
# - _DPL_PACKAGE_MAIN=0
|
|
||||||
# - _DPL_PACKAGE_ASSET=1
|
|
||||||
# - PACKAGE_DISTRO=trusty
|
|
||||||
# #- PACKAGE_SUBVERSION=~14.04trusty
|
|
||||||
# #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - gcc-4.8
|
|
||||||
# compiler: gcc-4.8
|
|
||||||
# dist: xenial
|
|
||||||
# if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
# AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
# AND env(DPL_TERMINATE_ASSETS) != "1"
|
|
||||||
# env:
|
|
||||||
# - _DPL_JOB_ENABLED=1
|
|
||||||
# - _DPL_JOB_NAME=disco-asset
|
|
||||||
# - _DPL_DPUT_TARGET=1
|
|
||||||
# - _DPL_PACKAGE_SOURCE=1
|
|
||||||
# - _DPL_PACKAGE_MAIN=0
|
|
||||||
# - _DPL_PACKAGE_ASSET=1
|
|
||||||
# - PACKAGE_DISTRO=disco
|
|
||||||
# #- PACKAGE_SUBVERSION=~19.04disco
|
|
||||||
# #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - gcc-4.8
|
|
||||||
# compiler: gcc-4.8
|
|
||||||
# dist: xenial
|
|
||||||
# if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
# AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
# AND env(DPL_TERMINATE_ASSETS) != "1"
|
|
||||||
# env:
|
|
||||||
# - _DPL_JOB_ENABLED=1
|
|
||||||
# - _DPL_JOB_NAME=cosmic-asset
|
|
||||||
# - _DPL_DPUT_TARGET=1
|
|
||||||
# - _DPL_PACKAGE_SOURCE=1
|
|
||||||
# - _DPL_PACKAGE_MAIN=0
|
|
||||||
# - _DPL_PACKAGE_ASSET=1
|
|
||||||
# - PACKAGE_DISTRO=cosmic
|
|
||||||
# #- PACKAGE_SUBVERSION=~18.10cosmic
|
|
||||||
# #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
# - os: linux
|
|
||||||
# addons:
|
|
||||||
# apt:
|
|
||||||
# packages:
|
|
||||||
# - libsdl2-mixer-dev
|
|
||||||
# - libpng-dev
|
|
||||||
# - libgl1-mesa-dev
|
|
||||||
# - libgme-dev
|
|
||||||
# - p7zip-full
|
|
||||||
# - gcc-4.8
|
|
||||||
# compiler: gcc-4.8
|
|
||||||
# dist: xenial
|
|
||||||
# if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
# AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
# AND env(DPL_TERMINATE_ASSETS) != "1"
|
|
||||||
# env:
|
|
||||||
# - _DPL_JOB_ENABLED=1
|
|
||||||
# - _DPL_JOB_NAME=xenial-asset
|
|
||||||
# - _DPL_DPUT_TARGET=1
|
|
||||||
# - _DPL_PACKAGE_SOURCE=1
|
|
||||||
# - _DPL_PACKAGE_MAIN=0
|
|
||||||
# - _DPL_PACKAGE_ASSET=1
|
|
||||||
# - PACKAGE_DISTRO=xenial
|
|
||||||
# #- PACKAGE_SUBVERSION=~16.04xenial
|
|
||||||
# #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
|
|
||||||
|
|
||||||
################################
|
|
||||||
# Deployer Buildbots - Linux binaries
|
|
||||||
# List Ubuntu LTS, newest to oldest
|
|
||||||
# Then list non-LTS, newest to oldest
|
|
||||||
################################
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: xenial
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=focal
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- PACKAGE_DISTRO=focal
|
|
||||||
- PACKAGE_SUBVERSION=~20.04focal
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: xenial
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=bionic
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- PACKAGE_DISTRO=bionic
|
|
||||||
- PACKAGE_SUBVERSION=~18.04bionic
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: xenial
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=xenial
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- PACKAGE_DISTRO=xenial
|
|
||||||
- PACKAGE_SUBVERSION=~16.04xenial
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: trusty
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=trusty
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- PACKAGE_DISTRO=trusty
|
|
||||||
- PACKAGE_SUBVERSION=~14.04trusty
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
- os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
- gcc-4.8
|
|
||||||
compiler: gcc-4.8
|
|
||||||
dist: xenial
|
|
||||||
if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1")
|
|
||||||
AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1"))
|
|
||||||
AND env(DPL_TERMINATE_MAIN) != "1"
|
|
||||||
env:
|
|
||||||
- _DPL_JOB_ENABLED=1
|
|
||||||
- _DPL_JOB_NAME=eoan
|
|
||||||
- _DPL_DPUT_TARGET=1
|
|
||||||
- _DPL_PACKAGE_SOURCE=1
|
|
||||||
- PACKAGE_DISTRO=eoan
|
|
||||||
- PACKAGE_SUBVERSION=~19.10eoan
|
|
||||||
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
|
||||||
allow_failures:
|
|
||||||
- compiler: clang-3.5
|
|
||||||
- compiler: clang-3.6
|
|
||||||
- compiler: clang-3.7
|
|
||||||
- compiler: clang-3.8
|
|
||||||
- compiler: clang-3.9
|
|
||||||
- compiler: clang-4.0
|
|
||||||
- compiler: clang-5.0
|
|
||||||
|
|
||||||
|
|
||||||
cache:
|
|
||||||
apt: true
|
|
||||||
ccache: true
|
|
||||||
directories:
|
|
||||||
- $HOME/srb2_cache
|
|
||||||
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-mixer-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libgl1-mesa-dev
|
|
||||||
- libgme-dev
|
|
||||||
- zlib1g-dev
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- p7zip-full
|
|
||||||
homebrew:
|
|
||||||
taps:
|
|
||||||
- mazmazz/srb2
|
|
||||||
packages:
|
|
||||||
- sdl2_mixer
|
|
||||||
- game-music-emu
|
|
||||||
- p7zip
|
|
||||||
- cmake
|
|
||||||
- curl
|
|
||||||
update: true
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
# Initialize Deployer defaults
|
|
||||||
- . ./deployer/travis/deployer_defaults.sh
|
|
||||||
|
|
||||||
# Initialize Deployer; check if Deployer is enabled
|
|
||||||
# This needs to be run in the current shell so that $__DPL_ACTIVE is set for this session
|
|
||||||
- . ./deployer/travis/deployer.sh
|
|
||||||
|
|
||||||
# Also check if we should now terminate -- see `deployer.sh` for conditions.
|
|
||||||
# This should never happen on non-release buildbots when Deployer is not triggered.
|
|
||||||
- if [[ "$__DPL_TRY_TERMINATE_EARLY" == "1" ]]; then
|
|
||||||
if [[ "$__DPL_ACTIVE" != "1" ]]; then
|
|
||||||
echo "Exiting early because this job is not deploying.";
|
|
||||||
exit;
|
|
||||||
fi;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If we're triggered by release tag, force ASSET_FILES_OPTIONAL_GET=1
|
|
||||||
- if [[ "$__DPL_TAG_ELIGIBLE" = "1" ]]; then
|
|
||||||
ASSET_FILES_OPTIONAL_GET=1;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
|
||||||
# Install OS X library dependencies via Homebrew
|
|
||||||
# Do this differently for release buildbots:
|
|
||||||
# * `brew install --build-bottle` builds libraries for x86_64's lowest common denominator CPU, core2
|
|
||||||
# * `sdl2_mixer` requires options from the formula tap https://github.com/mazmazz/homebrew-srb2
|
|
||||||
# * `brew postinstall` runs post-install scripts after building a bottle
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
if [[ "$__DPL_ACTIVE" == "1" ]]; then
|
|
||||||
brew install --build-bottle sdl2 game-music-emu;
|
|
||||||
brew install --build-bottle mazmazz/srb2/sdl2_mixer --with-flac --with-mpg123;
|
|
||||||
brew postinstall sdl2 game-music-emu mazmazz/srb2/sdl2_mixer;
|
|
||||||
fi;
|
|
||||||
fi
|
|
||||||
- mkdir -p $HOME/srb2_cache
|
|
||||||
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
# OLDPWD is root repo folder
|
|
||||||
- OLDPWD=$PWD
|
|
||||||
- __ASSET_DIRECTORY="$OLDPWD/assets/installer"
|
|
||||||
- mkdir -p "$__ASSET_DIRECTORY"
|
|
||||||
- cd "$HOME/srb2_cache"
|
|
||||||
|
|
||||||
# Get stat command so we know what the cached archive date is.
|
|
||||||
# stat is different for OSX
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
STATCMD="stat -f %m";
|
|
||||||
else
|
|
||||||
STATCMD="stat -c %y";
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get asset files (required for MD5)
|
|
||||||
# See `deployer_defaults.sh` for asset download path
|
|
||||||
- if [[ "$ASSET_ARCHIVE_PATH" != "" ]]; then
|
|
||||||
if [ -f "$(basename $ASSET_ARCHIVE_PATH)" ]; then
|
|
||||||
echo "$(basename $ASSET_ARCHIVE_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_PATH))";
|
|
||||||
fi;
|
|
||||||
wget --verbose --server-response -N "$ASSET_ARCHIVE_PATH";
|
|
||||||
7z x "$(basename $ASSET_ARCHIVE_PATH)" -o"$__ASSET_DIRECTORY" -aos;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Get optional files too
|
|
||||||
- if [[ "$__DPL_ACTIVE" == "1" ]] && [[ "$ASSET_FILES_OPTIONAL_GET" == "1" ]] && [[ "$ASSET_ARCHIVE_OPTIONAL_PATH" != "" ]]; then
|
|
||||||
if [ -f "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" ]; then
|
|
||||||
echo "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_OPTIONAL_PATH))";
|
|
||||||
fi;
|
|
||||||
wget --verbose --server-response -N "$ASSET_ARCHIVE_OPTIONAL_PATH";
|
|
||||||
7z x "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" -o"$__ASSET_DIRECTORY" -aos;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Go back to root repo folder
|
|
||||||
- cd "$OLDPWD"
|
|
||||||
|
|
||||||
# Prepare CMake asset lists
|
|
||||||
- SRB2_ASSET_HASHED=$(echo ${ASSET_FILES_HASHED// /\;})
|
|
||||||
- SRB2_ASSET_DOCS=$(echo ${ASSET_FILES_DOCS// /\;})
|
|
||||||
- SRB2_ASSET_DIRECTORY="$__ASSET_DIRECTORY"
|
|
||||||
|
|
||||||
# Prepare CMake
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- mkdir package
|
|
||||||
- export CFLAGS="-Wall -W -Werror $WFLAGS"
|
|
||||||
- export CCACHE_COMPRESS=true
|
|
||||||
# If OS X, set -march=core2 to build compatible binaries with old Macs
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
export CFLAGS="${CFLAGS} -march=core2";
|
|
||||||
fi;
|
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/bin -DCPACK_PACKAGE_DIRECTORY=$PWD/package
|
|
||||||
-DSRB2_ASSET_HASHED="${SRB2_ASSET_HASHED}" -DSRB2_ASSET_DOCS="${SRB2_ASSET_DOCS}"
|
|
||||||
-DSRB2_ASSET_DIRECTORY="${SRB2_ASSET_DIRECTORY}"
|
|
||||||
-DCPACK_PACKAGE_DESCRIPTION_SUMMARY="${PROGRAM_NAME}"
|
|
||||||
-DCPACK_PACKAGE_VENDOR="${PROGRAM_VENDOR}"
|
|
||||||
-DSRB2_SDL2_EXE_NAME="${PROGRAM_FILENAME}"
|
|
||||||
|
|
||||||
script:
|
|
||||||
# Build our Makefile from Cmake!
|
|
||||||
- if [[ "$__DPL_ACTIVE" == "1" ]]; then
|
|
||||||
. ../deployer/travis/deployer_build.sh;
|
|
||||||
else
|
|
||||||
make -k;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
# Run the upload scripts
|
|
||||||
# These do nothing if Deployer is not triggered
|
|
||||||
- . ../deployer/travis/deployer_ftp.sh
|
|
||||||
- . ../deployer/travis/deployer_dput.sh
|
|
||||||
@@ -1,269 +0,0 @@
|
|||||||
# Doxyfile 1.4.3
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Project related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
PROJECT_NAME = SRB2
|
|
||||||
PROJECT_NUMBER = 1.09
|
|
||||||
OUTPUT_DIRECTORY = ./doc/SRB2
|
|
||||||
CREATE_SUBDIRS = YES
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
USE_WINDOWS_ENCODING = YES
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ABBREVIATE_BRIEF = "The $name class" \
|
|
||||||
"The $name widget" \
|
|
||||||
"The $name file" \
|
|
||||||
is \
|
|
||||||
provides \
|
|
||||||
specifies \
|
|
||||||
contains \
|
|
||||||
represents \
|
|
||||||
a \
|
|
||||||
an \
|
|
||||||
the
|
|
||||||
ALWAYS_DETAILED_SEC = NO
|
|
||||||
INLINE_INHERITED_MEMB = NO
|
|
||||||
FULL_PATH_NAMES = YES
|
|
||||||
STRIP_FROM_PATH =
|
|
||||||
STRIP_FROM_INC_PATH =
|
|
||||||
SHORT_NAMES = NO
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
DETAILS_AT_TOP = NO
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
DISTRIBUTE_GROUP_DOC = NO
|
|
||||||
SEPARATE_MEMBER_PAGES = NO
|
|
||||||
TAB_SIZE = 8
|
|
||||||
ALIASES =
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
SUBGROUPING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Build related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
EXTRACT_ALL = YES
|
|
||||||
EXTRACT_PRIVATE = YES
|
|
||||||
EXTRACT_STATIC = YES
|
|
||||||
EXTRACT_LOCAL_CLASSES = YES
|
|
||||||
EXTRACT_LOCAL_METHODS = NO
|
|
||||||
HIDE_UNDOC_MEMBERS = NO
|
|
||||||
HIDE_UNDOC_CLASSES = NO
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = NO
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
|
||||||
INLINE_INFO = YES
|
|
||||||
SORT_MEMBER_DOCS = YES
|
|
||||||
SORT_BRIEF_DOCS = NO
|
|
||||||
SORT_BY_SCOPE_NAME = NO
|
|
||||||
GENERATE_TODOLIST = YES
|
|
||||||
GENERATE_TESTLIST = YES
|
|
||||||
GENERATE_BUGLIST = YES
|
|
||||||
GENERATE_DEPRECATEDLIST= YES
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
SHOW_USED_FILES = YES
|
|
||||||
SHOW_DIRECTORIES = YES
|
|
||||||
FILE_VERSION_FILTER =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_NO_PARAMDOC = NO
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
INPUT = ./src
|
|
||||||
FILE_PATTERNS = *.c \
|
|
||||||
*.cc \
|
|
||||||
*.cxx \
|
|
||||||
*.cpp \
|
|
||||||
*.c++ \
|
|
||||||
*.d \
|
|
||||||
*.java \
|
|
||||||
*.ii \
|
|
||||||
*.ixx \
|
|
||||||
*.ipp \
|
|
||||||
*.i++ \
|
|
||||||
*.inl \
|
|
||||||
*.h \
|
|
||||||
*.hh \
|
|
||||||
*.hxx \
|
|
||||||
*.hpp \
|
|
||||||
*.h++ \
|
|
||||||
*.idl \
|
|
||||||
*.odl \
|
|
||||||
*.cs \
|
|
||||||
*.php \
|
|
||||||
*.php3 \
|
|
||||||
*.inc \
|
|
||||||
*.m \
|
|
||||||
*.mm \
|
|
||||||
*.dox
|
|
||||||
RECURSIVE = YES
|
|
||||||
EXCLUDE = ./src/sdl/IMG_xpm.c \
|
|
||||||
./src/sdl/SRB2DC/scramble.c
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS = */src/hardware/*/* \
|
|
||||||
*/src/sdl/SDL_main/* \
|
|
||||||
*/src/*/*_private.h \
|
|
||||||
*/src/sdl/*/*help.? \
|
|
||||||
*/src/md5.? \
|
|
||||||
*/src/sdl/filter/*
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS = *
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_PATTERNS =
|
|
||||||
FILTER_SOURCE_FILES = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = NO
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = NO
|
|
||||||
REFERENCES_RELATION = NO
|
|
||||||
#USE_HTAGS = NO
|
|
||||||
VERBATIM_HEADERS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = NO
|
|
||||||
COLS_IN_ALPHA_INDEX = 5
|
|
||||||
IGNORE_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = YES
|
|
||||||
HTML_OUTPUT = html
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE =
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = NO
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
GENERATE_TREEVIEW = YES
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the LaTeX output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
LATEX_OUTPUT = latex
|
|
||||||
LATEX_CMD_NAME = latex
|
|
||||||
MAKEINDEX_CMD_NAME = makeindex
|
|
||||||
COMPACT_LATEX = NO
|
|
||||||
PAPER_TYPE = a4wide
|
|
||||||
EXTRA_PACKAGES =
|
|
||||||
LATEX_HEADER =
|
|
||||||
PDF_HYPERLINKS = NO
|
|
||||||
USE_PDFLATEX = NO
|
|
||||||
LATEX_BATCHMODE = NO
|
|
||||||
LATEX_HIDE_INDICES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the RTF output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
RTF_OUTPUT = rtf
|
|
||||||
COMPACT_RTF = NO
|
|
||||||
RTF_HYPERLINKS = NO
|
|
||||||
RTF_STYLESHEET_FILE =
|
|
||||||
RTF_EXTENSIONS_FILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the man page output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_MAN = NO
|
|
||||||
MAN_OUTPUT = man
|
|
||||||
MAN_EXTENSION = .3
|
|
||||||
MAN_LINKS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = NO
|
|
||||||
XML_OUTPUT = xml
|
|
||||||
XML_SCHEMA =
|
|
||||||
XML_DTD =
|
|
||||||
XML_PROGRAMLISTING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options for the AutoGen Definitions output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the Perl module output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_PERLMOD = NO
|
|
||||||
PERLMOD_LATEX = NO
|
|
||||||
PERLMOD_PRETTY = YES
|
|
||||||
PERLMOD_MAKEVAR_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = NO
|
|
||||||
EXPAND_ONLY_PREDEF = NO
|
|
||||||
SEARCH_INCLUDES = YES
|
|
||||||
INCLUDE_PATH =
|
|
||||||
INCLUDE_FILE_PATTERNS =
|
|
||||||
PREDEFINED = DOXYGEN \
|
|
||||||
HWRENDER \
|
|
||||||
DIRECTFULLSCREEN \
|
|
||||||
HW3SOUND \
|
|
||||||
LOGMESSAGES \
|
|
||||||
WALLSPLATS \
|
|
||||||
FLOORSPLATS
|
|
||||||
EXPAND_AS_DEFINED =
|
|
||||||
SKIP_FUNCTION_MACROS = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the dot tool
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
CLASS_DIAGRAMS = YES
|
|
||||||
HIDE_UNDOC_RELATIONS = YES
|
|
||||||
HAVE_DOT = NO
|
|
||||||
CLASS_GRAPH = YES
|
|
||||||
COLLABORATION_GRAPH = YES
|
|
||||||
GROUP_GRAPHS = YES
|
|
||||||
UML_LOOK = NO
|
|
||||||
TEMPLATE_RELATIONS = NO
|
|
||||||
INCLUDE_GRAPH = YES
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
|
||||||
CALL_GRAPH = NO
|
|
||||||
GRAPHICAL_HIERARCHY = YES
|
|
||||||
DIRECTORY_GRAPH = YES
|
|
||||||
DOT_IMAGE_FORMAT = png
|
|
||||||
DOT_PATH =
|
|
||||||
DOTFILE_DIRS =
|
|
||||||
MAX_DOT_GRAPH_WIDTH = 1024
|
|
||||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
|
||||||
MAX_DOT_GRAPH_DEPTH = 1000
|
|
||||||
DOT_TRANSPARENT = NO
|
|
||||||
DOT_MULTI_TARGETS = NO
|
|
||||||
GENERATE_LEGEND = YES
|
|
||||||
DOT_CLEANUP = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to the search engine
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SEARCHENGINE = NO
|
|
||||||
+12
@@ -192,6 +192,18 @@ from `0` to `#musicdefs-1`, or string indices (which is equal to calling `S_Find
|
|||||||
Hook is called whenever `S_ShowMusicCredit` (either from game or mod) is called. Takes musicdef as only argument, returning true
|
Hook is called whenever `S_ShowMusicCredit` (either from game or mod) is called. Takes musicdef as only argument, returning true
|
||||||
will overwrite vanilla behavior (not show music credit), can be used to implement custom music credit pop-ups.
|
will overwrite vanilla behavior (not show music credit), can be used to implement custom music credit pop-ups.
|
||||||
|
|
||||||
|
## addHook("SetupVote", function(result, gt, secondgt, prevmap))
|
||||||
|
|
||||||
|
Hook is called whenever server sets up options for vote screen. `result` is table where lua can store options to,
|
||||||
|
(for example, `result[1] = 1` will force green hills as first option), gt is current gametype, secondgt is
|
||||||
|
alternative gametype picked for 3rd entry (for example, gt can be `GT_RACE`, and secondgt can be `GT_MATCH`)
|
||||||
|
prevmap is the previous map that was played (small note - in game code, it is offset by -1, but for lua its offset back,
|
||||||
|
so if previous gamemap was 1, prevmap would also be 1. Which means you can safely do mapheaderinfo[prevmap] to get info on previous map)
|
||||||
|
|
||||||
|
Limitations: currently, game can only change gametype for 3rd option in map (meaning for example, if current gametype is race, and you
|
||||||
|
put battle map in first option, when it gets picked that map will be still run in race gametype). That means, game will only handle maps with
|
||||||
|
different gametype if it is put in 3rd vote option.
|
||||||
|
|
||||||
# Other changes
|
# Other changes
|
||||||
|
|
||||||
## P_PlayRinglossSound(source, damager)
|
## P_PlayRinglossSound(source, damager)
|
||||||
|
|||||||
@@ -1,103 +1,35 @@
|
|||||||
# SRB2Kart: Saturn
|
# SRB2Kart-Saturn
|
||||||
|
|
||||||
|
SRB2Kart-Saturn is a modification of SRB2Kart with a focus on new Features, Fixes, Optimizations and general Improvements, all while retaining 100% compatibility with vanilla SRB2Kart.
|
||||||
|
|
||||||
[SRB2Kart](https://srb2.org/mods/) is a kart racing mod based on the 3D Sonic the Hedgehog fangame [Sonic Robo Blast 2](https://srb2.org/), based on a modified version of [Doom Legacy](http://doomlegacy.sourceforge.net/).
|
[SRB2Kart](https://srb2.org/mods/) is a kart racing mod based on the 3D Sonic the Hedgehog fangame [Sonic Robo Blast 2](https://srb2.org/), based on a modified version of [Doom Legacy](http://doomlegacy.sourceforge.net/).
|
||||||
|
|
||||||
## Saturn Features (Take a look at the "Saturn Options" menu c;)
|
For more information on Saturn´s features check out the changelogs on the [Releases](https://github.com/Indev450/SRB2Kart-Saturn/releases) page and the ingame "Saturn Options" menu.
|
||||||
|
|
||||||
- Sprites player rotation on slopes; going on hills, levitate, going down, and so on alters your sprites (configurable)
|
Also be sure to check the LUASTUFF file for more information on all the extra lua features Saturn has.
|
||||||
- You can alter all the base kart HUD element offsets on the fly in the Saturn Options settings menu
|
|
||||||
- `addfilelocal` Command, for those who want to use things like their custom hud in netgames (Same as addfile but completely client sided)
|
|
||||||
- Palette rendering, make the OpenGL renderer (almost) look like software mode!
|
|
||||||
- OpenMPT for Tracker module playback instead of GME
|
|
||||||
- Fixes looping and sounds better
|
|
||||||
- Allows filter configuration
|
|
||||||
- Colourize your Kart HUD, to either your player color or whichever colour you like! (optional / requieres extra2.kart file)
|
|
||||||
- The minimal brightness with Shaders can be configured, now you can seeeee in dark areas (0-255 , uses Sector brightness values)
|
|
||||||
- Lua HUD hooks for Intermission (ex: You can make hostmod votes still visible during intermission!)
|
|
||||||
- Lua HUD hooks for Vote Screen (ex: You can make hostmod votes still visible during map vote screen!)
|
|
||||||
- Saltyhop! do a funny hop
|
|
||||||
- Smaller Speedometer (optional / requieres extra.kart file)
|
|
||||||
- Record Attack input display can now be used everywhere
|
|
||||||
- Smaller minimap icons and also show player names on the minimap (toggable)
|
|
||||||
- Support for animated votescreens!
|
|
||||||
- `showmusiccredit` command, shows you the current music track again
|
|
||||||
- `listskins` show a list of all skins currently loaded
|
|
||||||
- Visual Portals from Haya's HEP Client
|
|
||||||
- Horizonline effect in OpenGL (watch the endless bricks on SNES Bowsers Castle!)
|
|
||||||
- Localskins! use whatever skin you like!
|
|
||||||
- Toggable lowercase menu's also from Haya's HEP client
|
|
||||||
- Everything that Galaxy has
|
|
||||||
|
|
||||||
## Improvements / Bug fixes
|
We also have a Flatpak available on [Flathub](https://flathub.org/en/apps/org.srb2.SRB2Kart-Saturn)! (many thanks to riomccloud!)
|
||||||
|
|
||||||
- Replay size has been increased to 10MiB minimum, to make replay overflows very unlikely to happen
|
|
||||||
- can be set to 100MiB max with `maxdemosize` command in console
|
|
||||||
- Music changes now properly show the music credits (ex: Kart maps with easter eggs that alter the music)
|
|
||||||
- The mapper still has to provide a MusicDEF for this to work.
|
|
||||||
- Configurable chatlog length (yay can read those messages from 30 mins ago without opening log.txt)
|
|
||||||
- Configurable timeout for waiting to join a full server (in vanilla this is capped to 5 minutes before it boots you out)
|
|
||||||
- Characters now spin in skin selection menu (configurable)
|
|
||||||
- HTTP Addon download speed has been raised dramatically
|
|
||||||
- configurable with `downloadspeed` command
|
|
||||||
- HWR Drawnodes have been refactored, this should fix a few rare crashes esp in regards to OpenGL Visportals
|
|
||||||
- The Position Number in the corner is alot smaller now (half the size!)
|
|
||||||
- Toggable Lap animation
|
|
||||||
- Main menu shows the current renderer being used
|
|
||||||
- MSAA and A2C Antialiasing support (Configurable in renderer.txt file)
|
|
||||||
- A simple button to rejoin your last visited server
|
|
||||||
- Ability to show ALL maps in the mapselect screen, this includes hidden or hellmaps "showallmaps yes/no"
|
|
||||||
- Ability to toggle the Stagetitlecard "maptitles on/off"
|
|
||||||
|
|
||||||
## Performance / Debugging
|
|
||||||
|
|
||||||
- Access for `mobj_t` and `player_t` fields from Lua has been completely rewritten, for much better performance with many Lua scripts
|
|
||||||
- Lua shows Tracebacks whenever an error occurs
|
|
||||||
- The Lua Perfstats page now has multiple pages and is more organized (ps_thinkframe_page X in console)
|
|
||||||
- People with lower end hardware can disable "screen textures" with "gr_screentextures" command, huge performance gain with minimal visual loss
|
|
||||||
- Intermission backgrounds, heat wave effects and etc are broken with this
|
|
||||||
- `ffloorclip`, exclusive to Software, which boosts performance on maps with many Floor over Floor sectors
|
|
||||||
|
|
||||||
## Technical fixes
|
|
||||||
|
|
||||||
- ZFigthing Textures in Opengl mode have been fixed in engine (well almost all of it)
|
|
||||||
- FOFs intersecting with slopes have less issues and now render correctly in Opengl
|
|
||||||
- Midtextures on slopes in Opengl are fixed, many weird guardrails and fences, aswell as some of those sticking out textures from the ground on some maps should be gone
|
|
||||||
- The annoying depraction messages for `P_TeleportMove` and `P_AproxDistance` have been silenced
|
|
||||||
- Silenced the annoying "cant find next map..." messages as theyre super useless and annoying anyways
|
|
||||||
- Added a small cooldown on `map` command due to spamming causing a SIGSEGV
|
|
||||||
- Many bugfixes to the Software renderer, so its much less prone to crashing
|
|
||||||
- Many bugfixes to the OpenGL renderer (too many too list all of them here; check the changelogs for more information)
|
|
||||||
- Bugfixes to the soundsystem, mainly regarding Sound muting
|
|
||||||
- Refactored Zone Memory Allocations (helps a bit with large maps)
|
|
||||||
- Many many more crash fixes and other bugfixes to the basegame (too many too list all of them here; check the changelogs for more information)
|
|
||||||
|
|
||||||
- Crash Backtraces have been replaced by libbacktrace (except for 32bit Windows builds)
|
|
||||||
Crashlogs now contain alot more informations. and even more if your build has debug symbols
|
|
||||||
Also allows 64bit Windows builds to produce Crashlogs!
|
|
||||||
|
|
||||||
## MISC
|
|
||||||
- Bird's Camera Tilting feature is no longer turned on by default
|
|
||||||
- Bird's warning on the title screen has been removed
|
|
||||||
|
|
||||||
## Bugs
|
|
||||||
- On maps which change the song multiple times on map start (exp: Wandering Falls) may show multiple music credits appearing
|
|
||||||
- A2C antialiasing makes transparent surfaces even more transparent
|
|
||||||
- You tell us! c:
|
|
||||||
|
|
||||||
## Note
|
|
||||||
Check the LUASTUFF file for more information on all the lua things Saturn has.
|
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
- SDL2 (Linux/OS X only)
|
- SDL2 (Linux/OS X only)
|
||||||
- SDL2-Mixer (Linux/OS X only)
|
- SDL2-Mixer (Linux/OS X only)
|
||||||
- libupnp (Linux/OS X only)
|
|
||||||
- libgme (Linux/OS X only)
|
- libgme (Linux/OS X only)
|
||||||
- libopenmpt (Linux/OS X only)
|
- libopenmpt (Linux/OS X only)
|
||||||
- libbacktrace (Linux/OS X only)
|
- libbacktrace (Linux/OS X only, optional, disable support with NOLIBBACKTRACE)
|
||||||
|
- libupnp (Linux/OS X only, optional, enable support with HAVE_MINIUPNPC)
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
See [SRB2 Wiki/Source code compiling](http://wiki.srb2.org/wiki/Source_code_compiling). The compiling process for SRB2Kart is largely identical to SRB2.
|
See [SRB2 Wiki/Source code compiling](http://wiki.srb2.org/wiki/Source_code_compiling). The compiling process for SRB2Kart is largely identical to SRB2.
|
||||||
|
|
||||||
|
Currently only the Makefile build system with GCC or Clang compiler is supported.
|
||||||
|
|
||||||
|
Visual C++ (MSVC) is unsupported.
|
||||||
|
|
||||||
|
64-bit Windows builds are supported and recommended over 32-bit builds, they will build automatically when using the MSYS2 MinGW 64-bit executable (requires the mingw-w64-x86_64-gcc package), no extra flags needed!
|
||||||
|
The specific DLLs can be found under /libs/dll-binaries/(i686 for 32bit/x86_64 for 64-bit)/ or in the Release packages
|
||||||
|
|
||||||
|
Alternatively the [srb2bld](https://github.com/Bijman/srb2bld) script by Bijman can be used aswell!
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
Kart Krew is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2.
|
Kart Krew is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2.
|
||||||
-133
@@ -1,133 +0,0 @@
|
|||||||
version: 1.3.{branch}-{build}
|
|
||||||
os: MinGW
|
|
||||||
|
|
||||||
environment:
|
|
||||||
CC: ccache
|
|
||||||
CCACHE_CC: i686-w64-mingw32-gcc
|
|
||||||
CCACHE_CC_64: x86_64-w64-mingw32-gcc
|
|
||||||
WINDRES: windres
|
|
||||||
# c:\mingw-w64 i686 has gcc 6.3.0, so use c:\msys64 7.3.0 instead
|
|
||||||
MINGW_SDK: c:\msys64\mingw32
|
|
||||||
# c:\msys64 x86_64 has gcc 8.2.0, so use c:\mingw-w64 7.3.0 instead
|
|
||||||
MINGW_SDK_64: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64
|
|
||||||
CFLAGS: -Wall -W -Werror -Wno-error=implicit-fallthrough -Wimplicit-fallthrough=3 -Wno-tautological-compare -Wno-error=suggest-attribute=noreturn
|
|
||||||
UPX_ZIP: upx391w
|
|
||||||
UPX_URL: http://upx.sourceforge.net/download/upx391w.zip
|
|
||||||
CCACHE_EXE: ccache.exe
|
|
||||||
CCACHE_URL: http://alam.srb2.org/ccache.exe
|
|
||||||
CCACHE_COMPRESS: true
|
|
||||||
CCACHE_DIR: C:\Users\appveyor\.ccache
|
|
||||||
# Disable UPX by default. The user can override this in their Appveyor project settings
|
|
||||||
NOUPX: 1
|
|
||||||
##############################
|
|
||||||
# DEPLOYER VARIABLES
|
|
||||||
# DPL_ENABLED=1 builds installers for branch names starting with `deployer`.
|
|
||||||
# DPL_TAG_ENABLED=1 will also build installers for release tags. DPL_ENABLED=1 must also be set.
|
|
||||||
# Set these in the Appveyor project settings
|
|
||||||
##############################
|
|
||||||
DPL_ENABLED: 0
|
|
||||||
DPL_TAG_ENABLED: 0
|
|
||||||
DPL_INSTALLER_NAME: srb2kart-v13
|
|
||||||
# Asset handling is barebones vs. Travis Deployer. We operate on 7z only.
|
|
||||||
# Include the README files and the OpenGL batch in the main and patch archives.
|
|
||||||
# The x86/x64 archives contain the DLL binaries.
|
|
||||||
ASSET_ARCHIVE_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-assets.7z
|
|
||||||
ASSET_ARCHIVE_PATCH_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-patch-assets.7z
|
|
||||||
ASSET_ARCHIVE_X86_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-x86-assets.7z
|
|
||||||
ASSET_ARCHIVE_X64_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-x64-assets.7z
|
|
||||||
ASSET_ARCHIVE_OPTIONAL_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-optional-assets.7z
|
|
||||||
# This is overridden to 1 for release tag builds
|
|
||||||
ASSET_FILES_OPTIONAL_GET: 0
|
|
||||||
# For patches, also include the X86/X64 DLLs.
|
|
||||||
PACKAGE_PATCH_DLL_GET: 0
|
|
||||||
# Delete all asset downloads so they can be redownloaded
|
|
||||||
ASSET_CLEAN: 0
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- upx391w.zip
|
|
||||||
- ccache.exe
|
|
||||||
- C:\Users\appveyor\.ccache
|
|
||||||
- C:\Users\appveyor\srb2_cache
|
|
||||||
|
|
||||||
install:
|
|
||||||
- if [%CONFIGURATION%] == [SDL64] ( set "X86_64=1" )
|
|
||||||
- if [%CONFIGURATION%] == [SDL64] ( set "CONFIGURATION=SDL" )
|
|
||||||
- if [%X86_64%] == [1] ( set "MINGW_SDK=%MINGW_SDK_64%" )
|
|
||||||
- if [%X86_64%] == [1] ( set "CCACHE_CC=%CCACHE_CC_64%" )
|
|
||||||
|
|
||||||
- if not exist "%UPX_ZIP%.zip" appveyor DownloadFile "%UPX_URL%" -FileName "%UPX_ZIP%.zip"
|
|
||||||
- 7z x -y "%UPX_ZIP%.zip" -o%TMP% >null
|
|
||||||
- robocopy /S /xx /ns /nc /nfl /ndl /np /njh /njs "%TMP%\%UPX_ZIP%" "%MINGW_SDK%\bin" upx.exe || exit 0
|
|
||||||
|
|
||||||
- if not exist "%CCACHE_EXE%" appveyor DownloadFile "%CCACHE_URL%" -FileName "%CCACHE_EXE%"
|
|
||||||
- ccache -M 99M
|
|
||||||
- xcopy /Y /V /I ccache.exe "%MINGW_SDK%\bin"
|
|
||||||
|
|
||||||
configuration:
|
|
||||||
- SDL
|
|
||||||
#- SDL64
|
|
||||||
|
|
||||||
before_build:
|
|
||||||
- set "Path=%MINGW_SDK%\bin;%Path%"
|
|
||||||
- if [%X86_64%] == [1] ( x86_64-w64-mingw32-gcc --version ) else ( i686-w64-mingw32-gcc --version )
|
|
||||||
- mingw32-make --version
|
|
||||||
- if not [%NOUPX%] == [1] ( upx -V )
|
|
||||||
- ccache -V
|
|
||||||
- ccache -s
|
|
||||||
- if [%NOUPX%] == [1] ( set "NOUPX=NOUPX=1" ) else ( set "NOUPX=" )
|
|
||||||
- if defined [%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%] ( set "COMMIT=%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%" ) else ( set "COMMIT=%APPVEYOR_REPO_COMMIT%" )
|
|
||||||
- cmd: git rev-parse --short %COMMIT%>%TMP%/gitshort.txt
|
|
||||||
- cmd: set /P GITSHORT=<%TMP%/gitshort.txt
|
|
||||||
# for pull requests, take the owner's name only, if this isn't the same repo of course
|
|
||||||
- set "REPO=%APPVEYOR_REPO_BRANCH%"
|
|
||||||
- if not [%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%] == [] ( if not [%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%] == [%APPVEYOR_REPO_NAME%] ( for /f "delims=/" %%a in ("%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%") do set "REPO=%%a-%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%" ) )
|
|
||||||
- set "EXENAME=EXENAME=srb2win-%REPO%-%GITSHORT%.exe"
|
|
||||||
- set "SRB2_MFLAGS=-C src WARNINGMODE=1 CCACHE=1 NOOBJDUMP=1 %NOUPX% %EXENAME%"
|
|
||||||
- if [%X86_64%] == [1] ( set "MINGW_FLAGS=MINGW64=1 X86_64=1 GCC81=1" ) else ( set "MINGW_FLAGS=MINGW=1 GCC91=1" )
|
|
||||||
- set "SRB2_MFLAGS=%SRB2_MFLAGS% %MINGW_FLAGS% %CONFIGURATION%=1"
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
- cmd: mingw32-make.exe %SRB2_MFLAGS% clean
|
|
||||||
- cmd: mingw32-make.exe %SRB2_MFLAGS% ERRORMODE=1 -k
|
|
||||||
|
|
||||||
after_build:
|
|
||||||
- if [%X86_64%] == [1] (
|
|
||||||
set "BUILD_PATH=bin\Mingw64\Release"
|
|
||||||
) else (
|
|
||||||
set "BUILD_PATH=bin\Mingw\Release"
|
|
||||||
)
|
|
||||||
- if [%X86_64%] == [1] ( set "CONFIGURATION=%CONFIGURATION%64" )
|
|
||||||
- ccache -s
|
|
||||||
- set BUILD_ARCHIVE=%REPO%-%GITSHORT%-%CONFIGURATION%.7z
|
|
||||||
- set BUILDSARCHIVE=%REPO%-%CONFIGURATION%.7z
|
|
||||||
- cmd: 7z a %BUILD_ARCHIVE% %BUILD_PATH% -xr!.gitignore
|
|
||||||
- appveyor PushArtifact %BUILD_ARCHIVE%
|
|
||||||
- cmd: copy %BUILD_ARCHIVE% %BUILDSARCHIVE%
|
|
||||||
- appveyor PushArtifact %BUILDSARCHIVE%
|
|
||||||
##############################
|
|
||||||
# DEPLOYER SCRIPT
|
|
||||||
##############################
|
|
||||||
- if [%DPL_ENABLED%] == [1] ( call "deployer\appveyor\deployer.bat" )
|
|
||||||
|
|
||||||
test: off
|
|
||||||
|
|
||||||
#deploy:
|
|
||||||
# - provider: FTP
|
|
||||||
# protocol: ftps
|
|
||||||
# host:
|
|
||||||
# secure: NsLJEPIBvmwCOj8Tg8RoRQ==
|
|
||||||
# username:
|
|
||||||
# secure: ejxi5mvk7oLYu7QtbYojajEPigMy0mokaKhuEVuDZcA=
|
|
||||||
# password:
|
|
||||||
# secure: Hbn6Uy3lT0YZ88yFJ3aW4w==
|
|
||||||
# folder: appveyor
|
|
||||||
# application:
|
|
||||||
# active_mode: false
|
|
||||||
# on:
|
|
||||||
# branch: master
|
|
||||||
# appveyor_repo_tag: true
|
|
||||||
|
|
||||||
|
|
||||||
on_finish:
|
|
||||||
#- cmd: echo xfreerdp /u:appveyor /cert-ignore +clipboard /v:<ip>:<port>
|
|
||||||
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
||||||
@@ -30,6 +30,24 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|||||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
0-Clause BSD License
|
||||||
|
applies to:
|
||||||
|
- qs22k
|
||||||
|
Copyright (c) 2022, Raymond Gardner
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||||
|
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
curl License
|
curl License
|
||||||
applies to:
|
applies to:
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
srb2 for Debian
|
|
||||||
---------------
|
|
||||||
|
|
||||||
SRB2 Debian package!
|
|
||||||
Hi there, to rebuild these packages just use debuild in the root source directory (not /src!).
|
|
||||||
You can build these with or without a key if you want, but if you want to put these on a repo,
|
|
||||||
generate your own GnuPG key as per the https://help.ubuntu.com/community/GnuPrivacyGuardHowto
|
|
||||||
instructions and pass the -k<keyid> command to debuild. Make sure you export the key footprint
|
|
||||||
and give them to your users to install with apt-key add. Thanks!
|
|
||||||
|
|
||||||
-- Callum Dickinson <gcfreak_ag20@hotmail.com> Fri, 26 Nov 2010 18:25:31 +1300
|
|
||||||
|
|
||||||
---------------
|
|
||||||
|
|
||||||
|
|
||||||
Templating
|
|
||||||
|
|
||||||
Note that you MUST run [repo-root]/debian_template.sh before running debuild
|
|
||||||
on these scripts! debian_template.sh fills these template files with working values.
|
|
||||||
|
|
||||||
You should also set PACKAGE_NAME_EMAIL="John Doe <jdoe@example.com>" to match
|
|
||||||
the identity of the key you will use to sign the package.
|
|
||||||
|
|
||||||
|
|
||||||
Building for Launchpad PPA
|
|
||||||
|
|
||||||
Use these steps to prepare building a source package for Launchpad:
|
|
||||||
|
|
||||||
1. cd [repo-root]
|
|
||||||
2. git reset --hard; git clean -fd; git clean -fx;
|
|
||||||
* Resets your repo folder to a committed state and removes untracked files
|
|
||||||
* If you built srb2-data in the assets/ folder, MAKE SURE THAT FOLDER DOES NOT HAVE ASSETS,
|
|
||||||
OR THEY MAY BE INCLUDED IN THE MAIN SOURCE PACKAGE!
|
|
||||||
|
|
||||||
Build the source package:
|
|
||||||
|
|
||||||
1. source [repo-root]/debian_template.sh
|
|
||||||
* Initializes defaults for the package variables and fills in templates.
|
|
||||||
2. debuild -S (builds the source package for Launchpad)
|
|
||||||
|
|
||||||
|
|
||||||
Signing for Launchpad PPA
|
|
||||||
|
|
||||||
First, follow Callum's instructions to generate a GnuPG key with your identity. You will need
|
|
||||||
to publish the fingerprint of that key to Ubuntu's key server.
|
|
||||||
|
|
||||||
https://help.ubuntu.com/community/GnuPrivacyGuardHowto#Uploading_the_key_to_Ubuntu_keyserver
|
|
||||||
|
|
||||||
Next, you will have to add that key fingerprint to your Launchpad account. Go to your Launchpad
|
|
||||||
profile and click the yellow Edit button next to "OpenPGP keys". Once you add the key, you can
|
|
||||||
upload signed source packages and publish them onto your PPA.
|
|
||||||
|
|
||||||
IF YOU UPLOAD A PACKAGE and Launchpad does NOT send you a confirmation or rejection email, that
|
|
||||||
means your key is not set up correctly with your Launchpad account.
|
|
||||||
|
|
||||||
Finally, if your packages have not already been signed, follow these steps:
|
|
||||||
|
|
||||||
1. cd ..
|
|
||||||
* Packages are located in the parent folder of where debuild was called
|
|
||||||
2. debsign "srb2_[version]_source.changes"
|
|
||||||
* You may need to specify -k [key-fingerprint]
|
|
||||||
|
|
||||||
|
|
||||||
Uploading for Launchpad PPA
|
|
||||||
|
|
||||||
Follow the instructions at <https://help.launchpad.net/Packaging/PPA/Uploading> to upload
|
|
||||||
to your PPA and have Launchpad build your binary deb packages.
|
|
||||||
|
|
||||||
|
|
||||||
-- Marco Zafra <marco.a.zafra@gmail.com> Mon, 26 Nov 2018 21:13:00 -0500
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
srb2 for Debian
|
|
||||||
---------------
|
|
||||||
|
|
||||||
Here it is! SRB2 v2.1.2 source code!
|
|
||||||
|
|
||||||
GNU/Linux
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Dependencies:
|
|
||||||
SDL 1.2.7 or better (from libsdl.org)
|
|
||||||
SDL_Mixer 1.2.2(.7 for file-less music playback) (from libsdl.org)
|
|
||||||
Nasm (use NOASM=1 if you don't have it or have an non-i386 system, I think)
|
|
||||||
libPNG 1.2.7
|
|
||||||
Zlib 1.2.3
|
|
||||||
The Xiph.org libogg and libvorbis libraries
|
|
||||||
The OpenGL headers (from Mesa, usually shipped with your X.org or XFree
|
|
||||||
installation, so you needn't worry, most likely)
|
|
||||||
GCC 3.x toolchain and binutils
|
|
||||||
GNU Make
|
|
||||||
|
|
||||||
Build instructions:
|
|
||||||
|
|
||||||
make -C src LINUX=1
|
|
||||||
|
|
||||||
Build instructions for non-X86 devices (such as X64):
|
|
||||||
|
|
||||||
make -C src LINUX=1 NONX86=1
|
|
||||||
|
|
||||||
Build instructions to build for Wii Linux/SRB2Wii on a PowerPC system,
|
|
||||||
follow cross-compiling instructions for cross-compiling on a x86 system:
|
|
||||||
|
|
||||||
make -C src LINUX=1 WIILINUX=1
|
|
||||||
|
|
||||||
Build instructions to build for Pandora (Linux) on a ARM system,
|
|
||||||
follow cross-compiling instructions for cross-compiling on a x86 system:
|
|
||||||
|
|
||||||
make -C src PANDORA=1
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
binaries will turn in up in bin/
|
|
||||||
|
|
||||||
note: read the src/makefile for more options
|
|
||||||
|
|
||||||
- Sonic Team Junior
|
|
||||||
http://www.srb2.org
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
${PACKAGE_NAME} (${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}) ${PACKAGE_DISTRO}; urgency=${PACKAGE_URGENCY}
|
|
||||||
|
|
||||||
* ${PROGRAM_NAME} v${PROGRAM_VERSION} program build
|
|
||||||
|
|
||||||
-- ${PACKAGE_NAME_EMAIL} ${__PACKAGE_DATETIME}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
7
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
# SRB2 Debian package control file.
|
|
||||||
|
|
||||||
Source: ${PACKAGE_NAME}
|
|
||||||
Section: games
|
|
||||||
Priority: extra
|
|
||||||
Maintainer: ${PACKAGE_GROUP_NAME_EMAIL}
|
|
||||||
Build-Depends: debhelper (>= 7.0.50~),
|
|
||||||
libsdl2-dev,
|
|
||||||
libsdl2-mixer-dev,
|
|
||||||
libpng-dev | libpng16-dev | libpng12-dev (>= 1.2.7),
|
|
||||||
zlib1g-dev,
|
|
||||||
libgme-dev,
|
|
||||||
libcurl4-openssl-dev,
|
|
||||||
libglu1-dev | libglu-dev,
|
|
||||||
libosmesa6-dev | libgl-dev,
|
|
||||||
nasm [i386]
|
|
||||||
Standards-Version: 3.8.4
|
|
||||||
Homepage: ${PACKAGE_WEBSITE}
|
|
||||||
|
|
||||||
Package: ${PACKAGE_NAME}
|
|
||||||
Architecture: any
|
|
||||||
Depends: ${SHLIBS_DEPENDS}, ${MISC_DEPENDS},
|
|
||||||
${PACKAGE_NAME}-data (>> ${PACKAGE_ASSET_MINVERSION}), ${PACKAGE_NAME}-data (<< ${PACKAGE_ASSET_MAXVERSION}),
|
|
||||||
libsdl2-2.0-0,
|
|
||||||
libsdl2-mixer-2.0-0,
|
|
||||||
zlib1g,
|
|
||||||
libgme0,
|
|
||||||
libcurl4,
|
|
||||||
libpng | libpng16-16 | libpng12-0
|
|
||||||
Description: A cross-platform 3D Sonic fangame
|
|
||||||
Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog
|
|
||||||
fangame built using a modified version of the Doom Legacy
|
|
||||||
port of Doom. SRB2 is closely inspired by the original
|
|
||||||
Sonic games from the Sega Genesis, and attempts to recreate
|
|
||||||
the design in 3D. It features tons of levels, enemies, speed,
|
|
||||||
and quite a lot of the fun that the original Sonic games provided.
|
|
||||||
|
|
||||||
|
|
||||||
Package: ${PACKAGE_NAME}-dbg
|
|
||||||
Architecture: any
|
|
||||||
# FIXME: should be Depends: ${SHLIBS_DEPENDS}, ${MISC_DEPENDS}, srb2-data (= 2.1.14), srb2 but dh_shlibdeps is being an asshat
|
|
||||||
Depends: libc6, ${MISC_DEPENDS}, ${PACKAGE_NAME}-data (>> ${PACKAGE_ASSET_MINVERSION}), ${PACKAGE_NAME}-data (<< ${PACKAGE_ASSET_MAXVERSION}), ${PACKAGE_NAME}
|
|
||||||
Description: A cross-platform 3D Sonic fangame
|
|
||||||
Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog
|
|
||||||
fangame built using a modified version of the Doom Legacy
|
|
||||||
port of Doom. SRB2 is closely inspired by the original
|
|
||||||
Sonic games from the Sega Genesis, and attempts to recreate
|
|
||||||
the design in 3D. It features tons of levels, enemies, speed,
|
|
||||||
and quite a lot of the fun that the original Sonic games provided.
|
|
||||||
This is a debug binary; its symbols will be loaded by gdb
|
|
||||||
when the user starts the game with gdb for debugging.
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
This work was packaged for Debian by:
|
|
||||||
|
|
||||||
${PACKAGE_NAME_EMAIL} ${__PACKAGE_DATETIME}
|
|
||||||
|
|
||||||
It was downloaded from:
|
|
||||||
|
|
||||||
${PACKAGE_WEBSITE}
|
|
||||||
|
|
||||||
Upstream Author(s):
|
|
||||||
|
|
||||||
${PACKAGE_GROUP_NAME_EMAIL}
|
|
||||||
|
|
||||||
Copyright:
|
|
||||||
|
|
||||||
Copyright (C) 1998-2018 by Sonic Team Junior
|
|
||||||
|
|
||||||
License:
|
|
||||||
|
|
||||||
GNU General Public License, version 2
|
|
||||||
|
|
||||||
The Debian packaging is:
|
|
||||||
|
|
||||||
Copyright (C) 2010 Callum Dickinson <gcfreak_ag20@hotmail.com>
|
|
||||||
Copyright (C) 2010-2018 by Sonic Team Junior <stjr@srb2.org>
|
|
||||||
|
|
||||||
and is licensed under the GPL version 2,
|
|
||||||
see "/usr/share/common-licenses/GPL-2".
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
README.md
|
|
||||||
assets/README.txt
|
|
||||||
assets/LICENSE.txt
|
|
||||||
assets/LICENSE-3RD-PARTY.txt
|
|
||||||
@@ -1,172 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
# -*- makefile -*-
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
#
|
|
||||||
# GNU Make Debian package makefile for SRB2
|
|
||||||
#
|
|
||||||
# Copyright (C) 1998-2010 by Callum Dickinson
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2
|
|
||||||
# of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# This file most likely will not need to be modified to make
|
|
||||||
# branches of SRB2 capable of making their own Debian packages,
|
|
||||||
# instead look at the /debian/control file for configuration.
|
|
||||||
#
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
#
|
|
||||||
# !!!!!!!!!! DEPLOYER NOTE !!!!!!!!!!
|
|
||||||
#
|
|
||||||
# Variables to be templated are curly-braced ${PACKAGE_INSTALL_PATH}
|
|
||||||
# Variables used by the rules script are parenthese'd $(PKGDIR)
|
|
||||||
# See [repo-root]/debian_template.sh
|
|
||||||
#
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
|
||||||
#export DH_VERBOSE=1
|
|
||||||
|
|
||||||
# user/group of to-be-installed files
|
|
||||||
ROOT_USER := 0
|
|
||||||
ROOT_GROUP := 0
|
|
||||||
|
|
||||||
# determine cross-compile (may need some work)
|
|
||||||
CROSS_COMPILE_BUILD := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
||||||
CROSS_COMPILE_HOST := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
||||||
CROSS_COMPILE := $(shell test "$(CROSS_COMPILE_BUILD)" != "$(CROSS_COMPILE_HOST)" && echo "$(CROSS_COMPILE_HOST)")
|
|
||||||
|
|
||||||
MKDIR = mkdir -p
|
|
||||||
MAKE = make
|
|
||||||
INSTALL = install -o $(ROOT_USER) -g $(ROOT_GROUP) -m 644
|
|
||||||
MV = mv
|
|
||||||
RM = rm -rf
|
|
||||||
STRIPARGS = --strip-unneeded
|
|
||||||
ifdef CROSS_COMPILE
|
|
||||||
STRIP = $(CROSS_COMPILE_HOST)-strip $(STRIPARGS)
|
|
||||||
else
|
|
||||||
STRIP = strip $(STRIPARGS)
|
|
||||||
endif
|
|
||||||
DIR := $(shell pwd)
|
|
||||||
|
|
||||||
# FIXME: hate hate hate head/tail hack :(
|
|
||||||
CONTROLF = $(DIR)/debian/control
|
|
||||||
PACKAGE = ${PACKAGE_NAME}
|
|
||||||
DBGPKG = ${PACKAGE}-dbg
|
|
||||||
TITLE = ${PROGRAM_NAME}
|
|
||||||
SECTION = Games/Action
|
|
||||||
EXENAME = ${PROGRAM_FILENAME}
|
|
||||||
DBGNAME = debug/$(EXENAME)
|
|
||||||
|
|
||||||
PKGDIR = $(shell echo "${PACKAGE_INSTALL_PATH}" | sed -e 's/^\///')
|
|
||||||
DBGDIR = usr/lib/debug/$(PKGDIR)
|
|
||||||
LINKDIR = $(shell echo "${PACKAGE_LINK_PATH}" | sed -e 's/^\///')
|
|
||||||
PIXMAPS_DIR = usr/share/pixmaps
|
|
||||||
DESKTOP_DIR = usr/share/applications
|
|
||||||
PREFIX = $(shell test "$(CROSS_COMPILE_BUILD)" != "$(CROSS_COMPILE_HOST)" && echo "PREFIX=$(CROSS_COMPILE_HOST)")
|
|
||||||
OS = LINUX=1
|
|
||||||
NONX86 = $(shell test "`echo $(CROSS_COMPILE_HOST) | grep 'i[3-6]86'`" || echo "NONX86=1")
|
|
||||||
MAKEARGS = $(OS) $(NONX86) $(PREFIX) EXENAME=$(EXENAME) DBGNAME=$(DBGNAME) NOOBJDUMP=1 # SDL_PKGCONFIG=sdl2 PNG_PKGCONFIG=libpng
|
|
||||||
MENUFILE1 = ?package($(PACKAGE)):needs="X11" section="$(SECTION)"
|
|
||||||
MENUFILE2 = title="$(TITLE)" command="/$(PKGDIR)/$(PACKAGE)"
|
|
||||||
BINDIR := $(DIR)/bin/Linux/Release
|
|
||||||
|
|
||||||
# FIXME pkg-config dir hacks
|
|
||||||
# Launchpad doesn't need this; it actually makes i386 builds fail due to cross-compile
|
|
||||||
# export PKG_CONFIG_LIBDIR = /usr/lib/$(CROSS_COMPILE_HOST)/pkgconfig
|
|
||||||
LDFLAGS += "-Wl,-rpath=/usr/lib/$(CROSS_COMPILE_HOST)"
|
|
||||||
|
|
||||||
# Some libgme-dev packages don't use pkg-config yet, so include the linker flag ourselves
|
|
||||||
PKG_CONFIG?=pkg-config
|
|
||||||
LIBGME_PKGCONFIG?=libgme
|
|
||||||
LIBGME_LDFLAGS?=$(shell $(PKG_CONFIG) $(LIBGME_PKGCONFIG) --libs)
|
|
||||||
|
|
||||||
ifeq ($(LIBGME_LDFLAGS),)
|
|
||||||
MAKEARGS += LIBGME_LDFLAGS=-lgme
|
|
||||||
endif
|
|
||||||
|
|
||||||
build:
|
|
||||||
$(MKDIR) $(BINDIR)/debug
|
|
||||||
$(MAKE) -C $(DIR)/src $(MAKEARGS)
|
|
||||||
$(STRIP) $(BINDIR)/$(EXENAME)
|
|
||||||
|
|
||||||
binary-indep:
|
|
||||||
# only here to kill Lintian warning
|
|
||||||
echo "no need to do any arch-independent stuff"
|
|
||||||
|
|
||||||
binary-arch:
|
|
||||||
# create ddirs
|
|
||||||
$(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(DBGDIR)
|
|
||||||
$(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(DESKTOP_DIR)
|
|
||||||
$(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(PIXMAPS_DIR)
|
|
||||||
# install main binaries
|
|
||||||
$(INSTALL) $(BINDIR)/$(EXENAME) $(DIR)/debian/tmp/$(PKGDIR)/$(PACKAGE)
|
|
||||||
$(INSTALL) $(BINDIR)/$(DBGNAME) $(DIR)/debian/tmp/$(DBGDIR)/$(PACKAGE)
|
|
||||||
# Install desktop file and banner image
|
|
||||||
$(INSTALL) $(DIR)/srb2.png $(DIR)/debian/tmp/usr/share/pixmaps/${PROGRAM_FILENAME}.png
|
|
||||||
$(INSTALL) $(DIR)/debian/srb2.desktop $(DIR)/debian/tmp/usr/share/applications/${PROGRAM_FILENAME}.desktop
|
|
||||||
# add compiled binaries to include-binaries
|
|
||||||
echo $(BINDIR)/$(EXENAME) >> $(DIR)/debian/source/include-binaries
|
|
||||||
echo $(BINDIR)/$(EXENAME) >> $(DIR)/debian/source/include-binaries
|
|
||||||
# Generate install folder files
|
|
||||||
echo $(PKGDIR) > $(DIR)/debian/$(PACKAGE).install
|
|
||||||
echo $(DESKTOP_DIR) >> $(DIR)/debian/$(PACKAGE).install
|
|
||||||
echo $(PIXMAPS_DIR) >> $(DIR)/debian/$(PACKAGE).install
|
|
||||||
echo $(DBGDIR) > $(DIR)/debian/$(DBGPKG).install
|
|
||||||
# Launchpad only calls binary-arch, so just move everything up
|
|
||||||
#binary: binary-arch
|
|
||||||
# Generate .desktop specifications
|
|
||||||
echo "`echo '$(MENUFILE1)\\'`" > $(DIR)/debian/menu
|
|
||||||
echo " `echo '$(MENUFILE2)'`" >> $(DIR)/debian/menu
|
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
dh_installchangelogs
|
|
||||||
dh_installdocs
|
|
||||||
# dh_installexamples
|
|
||||||
dh_install --sourcedir=$(DIR)/debian/tmp
|
|
||||||
dh_installmenu
|
|
||||||
# dh_installdebconf
|
|
||||||
# dh_installlogrotate
|
|
||||||
# dh_installemacsen
|
|
||||||
# dh_installpam
|
|
||||||
# dh_installmime
|
|
||||||
# dh_python
|
|
||||||
# dh_installinit
|
|
||||||
# dh_installcron
|
|
||||||
# dh_installinfo
|
|
||||||
# dh_installman
|
|
||||||
dh_link $(PKGDIR)/$(EXENAME) $(LINKDIR)/$(EXENAME)
|
|
||||||
dh_compress
|
|
||||||
dh_fixperms
|
|
||||||
# dh_perl
|
|
||||||
# dh_makeshlibs
|
|
||||||
dh_installdeb
|
|
||||||
-dh_shlibdeps
|
|
||||||
dh_gencontrol
|
|
||||||
dh_md5sums
|
|
||||||
dh_builddeb
|
|
||||||
|
|
||||||
binary: binary-arch
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(MAKE) -C $(DIR)/src $(MAKEARGS) clean cleandep
|
|
||||||
$(RM) $(BINDIR)/*
|
|
||||||
$(RM) $(DIR)/debian/$(PACKAGE)/*
|
|
||||||
$(RM) $(DIR)/debian/$(DBGPKG)/*
|
|
||||||
$(RM) $(DIR)/debian/tmp/*
|
|
||||||
$(RM) $(DIR)/debian/$(PACKAGE).install
|
|
||||||
$(RM) $(DIR)/debian/$(DBGPKG).install
|
|
||||||
$(RM) $(DIR)/debian/menu
|
|
||||||
$(RM) $(DIR)/debian/files
|
|
||||||
$(RM) $(DIR)/debian/source/include-binaries
|
|
||||||
|
|
||||||
.PHONY: all clean binary binary-indep build
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
3.0 (native)
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
tar-ignore = "assets/*.srb"
|
|
||||||
tar-ignore = "assets/*.pk3"
|
|
||||||
tar-ignore = "assets/*.dta"
|
|
||||||
tar-ignore = "assets/*.wad"
|
|
||||||
tar-ignore = "assets/*.kart"
|
|
||||||
tar-ignore = "assets/debian/${PACKAGE_NAME}-data/*"
|
|
||||||
tar-ignore = "assets/debian/tmp/*"
|
|
||||||
tar-ignore = "*.obj"
|
|
||||||
tar-ignore = "*.dep"
|
|
||||||
tar-ignore = ".git/*"
|
|
||||||
tar-ignore = ".git*"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=${PROGRAM_NAME}
|
|
||||||
Comment=${PROGRAM_DESCRIPTION}
|
|
||||||
Encoding=UTF-8
|
|
||||||
Exec=${PACKAGE_INSTALL_PATH}/${PROGRAM_FILENAME}
|
|
||||||
Icon=/usr/share/pixmaps/${PROGRAM_FILENAME}.png
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
StartupNotify=false
|
|
||||||
Categories=Application;Game;
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# Debian package templating
|
|
||||||
#
|
|
||||||
# Call this script BEFORE running debuild!
|
|
||||||
# source ./debian_template.sh [clean] [main/asset]
|
|
||||||
#
|
|
||||||
# Before running this script,
|
|
||||||
# you should also set PACKAGE_NAME_EMAIL="John Doe <jdoe@example.com>" to match
|
|
||||||
# the identity of the key you will use to sign the package.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Get script's actual path
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
||||||
|
|
||||||
# Recursive function for directory crawling
|
|
||||||
# $1 = Directory root to crawl
|
|
||||||
# $2 = Code to eval on file
|
|
||||||
# $3 = Code to eval on directory
|
|
||||||
# Exposes $dirtails, $dirlevel, and $dirtailname
|
|
||||||
dirlevel=0 # initialize
|
|
||||||
dirtails=()
|
|
||||||
|
|
||||||
# Utility function to make dira/dirb/dirc string
|
|
||||||
makedirtailname () {
|
|
||||||
dirtailname=""
|
|
||||||
for tail in $dirtails; do
|
|
||||||
if [[ "$dirtailname" == "" ]]; then
|
|
||||||
dirtailname="/$tail";
|
|
||||||
else
|
|
||||||
dirtailname="$dirtailname/$tail";
|
|
||||||
fi;
|
|
||||||
done;
|
|
||||||
}
|
|
||||||
|
|
||||||
evaldirectory () {
|
|
||||||
if [ -d "$1" ]; then
|
|
||||||
# Set contextual variables
|
|
||||||
# dirtails is an array of directory basenames after the crawl root
|
|
||||||
if (( $dirlevel > 0 )); then
|
|
||||||
dirtails+=( "$(basename $1)" );
|
|
||||||
else
|
|
||||||
dirtails=();
|
|
||||||
fi;
|
|
||||||
dirlevel=$((dirlevel+1));
|
|
||||||
|
|
||||||
# Generate directory path after the crawl root
|
|
||||||
makedirtailname;
|
|
||||||
|
|
||||||
# Eval our directory with the latest contextual info
|
|
||||||
# Don't eval on root
|
|
||||||
if (( $dirlevel > 1 )) && [[ "$3" != "" ]]; then
|
|
||||||
eval "$3";
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Iterate entries
|
|
||||||
for name in $1/*; do
|
|
||||||
if [ -d "$name" ]; then
|
|
||||||
# Name is a directory, but don't eval yet
|
|
||||||
# Recurse so our vars are updated
|
|
||||||
evaldirectory "$name" "$2" "$3";
|
|
||||||
|
|
||||||
# Decrement our directory level and remove a dirtail
|
|
||||||
unset 'dirtails[ ${#dirtails[@]}-1 ]';
|
|
||||||
dirlevel=$((dirlevel-1));
|
|
||||||
makedirtailname;
|
|
||||||
else
|
|
||||||
# Name is a file
|
|
||||||
if [ -f "$name" ] && [[ "$2" != "" ]]; then
|
|
||||||
eval "$2";
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
done;
|
|
||||||
|
|
||||||
# Reset our variables; we're done iterating
|
|
||||||
if (( $dirlevel == 1 )); then
|
|
||||||
dirlevel=0;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Initialize package parameter defaults
|
|
||||||
#
|
|
||||||
if [[ "$__DEBIAN_PARAMETERS_INITIALIZED" != "1" ]]; then
|
|
||||||
. ${DIR}/deployer/travis/deployer_defaults.sh;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Clean up after ourselves; we only expect to run this script once
|
|
||||||
# during buildboting
|
|
||||||
__DEBIAN_PARAMETERS_INITIALIZED=0
|
|
||||||
|
|
||||||
# for envsubst
|
|
||||||
export __PACKAGE_DATETIME="$(date '+%a, %d %b %Y %H:%M:%S %z')"
|
|
||||||
export __PACKAGE_DATETIME_DIGIT="$(date -u '+%Y%m%d%H%M%S')"
|
|
||||||
|
|
||||||
if [[ "$PACKAGE_REVISION" == "" ]]; then
|
|
||||||
PACKAGE_REVISION="-$__PACKAGE_DATETIME_DIGIT";
|
|
||||||
__PACKAGE_REVISION_BY_DATE=1;
|
|
||||||
export PACKAGE_REVISION=${PACKAGE_REVISION}; # for envsubst
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Clean the old debian/ directories
|
|
||||||
#
|
|
||||||
if [[ "$1" == "clean" ]]; then
|
|
||||||
toclean=$2;
|
|
||||||
else
|
|
||||||
toclean=$1;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$toclean" == "" ]] || [[ "$toclean" == "main" ]]; then
|
|
||||||
echo "Cleaning main package scripts";
|
|
||||||
if [[ ! -f ${DIR}/debian ]]; then
|
|
||||||
rm -rf ${DIR}/debian;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
if [[ "$toclean" == "" ]] || [[ "$toclean" == "asset" ]]; then
|
|
||||||
echo "Cleaning asset package scripts";
|
|
||||||
if [[ ! -f ${DIR}/assets/debian ]]; then
|
|
||||||
rm -rf ${DIR}/assets/debian;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Make new templates
|
|
||||||
#
|
|
||||||
if [[ "$1" != "clean" ]]; then
|
|
||||||
totemplate=$1;
|
|
||||||
|
|
||||||
# HACK: ${shlibs:Depends} in the templates make the templating fail
|
|
||||||
# So just define replacemment variables
|
|
||||||
export SHLIBS_DEPENDS=${SHLIBS_DEPENDS};
|
|
||||||
export MISC_DEPENDS=${MISC_DEPENDS};
|
|
||||||
export DEBFILEVAR='$$file'; # used in assets/debian/rules
|
|
||||||
|
|
||||||
# Package parameters are exported for envsubst in deployer_defaults.sh
|
|
||||||
|
|
||||||
if [[ "$totemplate" == "" ]] || [[ "$totemplate" == "main" ]]; then
|
|
||||||
echo "Generating main package scripts";
|
|
||||||
fromroot=${DIR}/debian-template;
|
|
||||||
toroot=${DIR}/debian;
|
|
||||||
mkdir ${toroot};
|
|
||||||
|
|
||||||
evaldirectory ${fromroot} \
|
|
||||||
"cat \$name | envsubst > ${toroot}\${dirtailname}/\$( basename \$name )" \
|
|
||||||
"mkdir \"${toroot}\${dirtailname}\"";
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$totemplate" == "" ]] || [[ "$totemplate" == "asset" ]]; then
|
|
||||||
echo "Generating asset package scripts";
|
|
||||||
fromroot=${DIR}/assets/debian-template;
|
|
||||||
toroot=${DIR}/assets/debian;
|
|
||||||
mkdir ${toroot};
|
|
||||||
|
|
||||||
# Root dir to crawl; file eval; directory eval
|
|
||||||
evaldirectory ${fromroot} \
|
|
||||||
"cat \$name | envsubst > ${toroot}\${dirtailname}/\$( basename \$name )" \
|
|
||||||
"mkdir \"${toroot}\${dirtailname}\"";
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$__DPL_ACTIVE" != "1" ]] && [[ "$__PACKAGE_REVISION_BY_DATE" == "1" ]]; then
|
|
||||||
unset PACKAGE_REVISION; # so we can reset the date on subsequent runs
|
|
||||||
fi;
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
@setlocal enableextensions enabledelayedexpansion
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
: Appveyor Deployer
|
|
||||||
: See appveyor.yml for default variables
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
: Evaluate whether we should be deploying
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
if not [%DPL_ENABLED%] == [1] (
|
|
||||||
echo Deployer is not enabled...
|
|
||||||
exit /b
|
|
||||||
)
|
|
||||||
|
|
||||||
: Don't do DD installs because fmodex DLL handling is not implemented.
|
|
||||||
if [%CONFIGURATION%] == [DD] (
|
|
||||||
echo Deployer does not support DD builds...
|
|
||||||
exit /b
|
|
||||||
)
|
|
||||||
|
|
||||||
if [%CONFIGURATION%] == [DD64] (
|
|
||||||
echo Deployer does not support DD builds...
|
|
||||||
exit /b
|
|
||||||
)
|
|
||||||
|
|
||||||
: Substring match from https://stackoverflow.com/questions/7005951/batch-file-find-if-substring-is-in-string-not-in-a-file
|
|
||||||
: The below line says "if deployer is NOT in string"
|
|
||||||
: Note that APPVEYOR_REPO_BRANCH for pull request builds is the BASE branch that PR is merging INTO
|
|
||||||
if x%APPVEYOR_REPO_BRANCH:deployer=%==x%APPVEYOR_REPO_BRANCH% (
|
|
||||||
if not [%APPVEYOR_REPO_TAG%] == [true] (
|
|
||||||
echo Deployer is enabled but we are not in a release tag or a 'deployer' branch...
|
|
||||||
exit /b
|
|
||||||
) else (
|
|
||||||
if not [%DPL_TAG_ENABLED%] == [1] (
|
|
||||||
echo Deployer is not enabled for release tags...
|
|
||||||
exit /b
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
: Release tags always get optional assets (music.dta)
|
|
||||||
if [%APPVEYOR_REPO_TAG%] == [true] (
|
|
||||||
set "ASSET_FILES_OPTIONAL_GET=1"
|
|
||||||
)
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
: Get asset archives
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
if exist "C:\Users\appveyor\srb2_cache\archives\" (
|
|
||||||
if [%ASSET_CLEAN%] == [1] (
|
|
||||||
echo Cleaning asset archives...
|
|
||||||
rmdir /s /q "C:\Users\appveyor\srb2_cache\archives"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if not exist "C:\Users\appveyor\srb2_cache\archives\" mkdir "C:\Users\appveyor\srb2_cache\archives"
|
|
||||||
|
|
||||||
goto EXTRACT_ARCHIVES
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
: ARCHIVE_NAME_PARTS
|
|
||||||
: Call this like a function. %archivepath% is the path to extract parts from.
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
for %%a in (%archivepath%) do (
|
|
||||||
set "file=%%~fa"
|
|
||||||
set "filepath=%%~dpa"
|
|
||||||
set "filename=%%~nxa"
|
|
||||||
)
|
|
||||||
|
|
||||||
set "localarchivepath=C:\Users\appveyor\srb2_cache\archives\%filename%"
|
|
||||||
|
|
||||||
goto EOF
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
: EXTRACT_ARCHIVES
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
set "archivepath=%ASSET_ARCHIVE_PATH%"
|
|
||||||
call :ARCHIVE_NAME_PARTS
|
|
||||||
set "ASSET_ARCHIVE_PATH_LOCAL=%localarchivepath%"
|
|
||||||
if not exist "%localarchivepath%" appveyor DownloadFile "%ASSET_ARCHIVE_PATH%" -FileName "%localarchivepath%"
|
|
||||||
|
|
||||||
set "archivepath=%ASSET_ARCHIVE_PATCH_PATH%"
|
|
||||||
call :ARCHIVE_NAME_PARTS
|
|
||||||
set "ASSET_ARCHIVE_PATCH_PATH_LOCAL=%localarchivepath%"
|
|
||||||
if not exist "%localarchivepath%" appveyor DownloadFile "%ASSET_ARCHIVE_PATCH_PATH%" -FileName "%localarchivepath%"
|
|
||||||
|
|
||||||
if not [%X86_64%] == [1] (
|
|
||||||
set "archivepath=%ASSET_ARCHIVE_X86_PATH%"
|
|
||||||
call :ARCHIVE_NAME_PARTS
|
|
||||||
set "ASSET_ARCHIVE_X86_PATH_LOCAL=!localarchivepath!"
|
|
||||||
if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_X86_PATH%" -FileName "!localarchivepath!"
|
|
||||||
)
|
|
||||||
|
|
||||||
if [%X86_64%] == [1] (
|
|
||||||
set "archivepath=%ASSET_ARCHIVE_X64_PATH%"
|
|
||||||
call :ARCHIVE_NAME_PARTS
|
|
||||||
set "ASSET_ARCHIVE_X64_PATH_LOCAL=!localarchivepath!"
|
|
||||||
if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_X64_PATH%" -FileName "!localarchivepath!"
|
|
||||||
)
|
|
||||||
|
|
||||||
if [%ASSET_FILES_OPTIONAL_GET%] == [1] (
|
|
||||||
set "archivepath=%ASSET_ARCHIVE_OPTIONAL_PATH%"
|
|
||||||
call :ARCHIVE_NAME_PARTS
|
|
||||||
set "ASSET_ARCHIVE_OPTIONAL_PATH_LOCAL=!localarchivepath!"
|
|
||||||
if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_OPTIONAL_PATH%" -FileName "!localarchivepath!"
|
|
||||||
)
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
: Build the installers
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
mkdir "assets\installer"
|
|
||||||
mkdir "assets\patch"
|
|
||||||
|
|
||||||
7z x -y "%ASSET_ARCHIVE_PATH_LOCAL%" -o"assets\installer" >null
|
|
||||||
7z x -y "%ASSET_ARCHIVE_PATCH_PATH_LOCAL%" -o"assets\patch" >null
|
|
||||||
|
|
||||||
: Copy optional files to full installer (music.dta)
|
|
||||||
if [%ASSET_FILES_OPTIONAL_GET%] == [1] (
|
|
||||||
7z x -y "%ASSET_ARCHIVE_OPTIONAL_PATH_LOCAL%" -o"assets\installer" >null
|
|
||||||
)
|
|
||||||
|
|
||||||
: Copy EXE -- BUILD_PATH is from appveyor.yml
|
|
||||||
robocopy /S /ns /nc /nfl /ndl /np /njh /njs "%BUILD_PATH%" "assets\installer" /XF "*.debug" ".gitignore"
|
|
||||||
robocopy /S /ns /nc /nfl /ndl /np /njh /njs "%BUILD_PATH%" "assets\patch" /XF "*.debug" ".gitignore"
|
|
||||||
|
|
||||||
: Are we building DD? (we were supposed to exit earlier!)
|
|
||||||
if [%CONFIGURATION%] == [DD] ( set "DPL_INSTALLER_NAME=%DPL_INSTALLER_NAME%-DD" )
|
|
||||||
if [%CONFIGURATION%] == [DD64] ( set "DPL_INSTALLER_NAME=%DPL_INSTALLER_NAME%-DD" )
|
|
||||||
|
|
||||||
: If we are not a release tag, suffix the filename
|
|
||||||
if not [%APPVEYOR_REPO_TAG%] == [true] (
|
|
||||||
set "INSTALLER_SUFFIX=-%APPVEYOR_REPO_BRANCH%-%GITSHORT%-%CONFIGURATION%"
|
|
||||||
) else (
|
|
||||||
set "INSTALLER_SUFFIX="
|
|
||||||
)
|
|
||||||
|
|
||||||
if not [%X86_64%] == [1] ( goto X86_INSTALL )
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
: X64_INSTALL
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
: Extract DLL binaries
|
|
||||||
7z x -y "%ASSET_ARCHIVE_X64_PATH_LOCAL%" -o"assets\installer" >null
|
|
||||||
if [%PACKAGE_PATCH_DLL_GET%] == [1] (
|
|
||||||
7z x -y "!ASSET_ARCHIVE_X64_PATH_LOCAL!" -o"assets\patch" >null
|
|
||||||
)
|
|
||||||
|
|
||||||
: Build the installer
|
|
||||||
7z a -sfx7z.sfx "%DPL_INSTALLER_NAME%-x64-Installer%INSTALLER_SUFFIX%.exe" .\assets\installer\*
|
|
||||||
|
|
||||||
: Build the patch
|
|
||||||
7z a "%DPL_INSTALLER_NAME%-x64-Patch%INSTALLER_SUFFIX%.zip" .\assets\patch\*
|
|
||||||
|
|
||||||
: Upload artifacts
|
|
||||||
appveyor PushArtifact "%DPL_INSTALLER_NAME%-x64-Installer%INSTALLER_SUFFIX%.exe"
|
|
||||||
appveyor PushArtifact "%DPL_INSTALLER_NAME%-x64-Patch%INSTALLER_SUFFIX%.zip"
|
|
||||||
|
|
||||||
: We only do x86 OR x64, one at a time, so exit now.
|
|
||||||
goto EOF
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
: X86_INSTALL
|
|
||||||
::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
: Extract DLL binaries
|
|
||||||
7z x -y "%ASSET_ARCHIVE_X86_PATH_LOCAL%" -o"assets\installer" >null
|
|
||||||
if [%PACKAGE_PATCH_DLL_GET%] == [1] (
|
|
||||||
7z x -y "!ASSET_ARCHIVE_X86_PATH_LOCAL!" -o"assets\patch" >null
|
|
||||||
)
|
|
||||||
|
|
||||||
: Build the installer
|
|
||||||
7z a -sfx7z.sfx "%DPL_INSTALLER_NAME%-Installer%INSTALLER_SUFFIX%.exe" .\assets\installer\*
|
|
||||||
|
|
||||||
: Build the patch
|
|
||||||
7z a "%DPL_INSTALLER_NAME%-Patch%INSTALLER_SUFFIX%.zip" .\assets\patch\*
|
|
||||||
|
|
||||||
: Upload artifacts
|
|
||||||
appveyor PushArtifact "%DPL_INSTALLER_NAME%-Installer%INSTALLER_SUFFIX%.exe"
|
|
||||||
appveyor PushArtifact "%DPL_INSTALLER_NAME%-Patch%INSTALLER_SUFFIX%.zip"
|
|
||||||
|
|
||||||
: We only do x86 OR x64, one at a time, so exit now
|
|
||||||
goto EOF
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
: EOF
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
|
|
||||||
endlocal
|
|
||||||
@@ -1,157 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# Initialization
|
|
||||||
#
|
|
||||||
# Performs validity checks to ensure that Deployer is allowed to run
|
|
||||||
# e.g., is an FTP hostname specified? Are we whitelisted by OSNAMES and BRANCHES?
|
|
||||||
#
|
|
||||||
# Set these environment variables in your Travis-CI settings, where they are stored securely.
|
|
||||||
# See other shell scripts for more options.
|
|
||||||
#
|
|
||||||
# DPL_ENABLED = 1 (leave blank to disable)
|
|
||||||
# DPL_TAG_ENABLED = 1 (run Deployer on all tags)
|
|
||||||
# DPL_JOB_ENABLE_ALL = 1 (run Deployer on all jobs; leave blank to act on specific jobs, see below)
|
|
||||||
# DPL_JOBNAMES = name1,name2 (whitelist of job names to allow uploading; leave blank to upload from all jobs)
|
|
||||||
# DPL_OSNAMES = osx (whitelist of OS names to allow uploading; leave blank to upload from all OSes)
|
|
||||||
# DPL_BRANCHES = master,branch1,branch2 (whitelist of branches to upload; leave blank to upload all branches)
|
|
||||||
#
|
|
||||||
# To enable Deployer on specific jobs, set _DPL_JOB_ENABLED=1 for that job. Example:
|
|
||||||
# - matrix:
|
|
||||||
# - os: osx
|
|
||||||
# env:
|
|
||||||
# - _DPL_JOB_ENABLED=1
|
|
||||||
#
|
|
||||||
# DO NOT set __DPL_ACTIVE, because that would bypass these validity checks.
|
|
||||||
|
|
||||||
# Validate Deployer state
|
|
||||||
if [[ "$DPL_ENABLED" == "1" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
|
||||||
# Test for base eligibility:
|
|
||||||
# Are we in a deployer branch? Or
|
|
||||||
# Are we in a release tag AND DPL_TAG_ENABLED=1?
|
|
||||||
if [[ $TRAVIS_BRANCH == *"deployer"* ]]; then
|
|
||||||
__DPL_BASE_ELIGIBLE=1;
|
|
||||||
__DPL_TERMINATE_EARLY_ELIGIBLE=1;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$TRAVIS_TAG" != "" ]] && [[ "$DPL_TAG_ENABLED" == "1" ]]; then
|
|
||||||
__DPL_BASE_ELIGIBLE=1;
|
|
||||||
__DPL_TAG_ELIGIBLE=1;
|
|
||||||
__DPL_TERMINATE_EARLY_ELIGIBLE=1;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Logging message for trigger word
|
|
||||||
if [[ "$__DPL_TAG_ELIGIBLE" != "1" ]] && [[ "$DPL_TRIGGER" != "" ]]; then
|
|
||||||
echo "Testing for trigger $DPL_TRIGGER, commit message: $TRAVIS_COMMIT_MESSAGE";
|
|
||||||
echo "[${DPL_TRIGGER}]";
|
|
||||||
echo "[${DPL_TRIGGER}-${_DPL_JOB_NAME}]";
|
|
||||||
echo "[${DPL_TRIGGER}-${TRAVIS_OS_NAME}]";
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Search for the trigger word
|
|
||||||
# Force enable if release tags are eligible
|
|
||||||
#
|
|
||||||
if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_TRIGGER" == "" ]] \
|
|
||||||
|| [[ $TRAVIS_COMMIT_MESSAGE == *"[$DPL_TRIGGER]"* ]] \
|
|
||||||
|| [[ $TRAVIS_COMMIT_MESSAGE == *"[${DPL_TRIGGER}-${_DPL_JOB_NAME}]"* ]] \
|
|
||||||
|| [[ $TRAVIS_COMMIT_MESSAGE == *"[${DPL_TRIGGER}-${TRAVIS_OS_NAME}]"* ]]; then
|
|
||||||
#
|
|
||||||
# Whitelist by branch name
|
|
||||||
# Force enable if release tags are eligible
|
|
||||||
#
|
|
||||||
if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_BRANCHES" == "" ]] || [[ $DPL_BRANCHES == *"$TRAVIS_BRANCH"* ]]; then
|
|
||||||
# Set this so we only early-terminate builds when we are specifically deploying
|
|
||||||
# Trigger string and branch are encompassing conditions; the rest are job-specific
|
|
||||||
# This check only matters for deployer branches and when DPL_TERMINATE_TESTS=1,
|
|
||||||
# because we're filtering non-deployer jobs.
|
|
||||||
#
|
|
||||||
# __DPL_TRY_TERMINATE_EARLY is invalidated in .travis.yml if __DPL_ACTIVE=1
|
|
||||||
if [[ "$__DPL_TERMINATE_EARLY_ELIGIBLE" == "1" ]] && [[ "$DPL_TERMINATE_TESTS" == "1" ]]; then
|
|
||||||
__DPL_TRY_TERMINATE_EARLY=1;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Is the job enabled for deployment?
|
|
||||||
#
|
|
||||||
if [[ "$DPL_JOB_ENABLE_ALL" == "1" ]] || [[ "$_DPL_JOB_ENABLED" == "1" ]]; then
|
|
||||||
#
|
|
||||||
# Whitelist by job names
|
|
||||||
#
|
|
||||||
if [[ "$DPL_JOBNAMES" == "" ]] || [[ "$_DPL_JOB_NAME" == "" ]] || [[ $DPL_JOBNAMES == *"$_DPL_JOB_NAME"* ]]; then
|
|
||||||
#
|
|
||||||
# Whitelist by OS names
|
|
||||||
#
|
|
||||||
if [[ "$DPL_OSNAMES" == "" ]] || [[ $DPL_OSNAMES == *"$TRAVIS_OS_NAME"* ]]; then
|
|
||||||
# Base Deployer is eligible for becoming active
|
|
||||||
|
|
||||||
# Are we building for Linux?
|
|
||||||
if [[ "$_DPL_PACKAGE_BINARY" == "1" ]] || [[ "$_DPL_PACKAGE_SOURCE" == "1" ]]; then
|
|
||||||
if [[ "$_DPL_PACKAGE_MAIN" == "1" ]] || [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
||||||
__DPL_DEBIAN_ACTIVE=1;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Now check for deployment targets
|
|
||||||
if [[ "$_DPL_FTP_TARGET" == "1" ]] && [[ "$DPL_FTP_HOSTNAME" != "" ]]; then
|
|
||||||
if [[ "$TRAVIS_OS_HOST" == "linux" ]] && [[ "$DPL_FTP_PROTOCOL" == "ftp" ]]; then
|
|
||||||
echo "Non-secure FTP will not work on Linux Travis-CI jobs!";
|
|
||||||
echo "Try SFTP or another target. Details:";
|
|
||||||
echo "https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci";
|
|
||||||
else
|
|
||||||
if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]] || [[ "$_DPL_PACKAGE_BINARY" == "1" ]] || [[ "$_DPL_BINARY" == "1" ]]; then
|
|
||||||
echo "Deployer FTP target is enabled";
|
|
||||||
__DPL_FTP_ACTIVE=1;
|
|
||||||
else
|
|
||||||
echo "Deployer FTP target cannot be enabled: You must specify _DPL_PACKAGE_BINARY=1,";
|
|
||||||
echo "and/or _DPL_BINARY=1 in your job's environment variables.";
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_DPUT_TARGET" == "1" ]] && [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]] \
|
|
||||||
&& [[ "$DPL_DPUT_INCOMING" != "" ]]; then
|
|
||||||
if [[ "$DPL_DPUT_METHOD" == "ftp" ]]; then
|
|
||||||
echo "DPUT will not work with non-secure FTP on Linux Travis-CI jobs!";
|
|
||||||
echo "Try SFTP or another method for DPUT. Details:";
|
|
||||||
echo "https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci";
|
|
||||||
else
|
|
||||||
echo "Deployer DPUT target is enabled";
|
|
||||||
__DPL_DPUT_ACTIVE=1;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# If any deployment targets are active, then so is the Deployer at large
|
|
||||||
if [[ "$__DPL_FTP_ACTIVE" == "1" ]] || [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then
|
|
||||||
__DPL_ACTIVE=1;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
else
|
|
||||||
if [[ "$DPL_TRIGGER" != "" ]]; then
|
|
||||||
echo "Testing for global trigger [$DPL_TRIGGER, commit message: $TRAVIS_COMMIT_MESSAGE";
|
|
||||||
fi;
|
|
||||||
if [[ "$DPL_TRIGGER" != "" ]] && [[ $TRAVIS_COMMIT_MESSAGE == *"[$DPL_TRIGGER"* ]]; then
|
|
||||||
if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_BRANCHES" == "" ]] || [[ $DPL_BRANCHES == *"$TRAVIS_BRANCH"* ]]; then
|
|
||||||
# This check only matters for deployer branches and when DPL_TERMINATE_TESTS=1,
|
|
||||||
# because we're filtering non-deployer jobs.
|
|
||||||
if [[ "$__DPL_TERMINATE_EARLY_ELIGIBLE" == "1" ]] && [[ "$DPL_TERMINATE_TESTS" == "1" ]]; then
|
|
||||||
# Assume that some job received the trigger, so mark this for early termination
|
|
||||||
__DPL_TRY_TERMINATE_EARLY=1;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$__DPL_TRY_TERMINATE_EARLY" == "1" ]] && [[ "$__DPL_ACTIVE" != "1" ]]; then
|
|
||||||
echo "Deployer is active in another job";
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$__DPL_TRY_TERMINATE_EARLY" != "1" ]] && [[ "$__DPL_ACTIVE" != "1" ]]; then
|
|
||||||
echo "Deployer is not active";
|
|
||||||
fi;
|
|
||||||
@@ -1,190 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# Build Script
|
|
||||||
#
|
|
||||||
# Builds the required targets depending on which sub-modules are enabled
|
|
||||||
|
|
||||||
if [[ "$__DPL_FTP_ACTIVE" == "1" ]] || [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then
|
|
||||||
if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]]; then
|
|
||||||
echo "Building Debian package(s)"
|
|
||||||
|
|
||||||
sudo apt-get install devscripts debhelper fakeroot secure-delete expect;
|
|
||||||
|
|
||||||
# Build source packages first, since they zip up the entire source folder,
|
|
||||||
# binaries and all
|
|
||||||
if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then
|
|
||||||
. ../debian_template.sh main;
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ..; # repo root
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" == "1" ]]; then
|
|
||||||
echo "Building main source Debian package";
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn debuild -S -us -uc;
|
|
||||||
expect "continue anyway? (y/n)"
|
|
||||||
send "y\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then
|
|
||||||
echo "Building main binary Debian package";
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn debuild -us -uc;
|
|
||||||
expect "continue anyway? (y/n)"
|
|
||||||
send "y\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
fi;
|
|
||||||
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Also an asset package
|
|
||||||
if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then
|
|
||||||
. ../debian_template.sh asset;
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ../assets;
|
|
||||||
|
|
||||||
# make sure the asset files exist, download them if they don't
|
|
||||||
#echo "Checking asset files for asset Debian package";
|
|
||||||
#debuild -T build;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" == "1" ]]; then
|
|
||||||
echo "Building asset source Debian package";
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn debuild -S -us -uc;
|
|
||||||
expect "continue anyway? (y/n)"
|
|
||||||
send "y\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then
|
|
||||||
echo "Building asset binary Debian package";
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn debuild -us -uc;
|
|
||||||
expect "continue anyway? (y/n)"
|
|
||||||
send "y\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
fi;
|
|
||||||
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Now sign our packages
|
|
||||||
if [[ "$DPL_PGP_KEY_PRIVATE" != "" ]] && [[ "$DPL_PGP_KEY_PASSPHRASE" != "" ]]; then
|
|
||||||
# Get the key to sign
|
|
||||||
# Do this AFTER debuild so that we can specify the passphrase in command line
|
|
||||||
echo "$DPL_PGP_KEY_PRIVATE" | base64 --decode > key.asc;
|
|
||||||
echo "$DPL_PGP_KEY_PASSPHRASE" > phrase.txt;
|
|
||||||
gpg --import key.asc;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then
|
|
||||||
echo "Signing main package(s)";
|
|
||||||
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
$PACKAGEDBGFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGENIGHTLYDBGFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHDBGFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYDBGFILENAME
|
|
||||||
);
|
|
||||||
|
|
||||||
# Main packages are in parent of root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ../..; # parent of repo root
|
|
||||||
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in ./$n*.changes; do
|
|
||||||
debsign --no-re-sign -p"gpg --passphrase-file $OLDPWD/phrase.txt --batch" "$f";
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then
|
|
||||||
echo "Signing asset package(s)";
|
|
||||||
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
)
|
|
||||||
|
|
||||||
# Asset packages are in root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ..; # repo root
|
|
||||||
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in ./$n*.changes; do
|
|
||||||
debsign --no-re-sign -p"gpg --passphrase-file $OLDPWD/phrase.txt --batch" "$f";
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Delete the keys :eyes:
|
|
||||||
srm key.asc;
|
|
||||||
srm phrase.txt;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# all other OSes
|
|
||||||
if [[ "$TRAVIS_OS_NAME" != "linux" ]]; then
|
|
||||||
#
|
|
||||||
# Check for binary building
|
|
||||||
#
|
|
||||||
if [[ "$_DPL_BINARY" == "1" ]]; then
|
|
||||||
echo "Building a Binary";
|
|
||||||
make -k;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Check for package building
|
|
||||||
#
|
|
||||||
if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then
|
|
||||||
echo "Building a Package";
|
|
||||||
|
|
||||||
# Make an OSX package; superuser is required for library bundling
|
|
||||||
#
|
|
||||||
# HACK: OSX packaging can't write libraries to .app package unless we're superuser
|
|
||||||
# because the original library files don't have WRITE permission
|
|
||||||
# Bug may be sidestepped by using CHMOD_BUNDLE_ITEMS=TRUE
|
|
||||||
# But I don't know where this is set. Not `cmake -D...` because this var is ignored.
|
|
||||||
# https://cmake.org/Bug/view.php?id=9284
|
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
||||||
sudo make -k package;
|
|
||||||
else
|
|
||||||
# Some day, when Windows is supported, we'll just make a standard package
|
|
||||||
make -k package;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# Default Variables
|
|
||||||
#
|
|
||||||
# Here are all of the user-set variables used by Deployer.
|
|
||||||
# See the "Cross-platform deployment" page on SRB2 Wiki for documentation.
|
|
||||||
|
|
||||||
# Core Parameters
|
|
||||||
: ${DPL_ENABLED} # Enable Deployer behavior; must be set for any deployment activity
|
|
||||||
: ${DPL_TAG_ENABLED} # Trigger Deployer for all tag releases
|
|
||||||
: ${DPL_JOB_ENABLE_ALL} # Enable all jobs for deployment
|
|
||||||
: ${DPL_TERMINATE_TESTS} # Terminate all build test jobs (used in .travis.yml)
|
|
||||||
: ${DPL_TRIGGER} # Use a [word] in the commit message to trigger Deployer
|
|
||||||
: ${DPL_JOBNAMES} # Trigger Deployer by job name
|
|
||||||
: ${DPL_OSNAMES} # Trigger Deployer by OS name (osx,linux)
|
|
||||||
: ${DPL_BRANCHES} # Trigger Deployer by git branch name
|
|
||||||
|
|
||||||
# Job Parameters
|
|
||||||
: ${_DPL_JOB_ENABLED} # Enable Deployer for this specific job. DPL_ENABLED must be set too.
|
|
||||||
: ${_DPL_JOB_NAME} # Identifier for the job, used for logging and trigger word matching
|
|
||||||
: ${_DPL_FTP_TARGET} # Deploy to FTP
|
|
||||||
: ${_DPL_DPUT_TARGET} # Deploy to DPUT
|
|
||||||
: ${_DPL_PACKAGE_SOURCE} # Build packages into a Source distribution. Linux only.
|
|
||||||
: ${_DPL_PACKAGE_BINARY} # Build packages into a Binary distribution.
|
|
||||||
: ${_DPL_PACKAGE_MAIN:=1} # Build main installation package. Linux only; OS X assumes this.
|
|
||||||
: ${_DPL_PACKAGE_ASSET} # Build asset installation package. Linux only.
|
|
||||||
|
|
||||||
# Asset File Parameters
|
|
||||||
: ${ASSET_ARCHIVE_PATH:=https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-assets.7z}
|
|
||||||
: ${ASSET_ARCHIVE_OPTIONAL_PATH:=https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-optional-assets.7z}
|
|
||||||
: ${ASSET_FILES_HASHED:=srb2.srb patch.kart gfx.kart textures.kart chars.kart maps.kart}
|
|
||||||
: ${ASSET_FILES_DOCS:=README.txt HISTORY.txt LICENSE.txt LICENSE-3RD-PARTY.txt}
|
|
||||||
: ${ASSET_FILES_OPTIONAL_GET:=0}
|
|
||||||
|
|
||||||
# FTP Parameters
|
|
||||||
: ${DPL_FTP_PROTOCOL}
|
|
||||||
: ${DPL_FTP_USER}
|
|
||||||
: ${DPL_FTP_PASS}
|
|
||||||
: ${DPL_FTP_HOSTNAME}
|
|
||||||
: ${DPL_FTP_PORT}
|
|
||||||
: ${DPL_FTP_PATH}
|
|
||||||
|
|
||||||
# DPUT Parameters
|
|
||||||
: ${DPL_DPUT_DOMAIN:=ppa.launchpad.net}
|
|
||||||
: ${DPL_DPUT_METHOD:=sftp}
|
|
||||||
: ${DPL_DPUT_INCOMING}
|
|
||||||
: ${DPL_DPUT_LOGIN:=anonymous}
|
|
||||||
: ${DPL_SSH_KEY_PRIVATE} # Base64-encoded private key file. Used to sign repository uploads
|
|
||||||
: ${DPL_SSH_KEY_PASSPHRASE} # Decodes the private key file.
|
|
||||||
|
|
||||||
# Package Parameters
|
|
||||||
: ${PACKAGE_NAME:=srb2kart}
|
|
||||||
: ${PACKAGE_VERSION:=1.0.2}
|
|
||||||
: ${PACKAGE_SUBVERSION} # Highly recommended to set this to reflect the distro series target (e.g., ~18.04bionic)
|
|
||||||
: ${PACKAGE_REVISION} # Defaults to UTC timestamp
|
|
||||||
: ${PACKAGE_INSTALL_PATH:=/usr/games/SRB2Kart}
|
|
||||||
: ${PACKAGE_LINK_PATH:=/usr/games}
|
|
||||||
: ${PACKAGE_DISTRO:=trusty}
|
|
||||||
: ${PACKAGE_URGENCY:=high}
|
|
||||||
: ${PACKAGE_NAME_EMAIL:=Kart Krew <stjr@srb2.org>}
|
|
||||||
: ${PACKAGE_GROUP_NAME_EMAIL:=Kart Krew <stjr@srb2.org>}
|
|
||||||
: ${PACKAGE_WEBSITE:=<https://mb.srb2.org/showthread.php?p=802695>}
|
|
||||||
|
|
||||||
: ${PACKAGE_ASSET_MINVERSION:=1.0.1} # Number this the version BEFORE the actual required version, because we do a > check
|
|
||||||
: ${PACKAGE_ASSET_MAXVERSION:=1.0.3} # Number this the version AFTER the actual required version, because we do a < check
|
|
||||||
|
|
||||||
: ${PROGRAM_NAME:=Sonic Robo Blast 2 Kart}
|
|
||||||
: ${PROGRAM_VENDOR:=Kart Krew}
|
|
||||||
: ${PROGRAM_VERSION:=1.0.2}
|
|
||||||
: ${PROGRAM_DESCRIPTION:=A kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2.}
|
|
||||||
: ${PROGRAM_FILENAME:=srb2kart}
|
|
||||||
|
|
||||||
: ${DPL_PGP_KEY_PRIVATE} # Base64-encoded private key file. Used to sign Debian packages
|
|
||||||
: ${DPL_PGP_KEY_PASSPHRASE} # Decodes the private key file.
|
|
||||||
|
|
||||||
# Export Asset and Package Parameters for envsubst templating
|
|
||||||
|
|
||||||
export ASSET_ARCHIVE_PATH="${ASSET_ARCHIVE_PATH}"
|
|
||||||
export ASSET_ARCHIVE_OPTIONAL_PATH="${ASSET_ARCHIVE_OPTIONAL_PATH}"
|
|
||||||
export ASSET_FILES_HASHED="${ASSET_FILES_HASHED}"
|
|
||||||
export ASSET_FILES_DOCS="${ASSET_FILES_DOCS}"
|
|
||||||
export ASSET_FILES_OPTIONAL_GET="${ASSET_FILES_OPTIONAL_GET}"
|
|
||||||
|
|
||||||
export PACKAGE_NAME="${PACKAGE_NAME}"
|
|
||||||
export PACKAGE_VERSION="${PACKAGE_VERSION}"
|
|
||||||
export PACKAGE_SUBVERSION="${PACKAGE_SUBVERSION}" # in case we have this
|
|
||||||
export PACKAGE_REVISION="${PACKAGE_REVISION}"
|
|
||||||
export PACKAGE_ASSET_MINVERSION="${PACKAGE_ASSET_MINVERSION}"
|
|
||||||
export PACKAGE_ASSET_MAXVERSION="${PACKAGE_ASSET_MAXVERSION}"
|
|
||||||
export PACKAGE_INSTALL_PATH="${PACKAGE_INSTALL_PATH}"
|
|
||||||
export PACKAGE_LINK_PATH="${PACKAGE_LINK_PATH}"
|
|
||||||
export PACKAGE_DISTRO="${PACKAGE_DISTRO}"
|
|
||||||
export PACKAGE_URGENCY="${PACKAGE_URGENCY}"
|
|
||||||
export PACKAGE_NAME_EMAIL="${PACKAGE_NAME_EMAIL}"
|
|
||||||
export PACKAGE_GROUP_NAME_EMAIL="${PACKAGE_GROUP_NAME_EMAIL}"
|
|
||||||
export PACKAGE_WEBSITE="${PACKAGE_WEBSITE}"
|
|
||||||
|
|
||||||
export PROGRAM_NAME="${PROGRAM_NAME}"
|
|
||||||
export PROGRAM_VERSION="${PROGRAM_VERSION}"
|
|
||||||
export PROGRAM_DESCRIPTION="${PROGRAM_DESCRIPTION}"
|
|
||||||
export PROGRAM_FILENAME="${PROGRAM_FILENAME}"
|
|
||||||
|
|
||||||
# This file is called in debian_template.sh, so mark our completion so we don't run it again
|
|
||||||
__DEBIAN_PARAMETERS_INITIALIZED=1
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# DPUT uploader (e.g., Launchpad PPA)
|
|
||||||
#
|
|
||||||
|
|
||||||
if [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then
|
|
||||||
# Install APT dependencies
|
|
||||||
# paramiko required for ssh
|
|
||||||
sudo apt-get install python-paramiko expect dput; # python-pip
|
|
||||||
#pip install paramiko;
|
|
||||||
|
|
||||||
# Output the DPUT config
|
|
||||||
# Dput only works if you're using secure FTP, so that's what we default to.
|
|
||||||
cat > "./dput.cf" << EOM
|
|
||||||
[deployer]
|
|
||||||
fqdn = ${DPL_DPUT_DOMAIN}
|
|
||||||
method = ${DPL_DPUT_METHOD}
|
|
||||||
incoming = ${DPL_DPUT_INCOMING}
|
|
||||||
login = ${DPL_DPUT_LOGIN}
|
|
||||||
allow_unsigned_uploads = 0
|
|
||||||
EOM
|
|
||||||
|
|
||||||
# Output SSH config
|
|
||||||
# Don't let SSH prompt us for untrusted hosts
|
|
||||||
cat >> "./ssh_config" << EOM
|
|
||||||
|
|
||||||
Host *
|
|
||||||
StrictHostKeyChecking no
|
|
||||||
UserKnownHostsFile=/dev/null
|
|
||||||
PubKeyAuthentication yes
|
|
||||||
IdentityFile ${PWD}/key.private
|
|
||||||
IdentitiesOnly yes
|
|
||||||
EOM
|
|
||||||
sudo sh -c "cat < ${PWD}/ssh_config >> /etc/ssh/ssh_config";
|
|
||||||
|
|
||||||
# Get the private key
|
|
||||||
echo "$DPL_SSH_KEY_PRIVATE" | base64 --decode > key.private;
|
|
||||||
chmod 700 ./key.private;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
$PACKAGEDBGFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGENIGHTLYDBGFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHDBGFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYDBGFILENAME
|
|
||||||
);
|
|
||||||
|
|
||||||
# Main packages are in parent of root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ../..;
|
|
||||||
|
|
||||||
# Enter passphrase if required
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in $n*.changes; do
|
|
||||||
# Binary builds also generate source builds, so exclude the source
|
|
||||||
# builds if desired
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then
|
|
||||||
if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then
|
|
||||||
continue;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn dput -c "${OLDPWD}/dput.cf" deployer "$f";
|
|
||||||
expect "Enter passphrase for key"
|
|
||||||
send "${DPL_SSH_KEY_PASSPHRASE}\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
# Go back to [repo]/build folder
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
)
|
|
||||||
|
|
||||||
# Asset packages are in root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ..;
|
|
||||||
|
|
||||||
# Enter passphrase if required
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in $n*.changes; do
|
|
||||||
# Binary builds also generate source builds, so exclude the source
|
|
||||||
# builds if desired
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then
|
|
||||||
if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then
|
|
||||||
continue;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
expect <(cat <<EOD
|
|
||||||
spawn dput -c "${OLDPWD}/dput.cf" deployer "$f";
|
|
||||||
expect "Enter passphrase for key"
|
|
||||||
send "${DPL_SSH_KEY_PASSPHRASE}\r"
|
|
||||||
interact
|
|
||||||
EOD
|
|
||||||
);
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
# Go back to [repo]/build folder
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
srm ./key.private;
|
|
||||||
fi;
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Deployer for Travis-CI
|
|
||||||
# FTP Uploader
|
|
||||||
#
|
|
||||||
# Package files are uploaded to, e.g., ftp://username:password@example.com:21/path/to/upload/STJr/SRB2/master/460873812-151.1
|
|
||||||
# With file `commit.txt` and folder(s) `bin` and `package`
|
|
||||||
#
|
|
||||||
# Set these environment variables in your Travis-CI settings, where they are stored securely.
|
|
||||||
# See other shell scripts for more options.
|
|
||||||
#
|
|
||||||
# DPL_FTP_PROTOCOL = ftp (ftp or sftp or ftps or however your FTP URI begins)
|
|
||||||
# DPL_FTP_USER = username
|
|
||||||
# DPL_FTP_PASS = password
|
|
||||||
# DPL_FTP_HOSTNAME = example.com
|
|
||||||
# DPL_FTP_PORT = 21
|
|
||||||
# DPL_FTP_PATH = path/to/upload (do not add trailing slash)
|
|
||||||
|
|
||||||
if [[ "$__DPL_FTP_ACTIVE" == "1" ]]; then
|
|
||||||
if [[ "$TRAVIS_JOB_NAME" != "" ]]; then
|
|
||||||
JOBNAME=$TRAVIS_JOB_NAME;
|
|
||||||
else
|
|
||||||
if [[ "$_DPL_JOB_NAME" != "" ]]; then
|
|
||||||
JOBNAME=$_DPL_JOB_NAME;
|
|
||||||
else
|
|
||||||
JOBNAME=$TRAVIS_OS_NAME;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
# Generate commit.txt file
|
|
||||||
echo "Travis-CI Build $TRAVIS_OS_NAME - $TRAVIS_REPO_SLUG/$TRAVIS_BRANCH - $TRAVIS_JOB_NUMBER - $JOBNAME" > "commit.txt";
|
|
||||||
echo "Job ID $TRAVIS_JOB_ID" >> "commit.txt";
|
|
||||||
echo "" >> "commit.txt";
|
|
||||||
echo "Commit $TRAVIS_COMMIT" >> "commit.txt";
|
|
||||||
echo "$TRAVIS_COMMIT_MESSAGE" >> "commit.txt";
|
|
||||||
echo "" >> "commit.txt";
|
|
||||||
|
|
||||||
# Initialize FTP parameters
|
|
||||||
if [[ "$DPL_FTP_PORT" == "" ]]; then
|
|
||||||
DPL_FTP_PORT=21;
|
|
||||||
fi;
|
|
||||||
if [[ "$DPL_FTP_PROTOCOL" == "" ]]; then
|
|
||||||
DPL_FTP_PROTOCOL=ftp;
|
|
||||||
fi;
|
|
||||||
__DPL_FTP_LOCATION=$DPL_FTP_PROTOCOL://$DPL_FTP_HOSTNAME:$DPL_FTP_PORT/$DPL_FTP_PATH/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/$TRAVIS_JOB_ID-$TRAVIS_JOB_NUMBER-$JOBNAME;
|
|
||||||
|
|
||||||
# Upload to FTP!
|
|
||||||
echo "Uploading to FTP...";
|
|
||||||
curl --ftp-create-dirs -T "commit.txt" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/commit.txt";
|
|
||||||
|
|
||||||
if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]]; then
|
|
||||||
if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
$PACKAGEDBGFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGENIGHTLYDBGFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHDBGFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYDBGFILENAME
|
|
||||||
);
|
|
||||||
|
|
||||||
# Main packages are in parent of root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ../..;
|
|
||||||
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in ./$n*; do
|
|
||||||
# Binary builds also generate source builds, so exclude the source
|
|
||||||
# builds if desired
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then
|
|
||||||
if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then
|
|
||||||
continue;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
curl --ftp-create-dirs -T "$f" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/package/main/$f";
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
# Go back to [repo]/build folder
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then
|
|
||||||
PACKAGEFILENAME=${PACKAGE_NAME}-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
#PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION};
|
|
||||||
|
|
||||||
PACKAGEFILENAMES=(
|
|
||||||
$PACKAGEFILENAME
|
|
||||||
#$PACKAGENIGHTLYFILENAME
|
|
||||||
#$PACKAGEPATCHFILENAME
|
|
||||||
#$PACKAGEPATCHNIGHTLYFILENAME
|
|
||||||
)
|
|
||||||
|
|
||||||
# Asset packages are in root repo folder
|
|
||||||
OLDPWD=$PWD; # [repo]/build
|
|
||||||
cd ..;
|
|
||||||
|
|
||||||
for n in ${PACKAGEFILENAMES}; do
|
|
||||||
for f in ./$n*; do
|
|
||||||
# Binary builds also generate source builds, so exclude the source
|
|
||||||
# builds if desired
|
|
||||||
if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then
|
|
||||||
if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then
|
|
||||||
continue;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
curl --ftp-create-dirs -T "$f" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/package/asset/$f";
|
|
||||||
done;
|
|
||||||
done;
|
|
||||||
|
|
||||||
# Go back to [repo]/build folder
|
|
||||||
cd $OLDPWD;
|
|
||||||
fi;
|
|
||||||
else
|
|
||||||
if [[ "$_DPL_BINARY" == "1" ]]; then
|
|
||||||
find bin -type f -exec curl -u $DPL_FTP_USER:$DPL_FTP_PASS --ftp-create-dirs -T {} $__DPL_FTP_LOCATION/{} \;;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then
|
|
||||||
sudo rm -r package/_CPack_Packages
|
|
||||||
find package -type f -exec curl -u $DPL_FTP_USER:$DPL_FTP_PASS --ftp-create-dirs -T {} $__DPL_FTP_LOCATION/{} \;;
|
|
||||||
fi;
|
|
||||||
fi;
|
|
||||||
fi
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
================================================================
|
|
||||||
How to add Low-res modes to your XF86Config under Linux MANUALLY
|
|
||||||
================================================================
|
|
||||||
|
|
||||||
I TAKE NO RESPONSIBILITY FOR ANY DAMAGE DONE TO YOUR EQUIPMENT!!!
|
|
||||||
|
|
||||||
This document explains how to add low-res modes like 320x200 to your
|
|
||||||
X-Server configuration, because some new setup tools for the X-Server
|
|
||||||
do not support this. ONLY RECOMMENDED FOR USERS WHO KNOW WHAT THEY DO!
|
|
||||||
|
|
||||||
I do not take any responsibility for damage done to your monitor, your
|
|
||||||
videocard, your harddisk, your cat, your dog or anything else!!!
|
|
||||||
IMPORTANT IS, THAT YOUR "HorizSync" AND "VertRefresh" VALUES REALLY
|
|
||||||
MATCH YOUR MONITOR! OTHERWISE YOUR MONITOR CAN BLOW UP!!!
|
|
||||||
|
|
||||||
OK, if you have read up to here, you either know what you do or really
|
|
||||||
die-hard want those low-res modes. Here is what to do:
|
|
||||||
Look up your XF86Config. Is is either in /etc or in /etc/X11. Here is
|
|
||||||
what you have to add to the definition of your modeslines:
|
|
||||||
|
|
||||||
# Low-res Doublescan modes
|
|
||||||
# If your chipset does not support doublescan, you get a 'squashed'
|
|
||||||
# resolution like 320x400.
|
|
||||||
|
|
||||||
# 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio
|
|
||||||
Modeline "320x200" 12.588 320 336 384 400 200 204 205 225 Doublescan
|
|
||||||
# 320x240 @ 60 Hz, 31.5 kHz hsync, 4:3 aspect ratio
|
|
||||||
Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan
|
|
||||||
# 320x240 @ 72 Hz, 36.5 kHz hsync
|
|
||||||
Modeline "320x240" 15.750 320 336 384 400 240 244 246 262 Doublescan
|
|
||||||
# 400x300 @ 56 Hz, 35.2 kHz hsync, 4:3 aspect ratio
|
|
||||||
ModeLine "400x300" 18 400 416 448 512 300 301 302 312 Doublescan
|
|
||||||
# 400x300 @ 60 Hz, 37.8 kHz hsync
|
|
||||||
Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan
|
|
||||||
# 400x300 @ 72 Hz, 48.0 kHz hsync
|
|
||||||
Modeline "400x300" 25 400 424 488 520 300 319 322 333 Doublescan
|
|
||||||
|
|
||||||
If your video card only supports a specific set of discrete dotclocks
|
|
||||||
(RAMDAC) you may have to replace the dotclocks given here by one of the
|
|
||||||
specified (e.g in the first modeline the dotclock is 12.588 MHz). I believe
|
|
||||||
that nowadays all cards and monitors should work with these settings, but
|
|
||||||
if you have outdated hardware you better check the frequencies yourself. If
|
|
||||||
there is any uncertainty, please check the "XFree86 Video Timings HOWTO".
|
|
||||||
|
|
||||||
|
|
||||||
Then have a look at the section "Screen" with the appropriate driver
|
|
||||||
(usually either "svga" or "accel"). Under Subsection "Display" there
|
|
||||||
are modes for the given color depth. Add the desired modes. As an
|
|
||||||
example I give you my screens definition here with low-res modes in
|
|
||||||
16 bit color depth:
|
|
||||||
|
|
||||||
Section "Screen"
|
|
||||||
Driver "accel"
|
|
||||||
Device "3D Charger"
|
|
||||||
Monitor "Iiyama Pro 450"
|
|
||||||
DefaultColorDepth 16
|
|
||||||
|
|
||||||
Subsection "Display"
|
|
||||||
Depth 8
|
|
||||||
Modes "1280x1024" "1024x768" "800x600" "640x480"
|
|
||||||
ViewPort 0 0
|
|
||||||
Virtual 1280 1024
|
|
||||||
EndSubsection
|
|
||||||
Subsection "Display"
|
|
||||||
Depth 16
|
|
||||||
Modes "1152x864" "1024x768" "800x600" "640x480" "400x300" "320x200" <- THIS IS ACTUALLY WHAT YOU WANT!!!
|
|
||||||
ViewPort 0 0 ^^^^^^^^^^^^^^^^^^^
|
|
||||||
Virtual 1152 864
|
|
||||||
EndSubsection
|
|
||||||
Subsection "Display"
|
|
||||||
Depth 24
|
|
||||||
Modes "800x600" "640x480"
|
|
||||||
ViewPort 0 0
|
|
||||||
Virtual 800 600
|
|
||||||
EndSubsection
|
|
||||||
Subsection "Display"
|
|
||||||
Depth 32
|
|
||||||
Modes "800x600" "640x480"
|
|
||||||
ViewPort 0 0
|
|
||||||
Virtual 800 600
|
|
||||||
EndSubsection
|
|
||||||
EndSection
|
|
||||||
|
|
||||||
Once again: important is, that you edit the correct Screen section.
|
|
||||||
If you use the SVGA Server and edit the ACCEL Server, you might
|
|
||||||
wonder where your new modes have gone.
|
|
||||||
|
|
||||||
If everything went fine and you want to say thank you, just write
|
|
||||||
to "metzgermeister@users.sourceforge.net". If your monitor blew
|
|
||||||
up and you want to kill me, find me playing Legacy or Q3A on the net
|
|
||||||
and frag me (with your second monitor, hehe).
|
|
||||||
|
|
||||||
- metzgermeister
|
|
||||||
@@ -1,212 +0,0 @@
|
|||||||
1-99 : Player Starts
|
|
||||||
1 - Player 1 Start 1
|
|
||||||
2 - Player 2 Start 2
|
|
||||||
3 - Player 3 Start 3
|
|
||||||
4 - Player 4 Start 4
|
|
||||||
5 - Player 5 Start 4001
|
|
||||||
6 - Player 6 Start 4002
|
|
||||||
7 - Player 7 Start 4003
|
|
||||||
8 - Player 8 Start 4004
|
|
||||||
9 - Player 9 Start 4005
|
|
||||||
10 - Player 10 Start 4006
|
|
||||||
11 - Player 11 Start 4007
|
|
||||||
12 - Player 12 Start 4008
|
|
||||||
13 - Player 13 Start 4009
|
|
||||||
14 - Player 14 Start 4010
|
|
||||||
15 - Player 15 Start 4011
|
|
||||||
16 - Player 16 Start 4012
|
|
||||||
17 - Player 17 Start 4013
|
|
||||||
18 - Player 18 Start 4014
|
|
||||||
19 - Player 19 Start 4015
|
|
||||||
20 - Player 20 Start 4016
|
|
||||||
21 - Player 21 Start 4017
|
|
||||||
22 - Player 22 Start 4018
|
|
||||||
23 - Player 23 Start 4019
|
|
||||||
24 - Player 24 Start 4020
|
|
||||||
25 - Player 25 Start 4021
|
|
||||||
26 - Player 26 Start 4022
|
|
||||||
27 - Player 27 Start 4023
|
|
||||||
28 - Player 28 Start 4024
|
|
||||||
29 - Player 29 Start 4025
|
|
||||||
30 - Player 30 Start 4026
|
|
||||||
31 - Player 31 Start 4027
|
|
||||||
32 - Player 32 Start 4028
|
|
||||||
33 - Player Match Start 11
|
|
||||||
34 - Red Team Start 87
|
|
||||||
35 - Blue Team Start 89
|
|
||||||
36 - Tag start New
|
|
||||||
|
|
||||||
100 - 199 : Enemies
|
|
||||||
100 - Blue Crawla 3004
|
|
||||||
101 - Red Crawla 9
|
|
||||||
102 - GFZ Fish 58
|
|
||||||
103 - Gold Buzz 5005
|
|
||||||
104 - Red Buzz 5006
|
|
||||||
105 - Jetty-Syn Bomber 3005
|
|
||||||
106 - Jetty-Syn Gunner 22
|
|
||||||
107 - Crawla Commander 21
|
|
||||||
108 - Deton 71
|
|
||||||
109 - Skim 56
|
|
||||||
110 - THZ Turret 2004
|
|
||||||
111 - Pop-up Turret 42
|
|
||||||
|
|
||||||
200 - 299 : Bosses and their associated items (if any)
|
|
||||||
200 - Boss 1 16
|
|
||||||
201 - Boss 2 2008
|
|
||||||
290 - Boss Fly Point 17
|
|
||||||
291 - EggTrap Center 2049
|
|
||||||
|
|
||||||
300 - 399 : Collectibles
|
|
||||||
300 - Ring 2014
|
|
||||||
301 - Homing Ring 69
|
|
||||||
302 - Rail Ring 3003
|
|
||||||
303 - Infinity Ring 80
|
|
||||||
304 - Automatic Ring 26
|
|
||||||
305 - Explosion Ring 54
|
|
||||||
306 - Red CTF Flag 31
|
|
||||||
307 - Blue CTF Flag 34
|
|
||||||
308 - Special Stage Token 2013
|
|
||||||
309 - Emerald 1 420
|
|
||||||
310 - Emerald 2 421
|
|
||||||
311 - Emerald 3 422
|
|
||||||
312 - Emerald 4 423
|
|
||||||
313 - Emerald 5 424
|
|
||||||
314 - Emerald 6 425
|
|
||||||
315 - Emerald 7 426
|
|
||||||
316 - Hunting Emerald 1 64
|
|
||||||
317 - Hunting Emerald 2 3002
|
|
||||||
318 - Hunting Emerald 3 3001
|
|
||||||
|
|
||||||
400 - 499 : Boxes
|
|
||||||
400 - Super Ring Box 2011
|
|
||||||
401 - Grey Ring Box 2012
|
|
||||||
402 - Ring Shield Box 48
|
|
||||||
403 - Fire Shield Box 2002
|
|
||||||
404 - Bomb Shield Box 2018
|
|
||||||
405 - Jump Shield Box 35
|
|
||||||
406 - Water Shield Box 2028
|
|
||||||
407 - Sneaker Box 25
|
|
||||||
408 - Invincibility Box 2022
|
|
||||||
409 - 1-Up Box 41
|
|
||||||
410 - Eggman Box 2005
|
|
||||||
411 - Mixup Box 78
|
|
||||||
412 - Question Box 3000
|
|
||||||
|
|
||||||
500 - 599 : Interactive Objects (friendly or otherwise - includes springs)
|
|
||||||
500 - Bubble Patch 33
|
|
||||||
501 - Level End Sign 86
|
|
||||||
502 - Starpost 3006
|
|
||||||
520 - Spike Ball -1
|
|
||||||
521 - Special Stage Spike Ball 23
|
|
||||||
522 - Ceiling Spike 67
|
|
||||||
523 - Floor Spike 68
|
|
||||||
540 - Fan 32
|
|
||||||
541 - Steam Riser 30
|
|
||||||
550 - Yellow Spring 28
|
|
||||||
551 - Red Spring 79
|
|
||||||
552 - Blue Spring 5004
|
|
||||||
553 - Yellow Spring Down 65
|
|
||||||
554 - Red Spring Down 66
|
|
||||||
555 - Yellow Diagonal Spring 2015
|
|
||||||
556 - Red Diagonal Spring 38
|
|
||||||
557 - Yellow Diag Spring Down 20
|
|
||||||
558 - Red Diag Spring Down 39
|
|
||||||
|
|
||||||
600 - 699 : Special placement patterns
|
|
||||||
600 - Vertical Rigns - Stack of 5 (suitable for Yellow Spring) 84
|
|
||||||
601 - Vertical Rings - Stack of 5 (suitable for Red Spring) 44
|
|
||||||
602 - Diagonal rings (5) 76
|
|
||||||
603 - Diagonal rings (10) 77
|
|
||||||
604 - A ring of rings 47
|
|
||||||
605 - A BIGGER ring of rings 2007
|
|
||||||
606 - A ring of wing items 2048
|
|
||||||
607 - A BIGGER ring of wing items 2010
|
|
||||||
608 - A ring of rings and wings (alternating) 2046
|
|
||||||
609 - A BIGGER ring of rings and wings (alternating) 2047
|
|
||||||
|
|
||||||
700 - 799 : Powerup indicators/environmental effects/miscellany
|
|
||||||
700 - Ambient Water 1a (S) 2026
|
|
||||||
701 - Ambient Water 1b (S) 2024
|
|
||||||
702 - Ambient Water 2a (M) 2023
|
|
||||||
703 - Ambient Water 2b (M) 2045
|
|
||||||
704 - Ambient Water 3a (L) 83
|
|
||||||
705 - Ambient Water 3b (L) 2019
|
|
||||||
706 - Ambient Water 4a (XL) 2025
|
|
||||||
707 - Ambient Water 4b (XL) 27
|
|
||||||
708 - Random Ambient 1 14
|
|
||||||
709 - Random Ambient 2 43
|
|
||||||
750 - Chaos Spawner 8
|
|
||||||
751 - Teleport Point 5003
|
|
||||||
752 - Alternate View Point 5007
|
|
||||||
753 - Zoom Tube Waypoint 18
|
|
||||||
754 - Pusher 5001
|
|
||||||
755 - Puller 5002
|
|
||||||
756 - Street Light 2003
|
|
||||||
|
|
||||||
800 - 899 : Greenflower Scenery
|
|
||||||
800 - Flower 1 36
|
|
||||||
801 - Flower 2 70
|
|
||||||
802 - Flower 3 73
|
|
||||||
804 - Berry Bush 74
|
|
||||||
805 - Bush 75
|
|
||||||
|
|
||||||
900 - 999 : Techno Hill Scenery
|
|
||||||
900 - THZ Plant 2035
|
|
||||||
901 - Alarm 2006
|
|
||||||
|
|
||||||
1000 - 1099 : Deep Sea Scenery
|
|
||||||
1000 - Gargoyle 81
|
|
||||||
|
|
||||||
1100 - 1199 : Castle Eggman Scenery
|
|
||||||
1100 - Ceiling Chain 49
|
|
||||||
1101 - Torch Flame 24
|
|
||||||
1102 - Eggman Statue 52
|
|
||||||
1103 - CEZ Flower 2001
|
|
||||||
|
|
||||||
1200 - 1299 : Arid Canyon Scenery
|
|
||||||
1300 - 1399 : Red Volcano Scenery
|
|
||||||
1400 - 1499 : Dark City Scenery
|
|
||||||
1500 - 1599 : Doom Ship Scenery
|
|
||||||
1600 - 1699 : Egg Rock/Final Fight Scenery
|
|
||||||
1700 - 1799 : NiGHTS Items
|
|
||||||
1700 - Axis 72
|
|
||||||
1701 - Axis Transfer (Normal) 61
|
|
||||||
1702 - Axis Transfer (Line) 46
|
|
||||||
1703 - Nights Drone 60
|
|
||||||
1704 - Nights Bumper 82
|
|
||||||
1705 - Hoop 57
|
|
||||||
1706 - Nights Wing 37
|
|
||||||
1707 - Super Loop Powerup 3007
|
|
||||||
1708 - Drill Refill Powerup 3008
|
|
||||||
1709 - Helper Powerup 3009
|
|
||||||
1710 - Egg Capsule 40
|
|
||||||
|
|
||||||
1800 - 1849 : Mario Items
|
|
||||||
1800 - Coin 10005
|
|
||||||
1801 - Goomba 10000
|
|
||||||
1802 - Blue Goomba 10001
|
|
||||||
1803 - FireFlower 50
|
|
||||||
1804 - Shell 10
|
|
||||||
1805 - Puma 29
|
|
||||||
1806 - Koopa 19
|
|
||||||
1807 - Axe 12
|
|
||||||
1808 - Mario Bush 1 10002
|
|
||||||
1809 - Mario Bush 2 10003
|
|
||||||
1810 - Toad 10004
|
|
||||||
|
|
||||||
1850 - 1899 : Christmas Items
|
|
||||||
1850 - Xmas Pole 5
|
|
||||||
1851 - Candy Cane 13
|
|
||||||
1852 - Snowman 6
|
|
||||||
|
|
||||||
1900 - 1999 : Misc Scenery
|
|
||||||
1900 - Stalagmite 0
|
|
||||||
1901 - Stalagmite 1
|
|
||||||
1902 - Stalagmite 2
|
|
||||||
1903 - Stalagmite 3
|
|
||||||
1904 - Stalagmite 4
|
|
||||||
1905 - Stalagmite 5
|
|
||||||
1906 - Stalagmite 6
|
|
||||||
1907 - Stalagmite 7
|
|
||||||
1908 - Stalagmite 8
|
|
||||||
1909 - Stalagmite 9
|
|
||||||
@@ -1,223 +0,0 @@
|
|||||||
Description OldNum NewNum Description
|
|
||||||
Old Water 14 Removed
|
|
||||||
|
|
||||||
Level Parameters/Misc:
|
|
||||||
Per-Sector Gravity 64 1
|
|
||||||
Custom Exit 71 2
|
|
||||||
Zoom Tube Parameters 18 3
|
|
||||||
Speed Pad 65 4
|
|
||||||
Camera Scanner 63 5
|
|
||||||
Disable Linedef 73 6
|
|
||||||
Flat Alignment 66 7
|
|
||||||
Sector Special Parameters New 8
|
|
||||||
Mace Parameters New 9
|
|
||||||
Sprite Cull Height New 10
|
|
||||||
Rope Hang Parameters New 11
|
|
||||||
Rock Spawner Parameters New 12
|
|
||||||
|
|
||||||
PolyObjects
|
|
||||||
Marks first line in PolyObject New 20
|
|
||||||
Explicitly includes a PolyObject line New 21
|
|
||||||
PolyObject: Parameters New 22
|
|
||||||
PolyObject: Waving Flag New 31
|
|
||||||
|
|
||||||
Level-Load Effects:
|
|
||||||
Instant Floor Lower 26 50
|
|
||||||
Instant Ceiling Raise 24 51
|
|
||||||
Continuously Falling Sector 88 52
|
|
||||||
Continuous Floor/Ceiling Mover 2 53
|
|
||||||
Continuous Floor Mover 3 54
|
|
||||||
Continuous Ceiling Mover 4 55
|
|
||||||
Continuous Two-Speed Floor/Ceiling Mover 6 56
|
|
||||||
Continuous Two-Speed Floor Mover 7 57
|
|
||||||
Continuous Two-Speed Ceiling Mover 8 58
|
|
||||||
Activate Floating Platform 232 59
|
|
||||||
Activate Floating Platform (Adjustable Speed) 233 60
|
|
||||||
Crusher 1 (Ceiling to Floor) 43 61
|
|
||||||
Crusher 2 (Floor to Ceiling) 50 62
|
|
||||||
Fake Floor/Ceiling 242 63
|
|
||||||
Appearing/Disappearing FOF New 64
|
|
||||||
Bridge Thinker New 65
|
|
||||||
|
|
||||||
Floor Over Floors:
|
|
||||||
"Floor Over Floor: Solid, Opaque, Shadowcasting " 25 100
|
|
||||||
"Floor Over Floor: Solid, Opaque, Non-Shadowcasting " 33 101
|
|
||||||
"Floor Over Floor: Solid, Translucent " 44 102
|
|
||||||
"Floor Over Floor: Solid, Sides Only " 69 103
|
|
||||||
"Floor Over Floor: Solid, No Sides " 51 104
|
|
||||||
"Floor Over Floor: Solid, Invisible " 57 105
|
|
||||||
|
|
||||||
"Floor Over Floor: Water, Opaque " 48 120
|
|
||||||
"Floor Over Floor: Water, Translucent " 45 121
|
|
||||||
"Floor Over Floor: Water, Opaque, No Sides " 75 122
|
|
||||||
"Floor Over Floor: Water, Translucent, No Sides " 74 123
|
|
||||||
|
|
||||||
"Floor Over Floor: Platform, Opaque " 59 140
|
|
||||||
"Floor Over Floor: Platform, Translucent " 81 141
|
|
||||||
"Floor Over Floor: Platform, Translucent, No Sides " 77 142
|
|
||||||
|
|
||||||
Floor Over Floor: Bobbing (Air) 38 150
|
|
||||||
Floor Over Floor: Adjustable Bobbing (Air) 68 151
|
|
||||||
Floor Over Floor: Reverse Adjustable Bobbing (Air) 72 152
|
|
||||||
|
|
||||||
"Floor Over Floor: Floating, Bobbing " 34 160
|
|
||||||
|
|
||||||
Floor Over Floor: Crumbling (Respawn) 36 170
|
|
||||||
Floor Over Floor: Crumbling (No Respawn) 35 171
|
|
||||||
"Floor Over Floor: Crumbling (Respawn), Platform " 79 172
|
|
||||||
"Floor Over Floor: Crumbling (No Respawn), Platform " 80 173
|
|
||||||
"Floor Over Floor: Crumbling (Respawn), Platform, Translucent " 82 174
|
|
||||||
"Floor Over Floor: Crumbling (No Respawn), Platform, Translucent " 83 175
|
|
||||||
"Floor Over Floor: Crumbling (Respawn), Floating, Bobbing " 39 176
|
|
||||||
"Floor Over Floor: Crumbling (No Respawn), Floating, Bobbing " 1 177
|
|
||||||
"Floor Over Floor: Crumbling (Respawn), Floating " 37 178
|
|
||||||
"Floor Over Floor: Crumbling (No Respawn), Floating " 42 179
|
|
||||||
"Floor Over Floor: Crumbling (Respawn), Bobbing (Air) " 40 180
|
|
||||||
|
|
||||||
"Floor Over Floor: Rising Platform, Solid, Opaque, Shadowcasting " 89 190
|
|
||||||
"Floor Over Floor: Rising Platform, Solid, Opaque, Non-Shadowcasting " 90 191
|
|
||||||
"Floor Over Floor: Rising Platform, Solid, Translucent " 91 192
|
|
||||||
"Floor Over Floor: Rising Platform, Solid, Invisible " 94 193
|
|
||||||
"Floor Over Floor: Rising Platform, Platform, Opaque " 92 194
|
|
||||||
"Floor Over Floor: Rising Platform, Platform, Translucent " 93 195
|
|
||||||
|
|
||||||
Floor Over Floor: Light Block 49 200
|
|
||||||
Floor Over Floor: Half Light Block 47 201
|
|
||||||
Floor Over Floor: Fog Block 46 202
|
|
||||||
|
|
||||||
"Floor Over Floor: Intangible, Opaque " 62 220
|
|
||||||
"Floor Over Floor: Intangible, Translucent " 52 221
|
|
||||||
"Floor Over Floor: Intangible, Sides Only " 67 222
|
|
||||||
"Floor Over Floor: Intangible, Invisible " 58 223
|
|
||||||
|
|
||||||
Floor Over Floor: Mario Block 41 250
|
|
||||||
Floor Over Floor: Thwomp Block 54 251
|
|
||||||
Floor Over Floor: Shatter Block 76 252
|
|
||||||
"Floor Over Floor: Shatter Block, Translucent " 86 253
|
|
||||||
Floor Over Floor: Bustable Block 55 254
|
|
||||||
Floor Over Floor: Spin Bust Block 78 255
|
|
||||||
"Floor Over Floor: Spin Bust Block, Translucent " 84 256
|
|
||||||
Floor Over Floor: Quicksand Block 56 257
|
|
||||||
Floor Over Floor: Laser Block 53 258
|
|
||||||
Floor Over Floor: Custom 87 259
|
|
||||||
|
|
||||||
Linedef Executor Triggers:
|
|
||||||
Trigger Linedef Executor (Continuous) 96 300
|
|
||||||
Trigger Linedef Executor (Each Time) 97 301
|
|
||||||
Trigger Linedef Executor (Once) 98 302
|
|
||||||
Trigger Linedef Executor (Ring Count - Continuous) 95 303
|
|
||||||
Trigger Linedef Executor (Ring Count - Once) 99 304
|
|
||||||
Trigger Linedef Executor (Character Ability - Continuous) 19 305
|
|
||||||
Trigger Linedef Executor (Character Ability - Each Time) 20 306
|
|
||||||
Trigger Linedef Executor (Character Ability - Once) 21 307
|
|
||||||
"Trigger Linedef Executor (Race Only, Once) " 9 308
|
|
||||||
Trigger Linedef Executor (CTF Red Team - Continuous) 10 309
|
|
||||||
Trigger Linedef Executor (CTF Red Team - Each Time) 11 310
|
|
||||||
Trigger Linedef Executor (CTF Blue Team - Continuous) 12 311
|
|
||||||
Trigger Linedef Executor (CTF Blue Team - Each Time) 13 312
|
|
||||||
Trigger Linedef Executor (No More Enemies - Once) 15 313
|
|
||||||
Trigger Linedef Executor (# of Pushables - Continuous) New 314
|
|
||||||
Trigger Linedef Executor (# of Pushables - Once) New 315
|
|
||||||
Trigger Linedef Executors (PolyObject - Land On) New 316
|
|
||||||
Trigger Linedef Executor (Level Load) New 399
|
|
||||||
|
|
||||||
Linedef Executor Options:
|
|
||||||
Linedef Executor: Set Tagged Sector's Floor Height/Pic 101 400
|
|
||||||
Linedef Executor: Set Tagged Sector's Ceiling Height/Pic 102 401
|
|
||||||
Linedef Executor: Set Tagged Sector's Light Level 103 402
|
|
||||||
Linedef Executor: Move Tagged Sector's Floor 106 403
|
|
||||||
Linedef Executor: Move Tagged Sector's Ceiling 107 404
|
|
||||||
Linedef Executor: Lower Floor by Line 108 405
|
|
||||||
Linedef Executor: Raise Floor by Line 109 406
|
|
||||||
Linedef Executor: Lower Ceiling by Line 110 407
|
|
||||||
Linedef Executor: Raise Ceiling by Line 111 408
|
|
||||||
Linedef Executor: Change Calling Sector's Tag 112 409
|
|
||||||
Linedef Executor: Change Front Sector's Tag 114 410
|
|
||||||
Linedef Executor: Stop Plane Movement 116 411
|
|
||||||
Linedef Executor: Teleport Player to Tagged Sector 104 412
|
|
||||||
Linedef Executor: Change Music 105 413
|
|
||||||
Linedef Executor: Play SFX 115 414
|
|
||||||
Linedef Executor: Run Script 113 415
|
|
||||||
Linedef Executor: Start Adjustable Fire Flicker 119 416
|
|
||||||
Linedef Executor: Start Adjustable Glowing Light 120 417
|
|
||||||
Linedef Executor: Start Adjustable Strobe Flash (unsynchronized) New 418
|
|
||||||
Linedef Executor: Start Adjustable Strobe Flash (synchronized) New 419
|
|
||||||
Linedef Executor: Fade Light Level 117 420
|
|
||||||
Linedef Executor: Stop Lighting Effect 118 421
|
|
||||||
Linedef Executor: Cut-Away View 121 422
|
|
||||||
Linedef Executor: Change Sky 123 423
|
|
||||||
Linedef Executor: Change Weather 124 424
|
|
||||||
Linedef Executor: Change Object State 125 425
|
|
||||||
Linedef Executor: Stop Object 122 426
|
|
||||||
Linedef Executor: Award Score 126 427
|
|
||||||
Linedef Executor: Start Platform Movement 127 428
|
|
||||||
Linedef Executor: Crush Ceiling Once New 429
|
|
||||||
Linedef Executor: Crush Floor Once New 430
|
|
||||||
Linedef Executor: Crush Floor & Ceiling Once New 431
|
|
||||||
Linedef Executor: Enable 2D Mode New 432
|
|
||||||
Linedef Executor: Disable 2D Mode New 433
|
|
||||||
Linedef Executor: Award Custom Power New 434
|
|
||||||
Linedef Executor: Stop Conveyor New 435
|
|
||||||
Linedef Executor: Start Conveyor New 436
|
|
||||||
Linedef Executor: Disable Player Movement New 437
|
|
||||||
|
|
||||||
Linedef Executor: Execute Linedef Executor New 450
|
|
||||||
|
|
||||||
Linedef Executor: PolyObject: Door Slide New 480
|
|
||||||
Linedef Executor: PolyObject: Door Swing New 481
|
|
||||||
Linedef Executor: PolyObject: Move XY New 482
|
|
||||||
Linedef Executor: PolyObject: Move XY w/ override New 483
|
|
||||||
Linedef Executor: PolyObject: Rotate Right New 484
|
|
||||||
Linedef Executor: PolyObject: Rotate Right w/ override New 485
|
|
||||||
Linedef Executor: PolyObject: Rotate Left New 486
|
|
||||||
Linedef Executor: PolyObject: Rotate Left w/ override New 487
|
|
||||||
Linedef Executor: PolyObject: Start waypoint movement New 488
|
|
||||||
Linedef Executor: PolyObject: Make Invisible New 489
|
|
||||||
Linedef Executor: PolyObject: Make Visible New 490
|
|
||||||
|
|
||||||
Scrollers/Pushers:
|
|
||||||
Scroll Wall First Side Left 100 500
|
|
||||||
Scroll Wall First Side Opposite Direction 85 501
|
|
||||||
Scroll Wall According to Linedef 254 502
|
|
||||||
Acc Scroll Wall According to Linedef 218 503
|
|
||||||
Disp Scroll Wall According to Linedef 249 504
|
|
||||||
Scroll Texture by Offsets 255 505
|
|
||||||
|
|
||||||
Scroll Floor Texture 251 510
|
|
||||||
Acc Scroll Floor Texture 215 511
|
|
||||||
Disp Scroll Floor Texture 246 512
|
|
||||||
Scroll Ceiling Texture 250 513
|
|
||||||
Acc Scroll Ceiling Texture 214 514
|
|
||||||
Disp Scroll Ceiling Texture 245 515
|
|
||||||
|
|
||||||
Carry Objects on Floor (no scroll) 252 520
|
|
||||||
Acc Carry Objects on Floor 216 521
|
|
||||||
Disp Carry Objects on Floor 247 522
|
|
||||||
Carry Objects on Ceiling 203 523
|
|
||||||
Acc Carry Objects on Ceiling 205 524
|
|
||||||
Disp Carry Objects on Ceiling 201 525
|
|
||||||
|
|
||||||
Scroll Floor Texture and Carry Objects 253 530
|
|
||||||
Acc Scroll Floor Texture and Carry Objects 217 531
|
|
||||||
Disp Scroll Floor Texture and Carry Objects 248 532
|
|
||||||
Scroll Ceiling Texture and Carry Objects 202 533
|
|
||||||
Acc Scroll Ceiling Texture and Carry Objects 204 534
|
|
||||||
Disp Scroll Ceiling Texture and Carry Objects 200 535
|
|
||||||
|
|
||||||
Friction 223 540
|
|
||||||
Horizontal Wind 224 541
|
|
||||||
Upwards Wind 229 542
|
|
||||||
Downwards Wind 230 543
|
|
||||||
Horizontal Current 225 544
|
|
||||||
Upwards Current 227 545
|
|
||||||
Downwards Current 228 546
|
|
||||||
Boom Push/Pull Thing 226 547
|
|
||||||
|
|
||||||
Lighting:
|
|
||||||
Floor Lighting 213 600
|
|
||||||
Ceiling Lighting 5 601
|
|
||||||
Adjustable Pulsating Light 60 602
|
|
||||||
Adjustable Flickering Light 61 603
|
|
||||||
Adjustable Blinking Light (unsynchronized) New 604
|
|
||||||
Adjustable Blinking Light (synchronized) New 605
|
|
||||||
Colormap 16 606
|
|
||||||
Binary file not shown.
@@ -1,78 +0,0 @@
|
|||||||
Removed:
|
|
||||||
- Buttons 1-20 690-709
|
|
||||||
- Button 21 (THZ2 A/740 B/741 D/742 E/745 710
|
|
||||||
- Close Door Blazing (Tag 743) 711
|
|
||||||
- Raise Ceiling to Highest (Tag 744) 981
|
|
||||||
- THZ2 Slime Raise (B/712 W713 P714 D715 S716) 986
|
|
||||||
|
|
||||||
Stuff to Remove/Change:
|
|
||||||
- Light Blinks On Every 0.5 Seconds 2 Add Linedef Combine
|
|
||||||
- Light Blinks On Every 1 Second 3 Add Linedef Combine
|
|
||||||
- Light Pulses Smoothly 8 Remove
|
|
||||||
- Light Blinks On Every 0.5 Seconds (Sync) 12 Add Linedef Combine
|
|
||||||
- Lights Blinks On Every 1 Second (Sync) 13 Add Linedef Combine
|
|
||||||
- Light Flickers Like Fire 17 Remove
|
|
||||||
? - Damage (Fire) and Current 519 Remove (convert to combination)
|
|
||||||
? - Damage (Water) and Current 984 Remove (convert to combination)
|
|
||||||
|
|
||||||
Section 1:
|
|
||||||
1 - Damage (Generic) 11
|
|
||||||
2 - Damage (Water) 983
|
|
||||||
3 - Damage (Fire) 7
|
|
||||||
4 - Damage (Electrical) 18
|
|
||||||
5 - Spikes 4
|
|
||||||
6 - Death Pit (Camera Mod) 16
|
|
||||||
7 - Death Pit (No Camera Mod) 5
|
|
||||||
8 - Instant Kill 10
|
|
||||||
9 - Ring Drainer (Floor Touch) 978
|
|
||||||
10 - Ring Drainer (No Floor Touch) 980
|
|
||||||
11 - Special Stage Damage 9
|
|
||||||
12 - Space Countdown 6
|
|
||||||
13 - Ramp Sector (Increase step-up) 992
|
|
||||||
14 - Non-Ramp Sector (Don't step-down) 996
|
|
||||||
15 - Bouncy Sector (FOF Control Only) 14
|
|
||||||
|
|
||||||
Section 2: << 4
|
|
||||||
1 - Trigger Linedef Exec (Pushable Objects) 971
|
|
||||||
2 - Trigger LD Exec (Anywhere in Sec/All Pls) 972
|
|
||||||
3 - Trigger Linedef Exec (Floor Touch/All Pls) 973
|
|
||||||
4 - Trigger Linedef Exec (Anywhere in Sec) 974
|
|
||||||
5 - Trigger Linedef Exec (Floor Touch) 975
|
|
||||||
6 - Trigger Linedef Exec (Emerald Check) 967
|
|
||||||
7 - Trigger Linedef Exec (NiGHTS Mare) 968
|
|
||||||
8 - Check for linedef executor on FOFs (ANY) 970
|
|
||||||
9 - Egg Trap Capsule 666
|
|
||||||
10 - Special Stage Time/Rings, Par 990
|
|
||||||
11 - Custom Global Gravity 991
|
|
||||||
|
|
||||||
Section 3: << 8
|
|
||||||
1 - Ice/Sludge (required?!) 256
|
|
||||||
2 - Wind/Current (required?!) 512
|
|
||||||
3 - Ice/Sludge and Wind/Current 768
|
|
||||||
4 - Conveyor Belt 985
|
|
||||||
5 - Speed Pad (No Spin) 976
|
|
||||||
6 - Speed Pad (Spin) 977
|
|
||||||
7 - Bustable Block Sprite Parameter 1500-1515
|
|
||||||
8 - "
|
|
||||||
9 - "
|
|
||||||
10 - "
|
|
||||||
11 - "
|
|
||||||
12 - "
|
|
||||||
13 - "
|
|
||||||
14 - "
|
|
||||||
15 - "
|
|
||||||
|
|
||||||
Section 4: << 12
|
|
||||||
1 - Starpost Activator 993
|
|
||||||
2 - Special Stage Goal Combine 33
|
|
||||||
2 - Exit Sector Combine 982
|
|
||||||
2 - No Tag Zone Combine 987
|
|
||||||
2 - CTF: Flag Return Combine 995
|
|
||||||
3 - CTF: Red Team Base 988
|
|
||||||
4 - CTF: Blue Team Base 989
|
|
||||||
5 - Fan Sector 997
|
|
||||||
6 - Super Sonic Transform 969
|
|
||||||
7 - Spinner 979
|
|
||||||
8 - Zoom Tube Start 998
|
|
||||||
9 - Zoom Tube End 999
|
|
||||||
10 - Finish Line 994
|
|
||||||
-307
@@ -1,307 +0,0 @@
|
|||||||
SRB2
|
|
||||||
Release v1.09, ? 2005.
|
|
||||||
|
|
||||||
Last Updated: June 2005
|
|
||||||
|
|
||||||
Original game & sources by: Id Software.
|
|
||||||
Additions: (c)1998 by: Fabrice Denis & Boris Pereira
|
|
||||||
(c)1999 by: Fabrice Denis, Boris Pereira & Thierry Van Elsuwe
|
|
||||||
(c)2000 by: Boris Pereira & Thierry Van Elsuwe
|
|
||||||
(c)2004 By: AJ, Graue, Alam Arias, Logan Arias & Andrew Clunis
|
|
||||||
|
|
||||||
Special thanks to Steven McGranahan, Lee Killough, Robert Bäuml and Bell Kin for
|
|
||||||
their large contribution and to other DooM LEGACY & SRB2 Team members.
|
|
||||||
|
|
||||||
Web site: http://www.SRB2.org/
|
|
||||||
e-mail: none@none.com
|
|
||||||
|
|
||||||
OpenGL specific:
|
|
||||||
Web site: http://legacy.newdoom.com/gl
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
|
||||||
F.A.Q.
|
|
||||||
-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
If you have any trouble with SRB2, you might find a solution
|
|
||||||
here.
|
|
||||||
|
|
||||||
If you find a solution to a problem that was not listed here,
|
|
||||||
please tell us so that we can update the FAQ and help other people!
|
|
||||||
|
|
||||||
Mail your hardware/software problems to:
|
|
||||||
|
|
||||||
None@none.com subject: FAQ
|
|
||||||
|
|
||||||
|
|
||||||
--------
|
|
||||||
CONTENTS
|
|
||||||
--------
|
|
||||||
|
|
||||||
[0] Miscellaneous
|
|
||||||
[1] Mouse/Joystick/Keyboard
|
|
||||||
[2] Video
|
|
||||||
[3] Sound
|
|
||||||
[4] Network
|
|
||||||
[5] Troubleshooting
|
|
||||||
|
|
||||||
|
|
||||||
-----------------
|
|
||||||
[0] MISCELLANEOUS
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
* under win95 or OS/2, I don't have enough memory. How can i handle with ?
|
|
||||||
|
|
||||||
Tell win95 to put more dpmi memory for your dos box.
|
|
||||||
Or use the -mb option.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---------------------------
|
|
||||||
[1] MOUSE/JOYSTICK/KEYBOARD
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
* My mouse/joystick does not work in SRB2.
|
|
||||||
|
|
||||||
First, check that the mouse/joystick is activated : go at the
|
|
||||||
console and type either 'use_mouse' (or use the respective
|
|
||||||
menuitem) or 'use_joystick'.
|
|
||||||
|
|
||||||
If it tells '0' or off than the mouse/joystick is not used,
|
|
||||||
set the variable to 1. eg: 'use_mouse 1'.
|
|
||||||
|
|
||||||
For the joystick, different values will support different
|
|
||||||
types of joystick, check the console documentation for the
|
|
||||||
command 'use_joystick' for more.
|
|
||||||
|
|
||||||
Even if the mouse or joystick is activated, you have to
|
|
||||||
set up the contols into the Setup Controls menu. That is:
|
|
||||||
tell what use you will make of the mouse/joystick buttons.
|
|
||||||
|
|
||||||
|
|
||||||
---------
|
|
||||||
[2] VIDEO
|
|
||||||
---------
|
|
||||||
|
|
||||||
|
|
||||||
* Where are the other video modes ? I have only '320x200' in the
|
|
||||||
Video Modes menu.
|
|
||||||
|
|
||||||
DOS
|
|
||||||
---
|
|
||||||
|
|
||||||
SRB2 adds new video modes only if a VESA2 (or better) driver
|
|
||||||
is present. The VESA2 driver is a standard of 'talking' between a
|
|
||||||
program and the huge amount of different graphics cards
|
|
||||||
available today.
|
|
||||||
|
|
||||||
If you don't have a VESA2 driver, you can download UNIVBE, or
|
|
||||||
SMART DISPLAY DOCTOR from
|
|
||||||
|
|
||||||
http://www.scitechsoft.com/products/ent/free_titles.html
|
|
||||||
|
|
||||||
or if you have an S3 based card, you can download the free
|
|
||||||
software called 'S3VBE'.
|
|
||||||
|
|
||||||
ftp://ftp.externet.hu/pub/mirror/sac/graph/s3vbe318.zip
|
|
||||||
ftp://ftp.digsys.bg/pub/simtelnet/msdos/graphics/s3vbe318.zip
|
|
||||||
http://www.filesearching.com/cgi-bin/s?q=s3vbe318.zip
|
|
||||||
http://www.google.com/search?q=s3vbe318.zip
|
|
||||||
|
|
||||||
* The game doesn't restore the video mode I have chosen the last time
|
|
||||||
I played SRB2.
|
|
||||||
|
|
||||||
The current video mode has to be made the 'default' so that it is
|
|
||||||
saved to the config : press the key 'D' on the Video Options menu
|
|
||||||
to set the current video mode the default.
|
|
||||||
|
|
||||||
* I have some problems with OpenGL mode
|
|
||||||
|
|
||||||
Have a look at the FAQ for OpenGL on the glLegacy web site:
|
|
||||||
|
|
||||||
http://www.doomnation.com/gllegacy/faqe.htm
|
|
||||||
|
|
||||||
# Linux: I only have a 1024x768 (or 800x600, 1280x1024, ...) resolution
|
|
||||||
in fullscreen mode under X and SRB2 is really really slow. Can I
|
|
||||||
have lower resolutions like 320x200 in fullscreen mode as well?
|
|
||||||
|
|
||||||
Probably yes. SRB2 can only use the resolutions offered by the
|
|
||||||
X-Server. So if all fullscreen modes have a very high resolution you
|
|
||||||
have to modify /etc/XF86Config (or /etc/X11/XF86Config). Use XF86Setup
|
|
||||||
(or the appropriate tool coming with your distribution - sax,
|
|
||||||
xf86config, ...) to do this.
|
|
||||||
If you do not succeed there, you can enter them manually into your
|
|
||||||
XF86Config file. ONLY RECOMMENDED FOR USERS WHO KNOW WHAT THEY DO!
|
|
||||||
For a short guide on how to do this, have a look at the file
|
|
||||||
"Doublescan.txt".
|
|
||||||
In case of doubt consult the XFree86-HOWTO (or ask your system
|
|
||||||
administrator :).
|
|
||||||
|
|
||||||
# Linux: I cannot have any fullscreen modes at all!
|
|
||||||
|
|
||||||
You have only modes above 1024x768 in your XF86Config. Proceed as
|
|
||||||
described above.
|
|
||||||
|
|
||||||
# Linux: After a certain idle time my screensaver jams the display of
|
|
||||||
SRB2. I can still operate SRB2, but I do not see what's happening
|
|
||||||
and the screensaver won't go away.
|
|
||||||
|
|
||||||
You probably have KDE. The KDE screensaver does not obey the screensaver
|
|
||||||
rules (at least mine, version 1.1). The solution is to deactivate the
|
|
||||||
KDE screensaver and use another screensaver (like the xscreensaver,
|
|
||||||
e.g.). But the hell, when you started SRB2 you should have played it
|
|
||||||
as well and not left it alone!!!
|
|
||||||
|
|
||||||
---------
|
|
||||||
[3] SOUND
|
|
||||||
---------
|
|
||||||
|
|
||||||
+ DOS:I can't have CD audio music, why ?
|
|
||||||
|
|
||||||
Make sure that the MSCDEX driver version 2.0 or later is loaded.
|
|
||||||
If it says 'MSCDEX version xxx' at game startup, and you still
|
|
||||||
don't hear the cd music, then probably your card doesn't respond
|
|
||||||
when SRB2 tries to set the cd volume. If so, make sure your sound
|
|
||||||
card's mixer have the cd volume set up so that you can hear something.
|
|
||||||
|
|
||||||
+ When the CD plays, the game is very 'jerky'. It doesn't do that when
|
|
||||||
I type 'cd off' in the console.
|
|
||||||
|
|
||||||
You have an old/bad cd driver, that can take up to a second to
|
|
||||||
respond to cd driver commands. Either get the latest version of
|
|
||||||
your driver, or turn cd update off. Check 'cd_udpate' in the
|
|
||||||
console documentation for more.
|
|
||||||
|
|
||||||
* DOS:How can I *ALWAYS* disable the sounds or music of the game ?
|
|
||||||
|
|
||||||
Edit the allegro.cfg file and set digicard/midicard to 0 (none)
|
|
||||||
|
|
||||||
* DOS:My sterero sound is reversed, how can I set it the right way ?
|
|
||||||
|
|
||||||
Change the console variable 'stereoreverse' to either 1 or 0.
|
|
||||||
Or, you can edit the allegro.cfg file, and set the 'flip_pan' variable.
|
|
||||||
|
|
||||||
|
|
||||||
* DOS:The sounds are too 'slow', or 'low-pitched'
|
|
||||||
|
|
||||||
It seems to be a problem of the auto-detection of some 8bit sound
|
|
||||||
cards. You will have to set manually the 'sb_freq' value in the
|
|
||||||
allegro.cfg file to a lower value : 11906, 16129.
|
|
||||||
|
|
||||||
* DOS:SRB2 doesn't play any sound/music, but I have a sound
|
|
||||||
blaster genuine/compatible card.
|
|
||||||
|
|
||||||
If you have a genuine or compatible SoundBlaster card, it is very
|
|
||||||
important that you set the BLASTER environment variable.
|
|
||||||
|
|
||||||
If you are playing under DOS, and never installed your sound card
|
|
||||||
under DOS, run the setup of your sound card for DOS.
|
|
||||||
|
|
||||||
Check if the BLASTER variable was set: type 'SET' under dos
|
|
||||||
(or DOSbox)
|
|
||||||
|
|
||||||
Do you see something like 'BLASTER=A220 I5 D1 ...' ?
|
|
||||||
|
|
||||||
Yes? If you don't hear sounds/music, then tweak the settings in the
|
|
||||||
allegro.cfg file until you get something, first try changing the
|
|
||||||
type of the sound card, it is not always properly detected.
|
|
||||||
|
|
||||||
No? You have to set this variable in order that your sound card is
|
|
||||||
detected. Run the setup that was shipped with your sound card, and
|
|
||||||
make sure you run the setup for DOS too, it will usually add a
|
|
||||||
line of the type 'SET BLASTER=... ...' in the autoexec.bat file.
|
|
||||||
|
|
||||||
|
|
||||||
* DOS:How can I have better midi music on my 8bit sound card ?
|
|
||||||
|
|
||||||
Use the DIGMID driver, it is supported in SRB2.
|
|
||||||
|
|
||||||
What the hell is this? Well, the Gravis Ultrasound uses digital
|
|
||||||
samples to play midi music. On a simple 8bit card, you can use digital
|
|
||||||
samples too, which will sound usually better than what is output
|
|
||||||
by the poor fm synthesis chip of 8bit cards.
|
|
||||||
|
|
||||||
You will need to get a Gravis Ultrasound patch set, you can find
|
|
||||||
several ones for free on internet, it consists of a bunch of '.pat'
|
|
||||||
files which are the digital samples to play the midi instruments
|
|
||||||
(eg: piano, conga, guitar, ect.).
|
|
||||||
|
|
||||||
Check the Allegro homepage for some links to GUS patches:
|
|
||||||
http://alleg.sourceforge.net/digmid.html
|
|
||||||
http://alleg.sourceforge.net/
|
|
||||||
http://www.talula.demon.co.uk/allegro/digmid.html
|
|
||||||
http://www.talula.demon.co.uk/allegro/
|
|
||||||
|
|
||||||
Now to activate the DIGMID driver:
|
|
||||||
|
|
||||||
Set the 'midi_card' value to 8 (DIGMID) in the allegro.cfg file.
|
|
||||||
Make sure you leave the 'digi_voices' blank, or set it to a low
|
|
||||||
value, because the midi music will use digital voices.
|
|
||||||
At the end of the allegro.cfg file, set the 'patches' value
|
|
||||||
to the path, where you have installed a Gravis Ultrasound midi
|
|
||||||
patch set. eg: patches = d:\music\midipat\
|
|
||||||
|
|
||||||
# Linux: CD music does not work or only works when run as root.
|
|
||||||
|
|
||||||
We do not encourage you to run SRB2 as root (you never know
|
|
||||||
what SRB2 can do to your system - it's a mighty piece of code :).
|
|
||||||
There is a common problem with ATAPI CD-rom drives, which are
|
|
||||||
treated as harddisks. Usually there is a link /dev/cdrom pointing to
|
|
||||||
device hd[b,c,d]. As harddisks are not supposed to be read directly
|
|
||||||
via this device (especially not by a common user), there are no read
|
|
||||||
permissions for "all". For CD-roms you can savely set read permissions
|
|
||||||
unless you are very paranoid. Assuming your CD-rom drive is /dev/hdc,
|
|
||||||
set permissions with "chmod +r /dev/hdc" (as root). SCSI CD-rom drives
|
|
||||||
should not have this problem. But if they do, proceed as described
|
|
||||||
with ATAPI drives.
|
|
||||||
|
|
||||||
# Linux: The CD music volume is not set properly.
|
|
||||||
|
|
||||||
Go to the console and type "jigglecdvolume 1".
|
|
||||||
|
|
||||||
-----------
|
|
||||||
[4] NETWORK
|
|
||||||
-----------
|
|
||||||
|
|
||||||
* Where can I find Internet servers ?
|
|
||||||
|
|
||||||
For the moment there is one public server.
|
|
||||||
http://srb2.servegame.org/ Master server web page
|
|
||||||
srb2.servegame.org:28910 current Master Server
|
|
||||||
|
|
||||||
* When I start SRB2 with -server or -connect it say :
|
|
||||||
"BinToPort: Address already in use (EADDRINUSE)"
|
|
||||||
|
|
||||||
It appears only when SRB2 crashes or when you leave with ctrl-break.
|
|
||||||
use -udpport 12345 (or any other free slot) on both sides (client and
|
|
||||||
server).
|
|
||||||
|
|
||||||
This can also happens when there is already a SRB2 running on your
|
|
||||||
computer if you whant to try two SRB2 running on the same computer
|
|
||||||
use -clientport 12345 (or any other free slot). Then the second will
|
|
||||||
connect to the first one.
|
|
||||||
|
|
||||||
* Do you use the tcp protocol ?
|
|
||||||
|
|
||||||
No, we use the udp protocol which is faster, but don't worry udp is a
|
|
||||||
part of the internet protocol.
|
|
||||||
|
|
||||||
|
|
||||||
-------------------
|
|
||||||
[5] Troubleshooting
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
# Linux: SRB2 is hung in fullscreen mode and won´t let me leave.
|
|
||||||
What shall I do?
|
|
||||||
|
|
||||||
Some people press the reset button, but hey, we are not in the
|
|
||||||
stoneage of operating systems! There are two "proper" ways to
|
|
||||||
get out: kill your X-Server. You can usually do this by pressing
|
|
||||||
"CTRL-ALT-BACKSPACE". But if you have other open applications with
|
|
||||||
important data (probably hacked away on your diploma thesis for 3
|
|
||||||
weeks without saving once) you can also kill SRB2 directly. Press
|
|
||||||
"CTRL-ALT-F2" and you will get to a console. Log in, type
|
|
||||||
"killall llxSRB2" and switch back to the X-Server with "CTRL-ALT-F7".
|
|
||||||
Some X-Server crash on this procedure - blame the X-Server for the
|
|
||||||
loss of 3 weeks work on your diploma thesis :)
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>
|
|
||||||
Sonic Robo Blast 2 Manual
|
|
||||||
</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="srb2manstyle.css">
|
|
||||||
<!-- Borrowed some javascript code so the height of the iframe is equal to the size of the document - Sonict -->
|
|
||||||
<script type="text/javascript">
|
|
||||||
/* free code from dyn-web.com */
|
|
||||||
|
|
||||||
function getDocHeight(doc) {
|
|
||||||
doc = doc || document;
|
|
||||||
// from http://stackoverflow.com/questions/1145850/get-height-of-entire-document-with-javascript
|
|
||||||
var body = doc.body, html = doc.documentElement;
|
|
||||||
var height = Math.max( body.scrollHeight, body.offsetHeight,
|
|
||||||
html.clientHeight, html.scrollHeight, html.offsetHeight );
|
|
||||||
return height;
|
|
||||||
}
|
|
||||||
|
|
||||||
function setIframeHeight(id) {
|
|
||||||
var ifrm = document.getElementById(id);
|
|
||||||
var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document;
|
|
||||||
ifrm.style.visibility = 'hidden';
|
|
||||||
ifrm.style.height = "10px"; // reset to minimal height in case going from longer to shorter doc
|
|
||||||
ifrm.style.height = getDocHeight( doc ) + "px";
|
|
||||||
ifrm.style.visibility = 'visible';
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p class="c1">
|
|
||||||
<img src="manual_img/sonicname2.png" alt="SONIC" width="136" height="36">
|
|
||||||
<br>
|
|
||||||
<img src="manual_img/srb2banner.png" alt="ROBO BLAST 2" width="224" height="43">
|
|
||||||
</p>
|
|
||||||
<p class="c1">
|
|
||||||
<big><big><strong>Manual</strong></big></big>
|
|
||||||
</p>
|
|
||||||
<table class="cf" align="center">
|
|
||||||
<tr><td class="c">
|
|
||||||
<ul class="hmenu">
|
|
||||||
<li class="hmenu"><a class="hmenu" href="intro.htm" target="ifrm">Main</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="items.htm" target="ifrm">Items</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="playerabilities.htm" target="ifrm">Player Abilities</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="basicplay.htm" target="ifrm">Gameplay</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="surroundings.htm" target="ifrm">Surroundings</a></li>
|
|
||||||
</ul>
|
|
||||||
</td></tr>
|
|
||||||
<tr><td class="c">
|
|
||||||
<ul class="hmenu">
|
|
||||||
<li class="hmenu"><a class="hmenu" href="multiplayer.htm" target="ifrm">Multiplayer</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="zones.htm" target="ifrm">Zones</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="controls.htm" target="ifrm">Controls</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="consolecommands.htm" target="ifrm">Console Commands</a></li>
|
|
||||||
<li class="hmenu"><a class="hmenu" href="misc.htm" target="ifrm">Misc</a></li>
|
|
||||||
</ul>
|
|
||||||
</td></tr>
|
|
||||||
</table>
|
|
||||||
<hr>
|
|
||||||
<p class="c1">
|
|
||||||
<!-- The "onload" property of the iframe makes an error when validated through the W3C validation checker. -->
|
|
||||||
<!-- This will not be fixed as it isn't worth the time to fix it up properly. - Sonict -->
|
|
||||||
<iframe id="ifrm" name="ifrm" src="intro.htm" onload="setIframeHeight(this.id)"> </iframe>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
SVN-RULES
|
|
||||||
|
|
||||||
- As you can see, there is sub-directory in the repository, one for eatch
|
|
||||||
platform (djgpp (dos),win32,SDL) the root directory is for all platform,
|
|
||||||
so take care of the order we have put in.
|
|
||||||
- do not commit/upload tests of bugged code, try to fix a maximum of know
|
|
||||||
bugs and update know bugs list in source.txt. If you must commit your source
|
|
||||||
make your code in #ifdef so we can disable it
|
|
||||||
- SRB2 is a modification of doom/Doom Legacy source. We allow additionnal feature
|
|
||||||
and visual addition.
|
|
||||||
- Maximize communications between members, do not impose your changes, if your
|
|
||||||
are not sure about a feature/change, talk about it in irc://irc.esper.net/srb2 chat room.
|
|
||||||
|
|
||||||
CODE-RULES
|
|
||||||
|
|
||||||
- We use no tab, 4 space indent, and tab size 8 (in case some tab have filtred
|
|
||||||
and for makefile)
|
|
||||||
- Self documented code, variable and function must have a name that help
|
|
||||||
understand the code, so do not call variable and function a,b, a2, ...
|
|
||||||
- the usage of extern in a c file is prohibited, except for declaration of a
|
|
||||||
function with body (so it is like public keyword in c++)
|
|
||||||
Also function protos haren't allowed for external function, put it un the
|
|
||||||
corresponding h file.
|
|
||||||
- Try to minimize #ifdef usage for :
|
|
||||||
- code readability
|
|
||||||
- the main code is for all port so if something is good for a platform all
|
|
||||||
platform can benefit by this feature
|
|
||||||
- Take care of platform dependent code, we would like to have code that work
|
|
||||||
on Dos, Win32, SDL, ... little and big endian, software/Glide/OpenGl.
|
|
||||||
|
|
||||||
GOOD PRACTICE
|
|
||||||
|
|
||||||
- Try to put as mush static variable and function on module so it help to
|
|
||||||
understand the role of the varaible/function in the module also this
|
|
||||||
help the compiler to optimize
|
|
||||||
- minimise global variable
|
|
||||||
- make a log of your work, so you don't need to put a lot of comment in
|
|
||||||
the code, this will also help us to update the what's new section of doc
|
|
||||||
when doing final release
|
|
||||||
-240
@@ -1,240 +0,0 @@
|
|||||||
|
|
||||||
1. Compile SRB2
|
|
||||||
2. Explanation of the code
|
|
||||||
2.1 The memory model
|
|
||||||
2.2 Hardware Texture model
|
|
||||||
|
|
||||||
1. Compile SRB2
|
|
||||||
=================
|
|
||||||
|
|
||||||
DOS
|
|
||||||
---
|
|
||||||
|
|
||||||
need:
|
|
||||||
- djgpp 2.03 (http://www.delorie.com/djgpp/)
|
|
||||||
- allegro 3.12 (http://alleg.sourceforge.net/index.html)
|
|
||||||
(
|
|
||||||
- libsocket 0.7.4 (beta 4) or better
|
|
||||||
for use with Winsock 1.1 (example Windows 3.1)
|
|
||||||
(http://www.phekda.freeserve.co.uk/richdawe/lsck/lsck.htm)
|
|
||||||
OR
|
|
||||||
- Wattcp-32 v2.2 dev.rel 6 or better
|
|
||||||
For use with a packet driver
|
|
||||||
(http://www.bgnett.no/~giva/)
|
|
||||||
(http://groups.yahoo.com/group/watt-32/)
|
|
||||||
(http://groups.yahoo.com/group/watt-32/files/v2.2/)
|
|
||||||
)
|
|
||||||
- bcd 1.03 (inlcude in this package)
|
|
||||||
- gcc 2.95.2 is recommended
|
|
||||||
- nasm 0.98 (or better) (http://nasm.sourceforge.net/)
|
|
||||||
|
|
||||||
compile:
|
|
||||||
make
|
|
||||||
make WATTCP=1 (to make a Wattcp-32 version)
|
|
||||||
|
|
||||||
debug:
|
|
||||||
when craching SRB2 will return eip
|
|
||||||
type make asm, then you will have a 8 megs srb2.s (a assembler file)
|
|
||||||
the you can find the faulting instruction and function
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Linux/SDL
|
|
||||||
-----
|
|
||||||
|
|
||||||
need:
|
|
||||||
- tested with gcc 2.95 and 3.X.
|
|
||||||
- SDL 1.2
|
|
||||||
- SDL_mixer 1.2
|
|
||||||
- ibogg and libvorbis (http://Xiph.org/)
|
|
||||||
- nasm 0.98 (or better)(http://nasm.sourceforge.net/) only with 2.95, else add CC30=1
|
|
||||||
|
|
||||||
compile
|
|
||||||
make LINUX=1
|
|
||||||
|
|
||||||
debug:
|
|
||||||
gdb ?
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Win32
|
|
||||||
-----
|
|
||||||
|
|
||||||
need :
|
|
||||||
- glide 3.x sdk (optional) (http://www.3dfx.com)
|
|
||||||
- directx6 sdk (or higher) (http://www.micosoft.com/directx)
|
|
||||||
- nasm 0.98 (or better) (http://nasm.sourceforge.net/)
|
|
||||||
- use src\win32\wLegacy.dsp
|
|
||||||
- VC6 should also work with VC5, and VS.NET 200X
|
|
||||||
|
|
||||||
debug:
|
|
||||||
press on "step over" with the release version (there is some debug info
|
|
||||||
on it). Then change the eip in the regster window when you will type
|
|
||||||
enter the edi will go to the faulting instruction. don't forget that
|
|
||||||
you can follow the stack for calls.
|
|
||||||
You can also use trace with the debug version but add -win and -nomouse.
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Win32/minGW/SDL
|
|
||||||
-----
|
|
||||||
|
|
||||||
need:
|
|
||||||
- tested with gcc 2.95 and 3.X.
|
|
||||||
- can also use Dev-C++ 5.0 beta 9 (4.9.9.0) from http://www.bloodshed.net/dev/devcpp.html
|
|
||||||
- SDL 1.2
|
|
||||||
- SDL_mixer 1.2
|
|
||||||
|
|
||||||
compile
|
|
||||||
make minGW=1 SDL=1
|
|
||||||
or use src\SDL\Win32SDL.dev with Dev-C++ 4.9.9.0 or later
|
|
||||||
|
|
||||||
debug:
|
|
||||||
gdb ?
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
WinCE/SDL WIP
|
|
||||||
-----
|
|
||||||
|
|
||||||
need:
|
|
||||||
- ActiveSync 3.8
|
|
||||||
http://www.microsoft.com/windowsmobile/downloads/activesync38.mspx
|
|
||||||
|
|
||||||
- ActiveSync 3.7.1, if 3.8 isn't available for your language
|
|
||||||
http://www.microsoft.com/windowsmobile/downloads/activesync37.mspx
|
|
||||||
|
|
||||||
- eMbedded Visual Tools 3.0 - 2002 Edition
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=f663bf48-31ee-4cbe-aac5-0affd5fb27dd
|
|
||||||
|
|
||||||
- Pocket PC 2000 SDK
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3f4d7b-de2a-4e1a-a175-26a68c301ac4
|
|
||||||
|
|
||||||
- Pocket PC 2002 SDK (eMVT 3.0 2002 Ed. comes with this)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=2dbee84a-bd94-4167-b817-2b2e548b2e92
|
|
||||||
|
|
||||||
- Pocket PC 2002 SDK Emulator Images (eMVT 3.0 2002 Ed. comes with this)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=25f4de97-ae80-477a-9df1-496b85b3d3e3
|
|
||||||
|
|
||||||
- eMbedded Visual C++ 4.0
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?familyid=1DACDB3D-50D1-41B2-A107-FA75AE960856
|
|
||||||
|
|
||||||
- eMbedded Visual C++ 4.0 SP3 (Win CE 4.0-4.2)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=5bb36f3e-5b3d-419a-9610-2fe53815ae3b
|
|
||||||
|
|
||||||
OR
|
|
||||||
|
|
||||||
- eMbedded Visual C++ 4.0 SP4 (No SH3 support,Win CE 4.0-5.0 support)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=4a4ed1f4-91d3-4dbe-986e-a812984318e5
|
|
||||||
|
|
||||||
- eMbedded Visual C++ 4.0 Update 5625 (SP4 only)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=aa282a6d-6f57-436d-8c10-0ec02d94f5b1
|
|
||||||
|
|
||||||
- Windows CE: Standard Software Development Kit
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?familyid=a08f6991-16b0-4019-a174-0c40e6d25fe7
|
|
||||||
|
|
||||||
- SDK for Windows Mobile 2003-based Pocket PCs
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyId=9996B314-0364-4623-9EDE-0B5FBB133652
|
|
||||||
|
|
||||||
- Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?familyid=5C53E3B5-F2A2-47D7-A41D-825FD68EBB6C
|
|
||||||
|
|
||||||
- Microsoft Device Emulator 1.0 Community Preview
|
|
||||||
http://beta.microsoft.com Use Guest ID "MSDEVICE" to access the Community Preview website
|
|
||||||
|
|
||||||
- Windows CE Utilities for Visual Studio .NET 2003 Add-on Pack 1.1
|
|
||||||
(if you also have VS 2003 installed, you need this to install Win CE 5.0 SDK, else no need)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyId=7EC99CA6-2095-4086-B0CC-7C6C39B28762
|
|
||||||
|
|
||||||
- Windows CE 5.0: Standard Software Development Kit (eMC++ 4 SP4 only)
|
|
||||||
http://www.microsoft.com/downloads/details.aspx?FamilyID=fa1a3d66-3f61-4ddc-9510-ae450e2318c3
|
|
||||||
|
|
||||||
- SDL 1.27 (use patch and zip in tools\SDL1.2.7_CE)
|
|
||||||
|
|
||||||
compile
|
|
||||||
use src\SDL\WinCE\SRB2CE.vcw
|
|
||||||
|
|
||||||
debug:
|
|
||||||
?
|
|
||||||
|
|
||||||
|
|
||||||
2. Explanation of the code
|
|
||||||
==========================
|
|
||||||
|
|
||||||
2.1 The memory model (original) (z_zone.c) (by BP)
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
SRB2 allocate a heap of 6/32/48 megs at begining and provide a Z_Malloc function
|
|
||||||
to allocate in this heap.
|
|
||||||
|
|
||||||
Z_Malloc( int size,int tag,void* user )
|
|
||||||
|
|
||||||
size is the size in byte
|
|
||||||
tag can be : PU_STATIC allocated static (like malloc do)
|
|
||||||
call Z_Free to free it
|
|
||||||
PU_LEVEL same as static but the zone is "tagged" with the
|
|
||||||
tag PU_LEVEL, when calling
|
|
||||||
Z_FreeTag (PU_LEVEL, PU_LEVEL) all zone tagged
|
|
||||||
with PU_LEVEL are freed (at the end of the level)
|
|
||||||
PU_CACHE this one _can_ be freed automatiquely by one other
|
|
||||||
call to Z_Malloc. the *user point to a pointer
|
|
||||||
to this zone so when freed automatiquely the
|
|
||||||
pointer is set to NULL so eatch time you use it
|
|
||||||
you must check if the pointer is not NULL and
|
|
||||||
reload it.
|
|
||||||
|
|
||||||
(...)
|
|
||||||
|
|
||||||
2.2 Hardware Texture model (by BP)
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
Eatch texture/patch/flats/pic in SRB2 are converted to hardware texture at
|
|
||||||
runtime (the GlideMipmap_s structure (hw_data.h)). I will call hardware
|
|
||||||
texture a gr_texture so there is no confusion.
|
|
||||||
|
|
||||||
To remind you :
|
|
||||||
- Texture are set of patch and are associate to linedefs (walls) can be
|
|
||||||
upper, lower or middle texture. It can have hole on it.
|
|
||||||
- patch are sprites (the doom patch are run of vertical lines)
|
|
||||||
- flats are used for floors and ceiling of sectors and have size of 64x64
|
|
||||||
it can't have hole on it
|
|
||||||
- pic are new legacy format for picture, it can only handle plain texture
|
|
||||||
like flats it is now used for hud in full screen for the main picture
|
|
||||||
of legacy and for coronas (the format was extended to handle 32 bit color
|
|
||||||
or intensity + alpha, not all are implemented at this time)
|
|
||||||
|
|
||||||
Since patch, flat and pic are basic structure represented by only one lump in
|
|
||||||
the wad, the wad loader allocate for eatch lump a GlideMipmap_s (cache3Dfx)
|
|
||||||
and init data field to NULL. Since the data structure is allocated in
|
|
||||||
PU_3DFXCACHE (like PU_CACHE) the data will be initilised when needed
|
|
||||||
(hw_cache.c).
|
|
||||||
|
|
||||||
The GlideMipmap_s structures for textures are initialized on
|
|
||||||
HWR_PrepLevelCache (hw_cache.c) it is called in P_SetupLevel (load level)
|
|
||||||
the number of textures is computed with TEXTURE1, TEXTURE2 lumps since this
|
|
||||||
can be changed in runtime in SRB2 (load a wad while runing) it must be
|
|
||||||
reallocated. Well, at this time it is realloceted at eatch level start. We
|
|
||||||
can do better, since numtextures change only when a wad is loaded.
|
|
||||||
|
|
||||||
The 3dfx driver use glide3, it load gr_texture in gr_texture memory of the
|
|
||||||
card in fifo order when there is no more place it remove the first gr_texture,
|
|
||||||
the downloaded field of GlideMipmap_s go to false and when needed it is
|
|
||||||
reloaded in gr_texture memory. In OpenGl, since OpenGl keep texture in there
|
|
||||||
own memory and handle gr_texture memory of the card we no more need to
|
|
||||||
redownload it but if we not free time to time gr_texture memory in opengl,
|
|
||||||
it will get alot of memory, so the gr_texture memory is cleared at eatch
|
|
||||||
new level (same time of texture reallocation). Opengl and 3dfx link the
|
|
||||||
loaded gr_texture with the nextmipmap field of GlideMipmap_s so before clear
|
|
||||||
textures of the heap we MUST free gr_texture memory of OpenGl or 3dfx !
|
|
||||||
|
|
||||||
SRB2 can also draw patch with a differant colormap (thanks to Hurdler).
|
|
||||||
When needed it create the same gr_texture but just with a differant colormap.
|
|
||||||
This one is linked with the original in the GlideMipmap_s with the
|
|
||||||
nextcolormap field.
|
|
||||||
|
|
||||||
So when a polygone with a gr_texture must be drawn, first we check if the
|
|
||||||
gr_textures is not allready loaded in hadware memory (downloaded field) if
|
|
||||||
not then we check if gr_texture data is there (not grabbed by z_malloc
|
|
||||||
function) if not we must recompute it eatch type of gr_texture (texture,
|
|
||||||
patch, flat, pic have there own methode) the we can send the gr_texture
|
|
||||||
to 3dfx or OpenGl.
|
|
||||||
-1992
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,18 @@
|
|||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
@@ -1,9 +1,28 @@
|
|||||||
|
|
||||||
This is a list of major changes in SDL's version history.
|
This is a list of major changes in SDL's version history.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
2.30.0:
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
General:
|
||||||
|
* Added support for 2 bits-per-pixel indexed surface formats
|
||||||
|
* Added the function SDL_GameControllerGetSteamHandle() to get the Steam API handle for a controller, if available
|
||||||
|
* Added the event SDL_CONTROLLERSTEAMHANDLEUPDATED which is sent when the Steam API handle for a controller changes. This could also change the name, VID, and PID of the controller.
|
||||||
|
* Added the environment variable SDL_LOGGING to control default log output
|
||||||
|
|
||||||
|
macOS:
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_IOKIT to control whether the IOKit controller driver should be used
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_MFI to control whether the GCController controller driver should be used
|
||||||
|
* Added the hint SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE to choose whether high or low power GPU should be used for rendering, in the case where there are multiple GPUs available
|
||||||
|
|
||||||
|
Xbox:
|
||||||
|
* Added the function SDL_GDKGetDefaultUser()
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
2.28.2:
|
2.28.2:
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
General:
|
General:
|
||||||
* Added the hint SDL_HINT_JOYSTICK_WGI to control whether to use Windows.Gaming.Input for controllers
|
* Added the hint SDL_HINT_JOYSTICK_WGI to control whether to use Windows.Gaming.Input for controllers
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ SDL now has, internally, a table of function pointers. So, this is what SDL_Init
|
|||||||
now looks like:
|
now looks like:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
UInt32 SDL_Init(Uint32 flags)
|
Uint32 SDL_Init(Uint32 flags)
|
||||||
{
|
{
|
||||||
return jump_table.SDL_Init(flags);
|
return jump_table.SDL_Init(flags);
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ a shared library of its own). If so, it loads that library and looks for and
|
|||||||
calls a single function:
|
calls a single function:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
SInt32 SDL_DYNAPI_entry(Uint32 version, void *table, Uint32 tablesize);
|
Sint32 SDL_DYNAPI_entry(Uint32 version, void *table, Uint32 tablesize);
|
||||||
```
|
```
|
||||||
|
|
||||||
That function takes a version number (more on that in a moment), the address of
|
That function takes a version number (more on that in a moment), the address of
|
||||||
|
|||||||
@@ -1,27 +1,187 @@
|
|||||||
# Emscripten
|
# Emscripten
|
||||||
|
|
||||||
(This documentation is not very robust; we will update and expand this later.)
|
## The state of things
|
||||||
|
|
||||||
## A quick note about audio
|
(As of September 2023, but things move quickly and we don't update this
|
||||||
|
document often.)
|
||||||
|
|
||||||
|
In modern times, all the browsers you probably care about (Chrome, Firefox,
|
||||||
|
Edge, and Safari, on Windows, macOS, Linux, iOS and Android), support some
|
||||||
|
reasonable base configurations:
|
||||||
|
|
||||||
|
- WebAssembly (don't bother with asm.js any more)
|
||||||
|
- WebGL (which will look like OpenGL ES 2 or 3 to your app).
|
||||||
|
- Threads (see caveats, though!)
|
||||||
|
- Game controllers
|
||||||
|
- Autoupdating (so you can assume they have a recent version of the browser)
|
||||||
|
|
||||||
|
All this to say we're at the point where you don't have to make a lot of
|
||||||
|
concessions to get even a fairly complex SDL-based game up and running.
|
||||||
|
|
||||||
|
|
||||||
|
## RTFM
|
||||||
|
|
||||||
|
This document is a quick rundown of some high-level details. The
|
||||||
|
documentation at [emscripten.org](https://emscripten.org/) is vast
|
||||||
|
and extremely detailed for a wide variety of topics, and you should at
|
||||||
|
least skim through it at some point.
|
||||||
|
|
||||||
|
|
||||||
|
## Porting your app to Emscripten
|
||||||
|
|
||||||
|
Many many things just need some simple adjustments and they'll compile
|
||||||
|
like any other C/C++ code, as long as SDL was handling the platform-specific
|
||||||
|
work for your program.
|
||||||
|
|
||||||
|
First, you probably need this in at least one of your source files:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
#include <emscripten.h>
|
||||||
|
#endif
|
||||||
|
```
|
||||||
|
|
||||||
|
Second: assembly language code has to go. Replace it with C. You can even use
|
||||||
|
[x86 SIMD intrinsic functions in Emscripten](https://emscripten.org/docs/porting/simd.html)!
|
||||||
|
|
||||||
|
Third: Middleware has to go. If you have a third-party library you link
|
||||||
|
against, you either need an Emscripten port of it, or the source code to it
|
||||||
|
to compile yourself, or you need to remove it.
|
||||||
|
|
||||||
|
Fourth: You still start in a function called main(), but you need to get out of
|
||||||
|
it and into a function that gets called repeatedly, and returns quickly,
|
||||||
|
called a mainloop.
|
||||||
|
|
||||||
|
Somewhere in your program, you probably have something that looks like a more
|
||||||
|
complicated version of this:
|
||||||
|
|
||||||
|
```c
|
||||||
|
void main(void)
|
||||||
|
{
|
||||||
|
initialize_the_game();
|
||||||
|
while (game_is_still_running) {
|
||||||
|
check_for_new_input();
|
||||||
|
think_about_stuff();
|
||||||
|
draw_the_next_frame();
|
||||||
|
}
|
||||||
|
deinitialize_the_game();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
This will not work on Emscripten, because the main thread needs to be free
|
||||||
|
to do stuff and can't sit in this loop forever. So Emscripten lets you set up
|
||||||
|
a [mainloop](https://emscripten.org/docs/porting/emscripten-runtime-environment.html#browser-main-loop).
|
||||||
|
|
||||||
|
```c
|
||||||
|
static void mainloop(void) /* this will run often, possibly at the monitor's refresh rate */
|
||||||
|
{
|
||||||
|
if (!game_is_still_running) {
|
||||||
|
deinitialize_the_game();
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
emscripten_cancel_main_loop(); /* this should "kill" the app. */
|
||||||
|
#else
|
||||||
|
exit(0);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
check_for_new_input();
|
||||||
|
think_about_stuff();
|
||||||
|
draw_the_next_frame();
|
||||||
|
}
|
||||||
|
|
||||||
|
void main(void)
|
||||||
|
{
|
||||||
|
initialize_the_game();
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
emscripten_set_main_loop(mainloop, 0, 1);
|
||||||
|
#else
|
||||||
|
while (1) { mainloop(); }
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Basically, `emscripten_set_main_loop(mainloop, 0, 1);` says "run
|
||||||
|
`mainloop` over and over until I end the program." The function will
|
||||||
|
run, and return, freeing the main thread for other tasks, and then
|
||||||
|
run again when it's time. The `1` parameter does some magic to make
|
||||||
|
your main() function end immediately; this is useful because you
|
||||||
|
don't want any shutdown code that might be sitting below this code
|
||||||
|
to actually run if main() were to continue on, since we're just
|
||||||
|
getting started.
|
||||||
|
|
||||||
|
There's a lot of little details that are beyond the scope of this
|
||||||
|
document, but that's the biggest intial set of hurdles to porting
|
||||||
|
your app to the web.
|
||||||
|
|
||||||
|
|
||||||
|
## Do you need threads?
|
||||||
|
|
||||||
|
If you plan to use threads, they work on all major browsers now. HOWEVER,
|
||||||
|
they bring with them a lot of careful considerations. Rendering _must_
|
||||||
|
be done on the main thread. This is a general guideline for many
|
||||||
|
platforms, but a hard requirement on the web.
|
||||||
|
|
||||||
|
Many other things also must happen on the main thread; often times SDL
|
||||||
|
and Emscripten make efforts to "proxy" work to the main thread that
|
||||||
|
must be there, but you have to be careful (and read more detailed
|
||||||
|
documentation than this for the finer points).
|
||||||
|
|
||||||
|
Even when using threads, your main thread needs to set an Emscripten
|
||||||
|
mainloop that runs quickly and returns, or things will fail to work
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
You should definitely read [Emscripten's pthreads docs](https://emscripten.org/docs/porting/pthreads.html)
|
||||||
|
for all the finer points. Mostly SDL's thread API will work as expected,
|
||||||
|
but is built on pthreads, so it shares the same little incompatibilities
|
||||||
|
that are documented there, such as where you can use a mutex, and when
|
||||||
|
a thread will start running, etc.
|
||||||
|
|
||||||
|
|
||||||
|
IMPORTANT: You have to decide to either build something that uses
|
||||||
|
threads or something that doesn't; you can't have one build
|
||||||
|
that works everywhere. This is an Emscripten (or maybe WebAssembly?
|
||||||
|
Or just web browsers in general?) limitation. If you aren't using
|
||||||
|
threads, it's easier to not enable them at all, at build time.
|
||||||
|
|
||||||
|
If you use threads, you _have to_ run from a web server that has
|
||||||
|
[COOP/COEP headers set correctly](https://web.dev/why-coop-coep/)
|
||||||
|
or your program will fail to start at all.
|
||||||
|
|
||||||
|
If building with threads, `__EMSCRIPTEN_PTHREADS__` will be defined
|
||||||
|
for checking with the C preprocessor, so you can build something
|
||||||
|
different depending on what sort of build you're compiling.
|
||||||
|
|
||||||
|
|
||||||
|
## Audio
|
||||||
|
|
||||||
|
Audio works as expected at the API level, but not exactly like other
|
||||||
|
platforms.
|
||||||
|
|
||||||
|
You'll only see a single default audio device. Audio capture also works;
|
||||||
|
if the browser pops up a prompt to ask for permission to access the
|
||||||
|
microphone, the SDL_OpenAudioDevice call will succeed and start producing
|
||||||
|
silence at a regular interval. Once the user approves the request, real
|
||||||
|
audio data will flow. If the user denies it, the app is not informed and
|
||||||
|
will just continue to receive silence.
|
||||||
|
|
||||||
Modern web browsers will not permit web pages to produce sound before the
|
Modern web browsers will not permit web pages to produce sound before the
|
||||||
user has interacted with them; this is for several reasons, not the least
|
user has interacted with them (clicked or tapped on them, usually); this is
|
||||||
of which being that no one likes when a random browser tab suddenly starts
|
for several reasons, not the least of which being that no one likes when a
|
||||||
making noise and the user has to scramble to figure out which and silence
|
random browser tab suddenly starts making noise and the user has to scramble
|
||||||
it.
|
to figure out which and silence it.
|
||||||
|
|
||||||
To solve this, most browsers will refuse to let a web app use the audio
|
SDL will allow you to open the audio device for playback in this
|
||||||
subsystem at all before the user has interacted with (clicked on) the page
|
circumstance, and your audio callback will fire, but SDL will throw the audio
|
||||||
in a meaningful way. SDL-based apps also have to deal with this problem; if
|
data away until the user interacts with the page. This helps apps that depend
|
||||||
the user hasn't interacted with the page, SDL_OpenAudioDevice will fail.
|
on the audio callback to make progress, and also keeps audio playback in sync
|
||||||
|
once the app is finally allowed to make noise.
|
||||||
|
|
||||||
There are two reasonable ways to deal with this: if you are writing some
|
There are two reasonable ways to deal with the silence at the app level:
|
||||||
sort of media player thing, where the user expects there to be a volume
|
if you are writing some sort of media player thing, where the user expects
|
||||||
control when you mouseover the canvas, just default that control to a muted
|
there to be a volume control when you mouseover the canvas, just default
|
||||||
state; if the user clicks on the control to unmute it, on this first click,
|
that control to a muted state; if the user clicks on the control to unmute
|
||||||
open the audio device. This allows the media to play at start, the user can
|
it, on this first click, open the audio device. This allows the media to
|
||||||
reasonably opt-in to listening, and you never get access denied to the audio
|
play at start, and the user can reasonably opt-in to listening.
|
||||||
device.
|
|
||||||
|
|
||||||
Many games do not have this sort of UI, and are more rigid about starting
|
Many games do not have this sort of UI, and are more rigid about starting
|
||||||
audio along with everything else at the start of the process. For these, your
|
audio along with everything else at the start of the process. For these, your
|
||||||
@@ -36,41 +196,179 @@ Please see the discussion at https://github.com/libsdl-org/SDL/issues/6385
|
|||||||
for some Javascript code to steal for this approach.
|
for some Javascript code to steal for this approach.
|
||||||
|
|
||||||
|
|
||||||
|
## Rendering
|
||||||
|
|
||||||
|
If you use SDL's 2D render API, it will use GLES2 internally, which
|
||||||
|
Emscripten will turn into WebGL calls. You can also use OpenGL ES 2
|
||||||
|
directly by creating a GL context and drawing into it.
|
||||||
|
|
||||||
|
Calling SDL_RenderPresent (or SDL_GL_SwapWindow) will not actually
|
||||||
|
present anything on the screen until your return from your mainloop
|
||||||
|
function.
|
||||||
|
|
||||||
|
|
||||||
## Building SDL/emscripten
|
## Building SDL/emscripten
|
||||||
|
|
||||||
|
First: do you _really_ need to build SDL from source?
|
||||||
|
|
||||||
|
If you aren't developing SDL itself, have a desire to mess with its source
|
||||||
|
code, or need something on the bleeding edge, don't build SDL. Just use
|
||||||
|
Emscripten's packaged version!
|
||||||
|
|
||||||
|
Compile and link your app with `-sUSE_SDL=2` and it'll use a build of
|
||||||
|
SDL packaged with Emscripten. This comes from the same source code and
|
||||||
|
fixes the Emscripten project makes to SDL are generally merged into SDL's
|
||||||
|
revision control, so often this is much easier for app developers.
|
||||||
|
|
||||||
|
`-sUSE_SDL=1` will select Emscripten's JavaScript reimplementation of SDL
|
||||||
|
1.2 instead; if you need SDL 1.2, this might be fine, but we generally
|
||||||
|
recommend you don't use SDL 1.2 in modern times.
|
||||||
|
|
||||||
|
|
||||||
|
If you want to build SDL, though...
|
||||||
|
|
||||||
SDL currently requires at least Emscripten 3.1.35 to build. Newer versions
|
SDL currently requires at least Emscripten 3.1.35 to build. Newer versions
|
||||||
are likely to work, as well.
|
are likely to work, as well.
|
||||||
|
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
|
|
||||||
$ mkdir build
|
This works on Linux/Unix and macOS. Please send comments about Windows.
|
||||||
$ cd build
|
|
||||||
$ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2"
|
Make sure you've [installed emsdk](https://emscripten.org/docs/getting_started/downloads.html)
|
||||||
$ emmake make
|
first, and run `source emsdk_env.sh` at the command line so it finds the
|
||||||
|
tools.
|
||||||
|
|
||||||
|
(These configure options might be overkill, but this has worked for me.)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd SDL
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
emconfigure ../configure --host=wasm32-unknown-emscripten --disable-pthreads --disable-assembly --disable-cpuinfo CFLAGS="-sUSE_SDL=0 -O3"
|
||||||
|
emmake make -j4
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to build with thread support, something like this works:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
emconfigure ../configure --host=wasm32-unknown-emscripten --enable-pthreads --disable-assembly --disable-cpuinfo CFLAGS="-sUSE_SDL=0 -O3 -pthread" LDFLAGS="-pthread"
|
||||||
|
```
|
||||||
|
|
||||||
Or with cmake:
|
Or with cmake:
|
||||||
|
|
||||||
$ mkdir build
|
```bash
|
||||||
$ cd build
|
mkdir build
|
||||||
$ emcmake cmake ..
|
cd build
|
||||||
$ emmake make
|
emcmake cmake ..
|
||||||
|
emmake make -j4
|
||||||
|
```
|
||||||
|
|
||||||
To build one of the tests:
|
To build one of the tests:
|
||||||
|
|
||||||
$ cd test/
|
```bash
|
||||||
$ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
|
cd test/
|
||||||
|
emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
|
||||||
|
```
|
||||||
|
|
||||||
Uses GLES2 renderer or software
|
## Building your app
|
||||||
|
|
||||||
Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
|
You need to compile with `emcc` instead of `gcc` or `clang` or whatever, but
|
||||||
|
mostly it uses the same command line arguments as Clang.
|
||||||
|
|
||||||
SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
|
Link against the SDL/build/.libs/libSDL2.a file you generated by building SDL,
|
||||||
|
link with `-sUSE_SDL=2` to use Emscripten's prepackaged SDL2 build.
|
||||||
|
|
||||||
|
Usually you would produce a binary like this:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gcc -o mygame mygame.c # or whatever
|
||||||
|
```
|
||||||
|
|
||||||
|
But for Emscripten, you want to output something else:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
emcc -o index.html mygame.c
|
||||||
|
```
|
||||||
|
|
||||||
|
This will produce several files...support Javascript and WebAssembly (.wasm)
|
||||||
|
files. The `-o index.html` will produce a simple HTML page that loads and
|
||||||
|
runs your app. You will (probably) eventually want to replace or customize
|
||||||
|
that file and do `-o index.js` instead to just build the code pieces.
|
||||||
|
|
||||||
|
If you're working on a program of any serious size, you'll likely need to
|
||||||
|
link with `-sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=1gb` to get access
|
||||||
|
to more memory. If using pthreads, you'll need the `-sMAXIMUM_MEMORY=1gb`
|
||||||
|
or the app will fail to start on iOS browsers, but this might be a bug that
|
||||||
|
goes away in the future.
|
||||||
|
|
||||||
|
|
||||||
|
## Data files
|
||||||
|
|
||||||
|
Your game probably has data files. Here's how to access them.
|
||||||
|
|
||||||
|
Filesystem access works like a Unix filesystem; you have a single directory
|
||||||
|
tree, possibly interpolated from several mounted locations, no drive letters,
|
||||||
|
'/' for a path separator. You can access them with standard file APIs like
|
||||||
|
open() or fopen() or SDL_RWops. You can read or write from the filesystem.
|
||||||
|
|
||||||
|
By default, you probably have a "MEMFS" filesystem (all files are stored in
|
||||||
|
memory, but access to them is immediate and doesn't need to block). There are
|
||||||
|
other options, like "IDBFS" (files are stored in a local database, so they
|
||||||
|
don't need to be in RAM all the time and they can persist between runs of the
|
||||||
|
program, but access is not synchronous). You can mix and match these file
|
||||||
|
systems, mounting a MEMFS filesystem at one place and idbfs elsewhere, etc,
|
||||||
|
but that's beyond the scope of this document. Please refer to Emscripten's
|
||||||
|
[page on the topic](https://emscripten.org/docs/porting/files/file_systems_overview.html)
|
||||||
|
for more info.
|
||||||
|
|
||||||
|
The _easiest_ (but not the best) way to get at your data files is to embed
|
||||||
|
them in the app itself. Emscripten's linker has support for automating this.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
emcc -o index.html loopwave.c --embed-file=../test/sample.wav@/sounds/sample.wav
|
||||||
|
```
|
||||||
|
|
||||||
|
This will pack ../test/sample.wav in your app, and make it available at
|
||||||
|
"/sounds/sample.wav" at runtime. Emscripten makes sure this data is available
|
||||||
|
before your main() function runs, and since it's in MEMFS, you can just
|
||||||
|
read it like you do on other platforms. `--embed-file` can also accept a
|
||||||
|
directory to pack an entire tree, and you can specify the argument multiple
|
||||||
|
times to pack unrelated things into the final installation.
|
||||||
|
|
||||||
|
Note that this is absolutely the best approach if you have a few small
|
||||||
|
files to include and shouldn't worry about the issue further. However, if you
|
||||||
|
have hundreds of megabytes and/or thousands of files, this is not so great,
|
||||||
|
since the user will download it all every time they load your page, and it
|
||||||
|
all has to live in memory at runtime.
|
||||||
|
|
||||||
|
[Emscripten's documentation on the matter](https://emscripten.org/docs/porting/files/packaging_files.html)
|
||||||
|
gives other options and details, and is worth a read.
|
||||||
|
|
||||||
|
|
||||||
|
## Debugging
|
||||||
|
|
||||||
|
Debugging web apps is a mixed bag. You should compile and link with
|
||||||
|
`-gsource-map`, which embeds a ton of source-level debugging information into
|
||||||
|
the build, and make sure _the app source code is available on the web server_,
|
||||||
|
which is often a scary proposition for various reasons.
|
||||||
|
|
||||||
|
When you debug from the browser's tools and hit a breakpoint, you can step
|
||||||
|
through the actual C/C++ source code, though, which can be nice.
|
||||||
|
|
||||||
|
If you try debugging in Firefox and it doesn't work well for no apparent
|
||||||
|
reason, try Chrome, and vice-versa. These tools are still relatively new,
|
||||||
|
and improving all the time.
|
||||||
|
|
||||||
|
SDL_Log() (or even plain old printf) will write to the Javascript console,
|
||||||
|
and honestly I find printf-style debugging to be easier than setting up a build
|
||||||
|
for proper debugging, so use whatever tools work best for you.
|
||||||
|
|
||||||
|
|
||||||
|
## Questions?
|
||||||
|
|
||||||
|
Please give us feedback on this document at [the SDL bug tracker](https://github.com/libsdl-org/SDL/issues).
|
||||||
|
If something is wrong or unclear, we want to know!
|
||||||
|
|
||||||
$ EMCONFIGURE_JS=1 emconfigure ../configure
|
|
||||||
build as usual...
|
|
||||||
|
|
||||||
SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
|
|
||||||
|
|
||||||
$ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
|
|
||||||
build as usual...
|
|
||||||
@@ -3,7 +3,7 @@ GDK
|
|||||||
|
|
||||||
This port allows SDL applications to run via Microsoft's Game Development Kit (GDK).
|
This port allows SDL applications to run via Microsoft's Game Development Kit (GDK).
|
||||||
|
|
||||||
Windows (GDK) and Xbox One/Xbox Series (GDKX) are supported. Although most of the Xbox code is included in the public SDL source code, NDA access is required for a small number of source files. If you have access to GDKX, these required Xbox files are posted on the GDK forums [here](https://forums.xboxlive.com/questions/130003/).
|
Windows (GDK) and Xbox One/Xbox Series (GDKX) are both supported and all the required code is included in this public SDL release. However, only licensed Xbox developers have access to the GDKX libraries which will allow you to build the Xbox targets.
|
||||||
|
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
@@ -11,6 +11,7 @@ Requirements
|
|||||||
|
|
||||||
* Microsoft Visual Studio 2022 (in theory, it should also work in 2017 or 2019, but this has not been tested)
|
* Microsoft Visual Studio 2022 (in theory, it should also work in 2017 or 2019, but this has not been tested)
|
||||||
* Microsoft GDK June 2022 or newer (public release [here](https://github.com/microsoft/GDK/releases/tag/June_2022))
|
* Microsoft GDK June 2022 or newer (public release [here](https://github.com/microsoft/GDK/releases/tag/June_2022))
|
||||||
|
* For Xbox, you will need the corresponding GDKX version (licensed developers only)
|
||||||
* To publish a package or successfully authenticate a user, you will need to create an app id/configure services in Partner Center. However, for local testing purposes (without authenticating on Xbox Live), the identifiers used by the GDK test programs in the included solution will work.
|
* To publish a package or successfully authenticate a user, you will need to create an app id/configure services in Partner Center. However, for local testing purposes (without authenticating on Xbox Live), the identifiers used by the GDK test programs in the included solution will work.
|
||||||
|
|
||||||
|
|
||||||
@@ -29,6 +30,12 @@ The Windows GDK port supports the full set of Win32 APIs, renderers, controllers
|
|||||||
* Global task queue callbacks are dispatched during `SDL_PumpEvents` (which is also called internally if using `SDL_PollEvent`).
|
* Global task queue callbacks are dispatched during `SDL_PumpEvents` (which is also called internally if using `SDL_PollEvent`).
|
||||||
* You can get the handle of the global task queue through `SDL_GDKGetTaskQueue`, if needed. When done with the queue, be sure to use `XTaskQueueCloseHandle` to decrement the reference count (otherwise it will cause a resource leak).
|
* You can get the handle of the global task queue through `SDL_GDKGetTaskQueue`, if needed. When done with the queue, be sure to use `XTaskQueueCloseHandle` to decrement the reference count (otherwise it will cause a resource leak).
|
||||||
|
|
||||||
|
* Single-player games have some additional features available:
|
||||||
|
* Call `SDL_GDKGetDefaultUser` to get the default XUserHandle pointer.
|
||||||
|
* `SDL_GetPrefPath` still works, but only for single-player titles.
|
||||||
|
|
||||||
|
These functions mostly wrap around async APIs, and thus should be treated as synchronous alternatives. Also note that the single-player functions return on any OS errors, so be sure to validate the return values!
|
||||||
|
|
||||||
* What doesn't work:
|
* What doesn't work:
|
||||||
* Compilation with anything other than through the included Visual C++ solution file
|
* Compilation with anything other than through the included Visual C++ solution file
|
||||||
|
|
||||||
@@ -139,6 +146,20 @@ To create the package:
|
|||||||
6. Once the package is installed, you can run it from the start menu.
|
6. Once the package is installed, you can run it from the start menu.
|
||||||
7. As with when running from Visual Studio, if you need to test any Xbox Live functionality you must switch to the correct sandbox.
|
7. As with when running from Visual Studio, if you need to test any Xbox Live functionality you must switch to the correct sandbox.
|
||||||
|
|
||||||
|
Xbox GDKX Setup
|
||||||
|
---------------------
|
||||||
|
In general, the same process in the Windows GDK instructions work. There are just a few additional notes:
|
||||||
|
* For Xbox One consoles, use the Gaming.Xbox.XboxOne.x64 target
|
||||||
|
* For Xbox Series consoles, use the Gaming.Xbox.Scarlett.x64 target
|
||||||
|
* The Xbox One target sets the `__XBOXONE__` define and the Xbox Series target sets the `__XBOXSERIES__` define
|
||||||
|
* You don't need to link against the Xbox.Services Thunks lib nor include that dll in your package (it doesn't exist for Xbox)
|
||||||
|
* The shader blobs for Xbox are created in a pre-build step for the Xbox targets, rather than included in the source (due to NDA and version compatability reasons)
|
||||||
|
* To create a package, use:
|
||||||
|
`makepkg pack /f PackageLayout.xml /lt /d . /pd Package`
|
||||||
|
* To install the package, use:
|
||||||
|
`xbapp install [PACKAGE].xvc`
|
||||||
|
* For some reason, if you make changes that require SDL2.dll to build, and you are running through the debugger (instead of a package), you have to rebuild your .exe target for the debugger to recognize the dll has changed and needs to be transferred to the console again
|
||||||
|
* While there are successful releases of Xbox titles using this port, it is not as extensively tested as other targets
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
---------------
|
---------------
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ Game Center
|
|||||||
|
|
||||||
Game Center integration might require that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
|
Game Center integration might require that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
|
||||||
|
|
||||||
int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
|
int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam);
|
||||||
|
|
||||||
This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.
|
This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ e.g.
|
|||||||
{
|
{
|
||||||
... initialize game ...
|
... initialize game ...
|
||||||
|
|
||||||
#if __IPHONEOS__
|
#ifdef __IPHONEOS__
|
||||||
// Initialize the Game Center for scoring and matchmaking
|
// Initialize the Game Center for scoring and matchmaking
|
||||||
InitGameCenter();
|
InitGameCenter();
|
||||||
|
|
||||||
|
|||||||
@@ -261,10 +261,10 @@ Some things that may be of interest about how it all works...
|
|||||||
## Working directory
|
## Working directory
|
||||||
|
|
||||||
In SDL 1.2, the working directory of your SDL app is by default set to its
|
In SDL 1.2, the working directory of your SDL app is by default set to its
|
||||||
parent, but this is no longer the case in SDL 2.0. SDL2 does change the
|
parent, but this is no longer the case in SDL 2.0 and later. SDL2 does not
|
||||||
working directory, which means it'll be whatever the command line prompt
|
change the working directory, which means it'll be whatever the command line
|
||||||
that launched the program was using, or if launched by double-clicking in
|
prompt that launched the program was using, or if launched by double-clicking
|
||||||
the finger, it will be "/", the _root of the filesystem_. Plan accordingly!
|
in the Finder, it will be "/", the _root of the filesystem_. Plan accordingly!
|
||||||
You can use SDL_GetBasePath() to find where the program is running from and
|
You can use SDL_GetBasePath() to find where the program is running from and
|
||||||
chdir() there directly.
|
chdir() there directly.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Get the canonical path of the folder containing this script
|
# Get the canonical path of the folder containing this script
|
||||||
bindir=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
|
bindir=`cd -P -- "\`dirname -- "$0"\`" && printf '%s\n' "\`pwd -P\`"`
|
||||||
|
|
||||||
# Calculate the canonical path of the prefix, relative to the folder of this script
|
# Calculate the canonical path of the prefix, relative to the folder of this script
|
||||||
prefix=$(cd -P -- "$bindir/.." && printf '%s\n' "$(pwd -P)")
|
prefix=`cd -P -- "$bindir/.." && printf '%s\n' "\`pwd -P\`"`
|
||||||
exec_prefix=${prefix}
|
exec_prefix=${prefix}/bin
|
||||||
exec_prefix_set=no
|
exec_prefix_set=no
|
||||||
libdir=${exec_prefix}/lib
|
libdir=${prefix}/lib
|
||||||
|
|
||||||
#usage="\
|
#usage="\
|
||||||
#Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
|
#Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
|
||||||
@@ -43,18 +43,18 @@ while test $# -gt 0; do
|
|||||||
echo $exec_prefix
|
echo $exec_prefix
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
echo 2.28.5
|
echo 2.32.10
|
||||||
;;
|
;;
|
||||||
--cflags)
|
--cflags)
|
||||||
echo -I${prefix}/include/SDL2 -Dmain=SDL_main
|
echo -I${prefix}/include/SDL2 -Dmain=SDL_main
|
||||||
;;
|
;;
|
||||||
--libs)
|
--libs)
|
||||||
echo -L${exec_prefix}/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
|
echo -L${prefix}/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
|
||||||
;;
|
;;
|
||||||
--static-libs)
|
--static-libs)
|
||||||
# --libs|--static-libs)
|
# --libs|--static-libs)
|
||||||
sdl_static_libs=$(echo "-lmingw32 -lSDL2main -lSDL2 -mwindows -Wl,--dynamicbase -Wl,--nxcompat -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid" | sed -E "s#-lSDL2[ $]#$libdir/libSDL2.a #g")
|
sdl_static_libs=$(echo "-lmingw32 -lSDL2main -lSDL2 -mwindows -Wl,--dynamicbase -Wl,--nxcompat -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid" | sed -E "s#-lSDL2[ $]#$libdir/libSDL2.a #g")
|
||||||
echo -L${exec_prefix}/lib $sdl_static_libs
|
echo -L${prefix}/lib $sdl_static_libs
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "${usage}" 1>&2
|
echo "${usage}" 1>&2
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -25,7 +25,6 @@
|
|||||||
* Main include header for the SDL library
|
* Main include header for the SDL library
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef SDL_h_
|
#ifndef SDL_h_
|
||||||
#define SDL_h_
|
#define SDL_h_
|
||||||
|
|
||||||
@@ -70,6 +69,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: Init */
|
||||||
|
|
||||||
/* As of version 0.5, SDL is loaded dynamically into the application */
|
/* As of version 0.5, SDL is loaded dynamically into the application */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -130,7 +131,7 @@ extern "C" {
|
|||||||
* call SDL_Quit() to force shutdown). If a subsystem is already loaded then
|
* call SDL_Quit() to force shutdown). If a subsystem is already loaded then
|
||||||
* this call will increase the ref-count and return.
|
* this call will increase the ref-count and return.
|
||||||
*
|
*
|
||||||
* \param flags subsystem initialization flags
|
* \param flags subsystem initialization flags.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -61,6 +61,8 @@ assert can have unique static variables associated with it.
|
|||||||
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "brk #22\n\t" )
|
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "brk #22\n\t" )
|
||||||
#elif defined(__APPLE__) && defined(__arm__)
|
#elif defined(__APPLE__) && defined(__arm__)
|
||||||
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "bkpt #22\n\t" )
|
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "bkpt #22\n\t" )
|
||||||
|
#elif defined(_WIN32) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__arm64__) || defined(__aarch64__)) )
|
||||||
|
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "brk #0xF000\n\t" )
|
||||||
#elif defined(__386__) && defined(__WATCOMC__)
|
#elif defined(__386__) && defined(__WATCOMC__)
|
||||||
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
|
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
|
||||||
#elif defined(HAVE_SIGNAL_H) && !defined(__WATCOMC__)
|
#elif defined(HAVE_SIGNAL_H) && !defined(__WATCOMC__)
|
||||||
@@ -151,7 +153,7 @@ extern DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *,
|
|||||||
#define SDL_enabled_assert(condition) \
|
#define SDL_enabled_assert(condition) \
|
||||||
do { \
|
do { \
|
||||||
while ( !(condition) ) { \
|
while ( !(condition) ) { \
|
||||||
static struct SDL_AssertData sdl_assert_data = { 0, 0, #condition, 0, 0, 0, 0 }; \
|
static struct SDL_AssertData sdl_assert_data = { 0, 0, #condition, NULL, 0, NULL, NULL }; \
|
||||||
const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \
|
const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \
|
||||||
if (sdl_assert_state == SDL_ASSERTION_RETRY) { \
|
if (sdl_assert_state == SDL_ASSERTION_RETRY) { \
|
||||||
continue; /* go again. */ \
|
continue; /* go again. */ \
|
||||||
@@ -191,8 +193,8 @@ extern DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *,
|
|||||||
* A callback that fires when an SDL assertion fails.
|
* A callback that fires when an SDL assertion fails.
|
||||||
*
|
*
|
||||||
* \param data a pointer to the SDL_AssertData structure corresponding to the
|
* \param data a pointer to the SDL_AssertData structure corresponding to the
|
||||||
* current assertion
|
* current assertion.
|
||||||
* \param userdata what was passed as `userdata` to SDL_SetAssertionHandler()
|
* \param userdata what was passed as `userdata` to SDL_SetAssertionHandler().
|
||||||
* \returns an SDL_AssertState value indicating how to handle the failure.
|
* \returns an SDL_AssertState value indicating how to handle the failure.
|
||||||
*/
|
*/
|
||||||
typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
|
typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
|
||||||
@@ -212,8 +214,8 @@ typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)(
|
|||||||
* This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
|
* This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
|
||||||
*
|
*
|
||||||
* \param handler the SDL_AssertionHandler function to call when an assertion
|
* \param handler the SDL_AssertionHandler function to call when an assertion
|
||||||
* fails or NULL for the default handler
|
* fails or NULL for the default handler.
|
||||||
* \param userdata a pointer that is passed to `handler`
|
* \param userdata a pointer that is passed to `handler`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -254,7 +256,7 @@ extern DECLSPEC SDL_AssertionHandler SDLCALL SDL_GetDefaultAssertionHandler(void
|
|||||||
* data, it is safe to pass a NULL pointer to this function to ignore it.
|
* data, it is safe to pass a NULL pointer to this function to ignore it.
|
||||||
*
|
*
|
||||||
* \param puserdata pointer which is filled with the "userdata" pointer that
|
* \param puserdata pointer which is filled with the "userdata" pointer that
|
||||||
* was passed to SDL_SetAssertionHandler()
|
* was passed to SDL_SetAssertionHandler().
|
||||||
* \returns the SDL_AssertionHandler that is called when an assert triggers.
|
* \returns the SDL_AssertionHandler that is called when an assert triggers.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,38 +20,29 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_atomic.h
|
* # CategoryAtomic
|
||||||
*
|
*
|
||||||
* Atomic operations.
|
* Atomic operations.
|
||||||
*
|
*
|
||||||
* IMPORTANT:
|
* IMPORTANT: If you are not an expert in concurrent lockless programming, you
|
||||||
* If you are not an expert in concurrent lockless programming, you should
|
* should not be using any functions in this file. You should be protecting
|
||||||
* only be using the atomic lock and reference counting functions in this
|
* your data structures with full mutexes instead.
|
||||||
* file. In all other cases you should be protecting your data structures
|
|
||||||
* with full mutexes.
|
|
||||||
*
|
*
|
||||||
* The list of "safe" functions to use are:
|
* ***Seriously, here be dragons!***
|
||||||
* SDL_AtomicLock()
|
|
||||||
* SDL_AtomicUnlock()
|
|
||||||
* SDL_AtomicIncRef()
|
|
||||||
* SDL_AtomicDecRef()
|
|
||||||
*
|
*
|
||||||
* Seriously, here be dragons!
|
* You can find out a little more about lockless programming and the subtle
|
||||||
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
* issues that can arise here:
|
||||||
*
|
* https://learn.microsoft.com/en-us/windows/win32/dxtecharts/lockless-programming
|
||||||
* You can find out a little more about lockless programming and the
|
|
||||||
* subtle issues that can arise here:
|
|
||||||
* http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx
|
|
||||||
*
|
*
|
||||||
* There's also lots of good information here:
|
* There's also lots of good information here:
|
||||||
* http://www.1024cores.net/home/lock-free-algorithms
|
|
||||||
* http://preshing.com/
|
|
||||||
*
|
*
|
||||||
* These operations may or may not actually be implemented using
|
* - https://www.1024cores.net/home/lock-free-algorithms
|
||||||
* processor specific atomic operations. When possible they are
|
* - https://preshing.com/
|
||||||
* implemented as true processor specific atomic operations. When that
|
*
|
||||||
* is not possible the are implemented using locks that *do* use the
|
* These operations may or may not actually be implemented using processor
|
||||||
* available atomic operations.
|
* specific atomic operations. When possible they are implemented as true
|
||||||
|
* processor specific atomic operations. When that is not possible the are
|
||||||
|
* implemented using locks that *do* use the available atomic operations.
|
||||||
*
|
*
|
||||||
* All of the atomic operations that modify memory are full memory barriers.
|
* All of the atomic operations that modify memory are full memory barriers.
|
||||||
*/
|
*/
|
||||||
@@ -94,7 +85,7 @@ typedef int SDL_SpinLock;
|
|||||||
* ***Please note that spinlocks are dangerous if you don't know what you're
|
* ***Please note that spinlocks are dangerous if you don't know what you're
|
||||||
* doing. Please be careful using any sort of spinlock!***
|
* doing. Please be careful using any sort of spinlock!***
|
||||||
*
|
*
|
||||||
* \param lock a pointer to a lock variable
|
* \param lock a pointer to a lock variable.
|
||||||
* \returns SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already
|
* \returns SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already
|
||||||
* held.
|
* held.
|
||||||
*
|
*
|
||||||
@@ -111,7 +102,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AtomicTryLock(SDL_SpinLock *lock);
|
|||||||
* ***Please note that spinlocks are dangerous if you don't know what you're
|
* ***Please note that spinlocks are dangerous if you don't know what you're
|
||||||
* doing. Please be careful using any sort of spinlock!***
|
* doing. Please be careful using any sort of spinlock!***
|
||||||
*
|
*
|
||||||
* \param lock a pointer to a lock variable
|
* \param lock a pointer to a lock variable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -128,7 +119,7 @@ extern DECLSPEC void SDLCALL SDL_AtomicLock(SDL_SpinLock *lock);
|
|||||||
* ***Please note that spinlocks are dangerous if you don't know what you're
|
* ***Please note that spinlocks are dangerous if you don't know what you're
|
||||||
* doing. Please be careful using any sort of spinlock!***
|
* doing. Please be careful using any sort of spinlock!***
|
||||||
*
|
*
|
||||||
* \param lock a pointer to a lock variable
|
* \param lock a pointer to a lock variable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -209,7 +200,7 @@ typedef void (*SDL_KernelMemoryBarrierFunc)();
|
|||||||
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__) || defined(__ARM_ARCH_8A__)
|
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__) || defined(__ARM_ARCH_8A__)
|
||||||
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("dmb ish" : : : "memory")
|
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("dmb ish" : : : "memory")
|
||||||
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("dmb ish" : : : "memory")
|
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("dmb ish" : : : "memory")
|
||||||
#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__)
|
#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
|
||||||
#ifdef __thumb__
|
#ifdef __thumb__
|
||||||
/* The mcr instruction isn't available in thumb mode, use real functions */
|
/* The mcr instruction isn't available in thumb mode, use real functions */
|
||||||
#define SDL_MEMORY_BARRIER_USES_FUNCTION
|
#define SDL_MEMORY_BARRIER_USES_FUNCTION
|
||||||
@@ -257,10 +248,13 @@ typedef void (*SDL_KernelMemoryBarrierFunc)();
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A type representing an atomic integer value. It is a struct
|
* A type representing an atomic integer value.
|
||||||
* so people don't accidentally use numeric operations on it.
|
*
|
||||||
|
* It is a struct so people don't accidentally use numeric operations on it.
|
||||||
*/
|
*/
|
||||||
typedef struct { int value; } SDL_atomic_t;
|
typedef struct SDL_atomic_t {
|
||||||
|
int value;
|
||||||
|
} SDL_atomic_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set an atomic variable to a new value if it is currently an old value.
|
* Set an atomic variable to a new value if it is currently an old value.
|
||||||
@@ -268,9 +262,9 @@ typedef struct { int value; } SDL_atomic_t;
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to an SDL_atomic_t variable to be modified
|
* \param a a pointer to an SDL_atomic_t variable to be modified.
|
||||||
* \param oldval the old value
|
* \param oldval the old value.
|
||||||
* \param newval the new value
|
* \param newval the new value.
|
||||||
* \returns SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -289,8 +283,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to an SDL_atomic_t variable to be modified
|
* \param a a pointer to an SDL_atomic_t variable to be modified.
|
||||||
* \param v the desired value
|
* \param v the desired value.
|
||||||
* \returns the previous value of the atomic variable.
|
* \returns the previous value of the atomic variable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
@@ -305,7 +299,7 @@ extern DECLSPEC int SDLCALL SDL_AtomicSet(SDL_atomic_t *a, int v);
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to an SDL_atomic_t variable
|
* \param a a pointer to an SDL_atomic_t variable.
|
||||||
* \returns the current value of an atomic variable.
|
* \returns the current value of an atomic variable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
@@ -322,8 +316,8 @@ extern DECLSPEC int SDLCALL SDL_AtomicGet(SDL_atomic_t *a);
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to an SDL_atomic_t variable to be modified
|
* \param a a pointer to an SDL_atomic_t variable to be modified.
|
||||||
* \param v the desired value to add
|
* \param v the desired value to add.
|
||||||
* \returns the previous value of the atomic variable.
|
* \returns the previous value of the atomic variable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
@@ -356,9 +350,9 @@ extern DECLSPEC int SDLCALL SDL_AtomicAdd(SDL_atomic_t *a, int v);
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to a pointer
|
* \param a a pointer to a pointer.
|
||||||
* \param oldval the old pointer value
|
* \param oldval the old pointer value.
|
||||||
* \param newval the new pointer value
|
* \param newval the new pointer value.
|
||||||
* \returns SDL_TRUE if the pointer was set, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the pointer was set, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -375,8 +369,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCASPtr(void **a, void *oldval, void *
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to a pointer
|
* \param a a pointer to a pointer.
|
||||||
* \param v the desired pointer value
|
* \param v the desired pointer value.
|
||||||
* \returns the previous value of the pointer.
|
* \returns the previous value of the pointer.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
@@ -392,7 +386,7 @@ extern DECLSPEC void* SDLCALL SDL_AtomicSetPtr(void **a, void* v);
|
|||||||
* ***Note: If you don't know what this function is for, you shouldn't use
|
* ***Note: If you don't know what this function is for, you shouldn't use
|
||||||
* it!***
|
* it!***
|
||||||
*
|
*
|
||||||
* \param a a pointer to a pointer
|
* \param a a pointer to a pointer.
|
||||||
* \returns the current value of a pointer.
|
* \returns the current value of a pointer.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.2.
|
* \since This function is available since SDL 2.0.2.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -22,9 +22,9 @@
|
|||||||
/* !!! FIXME: several functions in here need Doxygen comments. */
|
/* !!! FIXME: several functions in here need Doxygen comments. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_audio.h
|
* # CategoryAudio
|
||||||
*
|
*
|
||||||
* Access to the raw audio mixing buffer for the SDL library.
|
* Access to the raw audio mixing buffer for the SDL library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_audio_h_
|
#ifndef SDL_audio_h_
|
||||||
@@ -44,24 +44,24 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Audio format flags.
|
* Audio format flags.
|
||||||
*
|
*
|
||||||
* These are what the 16 bits in SDL_AudioFormat currently mean...
|
* These are what the 16 bits in SDL_AudioFormat currently mean...
|
||||||
* (Unspecified bits are always zero).
|
* (Unspecified bits are always zero).
|
||||||
*
|
*
|
||||||
* \verbatim
|
* ```
|
||||||
++-----------------------sample is signed if set
|
* ++-----------------------sample is signed if set
|
||||||
||
|
* ||
|
||||||
|| ++-----------sample is bigendian if set
|
* || ++-----------sample is bigendian if set
|
||||||
|| ||
|
* || ||
|
||||||
|| || ++---sample is float if set
|
* || || ++---sample is float if set
|
||||||
|| || ||
|
* || || ||
|
||||||
|| || || +---sample bit size---+
|
* || || || +---sample bit size---+
|
||||||
|| || || | |
|
* || || || | |
|
||||||
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
|
* 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
|
||||||
\endverbatim
|
* ```
|
||||||
*
|
*
|
||||||
* There are macros in SDL 2.0 and later to query these bits.
|
* There are macros in SDL 2.0 and later to query these bits.
|
||||||
*/
|
*/
|
||||||
typedef Uint16 SDL_AudioFormat;
|
typedef Uint16 SDL_AudioFormat;
|
||||||
|
|
||||||
@@ -149,33 +149,30 @@ typedef Uint16 SDL_AudioFormat;
|
|||||||
/* @} *//* Audio flags */
|
/* @} *//* Audio flags */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is called when the audio device needs more data.
|
* This function is called when the audio device needs more data.
|
||||||
*
|
*
|
||||||
* \param userdata An application-specific parameter saved in
|
* \param userdata An application-specific parameter saved in the
|
||||||
* the SDL_AudioSpec structure
|
* SDL_AudioSpec structure.
|
||||||
* \param stream A pointer to the audio data buffer.
|
* \param stream A pointer to the audio data buffer.
|
||||||
* \param len The length of that buffer in bytes.
|
* \param len Length of **stream** in bytes.
|
||||||
*
|
|
||||||
* Once the callback returns, the buffer will no longer be valid.
|
|
||||||
* Stereo samples are stored in a LRLRLR ordering.
|
|
||||||
*
|
|
||||||
* You can choose to avoid callbacks and use SDL_QueueAudio() instead, if
|
|
||||||
* you like. Just open your audio device with a NULL callback.
|
|
||||||
*/
|
*/
|
||||||
typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream,
|
typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream,
|
||||||
int len);
|
int len);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The calculated values in this structure are calculated by SDL_OpenAudio().
|
* The calculated values in this structure are calculated by SDL_OpenAudio().
|
||||||
*
|
*
|
||||||
* For multi-channel audio, the default SDL channel mapping is:
|
* For multi-channel audio, the default SDL channel mapping is:
|
||||||
* 2: FL FR (stereo)
|
*
|
||||||
* 3: FL FR LFE (2.1 surround)
|
* ```
|
||||||
* 4: FL FR BL BR (quad)
|
* 2: FL FR (stereo)
|
||||||
* 5: FL FR LFE BL BR (4.1 surround)
|
* 3: FL FR LFE (2.1 surround)
|
||||||
* 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
|
* 4: FL FR BL BR (quad)
|
||||||
* 7: FL FR FC LFE BC SL SR (6.1 surround)
|
* 5: FL FR LFE BL BR (4.1 surround)
|
||||||
* 8: FL FR FC LFE BL BR SL SR (7.1 surround)
|
* 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
|
||||||
|
* 7: FL FR FC LFE BC SL SR (6.1 surround)
|
||||||
|
* 8: FL FR FC LFE BL BR SL SR (7.1 surround)
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_AudioSpec
|
typedef struct SDL_AudioSpec
|
||||||
{
|
{
|
||||||
@@ -196,11 +193,11 @@ typedef void (SDLCALL * SDL_AudioFilter) (struct SDL_AudioCVT * cvt,
|
|||||||
SDL_AudioFormat format);
|
SDL_AudioFormat format);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Upper limit of filters in SDL_AudioCVT
|
* Upper limit of filters in SDL_AudioCVT
|
||||||
*
|
*
|
||||||
* The maximum number of SDL_AudioFilter functions in SDL_AudioCVT is
|
* The maximum number of SDL_AudioFilter functions in SDL_AudioCVT is
|
||||||
* currently limited to 9. The SDL_AudioCVT.filters array has 10 pointers,
|
* currently limited to 9. The SDL_AudioCVT.filters array has 10 pointers, one
|
||||||
* one of which is the terminating NULL pointer.
|
* of which is the terminating NULL pointer.
|
||||||
*/
|
*/
|
||||||
#define SDL_AUDIOCVT_MAX_FILTERS 9
|
#define SDL_AUDIOCVT_MAX_FILTERS 9
|
||||||
|
|
||||||
@@ -287,7 +284,7 @@ extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
|
|||||||
* meant to be proper names.
|
* meant to be proper names.
|
||||||
*
|
*
|
||||||
* \param index the index of the audio driver; the value ranges from 0 to
|
* \param index the index of the audio driver; the value ranges from 0 to
|
||||||
* SDL_GetNumAudioDrivers() - 1
|
* SDL_GetNumAudioDrivers() - 1.
|
||||||
* \returns the name of the audio driver at the requested index, or NULL if an
|
* \returns the name of the audio driver at the requested index, or NULL if an
|
||||||
* invalid index was specified.
|
* invalid index was specified.
|
||||||
*
|
*
|
||||||
@@ -314,7 +311,7 @@ extern DECLSPEC const char *SDLCALL SDL_GetAudioDriver(int index);
|
|||||||
* specific need to designate the audio driver you want to use. You should
|
* specific need to designate the audio driver you want to use. You should
|
||||||
* normally use SDL_Init() or SDL_InitSubSystem().
|
* normally use SDL_Init() or SDL_InitSubSystem().
|
||||||
*
|
*
|
||||||
* \param driver_name the name of the desired audio driver
|
* \param driver_name the name of the desired audio driver.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -408,13 +405,13 @@ extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec * desired,
|
|||||||
SDL_AudioSpec * obtained);
|
SDL_AudioSpec * obtained);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SDL Audio Device IDs.
|
* SDL Audio Device IDs.
|
||||||
*
|
*
|
||||||
* A successful call to SDL_OpenAudio() is always device id 1, and legacy
|
* A successful call to SDL_OpenAudio() is always device id 1, and legacy SDL
|
||||||
* SDL audio APIs assume you want this device ID. SDL_OpenAudioDevice() calls
|
* audio APIs assume you want this device ID. SDL_OpenAudioDevice() calls
|
||||||
* always returns devices >= 2 on success. The legacy calls are good both
|
* always returns devices >= 2 on success. The legacy calls are good both for
|
||||||
* for backwards compatibility and when you don't care about multiple,
|
* backwards compatibility and when you don't care about multiple, specific,
|
||||||
* specific, or capture devices.
|
* or capture devices.
|
||||||
*/
|
*/
|
||||||
typedef Uint32 SDL_AudioDeviceID;
|
typedef Uint32 SDL_AudioDeviceID;
|
||||||
|
|
||||||
@@ -452,7 +449,7 @@ typedef Uint32 SDL_AudioDeviceID;
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* \param iscapture zero to request playback devices, non-zero to request
|
* \param iscapture zero to request playback devices, non-zero to request
|
||||||
* recording devices
|
* recording devices.
|
||||||
* \returns the number of available devices exposed by the current driver or
|
* \returns the number of available devices exposed by the current driver or
|
||||||
* -1 if an explicit list of devices can't be determined. A return
|
* -1 if an explicit list of devices can't be determined. A return
|
||||||
* value of -1 does not necessarily mean an error condition.
|
* value of -1 does not necessarily mean an error condition.
|
||||||
@@ -478,7 +475,7 @@ extern DECLSPEC int SDLCALL SDL_GetNumAudioDevices(int iscapture);
|
|||||||
* invalid next time any of several other SDL functions are called.
|
* invalid next time any of several other SDL functions are called.
|
||||||
*
|
*
|
||||||
* \param index the index of the audio device; valid values range from 0 to
|
* \param index the index of the audio device; valid values range from 0 to
|
||||||
* SDL_GetNumAudioDevices() - 1
|
* SDL_GetNumAudioDevices() - 1.
|
||||||
* \param iscapture non-zero to query the list of recording devices, zero to
|
* \param iscapture non-zero to query the list of recording devices, zero to
|
||||||
* query the list of output devices.
|
* query the list of output devices.
|
||||||
* \returns the name of the audio device at the requested index, or NULL on
|
* \returns the name of the audio device at the requested index, or NULL on
|
||||||
@@ -504,11 +501,11 @@ extern DECLSPEC const char *SDLCALL SDL_GetAudioDeviceName(int index,
|
|||||||
* count.
|
* count.
|
||||||
*
|
*
|
||||||
* \param index the index of the audio device; valid values range from 0 to
|
* \param index the index of the audio device; valid values range from 0 to
|
||||||
* SDL_GetNumAudioDevices() - 1
|
* SDL_GetNumAudioDevices() - 1.
|
||||||
* \param iscapture non-zero to query the list of recording devices, zero to
|
* \param iscapture non-zero to query the list of recording devices, zero to
|
||||||
* query the list of output devices.
|
* query the list of output devices.
|
||||||
* \param spec The SDL_AudioSpec to be initialized by this function.
|
* \param spec The SDL_AudioSpec to be initialized by this function.
|
||||||
* \returns 0 on success, nonzero on error
|
* \returns 0 on success, nonzero on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.16.
|
* \since This function is available since SDL 2.0.16.
|
||||||
*
|
*
|
||||||
@@ -542,7 +539,7 @@ extern DECLSPEC int SDLCALL SDL_GetAudioDeviceSpec(int index,
|
|||||||
* \param spec The SDL_AudioSpec to be initialized by this function.
|
* \param spec The SDL_AudioSpec to be initialized by this function.
|
||||||
* \param iscapture non-zero to query the default recording device, zero to
|
* \param iscapture non-zero to query the default recording device, zero to
|
||||||
* query the default output device.
|
* query the default output device.
|
||||||
* \returns 0 on success, nonzero on error
|
* \returns 0 on success, nonzero on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.24.0.
|
* \since This function is available since SDL 2.24.0.
|
||||||
*
|
*
|
||||||
@@ -594,7 +591,7 @@ extern DECLSPEC int SDLCALL SDL_GetDefaultAudioInfo(char **name,
|
|||||||
* frames_ (with stereo output, two samples--left and right--would make a
|
* frames_ (with stereo output, two samples--left and right--would make a
|
||||||
* single sample frame). This number should be a power of two, and may be
|
* single sample frame). This number should be a power of two, and may be
|
||||||
* adjusted by the audio driver to a value more suitable for the hardware.
|
* adjusted by the audio driver to a value more suitable for the hardware.
|
||||||
* Good values seem to range between 512 and 8096 inclusive, depending on
|
* Good values seem to range between 512 and 4096 inclusive, depending on
|
||||||
* the application and CPU speed. Smaller values reduce latency, but can
|
* the application and CPU speed. Smaller values reduce latency, but can
|
||||||
* lead to underflow if the application is doing heavy processing and cannot
|
* lead to underflow if the application is doing heavy processing and cannot
|
||||||
* fill the audio buffer in time. Note that the number of sample frames is
|
* fill the audio buffer in time. Note that the number of sample frames is
|
||||||
@@ -645,12 +642,12 @@ extern DECLSPEC int SDLCALL SDL_GetDefaultAudioInfo(char **name,
|
|||||||
* driver-specific name as appropriate. NULL requests the most
|
* driver-specific name as appropriate. NULL requests the most
|
||||||
* reasonable default device.
|
* reasonable default device.
|
||||||
* \param iscapture non-zero to specify a device should be opened for
|
* \param iscapture non-zero to specify a device should be opened for
|
||||||
* recording, not playback
|
* recording, not playback.
|
||||||
* \param desired an SDL_AudioSpec structure representing the desired output
|
* \param desired an SDL_AudioSpec structure representing the desired output
|
||||||
* format; see SDL_OpenAudio() for more information
|
* format; see SDL_OpenAudio() for more information.
|
||||||
* \param obtained an SDL_AudioSpec structure filled in with the actual output
|
* \param obtained an SDL_AudioSpec structure filled in with the actual output
|
||||||
* format; see SDL_OpenAudio() for more information
|
* format; see SDL_OpenAudio() for more information.
|
||||||
* \param allowed_changes 0, or one or more flags OR'd together
|
* \param allowed_changes 0, or one or more flags OR'd together.
|
||||||
* \returns a valid device ID that is > 0 on success or 0 on failure; call
|
* \returns a valid device ID that is > 0 on success or 0 on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -712,7 +709,7 @@ extern DECLSPEC SDL_AudioStatus SDLCALL SDL_GetAudioStatus(void);
|
|||||||
* Use this function to get the current audio state of an audio device.
|
* Use this function to get the current audio state of an audio device.
|
||||||
*
|
*
|
||||||
* \param dev the ID of an audio device previously opened with
|
* \param dev the ID of an audio device previously opened with
|
||||||
* SDL_OpenAudioDevice()
|
* SDL_OpenAudioDevice().
|
||||||
* \returns the SDL_AudioStatus of the specified audio device.
|
* \returns the SDL_AudioStatus of the specified audio device.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -745,7 +742,7 @@ extern DECLSPEC SDL_AudioStatus SDLCALL SDL_GetAudioDeviceStatus(SDL_AudioDevice
|
|||||||
*
|
*
|
||||||
* ...and is only useful if you used the legacy SDL_OpenAudio() function.
|
* ...and is only useful if you used the legacy SDL_OpenAudio() function.
|
||||||
*
|
*
|
||||||
* \param pause_on non-zero to pause, 0 to unpause
|
* \param pause_on non-zero to pause, 0 to unpause.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -775,8 +772,8 @@ extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on);
|
|||||||
* callback, you shouldn't pause the audio device, as it will lead to dropouts
|
* callback, you shouldn't pause the audio device, as it will lead to dropouts
|
||||||
* in the audio playback. Instead, you should use SDL_LockAudioDevice().
|
* in the audio playback. Instead, you should use SDL_LockAudioDevice().
|
||||||
*
|
*
|
||||||
* \param dev a device opened by SDL_OpenAudioDevice()
|
* \param dev a device opened by SDL_OpenAudioDevice().
|
||||||
* \param pause_on non-zero to pause, 0 to unpause
|
* \param pause_on non-zero to pause, 0 to unpause.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -841,14 +838,14 @@ extern DECLSPEC void SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev,
|
|||||||
* SDL_LoadWAV("sample.wav", &spec, &buf, &len);
|
* SDL_LoadWAV("sample.wav", &spec, &buf, &len);
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* \param src The data source for the WAVE data
|
* \param src The data source for the WAVE data.
|
||||||
* \param freesrc If non-zero, SDL will _always_ free the data source
|
* \param freesrc If non-zero, SDL will _always_ free the data source.
|
||||||
* \param spec An SDL_AudioSpec that will be filled in with the wave file's
|
* \param spec An SDL_AudioSpec that will be filled in with the wave file's
|
||||||
* format details
|
* format details.
|
||||||
* \param audio_buf A pointer filled with the audio data, allocated by the
|
* \param audio_buf A pointer filled with the audio data, allocated by the
|
||||||
* function.
|
* function.
|
||||||
* \param audio_len A pointer filled with the length of the audio data buffer
|
* \param audio_len A pointer filled with the length of the audio data buffer
|
||||||
* in bytes
|
* in bytes.
|
||||||
* \returns This function, if successfully called, returns `spec`, which will
|
* \returns This function, if successfully called, returns `spec`, which will
|
||||||
* be filled with the audio data format of the wave source data.
|
* be filled with the audio data format of the wave source data.
|
||||||
* `audio_buf` will be filled with a pointer to an allocated buffer
|
* `audio_buf` will be filled with a pointer to an allocated buffer
|
||||||
@@ -874,8 +871,9 @@ extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW(SDL_RWops * src,
|
|||||||
Uint32 * audio_len);
|
Uint32 * audio_len);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a WAV from a file.
|
* Loads a WAV from a file.
|
||||||
* Compatibility convenience function.
|
*
|
||||||
|
* Compatibility convenience function.
|
||||||
*/
|
*/
|
||||||
#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
|
#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
|
||||||
SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)
|
SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)
|
||||||
@@ -888,7 +886,7 @@ extern DECLSPEC SDL_AudioSpec *SDLCALL SDL_LoadWAV_RW(SDL_RWops * src,
|
|||||||
* this function with a NULL pointer.
|
* this function with a NULL pointer.
|
||||||
*
|
*
|
||||||
* \param audio_buf a pointer to the buffer created by SDL_LoadWAV() or
|
* \param audio_buf a pointer to the buffer created by SDL_LoadWAV() or
|
||||||
* SDL_LoadWAV_RW()
|
* SDL_LoadWAV_RW().
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -912,15 +910,16 @@ extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 * audio_buf);
|
|||||||
* and then can call SDL_ConvertAudio() to complete the conversion.
|
* and then can call SDL_ConvertAudio() to complete the conversion.
|
||||||
*
|
*
|
||||||
* \param cvt an SDL_AudioCVT structure filled in with audio conversion
|
* \param cvt an SDL_AudioCVT structure filled in with audio conversion
|
||||||
* information
|
* information.
|
||||||
* \param src_format the source format of the audio data; for more info see
|
* \param src_format the source format of the audio data; for more info see
|
||||||
* SDL_AudioFormat
|
* SDL_AudioFormat.
|
||||||
* \param src_channels the number of channels in the source
|
* \param src_channels the number of channels in the source.
|
||||||
* \param src_rate the frequency (sample-frames-per-second) of the source
|
* \param src_rate the frequency (sample-frames-per-second) of the source.
|
||||||
* \param dst_format the destination format of the audio data; for more info
|
* \param dst_format the destination format of the audio data; for more info
|
||||||
* see SDL_AudioFormat
|
* see SDL_AudioFormat.
|
||||||
* \param dst_channels the number of channels in the destination
|
* \param dst_channels the number of channels in the destination.
|
||||||
* \param dst_rate the frequency (sample-frames-per-second) of the destination
|
* \param dst_rate the frequency (sample-frames-per-second) of the
|
||||||
|
* destination.
|
||||||
* \returns 1 if the audio filter is prepared, 0 if no conversion is needed,
|
* \returns 1 if the audio filter is prepared, 0 if no conversion is needed,
|
||||||
* or a negative error code on failure; call SDL_GetError() for more
|
* or a negative error code on failure; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
@@ -991,12 +990,12 @@ typedef struct _SDL_AudioStream SDL_AudioStream;
|
|||||||
/**
|
/**
|
||||||
* Create a new audio stream.
|
* Create a new audio stream.
|
||||||
*
|
*
|
||||||
* \param src_format The format of the source audio
|
* \param src_format The format of the source audio.
|
||||||
* \param src_channels The number of channels of the source audio
|
* \param src_channels The number of channels of the source audio.
|
||||||
* \param src_rate The sampling rate of the source audio
|
* \param src_rate The sampling rate of the source audio.
|
||||||
* \param dst_format The format of the desired audio output
|
* \param dst_format The format of the desired audio output.
|
||||||
* \param dst_channels The number of channels of the desired audio output
|
* \param dst_channels The number of channels of the desired audio output.
|
||||||
* \param dst_rate The sampling rate of the desired audio output
|
* \param dst_rate The sampling rate of the desired audio output.
|
||||||
* \returns 0 on success, or -1 on error.
|
* \returns 0 on success, or -1 on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.7.
|
* \since This function is available since SDL 2.0.7.
|
||||||
@@ -1018,9 +1017,9 @@ extern DECLSPEC SDL_AudioStream * SDLCALL SDL_NewAudioStream(const SDL_AudioForm
|
|||||||
/**
|
/**
|
||||||
* Add data to be converted/resampled to the stream.
|
* Add data to be converted/resampled to the stream.
|
||||||
*
|
*
|
||||||
* \param stream The stream the audio data is being added to
|
* \param stream The stream the audio data is being added to.
|
||||||
* \param buf A pointer to the audio data to add
|
* \param buf A pointer to the audio data to add.
|
||||||
* \param len The number of bytes to write to the stream
|
* \param len The number of bytes to write to the stream.
|
||||||
* \returns 0 on success, or -1 on error.
|
* \returns 0 on success, or -1 on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.7.
|
* \since This function is available since SDL 2.0.7.
|
||||||
@@ -1037,10 +1036,10 @@ extern DECLSPEC int SDLCALL SDL_AudioStreamPut(SDL_AudioStream *stream, const vo
|
|||||||
/**
|
/**
|
||||||
* Get converted/resampled data from the stream
|
* Get converted/resampled data from the stream
|
||||||
*
|
*
|
||||||
* \param stream The stream the audio is being requested from
|
* \param stream The stream the audio is being requested from.
|
||||||
* \param buf A buffer to fill with audio data
|
* \param buf A buffer to fill with audio data.
|
||||||
* \param len The maximum number of bytes to fill
|
* \param len The maximum number of bytes to fill.
|
||||||
* \returns the number of bytes read from the stream, or -1 on error
|
* \returns the number of bytes read from the stream, or -1 on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.7.
|
* \since This function is available since SDL 2.0.7.
|
||||||
*
|
*
|
||||||
@@ -1118,6 +1117,9 @@ extern DECLSPEC void SDLCALL SDL_AudioStreamClear(SDL_AudioStream *stream);
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_FreeAudioStream(SDL_AudioStream *stream);
|
extern DECLSPEC void SDLCALL SDL_FreeAudioStream(SDL_AudioStream *stream);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Maximum volume allowed in calls to SDL_MixAudio and SDL_MixAudioFormat.
|
||||||
|
*/
|
||||||
#define SDL_MIX_MAXVOLUME 128
|
#define SDL_MIX_MAXVOLUME 128
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1132,11 +1134,11 @@ extern DECLSPEC void SDLCALL SDL_FreeAudioStream(SDL_AudioStream *stream);
|
|||||||
* ...where `format` is the obtained format of the audio device from the
|
* ...where `format` is the obtained format of the audio device from the
|
||||||
* legacy SDL_OpenAudio() function.
|
* legacy SDL_OpenAudio() function.
|
||||||
*
|
*
|
||||||
* \param dst the destination for the mixed audio
|
* \param dst the destination for the mixed audio.
|
||||||
* \param src the source audio buffer to be mixed
|
* \param src the source audio buffer to be mixed.
|
||||||
* \param len the length of the audio buffer in bytes
|
* \param len the length of the audio buffer in bytes.
|
||||||
* \param volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME
|
* \param volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME
|
||||||
* for full audio volume
|
* for full audio volume.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1165,13 +1167,13 @@ extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 * dst, const Uint8 * src,
|
|||||||
* SDL_MixAudioFormat() is really only needed when you're mixing a single
|
* SDL_MixAudioFormat() is really only needed when you're mixing a single
|
||||||
* audio stream with a volume adjustment.
|
* audio stream with a volume adjustment.
|
||||||
*
|
*
|
||||||
* \param dst the destination for the mixed audio
|
* \param dst the destination for the mixed audio.
|
||||||
* \param src the source audio buffer to be mixed
|
* \param src the source audio buffer to be mixed.
|
||||||
* \param format the SDL_AudioFormat structure representing the desired audio
|
* \param format the SDL_AudioFormat structure representing the desired audio
|
||||||
* format
|
* format.
|
||||||
* \param len the length of the audio buffer in bytes
|
* \param len the length of the audio buffer in bytes.
|
||||||
* \param volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME
|
* \param volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME
|
||||||
* for full audio volume
|
* for full audio volume.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*/
|
*/
|
||||||
@@ -1215,9 +1217,9 @@ extern DECLSPEC void SDLCALL SDL_MixAudioFormat(Uint8 * dst,
|
|||||||
* from planar audio formats into a non-planar one (see SDL_AudioFormat)
|
* from planar audio formats into a non-planar one (see SDL_AudioFormat)
|
||||||
* before queuing audio.
|
* before queuing audio.
|
||||||
*
|
*
|
||||||
* \param dev the device ID to which we will queue audio
|
* \param dev the device ID to which we will queue audio.
|
||||||
* \param data the data to queue to the device for later playback
|
* \param data the data to queue to the device for later playback.
|
||||||
* \param len the number of bytes (not samples!) to which `data` points
|
* \param len the number of bytes (not samples!) to which `data` points.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -1263,9 +1265,9 @@ extern DECLSPEC int SDLCALL SDL_QueueAudio(SDL_AudioDeviceID dev, const void *da
|
|||||||
* You should not call SDL_LockAudio() on the device before dequeueing; SDL
|
* You should not call SDL_LockAudio() on the device before dequeueing; SDL
|
||||||
* handles locking internally for this function.
|
* handles locking internally for this function.
|
||||||
*
|
*
|
||||||
* \param dev the device ID from which we will dequeue audio
|
* \param dev the device ID from which we will dequeue audio.
|
||||||
* \param data a pointer into where audio data should be copied
|
* \param data a pointer into where audio data should be copied.
|
||||||
* \param len the number of bytes (not samples!) to which (data) points
|
* \param len the number of bytes (not samples!) to which (data) points.
|
||||||
* \returns the number of bytes dequeued, which could be less than requested;
|
* \returns the number of bytes dequeued, which could be less than requested;
|
||||||
* call SDL_GetError() for more information.
|
* call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -1299,7 +1301,7 @@ extern DECLSPEC Uint32 SDLCALL SDL_DequeueAudio(SDL_AudioDeviceID dev, void *dat
|
|||||||
* You should not call SDL_LockAudio() on the device before querying; SDL
|
* You should not call SDL_LockAudio() on the device before querying; SDL
|
||||||
* handles locking internally for this function.
|
* handles locking internally for this function.
|
||||||
*
|
*
|
||||||
* \param dev the device ID of which we will query queued audio size
|
* \param dev the device ID of which we will query queued audio size.
|
||||||
* \returns the number of bytes (not samples!) of queued audio.
|
* \returns the number of bytes (not samples!) of queued audio.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.4.
|
* \since This function is available since SDL 2.0.4.
|
||||||
@@ -1334,7 +1336,7 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetQueuedAudioSize(SDL_AudioDeviceID dev);
|
|||||||
*
|
*
|
||||||
* This function always succeeds and thus returns void.
|
* This function always succeeds and thus returns void.
|
||||||
*
|
*
|
||||||
* \param dev the device ID of which to clear the audio queue
|
* \param dev the device ID of which to clear the audio queue.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.4.
|
* \since This function is available since SDL 2.0.4.
|
||||||
*
|
*
|
||||||
@@ -1406,7 +1408,7 @@ extern DECLSPEC void SDLCALL SDL_LockAudio(void);
|
|||||||
* at once, not only will you block the audio callback, you'll block the other
|
* at once, not only will you block the audio callback, you'll block the other
|
||||||
* thread.
|
* thread.
|
||||||
*
|
*
|
||||||
* \param dev the ID of the device to be locked
|
* \param dev the ID of the device to be locked.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1439,7 +1441,7 @@ extern DECLSPEC void SDLCALL SDL_UnlockAudio(void);
|
|||||||
*
|
*
|
||||||
* This function should be paired with a previous SDL_LockAudioDevice() call.
|
* This function should be paired with a previous SDL_LockAudioDevice() call.
|
||||||
*
|
*
|
||||||
* \param dev the ID of the device to be unlocked
|
* \param dev the ID of the device to be unlocked.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1481,7 +1483,7 @@ extern DECLSPEC void SDLCALL SDL_CloseAudio(void);
|
|||||||
* The device ID is invalid as soon as the device is closed, and is eligible
|
* The device ID is invalid as soon as the device is closed, and is eligible
|
||||||
* for reuse in a new SDL_OpenAudioDevice() call immediately.
|
* for reuse in a new SDL_OpenAudioDevice() call immediately.
|
||||||
*
|
*
|
||||||
* \param dev an audio device previously opened with SDL_OpenAudioDevice()
|
* \param dev an audio device previously opened with SDL_OpenAudioDevice().
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_bits.h
|
* # CategoryBits
|
||||||
*
|
*
|
||||||
* Functions for fiddling with bits and bitmasks.
|
* Functions for fiddling with bits and bitmasks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_bits_h_
|
#ifndef SDL_bits_h_
|
||||||
@@ -56,6 +56,12 @@ extern __inline int _SDL_bsr_watcom(Uint32);
|
|||||||
modify exact [eax] nomemory;
|
modify exact [eax] nomemory;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this function to get the index of the most significant (set) bit in a
|
||||||
|
*
|
||||||
|
* \param x the number to find the MSB of.
|
||||||
|
* \returns the index of the most significant bit of x, or -1 if x is 0.
|
||||||
|
*/
|
||||||
SDL_FORCE_INLINE int
|
SDL_FORCE_INLINE int
|
||||||
SDL_MostSignificantBitIndex32(Uint32 x)
|
SDL_MostSignificantBitIndex32(Uint32 x)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_blendmode.h
|
* # CategoryBlendmode
|
||||||
*
|
*
|
||||||
* Header file declaring the SDL_BlendMode enumeration
|
* Header file declaring the SDL_BlendMode enumeration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_blendmode_h_
|
#ifndef SDL_blendmode_h_
|
||||||
@@ -35,9 +35,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The blend mode used in SDL_RenderCopy() and drawing operations.
|
* The blend mode used in SDL_RenderCopy() and drawing operations.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_BlendMode
|
||||||
{
|
{
|
||||||
SDL_BLENDMODE_NONE = 0x00000000, /**< no blending
|
SDL_BLENDMODE_NONE = 0x00000000, /**< no blending
|
||||||
dstRGBA = srcRGBA */
|
dstRGBA = srcRGBA */
|
||||||
@@ -60,21 +60,22 @@ typedef enum
|
|||||||
} SDL_BlendMode;
|
} SDL_BlendMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The blend operation used when combining source and destination pixel components
|
* The blend operation used when combining source and destination pixel
|
||||||
|
* components
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_BlendOperation
|
||||||
{
|
{
|
||||||
SDL_BLENDOPERATION_ADD = 0x1, /**< dst + src: supported by all renderers */
|
SDL_BLENDOPERATION_ADD = 0x1, /**< dst + src: supported by all renderers */
|
||||||
SDL_BLENDOPERATION_SUBTRACT = 0x2, /**< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES */
|
SDL_BLENDOPERATION_SUBTRACT = 0x2, /**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES */
|
||||||
SDL_BLENDOPERATION_REV_SUBTRACT = 0x3, /**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES */
|
SDL_BLENDOPERATION_REV_SUBTRACT = 0x3, /**< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES */
|
||||||
SDL_BLENDOPERATION_MINIMUM = 0x4, /**< min(dst, src) : supported by D3D9, D3D11 */
|
SDL_BLENDOPERATION_MINIMUM = 0x4, /**< min(dst, src) : supported by D3D9, D3D11 */
|
||||||
SDL_BLENDOPERATION_MAXIMUM = 0x5 /**< max(dst, src) : supported by D3D9, D3D11 */
|
SDL_BLENDOPERATION_MAXIMUM = 0x5 /**< max(dst, src) : supported by D3D9, D3D11 */
|
||||||
} SDL_BlendOperation;
|
} SDL_BlendOperation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The normalized factor used to multiply pixel components
|
* The normalized factor used to multiply pixel components
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_BlendFactor
|
||||||
{
|
{
|
||||||
SDL_BLENDFACTOR_ZERO = 0x1, /**< 0, 0, 0, 0 */
|
SDL_BLENDFACTOR_ZERO = 0x1, /**< 0, 0, 0, 0 */
|
||||||
SDL_BLENDFACTOR_ONE = 0x2, /**< 1, 1, 1, 1 */
|
SDL_BLENDFACTOR_ONE = 0x2, /**< 1, 1, 1, 1 */
|
||||||
@@ -158,18 +159,18 @@ typedef enum
|
|||||||
* case.
|
* case.
|
||||||
*
|
*
|
||||||
* \param srcColorFactor the SDL_BlendFactor applied to the red, green, and
|
* \param srcColorFactor the SDL_BlendFactor applied to the red, green, and
|
||||||
* blue components of the source pixels
|
* blue components of the source pixels.
|
||||||
* \param dstColorFactor the SDL_BlendFactor applied to the red, green, and
|
* \param dstColorFactor the SDL_BlendFactor applied to the red, green, and
|
||||||
* blue components of the destination pixels
|
* blue components of the destination pixels.
|
||||||
* \param colorOperation the SDL_BlendOperation used to combine the red,
|
* \param colorOperation the SDL_BlendOperation used to combine the red,
|
||||||
* green, and blue components of the source and
|
* green, and blue components of the source and
|
||||||
* destination pixels
|
* destination pixels.
|
||||||
* \param srcAlphaFactor the SDL_BlendFactor applied to the alpha component of
|
* \param srcAlphaFactor the SDL_BlendFactor applied to the alpha component of
|
||||||
* the source pixels
|
* the source pixels.
|
||||||
* \param dstAlphaFactor the SDL_BlendFactor applied to the alpha component of
|
* \param dstAlphaFactor the SDL_BlendFactor applied to the alpha component of
|
||||||
* the destination pixels
|
* the destination pixels.
|
||||||
* \param alphaOperation the SDL_BlendOperation used to combine the alpha
|
* \param alphaOperation the SDL_BlendOperation used to combine the alpha
|
||||||
* component of the source and destination pixels
|
* component of the source and destination pixels.
|
||||||
* \returns an SDL_BlendMode that represents the chosen factors and
|
* \returns an SDL_BlendMode that represents the chosen factors and
|
||||||
* operations.
|
* operations.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_clipboard.h
|
* # CategoryClipboard
|
||||||
*
|
*
|
||||||
* Include file for SDL clipboard handling
|
* Include file for SDL clipboard handling
|
||||||
*/
|
*/
|
||||||
@@ -41,7 +41,7 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* Put UTF-8 text into the clipboard.
|
* Put UTF-8 text into the clipboard.
|
||||||
*
|
*
|
||||||
* \param text the text to store in the clipboard
|
* \param text the text to store in the clipboard.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -85,7 +85,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
|
|||||||
/**
|
/**
|
||||||
* Put UTF-8 text into the primary selection.
|
* Put UTF-8 text into the primary selection.
|
||||||
*
|
*
|
||||||
* \param text the text to store in the primary selection
|
* \param text the text to store in the primary selection.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,313 +19,41 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_config_windows_h_
|
#ifndef SDL_config_h_
|
||||||
#define SDL_config_windows_h_
|
|
||||||
#define SDL_config_h_
|
#define SDL_config_h_
|
||||||
|
|
||||||
#include "SDL_platform.h"
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
/* winsdkver.h defines _WIN32_MAXVER for SDK version detection. It is present since at least the Windows 7 SDK,
|
/* WIKI CATEGORY: - */
|
||||||
* but out of caution we'll only use it if the compiler supports __has_include() to confirm its presence.
|
|
||||||
* If your compiler doesn't support __has_include() but you have winsdkver.h, define HAVE_WINSDKVER_H. */
|
|
||||||
#if !defined(HAVE_WINSDKVER_H) && defined(__has_include)
|
|
||||||
#if __has_include(<winsdkver.h>)
|
|
||||||
#define HAVE_WINSDKVER_H 1
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_WINSDKVER_H
|
/* Add any platform that doesn't build using the configure system. */
|
||||||
#include <winsdkver.h>
|
#if defined(__WIN32__)
|
||||||
#endif
|
#include "SDL_config_windows.h"
|
||||||
|
#elif defined(__WINRT__)
|
||||||
/* sdkddkver.h defines more specific SDK version numbers. This is needed because older versions of the
|
#include "SDL_config_winrt.h"
|
||||||
* Windows 10 SDK have broken declarations for the C API for DirectX 12. */
|
#elif defined(__WINGDK__)
|
||||||
#if !defined(HAVE_SDKDDKVER_H) && defined(__has_include)
|
#include "SDL_config_wingdk.h"
|
||||||
#if __has_include(<sdkddkver.h>)
|
#elif defined(__XBOXONE__) || defined(__XBOXSERIES__)
|
||||||
#define HAVE_SDKDDKVER_H 1
|
#include "SDL_config_xbox.h"
|
||||||
#endif
|
#elif defined(__MACOSX__)
|
||||||
#endif
|
#include "SDL_config_macosx.h"
|
||||||
|
#elif defined(__IPHONEOS__)
|
||||||
#ifdef HAVE_SDKDDKVER_H
|
#include "SDL_config_iphoneos.h"
|
||||||
#include <sdkddkver.h>
|
#elif defined(__ANDROID__)
|
||||||
#endif
|
#include "SDL_config_android.h"
|
||||||
|
#elif defined(__OS2__)
|
||||||
/* This is a set of defines to configure the SDL features */
|
#include "SDL_config_os2.h"
|
||||||
|
#elif defined(__EMSCRIPTEN__)
|
||||||
#if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_)
|
#include "SDL_config_emscripten.h"
|
||||||
/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
|
#elif defined(__NGAGE__)
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
#include "SDL_config_ngage.h"
|
||||||
typedef signed __int8 int8_t;
|
|
||||||
typedef unsigned __int8 uint8_t;
|
|
||||||
typedef signed __int16 int16_t;
|
|
||||||
typedef unsigned __int16 uint16_t;
|
|
||||||
typedef signed __int32 int32_t;
|
|
||||||
typedef unsigned __int32 uint32_t;
|
|
||||||
typedef signed __int64 int64_t;
|
|
||||||
typedef unsigned __int64 uint64_t;
|
|
||||||
#ifndef _UINTPTR_T_DEFINED
|
|
||||||
#ifdef _WIN64
|
|
||||||
typedef unsigned __int64 uintptr_t;
|
|
||||||
#else
|
#else
|
||||||
typedef unsigned int uintptr_t;
|
/* This is a minimal configuration just to get SDL running on new platforms. */
|
||||||
#endif
|
#include "SDL_config_minimal.h"
|
||||||
#define _UINTPTR_T_DEFINED
|
#endif /* platform config */
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define HAVE_STDINT_H 1
|
|
||||||
#endif /* Visual Studio 2008 */
|
|
||||||
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
|
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef USING_GENERATED_CONFIG_H
|
||||||
# define SIZEOF_VOIDP 8
|
#error Wrong SDL_config.h, check your include path?
|
||||||
#else
|
|
||||||
# define SIZEOF_VOIDP 4
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __clang__
|
#endif /* SDL_config_h_ */
|
||||||
# define HAVE_GCC_ATOMICS 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define HAVE_DDRAW_H 1
|
|
||||||
#define HAVE_DINPUT_H 1
|
|
||||||
#define HAVE_DSOUND_H 1
|
|
||||||
#ifndef __WATCOMC__
|
|
||||||
#define HAVE_DXGI_H 1
|
|
||||||
#define HAVE_XINPUT_H 1
|
|
||||||
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */
|
|
||||||
#define HAVE_WINDOWS_GAMING_INPUT_H 1
|
|
||||||
#endif
|
|
||||||
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0602 /* Windows 8 SDK */
|
|
||||||
#define HAVE_D3D11_H 1
|
|
||||||
#define HAVE_ROAPI_H 1
|
|
||||||
#endif
|
|
||||||
#if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION > 0x0A000008 /* 10.0.19041.0 */
|
|
||||||
#define HAVE_D3D12_H 1
|
|
||||||
#endif
|
|
||||||
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */
|
|
||||||
#define HAVE_SHELLSCALINGAPI_H 1
|
|
||||||
#endif
|
|
||||||
#define HAVE_MMDEVICEAPI_H 1
|
|
||||||
#define HAVE_AUDIOCLIENT_H 1
|
|
||||||
#define HAVE_TPCSHRD_H 1
|
|
||||||
#define HAVE_SENSORSAPI_H 1
|
|
||||||
#endif
|
|
||||||
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
|
||||||
#define HAVE_IMMINTRIN_H 1
|
|
||||||
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
|
||||||
# if __has_include(<immintrin.h>)
|
|
||||||
# define HAVE_IMMINTRIN_H 1
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
|
|
||||||
#ifdef HAVE_LIBC
|
|
||||||
/* Useful headers */
|
|
||||||
#define STDC_HEADERS 1
|
|
||||||
#define HAVE_CTYPE_H 1
|
|
||||||
#define HAVE_FLOAT_H 1
|
|
||||||
#define HAVE_LIMITS_H 1
|
|
||||||
#define HAVE_MATH_H 1
|
|
||||||
#define HAVE_SIGNAL_H 1
|
|
||||||
#define HAVE_STDIO_H 1
|
|
||||||
#define HAVE_STRING_H 1
|
|
||||||
|
|
||||||
/* C library functions */
|
|
||||||
#define HAVE_MALLOC 1
|
|
||||||
#define HAVE_CALLOC 1
|
|
||||||
#define HAVE_REALLOC 1
|
|
||||||
#define HAVE_FREE 1
|
|
||||||
#define HAVE_ALLOCA 1
|
|
||||||
/* OpenWatcom requires specific calling conventions for qsort and bsearch */
|
|
||||||
#ifndef __WATCOMC__
|
|
||||||
#define HAVE_QSORT 1
|
|
||||||
#define HAVE_BSEARCH 1
|
|
||||||
#endif
|
|
||||||
#define HAVE_ABS 1
|
|
||||||
#define HAVE_MEMSET 1
|
|
||||||
#define HAVE_MEMCPY 1
|
|
||||||
#define HAVE_MEMMOVE 1
|
|
||||||
#define HAVE_MEMCMP 1
|
|
||||||
#define HAVE_STRLEN 1
|
|
||||||
#define HAVE__STRREV 1
|
|
||||||
/* These functions have security warnings, so we won't use them */
|
|
||||||
/* #undef HAVE__STRUPR */
|
|
||||||
/* #undef HAVE__STRLWR */
|
|
||||||
#define HAVE_STRCHR 1
|
|
||||||
#define HAVE_STRRCHR 1
|
|
||||||
#define HAVE_STRSTR 1
|
|
||||||
/* #undef HAVE_STRTOK_R */
|
|
||||||
/* These functions have security warnings, so we won't use them */
|
|
||||||
/* #undef HAVE__LTOA */
|
|
||||||
/* #undef HAVE__ULTOA */
|
|
||||||
#define HAVE_STRTOL 1
|
|
||||||
#define HAVE_STRTOUL 1
|
|
||||||
#define HAVE_STRTOD 1
|
|
||||||
#define HAVE_ATOI 1
|
|
||||||
#define HAVE_ATOF 1
|
|
||||||
#define HAVE_STRCMP 1
|
|
||||||
#define HAVE_STRNCMP 1
|
|
||||||
#define HAVE__STRICMP 1
|
|
||||||
#define HAVE__STRNICMP 1
|
|
||||||
#define HAVE__WCSICMP 1
|
|
||||||
#define HAVE__WCSNICMP 1
|
|
||||||
#define HAVE__WCSDUP 1
|
|
||||||
#define HAVE_ACOS 1
|
|
||||||
#define HAVE_ASIN 1
|
|
||||||
#define HAVE_ATAN 1
|
|
||||||
#define HAVE_ATAN2 1
|
|
||||||
#define HAVE_CEIL 1
|
|
||||||
#define HAVE_COS 1
|
|
||||||
#define HAVE_EXP 1
|
|
||||||
#define HAVE_FABS 1
|
|
||||||
#define HAVE_FLOOR 1
|
|
||||||
#define HAVE_FMOD 1
|
|
||||||
#define HAVE_LOG 1
|
|
||||||
#define HAVE_LOG10 1
|
|
||||||
#define HAVE_POW 1
|
|
||||||
#define HAVE_SIN 1
|
|
||||||
#define HAVE_SQRT 1
|
|
||||||
#define HAVE_TAN 1
|
|
||||||
#ifndef __WATCOMC__
|
|
||||||
#define HAVE_ACOSF 1
|
|
||||||
#define HAVE_ASINF 1
|
|
||||||
#define HAVE_ATANF 1
|
|
||||||
#define HAVE_ATAN2F 1
|
|
||||||
#define HAVE_CEILF 1
|
|
||||||
#define HAVE__COPYSIGN 1
|
|
||||||
#define HAVE_COSF 1
|
|
||||||
#define HAVE_EXPF 1
|
|
||||||
#define HAVE_FABSF 1
|
|
||||||
#define HAVE_FLOORF 1
|
|
||||||
#define HAVE_FMODF 1
|
|
||||||
#define HAVE_LOGF 1
|
|
||||||
#define HAVE_LOG10F 1
|
|
||||||
#define HAVE_POWF 1
|
|
||||||
#define HAVE_SINF 1
|
|
||||||
#define HAVE_SQRTF 1
|
|
||||||
#define HAVE_TANF 1
|
|
||||||
#endif
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
/* These functions were added with the VC++ 2013 C runtime library */
|
|
||||||
#if _MSC_VER >= 1800
|
|
||||||
#define HAVE_STRTOLL 1
|
|
||||||
#define HAVE_STRTOULL 1
|
|
||||||
#define HAVE_VSSCANF 1
|
|
||||||
#define HAVE_LROUND 1
|
|
||||||
#define HAVE_LROUNDF 1
|
|
||||||
#define HAVE_ROUND 1
|
|
||||||
#define HAVE_ROUNDF 1
|
|
||||||
#define HAVE_SCALBN 1
|
|
||||||
#define HAVE_SCALBNF 1
|
|
||||||
#define HAVE_TRUNC 1
|
|
||||||
#define HAVE_TRUNCF 1
|
|
||||||
#endif
|
|
||||||
/* This function is available with at least the VC++ 2008 C runtime library */
|
|
||||||
#if _MSC_VER >= 1400
|
|
||||||
#define HAVE__FSEEKI64 1
|
|
||||||
#endif
|
|
||||||
#ifdef _USE_MATH_DEFINES
|
|
||||||
#define HAVE_M_PI 1
|
|
||||||
#endif
|
|
||||||
#elif defined(__WATCOMC__)
|
|
||||||
#define HAVE__FSEEKI64 1
|
|
||||||
#define HAVE_STRTOLL 1
|
|
||||||
#define HAVE_STRTOULL 1
|
|
||||||
#define HAVE_VSSCANF 1
|
|
||||||
#define HAVE_ROUND 1
|
|
||||||
#define HAVE_SCALBN 1
|
|
||||||
#define HAVE_TRUNC 1
|
|
||||||
#else
|
|
||||||
#define HAVE_M_PI 1
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define HAVE_STDARG_H 1
|
|
||||||
#define HAVE_STDDEF_H 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enable various audio drivers */
|
|
||||||
#if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H)
|
|
||||||
#define SDL_AUDIO_DRIVER_WASAPI 1
|
|
||||||
#endif
|
|
||||||
#define SDL_AUDIO_DRIVER_DSOUND 1
|
|
||||||
#define SDL_AUDIO_DRIVER_WINMM 1
|
|
||||||
#define SDL_AUDIO_DRIVER_DISK 1
|
|
||||||
#define SDL_AUDIO_DRIVER_DUMMY 1
|
|
||||||
|
|
||||||
/* Enable various input drivers */
|
|
||||||
#define SDL_JOYSTICK_DINPUT 1
|
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
|
||||||
#ifndef __WINRT__
|
|
||||||
#define SDL_JOYSTICK_RAWINPUT 1
|
|
||||||
#endif
|
|
||||||
#define SDL_JOYSTICK_VIRTUAL 1
|
|
||||||
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
|
||||||
#define SDL_JOYSTICK_WGI 1
|
|
||||||
#endif
|
|
||||||
#define SDL_JOYSTICK_XINPUT 1
|
|
||||||
#define SDL_HAPTIC_DINPUT 1
|
|
||||||
#define SDL_HAPTIC_XINPUT 1
|
|
||||||
|
|
||||||
/* Enable the sensor driver */
|
|
||||||
#ifdef HAVE_SENSORSAPI_H
|
|
||||||
#define SDL_SENSOR_WINDOWS 1
|
|
||||||
#else
|
|
||||||
#define SDL_SENSOR_DUMMY 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enable various shared object loading systems */
|
|
||||||
#define SDL_LOADSO_WINDOWS 1
|
|
||||||
|
|
||||||
/* Enable various threading systems */
|
|
||||||
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
|
||||||
#define SDL_THREAD_WINDOWS 1
|
|
||||||
|
|
||||||
/* Enable various timer systems */
|
|
||||||
#define SDL_TIMER_WINDOWS 1
|
|
||||||
|
|
||||||
/* Enable various video drivers */
|
|
||||||
#define SDL_VIDEO_DRIVER_DUMMY 1
|
|
||||||
#define SDL_VIDEO_DRIVER_WINDOWS 1
|
|
||||||
|
|
||||||
#ifndef SDL_VIDEO_RENDER_D3D
|
|
||||||
#define SDL_VIDEO_RENDER_D3D 1
|
|
||||||
#endif
|
|
||||||
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
|
||||||
#define SDL_VIDEO_RENDER_D3D11 1
|
|
||||||
#endif
|
|
||||||
#if !defined(SDL_VIDEO_RENDER_D3D12) && defined(HAVE_D3D12_H)
|
|
||||||
#define SDL_VIDEO_RENDER_D3D12 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enable OpenGL support */
|
|
||||||
#ifndef SDL_VIDEO_OPENGL
|
|
||||||
#define SDL_VIDEO_OPENGL 1
|
|
||||||
#endif
|
|
||||||
#ifndef SDL_VIDEO_OPENGL_WGL
|
|
||||||
#define SDL_VIDEO_OPENGL_WGL 1
|
|
||||||
#endif
|
|
||||||
#ifndef SDL_VIDEO_RENDER_OGL
|
|
||||||
#define SDL_VIDEO_RENDER_OGL 1
|
|
||||||
#endif
|
|
||||||
#ifndef SDL_VIDEO_RENDER_OGL_ES2
|
|
||||||
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
|
||||||
#endif
|
|
||||||
#ifndef SDL_VIDEO_OPENGL_ES2
|
|
||||||
#define SDL_VIDEO_OPENGL_ES2 1
|
|
||||||
#endif
|
|
||||||
#ifndef SDL_VIDEO_OPENGL_EGL
|
|
||||||
#define SDL_VIDEO_OPENGL_EGL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Enable Vulkan support */
|
|
||||||
#define SDL_VIDEO_VULKAN 1
|
|
||||||
|
|
||||||
/* Enable system power support */
|
|
||||||
#define SDL_POWER_WINDOWS 1
|
|
||||||
|
|
||||||
/* Enable filesystem support */
|
|
||||||
#define SDL_FILESYSTEM_WINDOWS 1
|
|
||||||
|
|
||||||
#endif /* SDL_config_windows_h_ */
|
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
|
||||||
@@ -0,0 +1,194 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_android_h_
|
||||||
|
#define SDL_config_android_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file SDL_config_android.h
|
||||||
|
*
|
||||||
|
* This is a configuration that can be used to build SDL for Android
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#define HAVE_GCC_ATOMICS 1
|
||||||
|
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_ALLOCA_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_DLOPEN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRLCPY 1
|
||||||
|
#define HAVE_STRLCAT 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOK_R 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_STRCASESTR 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COPYSIGNF 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE_SIGACTION 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_NANOSLEEP 1
|
||||||
|
#define HAVE_SYSCONF 1
|
||||||
|
#define HAVE_CLOCK_GETTIME 1
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#define SDL_AUDIO_DRIVER_ANDROID 1
|
||||||
|
#define SDL_AUDIO_DRIVER_OPENSLES 1
|
||||||
|
#define SDL_AUDIO_DRIVER_AAUDIO 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_ANDROID 1
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#define SDL_HAPTIC_ANDROID 1
|
||||||
|
|
||||||
|
/* Enable sensor driver */
|
||||||
|
#define SDL_SENSOR_ANDROID 1
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_DLOPEN 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_PTHREAD 1
|
||||||
|
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_UNIX 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_ANDROID 1
|
||||||
|
|
||||||
|
/* Enable OpenGL ES */
|
||||||
|
#define SDL_VIDEO_OPENGL_ES 1
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES 1
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
|
||||||
|
/* Enable Vulkan support */
|
||||||
|
/* Android does not support Vulkan in native code using the "armeabi" ABI. */
|
||||||
|
#if defined(__ARM_ARCH) && __ARM_ARCH < 7
|
||||||
|
#define SDL_VIDEO_VULKAN 0
|
||||||
|
#else
|
||||||
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_ANDROID 1
|
||||||
|
|
||||||
|
/* Enable the filesystem driver */
|
||||||
|
#define SDL_FILESYSTEM_ANDROID 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_android_h_ */
|
||||||
@@ -0,0 +1,218 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _SDL_config_emscripten_h_
|
||||||
|
#define _SDL_config_emscripten_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file SDL_config_emscripten.h
|
||||||
|
*
|
||||||
|
* This is a configuration that can be used to build SDL for Emscripten.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
#define HAVE_GCC_ATOMICS 1
|
||||||
|
|
||||||
|
/* Useful headers */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_ALLOCA_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_ICONV_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MALLOC_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
#define HAVE_WCHAR_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_DLOPEN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_WCSLEN 1
|
||||||
|
#define HAVE_WCSDUP 1
|
||||||
|
#define HAVE_WCSSTR 1
|
||||||
|
#define HAVE_WCSCMP 1
|
||||||
|
#define HAVE_WCSNCMP 1
|
||||||
|
#define HAVE_WCSCASECMP 1
|
||||||
|
#define HAVE_WCSNCASECMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRLCPY 1
|
||||||
|
#define HAVE_STRLCAT 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOK_R 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_SSCANF 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COPYSIGNF 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE_FSEEKO 1
|
||||||
|
#define HAVE_FSEEKO64 1
|
||||||
|
#define HAVE_SIGACTION 1
|
||||||
|
#define HAVE_SA_SIGACTION 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_NANOSLEEP 1
|
||||||
|
#define HAVE_SYSCONF 1
|
||||||
|
#define HAVE_CLOCK_GETTIME 1
|
||||||
|
/* #undef HAVE_GETPAGESIZE */
|
||||||
|
#define HAVE_MPROTECT 1
|
||||||
|
#define HAVE_ICONV 1
|
||||||
|
|
||||||
|
/* SDL internal assertion support */
|
||||||
|
/* #undef SDL_DEFAULT_ASSERT_LEVEL */
|
||||||
|
|
||||||
|
#define SDL_CPUINFO_DISABLED 1
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
#define SDL_HIDAPI_DISABLED 1
|
||||||
|
#ifndef __EMSCRIPTEN_PTHREADS__
|
||||||
|
#define SDL_THREADS_DISABLED 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_EMSCRIPTEN 1
|
||||||
|
|
||||||
|
/* Enable various sensor drivers */
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_DLOPEN 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#ifdef __EMSCRIPTEN_PTHREADS__
|
||||||
|
#define SDL_THREAD_PTHREAD 1
|
||||||
|
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_UNIX 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1
|
||||||
|
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_ES */
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_BGL */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_CGL */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_GLX */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_WGL */
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_OSMESA */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_EMSCRIPTEN 1
|
||||||
|
|
||||||
|
/* Enable system filesystem support */
|
||||||
|
#define SDL_FILESYSTEM_EMSCRIPTEN 1
|
||||||
|
|
||||||
|
#endif /* _SDL_config_emscripten_h_ */
|
||||||
@@ -0,0 +1,217 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_iphoneos_h_
|
||||||
|
#define SDL_config_iphoneos_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_GCC_ATOMICS 1
|
||||||
|
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_ALLOCA_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
/* The libunwind functions are only available on x86 */
|
||||||
|
/* #undef HAVE_LIBUNWIND_H */
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_DLOPEN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRLCPY 1
|
||||||
|
#define HAVE_STRLCAT 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOK_R 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_STRCASESTR 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COPYSIGNF 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE_SIGACTION 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_NANOSLEEP 1
|
||||||
|
#define HAVE_SYSCONF 1
|
||||||
|
#define HAVE_SYSCTLBYNAME 1
|
||||||
|
#define HAVE_O_CLOEXEC 1
|
||||||
|
|
||||||
|
/* enable iPhone version of Core Audio driver */
|
||||||
|
#define SDL_AUDIO_DRIVER_COREAUDIO 1
|
||||||
|
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
|
||||||
|
#define SDL_HAPTIC_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable joystick support */
|
||||||
|
/* Only enable HIDAPI support if you want to support Steam Controllers on iOS and tvOS */
|
||||||
|
/*#define SDL_JOYSTICK_HIDAPI 1*/
|
||||||
|
#define SDL_JOYSTICK_MFI 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
|
||||||
|
#ifdef __TVOS__
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
#else
|
||||||
|
/* Enable the CoreMotion sensor driver */
|
||||||
|
#define SDL_SENSOR_COREMOTION 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable Unix style SO loading */
|
||||||
|
#define SDL_LOADSO_DLOPEN 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_PTHREAD 1
|
||||||
|
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_UNIX 1
|
||||||
|
|
||||||
|
/* Supported video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_UIKIT 1
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable OpenGL ES */
|
||||||
|
#if !TARGET_OS_MACCATALYST
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#define SDL_VIDEO_OPENGL_ES 1
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES 1
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Metal supported on 64-bit devices running iOS 8.0 and tvOS 9.0 and newer
|
||||||
|
Also supported in simulator from iOS 13.0 and tvOS 13.0
|
||||||
|
*/
|
||||||
|
#if (TARGET_OS_SIMULATOR && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || (__TV_OS_VERSION_MIN_REQUIRED >= 130000))) || (!TARGET_CPU_ARM && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 90000)))
|
||||||
|
#define SDL_PLATFORM_SUPPORTS_METAL 1
|
||||||
|
#else
|
||||||
|
#define SDL_PLATFORM_SUPPORTS_METAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_RENDER_METAL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_METAL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_UIKIT 1
|
||||||
|
|
||||||
|
/* enable iPhone keyboard support */
|
||||||
|
#define SDL_IPHONE_KEYBOARD 1
|
||||||
|
|
||||||
|
/* enable iOS extended launch screen */
|
||||||
|
#define SDL_IPHONE_LAUNCHSCREEN 1
|
||||||
|
|
||||||
|
/* enable filesystem support */
|
||||||
|
#define SDL_FILESYSTEM_COCOA 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_iphoneos_h_ */
|
||||||
@@ -0,0 +1,277 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_macosx_h_
|
||||||
|
#define SDL_config_macosx_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
|
||||||
|
#include <AvailabilityMacros.h>
|
||||||
|
|
||||||
|
/* This is a set of defines to configure the SDL features */
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Useful headers */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_ALLOCA_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
#define HAVE_LIBUNWIND_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_DLOPEN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRLCPY 1
|
||||||
|
#define HAVE_STRLCAT 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOK_R 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_STRCASESTR 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COPYSIGNF 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE_SIGACTION 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_NANOSLEEP 1
|
||||||
|
#define HAVE_SYSCONF 1
|
||||||
|
#define HAVE_SYSCTLBYNAME 1
|
||||||
|
|
||||||
|
#if defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
||||||
|
# if __has_include(<immintrin.h>)
|
||||||
|
# define HAVE_IMMINTRIN_H 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070)
|
||||||
|
#define HAVE_O_CLOEXEC 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_GCC_ATOMICS 1
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#define SDL_AUDIO_DRIVER_COREAUDIO 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#define SDL_JOYSTICK_IOKIT 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#define SDL_HAPTIC_IOKIT 1
|
||||||
|
|
||||||
|
/* The MFI controller support requires ARC Objective C runtime */
|
||||||
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
|
||||||
|
#define SDL_JOYSTICK_MFI 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable the dummy sensor driver */
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_DLOPEN 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_PTHREAD 1
|
||||||
|
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_UNIX 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_COCOA 1
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#undef SDL_VIDEO_DRIVER_X11
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/opt/X11/lib/libX11.6.dylib"
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/opt/X11/lib/libXext.6.dylib"
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/opt/X11/lib/libXi.6.dylib"
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/opt/X11/lib/libXrandr.2.dylib"
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/opt/X11/lib/libXss.1.dylib"
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_XDBE 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_XRANDR 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
|
||||||
|
|
||||||
|
#ifdef MAC_OS_X_VERSION_10_8
|
||||||
|
/*
|
||||||
|
* No matter the versions targeted, this is the 10.8 or later SDK, so you have
|
||||||
|
* to use the external Xquartz, which is a more modern Xlib. Previous SDKs
|
||||||
|
* used an older Xlib.
|
||||||
|
*/
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL
|
||||||
|
#define SDL_VIDEO_RENDER_OGL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL_ES2
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Metal only supported on 64-bit architectures with 10.11+ */
|
||||||
|
#if TARGET_RT_64_BIT && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
|
||||||
|
#define SDL_PLATFORM_SUPPORTS_METAL 1
|
||||||
|
#else
|
||||||
|
#define SDL_PLATFORM_SUPPORTS_METAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_RENDER_METAL
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_RENDER_METAL 1
|
||||||
|
#else
|
||||||
|
#define SDL_VIDEO_RENDER_METAL 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
#ifndef SDL_VIDEO_OPENGL
|
||||||
|
#define SDL_VIDEO_OPENGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_ES2
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_EGL
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_CGL
|
||||||
|
#define SDL_VIDEO_OPENGL_CGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_GLX
|
||||||
|
#define SDL_VIDEO_OPENGL_GLX 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable Vulkan and Metal support */
|
||||||
|
#ifndef SDL_VIDEO_VULKAN
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
#else
|
||||||
|
#define SDL_VIDEO_VULKAN 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_METAL
|
||||||
|
#if SDL_PLATFORM_SUPPORTS_METAL
|
||||||
|
#define SDL_VIDEO_METAL 1
|
||||||
|
#else
|
||||||
|
#define SDL_VIDEO_METAL 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_MACOSX 1
|
||||||
|
|
||||||
|
/* enable filesystem support */
|
||||||
|
#define SDL_FILESYSTEM_COCOA 1
|
||||||
|
|
||||||
|
/* Enable assembly routines */
|
||||||
|
#ifdef __ppc__
|
||||||
|
#define SDL_ALTIVEC_BLITTERS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* SDL_config_macosx_h_ */
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_minimal_h_
|
||||||
|
#define SDL_config_minimal_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file SDL_config_minimal.h
|
||||||
|
*
|
||||||
|
* This is the minimal configuration that can be used to build SDL.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
|
||||||
|
#if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_)
|
||||||
|
/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
|
typedef signed __int8 int8_t;
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef signed __int16 int16_t;
|
||||||
|
typedef unsigned __int16 uint16_t;
|
||||||
|
typedef signed __int32 int32_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
typedef signed __int64 int64_t;
|
||||||
|
typedef unsigned __int64 uint64_t;
|
||||||
|
#ifndef _UINTPTR_T_DEFINED
|
||||||
|
#ifdef _WIN64
|
||||||
|
typedef unsigned __int64 uintptr_t;
|
||||||
|
#else
|
||||||
|
typedef unsigned int uintptr_t;
|
||||||
|
#endif
|
||||||
|
#define _UINTPTR_T_DEFINED
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#endif /* Visual Studio 2008 */
|
||||||
|
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
|
||||||
|
#define SDL_JOYSTICK_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub HIDAPI */
|
||||||
|
#define SDL_HIDAPI_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub sensor driver (src/sensor/dummy/\*.c) */
|
||||||
|
#define SDL_SENSOR_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
|
||||||
|
#define SDL_LOADSO_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub thread support (src/thread/generic/\*.c) */
|
||||||
|
#define SDL_THREADS_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub timer support (src/timer/dummy/\*.c) */
|
||||||
|
#define SDL_TIMERS_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the dummy video driver (src/video/dummy/\*.c) */
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
|
||||||
|
#define SDL_FILESYSTEM_DUMMY 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_minimal_h_ */
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_ngage_h_
|
||||||
|
#define SDL_config_ngage_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
typedef signed char int8_t;
|
||||||
|
typedef unsigned char uint8_t;
|
||||||
|
typedef signed short int16_t;
|
||||||
|
typedef unsigned short uint16_t;
|
||||||
|
typedef signed int int32_t;
|
||||||
|
typedef unsigned int uint32_t;
|
||||||
|
typedef signed long long int64_t;
|
||||||
|
typedef unsigned long long uint64_t;
|
||||||
|
typedef unsigned long uintptr_t;
|
||||||
|
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define SDL_MAIN_NEEDED 1
|
||||||
|
#define LACKS_SYS_MMAN_H 1
|
||||||
|
|
||||||
|
/* Enable the N-Gage thread support (src/thread/ngage/\*.c) */
|
||||||
|
#define SDL_THREAD_NGAGE 1
|
||||||
|
|
||||||
|
/* Enable the N-Gage timer support (src/timer/ngage/\*.c) */
|
||||||
|
#define SDL_TIMER_NGAGE 1
|
||||||
|
|
||||||
|
/* Enable the N-Gage video driver (src/video/ngage/\*.c) */
|
||||||
|
#define SDL_VIDEO_DRIVER_NGAGE 1
|
||||||
|
|
||||||
|
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
|
||||||
|
#define SDL_JOYSTICK_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub HIDAPI */
|
||||||
|
#define SDL_HIDAPI_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub sensor driver (src/sensor/dummy/\*.c) */
|
||||||
|
#define SDL_SENSOR_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
|
||||||
|
#define SDL_LOADSO_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
|
||||||
|
#define SDL_FILESYSTEM_DUMMY 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_ngage_h_ */
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_os2_h_
|
||||||
|
#define SDL_config_os2_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_OS2 1
|
||||||
|
|
||||||
|
#define SDL_POWER_DISABLED 1
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_OS2 1
|
||||||
|
#define SDL_JOYSTICK_OS2 1
|
||||||
|
#ifndef HAVE_LIBUSB_H /* see Makefile */
|
||||||
|
#define SDL_HIDAPI_DISABLED 1
|
||||||
|
/*#undef SDL_JOYSTICK_HIDAPI */
|
||||||
|
#else
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#define HAVE_LIBUSB 1
|
||||||
|
/* dynamically loaded libusb-1.0 dll: */
|
||||||
|
#define SDL_LIBUSB_DYNAMIC "usb100.dll"
|
||||||
|
#endif
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
/* #undef SDL_VIDEO_OPENGL */
|
||||||
|
|
||||||
|
#define SDL_THREAD_OS2 1
|
||||||
|
#define SDL_LOADSO_OS2 1
|
||||||
|
#define SDL_TIMER_OS2 1
|
||||||
|
#define SDL_FILESYSTEM_OS2 1
|
||||||
|
|
||||||
|
/* use libsamplerate for audio rate conversion. */
|
||||||
|
/*#define HAVE_LIBSAMPLERATE_H 1 */
|
||||||
|
|
||||||
|
/* Enable dynamic libsamplerate support */
|
||||||
|
#define SDL_LIBSAMPLERATE_DYNAMIC "SAMPRATE.DLL"
|
||||||
|
|
||||||
|
#define HAVE_LIBC 1
|
||||||
|
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
#define HAVE_MALLOC_H 1
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
#define HAVE_WCHAR_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
|
||||||
|
#if 0 /* see Makefile */
|
||||||
|
#define HAVE_ICONV 1
|
||||||
|
#define HAVE_ICONV_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* #undef HAVE_DLOPEN */
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#if defined(__WATCOMC__)
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#define HAVE__FTELLI64 1
|
||||||
|
#endif
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
/* OpenWatcom requires specific calling conventions for qsort and bsearch */
|
||||||
|
#ifndef __WATCOMC__
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#endif
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_WCSCMP 1
|
||||||
|
#define HAVE__WCSICMP 1
|
||||||
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE_WCSLEN 1
|
||||||
|
#define HAVE_WCSLCPY 1
|
||||||
|
#define HAVE_WCSLCAT 1
|
||||||
|
/* #undef HAVE_WCSDUP */
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
|
#define HAVE_WCSSTR 1
|
||||||
|
#define HAVE_WCSCMP 1
|
||||||
|
#define HAVE_WCSNCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRLCPY 1
|
||||||
|
#define HAVE_STRLCAT 1
|
||||||
|
#define HAVE__STRREV 1
|
||||||
|
#define HAVE__STRUPR 1
|
||||||
|
#define HAVE__STRLWR 1
|
||||||
|
/* #undef HAVE_INDEX */
|
||||||
|
/* #undef HAVE_RINDEX */
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
/* #undef HAVE_STRTOK_R */
|
||||||
|
#define HAVE_ITOA 1
|
||||||
|
#define HAVE__LTOA 1
|
||||||
|
#define HAVE__ULTOA 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE__I64TOA 1
|
||||||
|
#define HAVE__UI64TOA 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRICMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_SSCANF 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_SNPRINTF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
/* #undef HAVE_ACOSF */
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
/* #undef HAVE_ASINF */
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
/* #undef HAVE_ATAN2F */
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
/* #undef HAVE_CEILF */
|
||||||
|
/* #undef HAVE_COPYSIGN */
|
||||||
|
/* #undef HAVE_COPYSIGNF */
|
||||||
|
#define HAVE_COS 1
|
||||||
|
/* #undef HAVE_COSF */
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
/* #undef HAVE_EXPF */
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
/* #undef HAVE_FABSF */
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
/* #undef HAVE_FLOORF */
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
/* #undef HAVE_FMODF */
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
/* #undef HAVE_LOGF */
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
/* #undef HAVE_LOG10F */
|
||||||
|
#define HAVE_POW 1
|
||||||
|
/* #undef HAVE_POWF */
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
/* #undef HAVE_SINF */
|
||||||
|
/* #undef HAVE_SCALBN */
|
||||||
|
/* #undef HAVE_SCALBNF */
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
/* #undef HAVE_SQRTF */
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
/* #undef HAVE_TANF */
|
||||||
|
/* #undef HAVE_TRUNC */
|
||||||
|
/* #undef HAVE_TRUNCF */
|
||||||
|
/* #undef HAVE_LROUND */
|
||||||
|
/* #undef HAVE_LROUNDF */
|
||||||
|
/* #undef HAVE_ROUND */
|
||||||
|
/* #undef HAVE_ROUNDF */
|
||||||
|
|
||||||
|
#endif /* SDL_config_os2_h_ */
|
||||||
@@ -0,0 +1,141 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_pandora_h_
|
||||||
|
#define SDL_config_pandora_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
/* This is a set of defines to configure the SDL features */
|
||||||
|
|
||||||
|
/* General platform specific identifiers */
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
#define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define SDL_BYTEORDER 1234
|
||||||
|
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_ALLOCA_H 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_ICONV_H 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MALLOC_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
|
||||||
|
#define HAVE_DLOPEN 1
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_GETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
||||||
|
#define HAVE_PUTENV 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_BCOPY 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE_STRCASECMP 1
|
||||||
|
#define HAVE_STRNCASECMP 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COPYSIGN 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE_SIGACTION 1
|
||||||
|
#define HAVE_SETJMP 1
|
||||||
|
#define HAVE_NANOSLEEP 1
|
||||||
|
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_AUDIO_DRIVER_OSS 1
|
||||||
|
|
||||||
|
#define SDL_INPUT_LINUXEV 1
|
||||||
|
#define SDL_JOYSTICK_LINUX 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#define SDL_HAPTIC_LINUX 1
|
||||||
|
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|
||||||
|
#define SDL_LOADSO_DLOPEN 1
|
||||||
|
|
||||||
|
#define SDL_THREAD_PTHREAD 1
|
||||||
|
#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
|
||||||
|
|
||||||
|
#define SDL_TIMER_UNIX 1
|
||||||
|
#define SDL_FILESYSTEM_UNIX 1
|
||||||
|
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_X11 1
|
||||||
|
#define SDL_VIDEO_DRIVER_PANDORA 1
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES 1
|
||||||
|
#define SDL_VIDEO_OPENGL_ES 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_pandora_h_ */
|
||||||
@@ -0,0 +1,333 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_windows_h_
|
||||||
|
#define SDL_config_windows_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* winsdkver.h defines _WIN32_MAXVER for SDK version detection. It is present since at least the Windows 7 SDK,
|
||||||
|
* but out of caution we'll only use it if the compiler supports __has_include() to confirm its presence.
|
||||||
|
* If your compiler doesn't support __has_include() but you have winsdkver.h, define HAVE_WINSDKVER_H. */
|
||||||
|
#if !defined(HAVE_WINSDKVER_H) && defined(__has_include)
|
||||||
|
#if __has_include(<winsdkver.h>)
|
||||||
|
#define HAVE_WINSDKVER_H 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_WINSDKVER_H
|
||||||
|
#include <winsdkver.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* sdkddkver.h defines more specific SDK version numbers. This is needed because older versions of the
|
||||||
|
* Windows 10 SDK have broken declarations for the C API for DirectX 12. */
|
||||||
|
#if !defined(HAVE_SDKDDKVER_H) && defined(__has_include)
|
||||||
|
#if __has_include(<sdkddkver.h>)
|
||||||
|
#define HAVE_SDKDDKVER_H 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_SDKDDKVER_H
|
||||||
|
#include <sdkddkver.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is a set of defines to configure the SDL features */
|
||||||
|
|
||||||
|
#if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_)
|
||||||
|
/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
|
typedef signed __int8 int8_t;
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef signed __int16 int16_t;
|
||||||
|
typedef unsigned __int16 uint16_t;
|
||||||
|
typedef signed __int32 int32_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
typedef signed __int64 int64_t;
|
||||||
|
typedef unsigned __int64 uint64_t;
|
||||||
|
#ifndef _UINTPTR_T_DEFINED
|
||||||
|
#ifdef _WIN64
|
||||||
|
typedef unsigned __int64 uintptr_t;
|
||||||
|
#else
|
||||||
|
typedef unsigned int uintptr_t;
|
||||||
|
#endif
|
||||||
|
#define _UINTPTR_T_DEFINED
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#endif /* Visual Studio 2008 */
|
||||||
|
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
|
||||||
|
|
||||||
|
#ifdef _WIN64
|
||||||
|
# define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
# define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# define HAVE_GCC_ATOMICS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_DDRAW_H 1
|
||||||
|
#define HAVE_DINPUT_H 1
|
||||||
|
#define HAVE_DSOUND_H 1
|
||||||
|
#ifndef __WATCOMC__
|
||||||
|
#define HAVE_DXGI_H 1
|
||||||
|
#define HAVE_XINPUT_H 1
|
||||||
|
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */
|
||||||
|
#define HAVE_WINDOWS_GAMING_INPUT_H 1
|
||||||
|
#endif
|
||||||
|
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0602 /* Windows 8 SDK */
|
||||||
|
#define HAVE_D3D11_H 1
|
||||||
|
#define HAVE_ROAPI_H 1
|
||||||
|
#endif
|
||||||
|
#if defined(__has_include)
|
||||||
|
#if __has_include(<d3d12.h>) && __has_include(<d3d12sdklayers.h>)
|
||||||
|
#define HAVE_D3D12_H 1
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */
|
||||||
|
#define HAVE_SHELLSCALINGAPI_H 1
|
||||||
|
#endif
|
||||||
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
#define HAVE_TPCSHRD_H 1
|
||||||
|
#define HAVE_SENSORSAPI_H 1
|
||||||
|
#endif
|
||||||
|
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
|
#define HAVE_IMMINTRIN_H 1
|
||||||
|
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
||||||
|
# if __has_include(<immintrin.h>)
|
||||||
|
# define HAVE_IMMINTRIN_H 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
|
||||||
|
#ifdef HAVE_LIBC
|
||||||
|
/* Useful headers */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
/* OpenWatcom requires specific calling conventions for qsort and bsearch */
|
||||||
|
#ifndef __WATCOMC__
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#endif
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE__STRREV 1
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__STRUPR */
|
||||||
|
/* #undef HAVE__STRLWR */
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
/* #undef HAVE_STRTOK_R */
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__LTOA */
|
||||||
|
/* #undef HAVE__ULTOA */
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE__STRICMP 1
|
||||||
|
#define HAVE__STRNICMP 1
|
||||||
|
#define HAVE__WCSICMP 1
|
||||||
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#ifndef __WATCOMC__
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE__COPYSIGN 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#endif
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
/* These functions were added with the VC++ 2013 C runtime library */
|
||||||
|
#if _MSC_VER >= 1800
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#endif
|
||||||
|
/* This function is available with at least the VC++ 2008 C runtime library */
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#endif
|
||||||
|
#ifdef _USE_MATH_DEFINES
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#elif defined(__WATCOMC__)
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#else
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H)
|
||||||
|
#define SDL_AUDIO_DRIVER_WASAPI 1
|
||||||
|
#endif
|
||||||
|
#define SDL_AUDIO_DRIVER_DSOUND 1
|
||||||
|
#define SDL_AUDIO_DRIVER_WINMM 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_DINPUT 1
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#ifndef __WINRT__
|
||||||
|
#define SDL_JOYSTICK_RAWINPUT 1
|
||||||
|
#endif
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
||||||
|
#define SDL_JOYSTICK_WGI 1
|
||||||
|
#endif
|
||||||
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
|
#define SDL_HAPTIC_DINPUT 1
|
||||||
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
|
|
||||||
|
/* Enable the sensor driver */
|
||||||
|
#ifdef HAVE_SENSORSAPI_H
|
||||||
|
#define SDL_SENSOR_WINDOWS 1
|
||||||
|
#else
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
||||||
|
#define SDL_THREAD_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_WINDOWS 1
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_RENDER_D3D
|
||||||
|
#define SDL_VIDEO_RENDER_D3D 1
|
||||||
|
#endif
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D11 1
|
||||||
|
#endif
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D12) && defined(HAVE_D3D12_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D12 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
#ifndef SDL_VIDEO_OPENGL
|
||||||
|
#define SDL_VIDEO_OPENGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_WGL
|
||||||
|
#define SDL_VIDEO_OPENGL_WGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL
|
||||||
|
#define SDL_VIDEO_RENDER_OGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL_ES2
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_ES2
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_EGL
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable Vulkan support */
|
||||||
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable filesystem support */
|
||||||
|
#define SDL_FILESYSTEM_WINDOWS 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_windows_h_ */
|
||||||
|
|
||||||
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
@@ -0,0 +1,253 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_wingdk_h_
|
||||||
|
#define SDL_config_wingdk_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* Windows GDK does not need Windows SDK version checks because it requires
|
||||||
|
* a recent version of the Windows 10 SDK. */
|
||||||
|
|
||||||
|
/* GDK only supports 64-bit */
|
||||||
|
# define SIZEOF_VOIDP 8
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# define HAVE_GCC_ATOMICS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_DDRAW_H 1
|
||||||
|
#define HAVE_DINPUT_H 1
|
||||||
|
#define HAVE_DSOUND_H 1
|
||||||
|
/* No SDK version checks needed for these because the SDK has to be new. */
|
||||||
|
#define HAVE_DXGI_H 1
|
||||||
|
#define HAVE_XINPUT_H 1
|
||||||
|
#define HAVE_WINDOWS_GAMING_INPUT_H 1
|
||||||
|
#define HAVE_D3D11_H 1
|
||||||
|
#define HAVE_ROAPI_H 1
|
||||||
|
#define HAVE_D3D12_H 1
|
||||||
|
#define HAVE_SHELLSCALINGAPI_H 1
|
||||||
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
#define HAVE_TPCSHRD_H 1
|
||||||
|
#define HAVE_SENSORSAPI_H 1
|
||||||
|
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
|
#define HAVE_IMMINTRIN_H 1
|
||||||
|
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
||||||
|
# if __has_include(<immintrin.h>)
|
||||||
|
# define HAVE_IMMINTRIN_H 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
|
||||||
|
#ifdef HAVE_LIBC
|
||||||
|
/* Useful headers */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE__STRREV 1
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__STRUPR */
|
||||||
|
/* #undef HAVE__STRLWR */
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
/* #undef HAVE_STRTOK_R */
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__LTOA */
|
||||||
|
/* #undef HAVE__ULTOA */
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE__STRICMP 1
|
||||||
|
#define HAVE__STRNICMP 1
|
||||||
|
#define HAVE__WCSICMP 1
|
||||||
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE__COPYSIGN 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
/* These functions were added with the VC++ 2013 C runtime library */
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#ifdef _USE_MATH_DEFINES
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H)
|
||||||
|
#define SDL_AUDIO_DRIVER_WASAPI 1
|
||||||
|
#endif
|
||||||
|
#define SDL_AUDIO_DRIVER_DSOUND 1
|
||||||
|
#define SDL_AUDIO_DRIVER_WINMM 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_DINPUT 1
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#define SDL_JOYSTICK_RAWINPUT 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
||||||
|
#define SDL_JOYSTICK_WGI 1
|
||||||
|
#endif
|
||||||
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
|
#define SDL_HAPTIC_DINPUT 1
|
||||||
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
|
|
||||||
|
/* Enable the sensor driver */
|
||||||
|
#ifdef HAVE_SENSORSAPI_H
|
||||||
|
#define SDL_SENSOR_WINDOWS 1
|
||||||
|
#else
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
||||||
|
#define SDL_THREAD_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_WINDOWS 1
|
||||||
|
|
||||||
|
#ifndef SDL_VIDEO_RENDER_D3D
|
||||||
|
#define SDL_VIDEO_RENDER_D3D 1
|
||||||
|
#endif
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D11 1
|
||||||
|
#endif
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D12) && defined(HAVE_D3D12_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D12 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
#ifndef SDL_VIDEO_OPENGL
|
||||||
|
#define SDL_VIDEO_OPENGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_WGL
|
||||||
|
#define SDL_VIDEO_OPENGL_WGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL
|
||||||
|
#define SDL_VIDEO_RENDER_OGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL_ES2
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_ES2
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_EGL
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable Vulkan support */
|
||||||
|
#define SDL_VIDEO_VULKAN 1
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable filesystem support */
|
||||||
|
#define SDL_FILESYSTEM_WINDOWS 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_wingdk_h_ */
|
||||||
|
|
||||||
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
@@ -0,0 +1,220 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_winrt_h_
|
||||||
|
#define SDL_config_winrt_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* Make sure the Windows SDK's NTDDI_VERSION macro gets defined. This is used
|
||||||
|
by SDL to determine which version of the Windows SDK is being used.
|
||||||
|
*/
|
||||||
|
#include <sdkddkver.h>
|
||||||
|
|
||||||
|
/* Define possibly-undefined NTDDI values (used when compiling SDL against
|
||||||
|
older versions of the Windows SDK.
|
||||||
|
*/
|
||||||
|
#ifndef NTDDI_WINBLUE
|
||||||
|
#define NTDDI_WINBLUE 0x06030000
|
||||||
|
#endif
|
||||||
|
#ifndef NTDDI_WIN10
|
||||||
|
#define NTDDI_WIN10 0x0A000000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is a set of defines to configure the SDL features */
|
||||||
|
|
||||||
|
#ifdef _WIN64
|
||||||
|
# define SIZEOF_VOIDP 8
|
||||||
|
#else
|
||||||
|
# define SIZEOF_VOIDP 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# define HAVE_GCC_ATOMICS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Useful headers */
|
||||||
|
#define HAVE_DXGI_H 1
|
||||||
|
#if !SDL_WINAPI_FAMILY_PHONE
|
||||||
|
#define HAVE_XINPUT_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
#define HAVE_TPCSHRD_H 1
|
||||||
|
|
||||||
|
#define HAVE_LIBC 1
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE__STRREV 1
|
||||||
|
#define HAVE__STRUPR 1
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
/* #undef HAVE_STRTOLL */
|
||||||
|
/* #undef HAVE_STRTOULL */
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE__STRICMP 1
|
||||||
|
#define HAVE__STRNICMP 1
|
||||||
|
#define HAVE_VSNPRINTF 1
|
||||||
|
/* TODO, WinRT: consider using ??_s versions of the following */
|
||||||
|
/* #undef HAVE__STRLWR */
|
||||||
|
/* #undef HAVE_ITOA */
|
||||||
|
/* #undef HAVE__LTOA */
|
||||||
|
/* #undef HAVE__ULTOA */
|
||||||
|
/* #undef HAVE_SSCANF */
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE__COPYSIGN 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE__SCALB 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
|
||||||
|
#define HAVE_ROAPI_H 1
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#define SDL_AUDIO_DRIVER_WASAPI 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
#if SDL_WINAPI_FAMILY_PHONE
|
||||||
|
#define SDL_JOYSTICK_DISABLED 1
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
#else
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_WIN10)
|
||||||
|
#define SDL_JOYSTICK_WGI 1
|
||||||
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
|
#else
|
||||||
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
|
#endif /* WIN10 */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* WinRT doesn't have HIDAPI available */
|
||||||
|
#define SDL_HIDAPI_DISABLED 1
|
||||||
|
|
||||||
|
/* Enable the dummy sensor driver */
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_WINBLUE)
|
||||||
|
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
||||||
|
#define SDL_THREAD_WINDOWS 1
|
||||||
|
#else
|
||||||
|
/* WinRT on Windows 8.0 and Windows Phone 8.0 don't support CreateThread() */
|
||||||
|
#define SDL_THREAD_STDCPP 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_WINRT 1
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable OpenGL ES 2.0 (via a modified ANGLE library) */
|
||||||
|
#define SDL_VIDEO_OPENGL_ES2 1
|
||||||
|
#define SDL_VIDEO_OPENGL_EGL 1
|
||||||
|
|
||||||
|
/* Enable appropriate renderer(s) */
|
||||||
|
#define SDL_VIDEO_RENDER_D3D11 1
|
||||||
|
|
||||||
|
/* Disable D3D12 as it's not implemented for WinRT */
|
||||||
|
/* #undef SDL_VIDEO_RENDER_D3D12 */
|
||||||
|
|
||||||
|
#ifdef SDL_VIDEO_OPENGL_ES2
|
||||||
|
#define SDL_VIDEO_RENDER_OGL_ES2 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
#define SDL_POWER_WINRT 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_winrt_h_ */
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_config_wingdk_h_
|
||||||
|
#define SDL_config_wingdk_h_
|
||||||
|
#define SDL_config_h_
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* Windows GDK does not need Windows SDK version checks because it requires
|
||||||
|
* a recent version of the Windows 10 SDK. */
|
||||||
|
|
||||||
|
/* GDK only supports 64-bit */
|
||||||
|
# define SIZEOF_VOIDP 8
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# define HAVE_GCC_ATOMICS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*#define HAVE_DDRAW_H 1*/
|
||||||
|
/*#define HAVE_DINPUT_H 1*/
|
||||||
|
/*#define HAVE_DSOUND_H 1*/
|
||||||
|
/* No SDK version checks needed for these because the SDK has to be new. */
|
||||||
|
/* #define HAVE_DXGI_H 1 */
|
||||||
|
#define HAVE_XINPUT_H 1
|
||||||
|
/*#define HAVE_WINDOWS_GAMING_INPUT_H 1*/
|
||||||
|
/*#define HAVE_D3D11_H 1*/
|
||||||
|
/*#define HAVE_ROAPI_H 1*/
|
||||||
|
#define HAVE_D3D12_H 1
|
||||||
|
/*#define HAVE_SHELLSCALINGAPI_H 1*/
|
||||||
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
|
/*#define HAVE_TPCSHRD_H 1*/
|
||||||
|
/*#define HAVE_SENSORSAPI_H 1*/
|
||||||
|
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
|
#define HAVE_IMMINTRIN_H 1
|
||||||
|
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
||||||
|
# if __has_include(<immintrin.h>)
|
||||||
|
# define HAVE_IMMINTRIN_H 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
|
||||||
|
#ifdef HAVE_LIBC
|
||||||
|
/* Useful headers */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define HAVE_CTYPE_H 1
|
||||||
|
#define HAVE_FLOAT_H 1
|
||||||
|
#define HAVE_LIMITS_H 1
|
||||||
|
#define HAVE_MATH_H 1
|
||||||
|
#define HAVE_SIGNAL_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDIO_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* C library functions */
|
||||||
|
#define HAVE_MALLOC 1
|
||||||
|
#define HAVE_CALLOC 1
|
||||||
|
#define HAVE_REALLOC 1
|
||||||
|
#define HAVE_FREE 1
|
||||||
|
#define HAVE_ALLOCA 1
|
||||||
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#define HAVE_ABS 1
|
||||||
|
#define HAVE_MEMSET 1
|
||||||
|
#define HAVE_MEMCPY 1
|
||||||
|
#define HAVE_MEMMOVE 1
|
||||||
|
#define HAVE_MEMCMP 1
|
||||||
|
#define HAVE_STRLEN 1
|
||||||
|
#define HAVE__STRREV 1
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__STRUPR */
|
||||||
|
/* #undef HAVE__STRLWR */
|
||||||
|
#define HAVE_STRCHR 1
|
||||||
|
#define HAVE_STRRCHR 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
/* #undef HAVE_STRTOK_R */
|
||||||
|
/* These functions have security warnings, so we won't use them */
|
||||||
|
/* #undef HAVE__LTOA */
|
||||||
|
/* #undef HAVE__ULTOA */
|
||||||
|
#define HAVE_STRTOL 1
|
||||||
|
#define HAVE_STRTOUL 1
|
||||||
|
#define HAVE_STRTOD 1
|
||||||
|
#define HAVE_ATOI 1
|
||||||
|
#define HAVE_ATOF 1
|
||||||
|
#define HAVE_STRCMP 1
|
||||||
|
#define HAVE_STRNCMP 1
|
||||||
|
#define HAVE__STRICMP 1
|
||||||
|
#define HAVE__STRNICMP 1
|
||||||
|
#define HAVE__WCSICMP 1
|
||||||
|
#define HAVE__WCSNICMP 1
|
||||||
|
#define HAVE__WCSDUP 1
|
||||||
|
#define HAVE_ACOS 1
|
||||||
|
#define HAVE_ASIN 1
|
||||||
|
#define HAVE_ATAN 1
|
||||||
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
|
#define HAVE_ATAN2F 1
|
||||||
|
#define HAVE_CEILF 1
|
||||||
|
#define HAVE__COPYSIGN 1
|
||||||
|
#define HAVE_COSF 1
|
||||||
|
#define HAVE_EXPF 1
|
||||||
|
#define HAVE_FABSF 1
|
||||||
|
#define HAVE_FLOORF 1
|
||||||
|
#define HAVE_FMODF 1
|
||||||
|
#define HAVE_LOGF 1
|
||||||
|
#define HAVE_LOG10F 1
|
||||||
|
#define HAVE_POWF 1
|
||||||
|
#define HAVE_SINF 1
|
||||||
|
#define HAVE_SQRTF 1
|
||||||
|
#define HAVE_TANF 1
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
/* These functions were added with the VC++ 2013 C runtime library */
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_LROUND 1
|
||||||
|
#define HAVE_LROUNDF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_ROUNDF 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_SCALBNF 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#define HAVE_TRUNCF 1
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#ifdef _USE_MATH_DEFINES
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_M_PI 1
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define HAVE_STDARG_H 1
|
||||||
|
#define HAVE_STDDEF_H 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various audio drivers */
|
||||||
|
#if defined(HAVE_MMDEVICEAPI_H) && defined(HAVE_AUDIOCLIENT_H)
|
||||||
|
#define SDL_AUDIO_DRIVER_WASAPI 1
|
||||||
|
#endif
|
||||||
|
/*#define SDL_AUDIO_DRIVER_DSOUND 1*/
|
||||||
|
/*#define SDL_AUDIO_DRIVER_WINMM 1*/
|
||||||
|
#define SDL_AUDIO_DRIVER_DISK 1
|
||||||
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
|
/* Enable various input drivers */
|
||||||
|
/*#define SDL_JOYSTICK_DINPUT 1*/
|
||||||
|
/*#define SDL_JOYSTICK_HIDAPI 1*/
|
||||||
|
/*#define SDL_JOYSTICK_RAWINPUT 1*/
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
||||||
|
#define SDL_JOYSTICK_WGI 1
|
||||||
|
#endif
|
||||||
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
|
/*#define SDL_HAPTIC_DINPUT 1*/
|
||||||
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
|
|
||||||
|
/* Enable the sensor driver */
|
||||||
|
#ifdef HAVE_SENSORSAPI_H
|
||||||
|
#define SDL_SENSOR_WINDOWS 1
|
||||||
|
#else
|
||||||
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable various shared object loading systems */
|
||||||
|
#define SDL_LOADSO_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various threading systems */
|
||||||
|
#define SDL_THREAD_GENERIC_COND_SUFFIX 1
|
||||||
|
#define SDL_THREAD_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various timer systems */
|
||||||
|
#define SDL_TIMER_WINDOWS 1
|
||||||
|
|
||||||
|
/* Enable various video drivers */
|
||||||
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
#define SDL_VIDEO_DRIVER_WINDOWS 1
|
||||||
|
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D12) && defined(HAVE_D3D12_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D12 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable OpenGL support */
|
||||||
|
#ifndef SDL_VIDEO_OPENGL
|
||||||
|
#define SDL_VIDEO_OPENGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_OPENGL_WGL
|
||||||
|
#define SDL_VIDEO_OPENGL_WGL 1
|
||||||
|
#endif
|
||||||
|
#ifndef SDL_VIDEO_RENDER_OGL
|
||||||
|
#define SDL_VIDEO_RENDER_OGL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Enable system power support */
|
||||||
|
/*#define SDL_POWER_WINDOWS 1*/
|
||||||
|
#define SDL_POWER_HARDWIRED 1
|
||||||
|
|
||||||
|
/* Enable filesystem support */
|
||||||
|
/* #define SDL_FILESYSTEM_WINDOWS 1*/
|
||||||
|
#define SDL_FILESYSTEM_XBOX 1
|
||||||
|
|
||||||
|
/* Disable IME as not supported yet (TODO: Xbox IME?) */
|
||||||
|
#define SDL_DISABLE_WINDOWS_IME 1
|
||||||
|
|
||||||
|
#endif /* SDL_config_wingdk_h_ */
|
||||||
|
|
||||||
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,10 +19,16 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: CPUInfo */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_cpuinfo.h
|
* # CategoryCPUInfo
|
||||||
*
|
*
|
||||||
* CPU feature detection for SDL.
|
* CPU feature detection for SDL.
|
||||||
|
*
|
||||||
|
* These functions are largely concerned with reporting if the system has
|
||||||
|
* access to various SIMD instruction sets, but also has other important info
|
||||||
|
* to share, such as number of logical CPU cores.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_cpuinfo_h_
|
#ifndef SDL_cpuinfo_h_
|
||||||
@@ -53,9 +59,11 @@ _m_prefetch(void *__P)
|
|||||||
#ifndef __MMX__
|
#ifndef __MMX__
|
||||||
#define __MMX__
|
#define __MMX__
|
||||||
#endif
|
#endif
|
||||||
|
/*
|
||||||
#ifndef __3dNOW__
|
#ifndef __3dNOW__
|
||||||
#define __3dNOW__
|
#define __3dNOW__
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
#endif
|
#endif
|
||||||
#ifndef __SSE__
|
#ifndef __SSE__
|
||||||
#define __SSE__
|
#define __SSE__
|
||||||
@@ -107,7 +115,8 @@ _m_prefetch(void *__P)
|
|||||||
#include <lasxintrin.h>
|
#include <lasxintrin.h>
|
||||||
#define __LASX__
|
#define __LASX__
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
|
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H) && \
|
||||||
|
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86))
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#else
|
#else
|
||||||
#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
|
#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,11 +19,10 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* \file SDL_egl.h
|
* This is a simple file to encapsulate the EGL API headers.
|
||||||
*
|
|
||||||
* This is a simple file to encapsulate the EGL API headers.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(_MSC_VER) && !defined(__ANDROID__) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
|
#if !defined(_MSC_VER) && !defined(__ANDROID__) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
|
||||||
|
|
||||||
#if defined(__vita__) || defined(__psp2__)
|
#if defined(__vita__) || defined(__psp2__)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_endian.h
|
* # CategoryEndian
|
||||||
*
|
*
|
||||||
* Functions for reading and writing endian-specific values
|
* Functions for reading and writing endian-specific values
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_endian_h_
|
#ifndef SDL_endian_h_
|
||||||
@@ -59,6 +59,15 @@ _m_prefetch(void *__P)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#define SDL_BYTEORDER __BYTE_ORDER
|
#define SDL_BYTEORDER __BYTE_ORDER
|
||||||
|
#elif defined(__sun) && defined(__SVR4) /* Solaris */
|
||||||
|
#include <sys/byteorder.h>
|
||||||
|
#if defined(_LITTLE_ENDIAN)
|
||||||
|
#define SDL_BYTEORDER SDL_LIL_ENDIAN
|
||||||
|
#elif defined(_BIG_ENDIAN)
|
||||||
|
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
||||||
|
#else
|
||||||
|
#error Unsupported endianness
|
||||||
|
#endif
|
||||||
#elif defined(__OpenBSD__) || defined(__DragonFly__)
|
#elif defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#define SDL_BYTEORDER BYTE_ORDER
|
#define SDL_BYTEORDER BYTE_ORDER
|
||||||
@@ -79,7 +88,7 @@ _m_prefetch(void *__P)
|
|||||||
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
||||||
(defined(__MIPS__) && defined(__MIPSEB__)) || \
|
(defined(__MIPS__) && defined(__MIPSEB__)) || \
|
||||||
defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \
|
defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \
|
||||||
defined(__sparc__)
|
defined(__sparc__) || defined(__sparc)
|
||||||
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
||||||
#else
|
#else
|
||||||
#define SDL_BYTEORDER SDL_LIL_ENDIAN
|
#define SDL_BYTEORDER SDL_LIL_ENDIAN
|
||||||
@@ -180,6 +189,16 @@ extern __inline Uint16 SDL_Swap16(Uint16);
|
|||||||
parm [ax] \
|
parm [ax] \
|
||||||
modify [ax];
|
modify [ax];
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this function to swap the byte order of a 16-bit value.
|
||||||
|
*
|
||||||
|
* \param x the value to be swapped.
|
||||||
|
* \returns the swapped value.
|
||||||
|
*
|
||||||
|
* \sa SDL_SwapBE16
|
||||||
|
* \sa SDL_SwapLE16
|
||||||
|
*/
|
||||||
SDL_FORCE_INLINE Uint16
|
SDL_FORCE_INLINE Uint16
|
||||||
SDL_Swap16(Uint16 x)
|
SDL_Swap16(Uint16 x)
|
||||||
{
|
{
|
||||||
@@ -231,6 +250,16 @@ extern __inline Uint32 SDL_Swap32(Uint32);
|
|||||||
parm [eax] \
|
parm [eax] \
|
||||||
modify [eax];
|
modify [eax];
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this function to swap the byte order of a 32-bit value.
|
||||||
|
*
|
||||||
|
* \param x the value to be swapped.
|
||||||
|
* \returns the swapped value.
|
||||||
|
*
|
||||||
|
* \sa SDL_SwapBE32
|
||||||
|
* \sa SDL_SwapLE32
|
||||||
|
*/
|
||||||
SDL_FORCE_INLINE Uint32
|
SDL_FORCE_INLINE Uint32
|
||||||
SDL_Swap32(Uint32 x)
|
SDL_Swap32(Uint32 x)
|
||||||
{
|
{
|
||||||
@@ -276,6 +305,16 @@ extern __inline Uint64 SDL_Swap64(Uint64);
|
|||||||
parm [eax edx] \
|
parm [eax edx] \
|
||||||
modify [eax edx];
|
modify [eax edx];
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this function to swap the byte order of a 64-bit value.
|
||||||
|
*
|
||||||
|
* \param x the value to be swapped.
|
||||||
|
* \returns the swapped value.
|
||||||
|
*
|
||||||
|
* \sa SDL_SwapBE64
|
||||||
|
* \sa SDL_SwapLE64
|
||||||
|
*/
|
||||||
SDL_FORCE_INLINE Uint64
|
SDL_FORCE_INLINE Uint64
|
||||||
SDL_Swap64(Uint64 x)
|
SDL_Swap64(Uint64 x)
|
||||||
{
|
{
|
||||||
@@ -293,6 +332,15 @@ SDL_Swap64(Uint64 x)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this function to swap the byte order of a floating point value.
|
||||||
|
*
|
||||||
|
* \param x the value to be swapped.
|
||||||
|
* \returns the swapped value.
|
||||||
|
*
|
||||||
|
* \sa SDL_SwapFloatBE
|
||||||
|
* \sa SDL_SwapFloatLE
|
||||||
|
*/
|
||||||
SDL_FORCE_INLINE float
|
SDL_FORCE_INLINE float
|
||||||
SDL_SwapFloat(float x)
|
SDL_SwapFloat(float x)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_error.h
|
* # CategoryError
|
||||||
*
|
*
|
||||||
* Simple error message routines for SDL.
|
* Simple error message routines for SDL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_error_h_
|
#ifndef SDL_error_h_
|
||||||
@@ -53,9 +53,9 @@ extern "C" {
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* \param fmt a printf()-style message format string
|
* \param fmt a printf()-style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the `fmt` string, if
|
* \param ... additional parameters matching % tokens in the `fmt` string, if
|
||||||
* any
|
* any.
|
||||||
* \returns always -1.
|
* \returns always -1.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -109,8 +109,8 @@ extern DECLSPEC const char *SDLCALL SDL_GetError(void);
|
|||||||
* otherwise operates exactly the same as SDL_GetError().
|
* otherwise operates exactly the same as SDL_GetError().
|
||||||
*
|
*
|
||||||
* \param errstr A buffer to fill with the last error message that was set for
|
* \param errstr A buffer to fill with the last error message that was set for
|
||||||
* the current thread
|
* the current thread.
|
||||||
* \param maxlen The size of the buffer pointed to by the errstr parameter
|
* \param maxlen The size of the buffer pointed to by the errstr parameter.
|
||||||
* \returns the pointer passed in as the `errstr` parameter.
|
* \returns the pointer passed in as the `errstr` parameter.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_events.h
|
* # CategoryEvents
|
||||||
*
|
*
|
||||||
* Include file for SDL event handling.
|
* Include file for SDL event handling.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_events_h_
|
#ifndef SDL_events_h_
|
||||||
@@ -52,7 +52,7 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* The types of events that can be delivered.
|
* The types of events that can be delivered.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_EventType
|
||||||
{
|
{
|
||||||
SDL_FIRSTEVENT = 0, /**< Unused (do not remove) */
|
SDL_FIRSTEVENT = 0, /**< Unused (do not remove) */
|
||||||
|
|
||||||
@@ -131,6 +131,8 @@ typedef enum
|
|||||||
SDL_CONTROLLERTOUCHPADMOTION, /**< Game controller touchpad finger was moved */
|
SDL_CONTROLLERTOUCHPADMOTION, /**< Game controller touchpad finger was moved */
|
||||||
SDL_CONTROLLERTOUCHPADUP, /**< Game controller touchpad finger was lifted */
|
SDL_CONTROLLERTOUCHPADUP, /**< Game controller touchpad finger was lifted */
|
||||||
SDL_CONTROLLERSENSORUPDATE, /**< Game controller sensor was updated */
|
SDL_CONTROLLERSENSORUPDATE, /**< Game controller sensor was updated */
|
||||||
|
SDL_CONTROLLERUPDATECOMPLETE_RESERVED_FOR_SDL3,
|
||||||
|
SDL_CONTROLLERSTEAMHANDLEUPDATED, /**< Game controller Steam handle has changed */
|
||||||
|
|
||||||
/* Touch events */
|
/* Touch events */
|
||||||
SDL_FINGERDOWN = 0x700,
|
SDL_FINGERDOWN = 0x700,
|
||||||
@@ -165,7 +167,7 @@ typedef enum
|
|||||||
/* Internal events */
|
/* Internal events */
|
||||||
SDL_POLLSENTINEL = 0x7F00, /**< Signals the end of an event poll cycle */
|
SDL_POLLSENTINEL = 0x7F00, /**< Signals the end of an event poll cycle */
|
||||||
|
|
||||||
/** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
|
/** Events SDL_USEREVENT through SDL_LASTEVENT are for your use,
|
||||||
* and should be allocated with SDL_RegisterEvents()
|
* and should be allocated with SDL_RegisterEvents()
|
||||||
*/
|
*/
|
||||||
SDL_USEREVENT = 0x8000,
|
SDL_USEREVENT = 0x8000,
|
||||||
@@ -177,7 +179,7 @@ typedef enum
|
|||||||
} SDL_EventType;
|
} SDL_EventType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Fields shared by every event
|
* Fields shared by every event
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_CommonEvent
|
typedef struct SDL_CommonEvent
|
||||||
{
|
{
|
||||||
@@ -186,14 +188,14 @@ typedef struct SDL_CommonEvent
|
|||||||
} SDL_CommonEvent;
|
} SDL_CommonEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Display state change event data (event.display.*)
|
* Display state change event data (event.display.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_DisplayEvent
|
typedef struct SDL_DisplayEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_DISPLAYEVENT */
|
Uint32 type; /**< SDL_DISPLAYEVENT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 display; /**< The associated display index */
|
Uint32 display; /**< The associated display index */
|
||||||
Uint8 event; /**< ::SDL_DisplayEventID */
|
Uint8 event; /**< SDL_DisplayEventID */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
Uint8 padding3;
|
Uint8 padding3;
|
||||||
@@ -201,14 +203,14 @@ typedef struct SDL_DisplayEvent
|
|||||||
} SDL_DisplayEvent;
|
} SDL_DisplayEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Window state change event data (event.window.*)
|
* Window state change event data (event.window.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_WindowEvent
|
typedef struct SDL_WindowEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_WINDOWEVENT */
|
Uint32 type; /**< SDL_WINDOWEVENT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The associated window */
|
Uint32 windowID; /**< The associated window */
|
||||||
Uint8 event; /**< ::SDL_WindowEventID */
|
Uint8 event; /**< SDL_WindowEventID */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
Uint8 padding3;
|
Uint8 padding3;
|
||||||
@@ -217,14 +219,14 @@ typedef struct SDL_WindowEvent
|
|||||||
} SDL_WindowEvent;
|
} SDL_WindowEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Keyboard button event structure (event.key.*)
|
* Keyboard button event structure (event.key.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_KeyboardEvent
|
typedef struct SDL_KeyboardEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
|
Uint32 type; /**< SDL_KEYDOWN or SDL_KEYUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with keyboard focus, if any */
|
Uint32 windowID; /**< The window with keyboard focus, if any */
|
||||||
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */
|
||||||
Uint8 repeat; /**< Non-zero if this is a key repeat */
|
Uint8 repeat; /**< Non-zero if this is a key repeat */
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
Uint8 padding3;
|
Uint8 padding3;
|
||||||
@@ -232,12 +234,13 @@ typedef struct SDL_KeyboardEvent
|
|||||||
} SDL_KeyboardEvent;
|
} SDL_KeyboardEvent;
|
||||||
|
|
||||||
#define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
|
#define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Keyboard text editing event structure (event.edit.*)
|
* Keyboard text editing event structure (event.edit.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_TextEditingEvent
|
typedef struct SDL_TextEditingEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_TEXTEDITING */
|
Uint32 type; /**< SDL_TEXTEDITING */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with keyboard focus, if any */
|
Uint32 windowID; /**< The window with keyboard focus, if any */
|
||||||
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; /**< The editing text */
|
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; /**< The editing text */
|
||||||
@@ -246,12 +249,12 @@ typedef struct SDL_TextEditingEvent
|
|||||||
} SDL_TextEditingEvent;
|
} SDL_TextEditingEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Extended keyboard text editing event structure (event.editExt.*) when text would be
|
* Extended keyboard text editing event structure (event.editExt.*) when text
|
||||||
* truncated if stored in the text buffer SDL_TextEditingEvent
|
* would be truncated if stored in the text buffer SDL_TextEditingEvent
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_TextEditingExtEvent
|
typedef struct SDL_TextEditingExtEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_TEXTEDITING_EXT */
|
Uint32 type; /**< SDL_TEXTEDITING_EXT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with keyboard focus, if any */
|
Uint32 windowID; /**< The window with keyboard focus, if any */
|
||||||
char* text; /**< The editing text, which should be freed with SDL_free(), and will not be NULL */
|
char* text; /**< The editing text, which should be freed with SDL_free(), and will not be NULL */
|
||||||
@@ -259,24 +262,43 @@ typedef struct SDL_TextEditingExtEvent
|
|||||||
Sint32 length; /**< The length of selected editing text */
|
Sint32 length; /**< The length of selected editing text */
|
||||||
} SDL_TextEditingExtEvent;
|
} SDL_TextEditingExtEvent;
|
||||||
|
|
||||||
#define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
|
|
||||||
/**
|
/**
|
||||||
* \brief Keyboard text input event structure (event.text.*)
|
* The maximum bytes of text that can be supplied in an SDL_TextInputEvent.
|
||||||
|
*/
|
||||||
|
#define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Keyboard text input event structure (event.text.*)
|
||||||
|
*
|
||||||
|
* `text` is limited to SDL_TEXTINPUTEVENT_TEXT_SIZE bytes. If the incoming
|
||||||
|
* string is larger than this, SDL will split it and send it in pieces, across
|
||||||
|
* multiple events. The string is in UTF-8 format, and if split, SDL
|
||||||
|
* guarantees that it will not split in the middle of a UTF-8 sequence, so any
|
||||||
|
* event will only contain complete codepoints. However, if there are several
|
||||||
|
* codepoints that go together into a single glyph (like an emoji "thumbs up"
|
||||||
|
* followed by a skin color), they may be split between events.
|
||||||
|
*
|
||||||
|
* This event will never be delivered unless text input is enabled by calling
|
||||||
|
* SDL_StartTextInput(). Text input is enabled by default on desktop
|
||||||
|
* platforms, and disabled by default on mobile platforms!
|
||||||
|
*
|
||||||
|
* \sa SDL_StartTextInput
|
||||||
|
* \sa SDL_StopTextInput
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_TextInputEvent
|
typedef struct SDL_TextInputEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_TEXTINPUT */
|
Uint32 type; /**< SDL_TEXTINPUT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with keyboard focus, if any */
|
Uint32 windowID; /**< The window with keyboard focus, if any */
|
||||||
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; /**< The input text */
|
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; /**< The input text; UTF-8 encoded. */
|
||||||
} SDL_TextInputEvent;
|
} SDL_TextInputEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mouse motion event structure (event.motion.*)
|
* Mouse motion event structure (event.motion.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_MouseMotionEvent
|
typedef struct SDL_MouseMotionEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_MOUSEMOTION */
|
Uint32 type; /**< SDL_MOUSEMOTION */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with mouse focus, if any */
|
Uint32 windowID; /**< The window with mouse focus, if any */
|
||||||
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
||||||
@@ -288,16 +310,16 @@ typedef struct SDL_MouseMotionEvent
|
|||||||
} SDL_MouseMotionEvent;
|
} SDL_MouseMotionEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mouse button event structure (event.button.*)
|
* Mouse button event structure (event.button.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_MouseButtonEvent
|
typedef struct SDL_MouseButtonEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP */
|
Uint32 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with mouse focus, if any */
|
Uint32 windowID; /**< The window with mouse focus, if any */
|
||||||
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
||||||
Uint8 button; /**< The mouse button index */
|
Uint8 button; /**< The mouse button index */
|
||||||
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */
|
||||||
Uint8 clicks; /**< 1 for single-click, 2 for double-click, etc. */
|
Uint8 clicks; /**< 1 for single-click, 2 for double-click, etc. */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Sint32 x; /**< X coordinate, relative to window */
|
Sint32 x; /**< X coordinate, relative to window */
|
||||||
@@ -305,11 +327,11 @@ typedef struct SDL_MouseButtonEvent
|
|||||||
} SDL_MouseButtonEvent;
|
} SDL_MouseButtonEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mouse wheel event structure (event.wheel.*)
|
* Mouse wheel event structure (event.wheel.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_MouseWheelEvent
|
typedef struct SDL_MouseWheelEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_MOUSEWHEEL */
|
Uint32 type; /**< SDL_MOUSEWHEEL */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The window with mouse focus, if any */
|
Uint32 windowID; /**< The window with mouse focus, if any */
|
||||||
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
|
||||||
@@ -323,11 +345,11 @@ typedef struct SDL_MouseWheelEvent
|
|||||||
} SDL_MouseWheelEvent;
|
} SDL_MouseWheelEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joystick axis motion event structure (event.jaxis.*)
|
* Joystick axis motion event structure (event.jaxis.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyAxisEvent
|
typedef struct SDL_JoyAxisEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYAXISMOTION */
|
Uint32 type; /**< SDL_JOYAXISMOTION */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 axis; /**< The joystick axis index */
|
Uint8 axis; /**< The joystick axis index */
|
||||||
@@ -339,11 +361,11 @@ typedef struct SDL_JoyAxisEvent
|
|||||||
} SDL_JoyAxisEvent;
|
} SDL_JoyAxisEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joystick trackball motion event structure (event.jball.*)
|
* Joystick trackball motion event structure (event.jball.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyBallEvent
|
typedef struct SDL_JoyBallEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYBALLMOTION */
|
Uint32 type; /**< SDL_JOYBALLMOTION */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 ball; /**< The joystick trackball index */
|
Uint8 ball; /**< The joystick trackball index */
|
||||||
@@ -355,18 +377,18 @@ typedef struct SDL_JoyBallEvent
|
|||||||
} SDL_JoyBallEvent;
|
} SDL_JoyBallEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joystick hat position change event structure (event.jhat.*)
|
* Joystick hat position change event structure (event.jhat.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyHatEvent
|
typedef struct SDL_JoyHatEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYHATMOTION */
|
Uint32 type; /**< SDL_JOYHATMOTION */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 hat; /**< The joystick hat index */
|
Uint8 hat; /**< The joystick hat index */
|
||||||
Uint8 value; /**< The hat position value.
|
Uint8 value; /**< The hat position value.
|
||||||
* \sa ::SDL_HAT_LEFTUP ::SDL_HAT_UP ::SDL_HAT_RIGHTUP
|
* \sa SDL_HAT_LEFTUP SDL_HAT_UP SDL_HAT_RIGHTUP
|
||||||
* \sa ::SDL_HAT_LEFT ::SDL_HAT_CENTERED ::SDL_HAT_RIGHT
|
* \sa SDL_HAT_LEFT SDL_HAT_CENTERED SDL_HAT_RIGHT
|
||||||
* \sa ::SDL_HAT_LEFTDOWN ::SDL_HAT_DOWN ::SDL_HAT_RIGHTDOWN
|
* \sa SDL_HAT_LEFTDOWN SDL_HAT_DOWN SDL_HAT_RIGHTDOWN
|
||||||
*
|
*
|
||||||
* Note that zero means the POV is centered.
|
* Note that zero means the POV is centered.
|
||||||
*/
|
*/
|
||||||
@@ -375,46 +397,51 @@ typedef struct SDL_JoyHatEvent
|
|||||||
} SDL_JoyHatEvent;
|
} SDL_JoyHatEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joystick button event structure (event.jbutton.*)
|
* Joystick button event structure (event.jbutton.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyButtonEvent
|
typedef struct SDL_JoyButtonEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */
|
Uint32 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 button; /**< The joystick button index */
|
Uint8 button; /**< The joystick button index */
|
||||||
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
} SDL_JoyButtonEvent;
|
} SDL_JoyButtonEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joystick device event structure (event.jdevice.*)
|
* Joystick device event structure (event.jdevice.*)
|
||||||
|
*
|
||||||
|
* SDL will send JOYSTICK_ADDED events for devices that are already plugged in
|
||||||
|
* during SDL_Init.
|
||||||
|
*
|
||||||
|
* \sa SDL_ControllerDeviceEvent
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyDeviceEvent
|
typedef struct SDL_JoyDeviceEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */
|
Uint32 type; /**< SDL_JOYDEVICEADDED or SDL_JOYDEVICEREMOVED */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
|
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
|
||||||
} SDL_JoyDeviceEvent;
|
} SDL_JoyDeviceEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Joysick battery level change event structure (event.jbattery.*)
|
* Joysick battery level change event structure (event.jbattery.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_JoyBatteryEvent
|
typedef struct SDL_JoyBatteryEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_JOYBATTERYUPDATED */
|
Uint32 type; /**< SDL_JOYBATTERYUPDATED */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
SDL_JoystickPowerLevel level; /**< The joystick battery level */
|
SDL_JoystickPowerLevel level; /**< The joystick battery level */
|
||||||
} SDL_JoyBatteryEvent;
|
} SDL_JoyBatteryEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Game controller axis motion event structure (event.caxis.*)
|
* Game controller axis motion event structure (event.caxis.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_ControllerAxisEvent
|
typedef struct SDL_ControllerAxisEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_CONTROLLERAXISMOTION */
|
Uint32 type; /**< SDL_CONTROLLERAXISMOTION */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 axis; /**< The controller axis (SDL_GameControllerAxis) */
|
Uint8 axis; /**< The controller axis (SDL_GameControllerAxis) */
|
||||||
@@ -427,36 +454,42 @@ typedef struct SDL_ControllerAxisEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Game controller button event structure (event.cbutton.*)
|
* Game controller button event structure (event.cbutton.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_ControllerButtonEvent
|
typedef struct SDL_ControllerButtonEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
|
Uint32 type; /**< SDL_CONTROLLERBUTTONDOWN or SDL_CONTROLLERBUTTONUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Uint8 button; /**< The controller button (SDL_GameControllerButton) */
|
Uint8 button; /**< The controller button (SDL_GameControllerButton) */
|
||||||
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
|
Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */
|
||||||
Uint8 padding1;
|
Uint8 padding1;
|
||||||
Uint8 padding2;
|
Uint8 padding2;
|
||||||
} SDL_ControllerButtonEvent;
|
} SDL_ControllerButtonEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Controller device event structure (event.cdevice.*)
|
* Controller device event structure (event.cdevice.*)
|
||||||
|
*
|
||||||
|
* Joysticks that are supported game controllers receive both an
|
||||||
|
* SDL_JoyDeviceEvent and an SDL_ControllerDeviceEvent.
|
||||||
|
*
|
||||||
|
* SDL will send CONTROLLERDEVICEADDED events for joysticks that are already
|
||||||
|
* plugged in during SDL_Init() and are recognized as game controllers.
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_ControllerDeviceEvent
|
typedef struct SDL_ControllerDeviceEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */
|
Uint32 type; /**< SDL_CONTROLLERDEVICEADDED, SDL_CONTROLLERDEVICEREMOVED, SDL_CONTROLLERDEVICEREMAPPED, or SDL_CONTROLLERSTEAMHANDLEUPDATED */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
|
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
|
||||||
} SDL_ControllerDeviceEvent;
|
} SDL_ControllerDeviceEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Game controller touchpad event structure (event.ctouchpad.*)
|
* Game controller touchpad event structure (event.ctouchpad.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_ControllerTouchpadEvent
|
typedef struct SDL_ControllerTouchpadEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_CONTROLLERTOUCHPADDOWN or ::SDL_CONTROLLERTOUCHPADMOTION or ::SDL_CONTROLLERTOUCHPADUP */
|
Uint32 type; /**< SDL_CONTROLLERTOUCHPADDOWN or SDL_CONTROLLERTOUCHPADMOTION or SDL_CONTROLLERTOUCHPADUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Sint32 touchpad; /**< The index of the touchpad */
|
Sint32 touchpad; /**< The index of the touchpad */
|
||||||
@@ -467,24 +500,24 @@ typedef struct SDL_ControllerTouchpadEvent
|
|||||||
} SDL_ControllerTouchpadEvent;
|
} SDL_ControllerTouchpadEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Game controller sensor event structure (event.csensor.*)
|
* Game controller sensor event structure (event.csensor.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_ControllerSensorEvent
|
typedef struct SDL_ControllerSensorEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_CONTROLLERSENSORUPDATE */
|
Uint32 type; /**< SDL_CONTROLLERSENSORUPDATE */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Sint32 sensor; /**< The type of the sensor, one of the values of ::SDL_SensorType */
|
Sint32 sensor; /**< The type of the sensor, one of the values of SDL_SensorType */
|
||||||
float data[3]; /**< Up to 3 values from the sensor, as defined in SDL_sensor.h */
|
float data[3]; /**< Up to 3 values from the sensor, as defined in SDL_sensor.h */
|
||||||
Uint64 timestamp_us; /**< The timestamp of the sensor reading in microseconds, if the hardware provides this information. */
|
Uint64 timestamp_us; /**< The timestamp of the sensor reading in microseconds, if the hardware provides this information. */
|
||||||
} SDL_ControllerSensorEvent;
|
} SDL_ControllerSensorEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Audio device event structure (event.adevice.*)
|
* Audio device event structure (event.adevice.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_AudioDeviceEvent
|
typedef struct SDL_AudioDeviceEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_AUDIODEVICEADDED, or ::SDL_AUDIODEVICEREMOVED */
|
Uint32 type; /**< SDL_AUDIODEVICEADDED, or SDL_AUDIODEVICEREMOVED */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 which; /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
|
Uint32 which; /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
|
||||||
Uint8 iscapture; /**< zero if an output device, non-zero if a capture device. */
|
Uint8 iscapture; /**< zero if an output device, non-zero if a capture device. */
|
||||||
@@ -495,11 +528,11 @@ typedef struct SDL_AudioDeviceEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Touch finger event structure (event.tfinger.*)
|
* Touch finger event structure (event.tfinger.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_TouchFingerEvent
|
typedef struct SDL_TouchFingerEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP */
|
Uint32 type; /**< SDL_FINGERMOTION or SDL_FINGERDOWN or SDL_FINGERUP */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_TouchID touchId; /**< The touch device id */
|
SDL_TouchID touchId; /**< The touch device id */
|
||||||
SDL_FingerID fingerId;
|
SDL_FingerID fingerId;
|
||||||
@@ -513,11 +546,11 @@ typedef struct SDL_TouchFingerEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Multiple Finger Gesture Event (event.mgesture.*)
|
* Multiple Finger Gesture Event (event.mgesture.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_MultiGestureEvent
|
typedef struct SDL_MultiGestureEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_MULTIGESTURE */
|
Uint32 type; /**< SDL_MULTIGESTURE */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_TouchID touchId; /**< The touch device id */
|
SDL_TouchID touchId; /**< The touch device id */
|
||||||
float dTheta;
|
float dTheta;
|
||||||
@@ -530,11 +563,11 @@ typedef struct SDL_MultiGestureEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Dollar Gesture Event (event.dgesture.*)
|
* Dollar Gesture Event (event.dgesture.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_DollarGestureEvent
|
typedef struct SDL_DollarGestureEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD */
|
Uint32 type; /**< SDL_DOLLARGESTURE or SDL_DOLLARRECORD */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_TouchID touchId; /**< The touch device id */
|
SDL_TouchID touchId; /**< The touch device id */
|
||||||
SDL_GestureID gestureId;
|
SDL_GestureID gestureId;
|
||||||
@@ -546,13 +579,15 @@ typedef struct SDL_DollarGestureEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief An event used to request a file open by the system (event.drop.*)
|
* An event used to request a file open by the system (event.drop.*)
|
||||||
* This event is enabled by default, you can disable it with SDL_EventState().
|
*
|
||||||
* \note If this event is enabled, you must free the filename in the event.
|
* This event is enabled by default, you can disable it with SDL_EventState().
|
||||||
|
*
|
||||||
|
* If this event is enabled, you must free the filename in the event.
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_DropEvent
|
typedef struct SDL_DropEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_DROPBEGIN or ::SDL_DROPFILE or ::SDL_DROPTEXT or ::SDL_DROPCOMPLETE */
|
Uint32 type; /**< SDL_DROPBEGIN or SDL_DROPFILE or SDL_DROPTEXT or SDL_DROPCOMPLETE */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
char *file; /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
|
char *file; /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
|
||||||
Uint32 windowID; /**< The window that was dropped on, if any */
|
Uint32 windowID; /**< The window that was dropped on, if any */
|
||||||
@@ -560,11 +595,11 @@ typedef struct SDL_DropEvent
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Sensor event structure (event.sensor.*)
|
* Sensor event structure (event.sensor.*)
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_SensorEvent
|
typedef struct SDL_SensorEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_SENSORUPDATE */
|
Uint32 type; /**< SDL_SENSORUPDATE */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Sint32 which; /**< The instance ID of the sensor */
|
Sint32 which; /**< The instance ID of the sensor */
|
||||||
float data[6]; /**< Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData() */
|
float data[6]; /**< Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData() */
|
||||||
@@ -572,29 +607,20 @@ typedef struct SDL_SensorEvent
|
|||||||
} SDL_SensorEvent;
|
} SDL_SensorEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The "quit requested" event
|
* The "quit requested" event
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_QuitEvent
|
typedef struct SDL_QuitEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_QUIT */
|
Uint32 type; /**< SDL_QUIT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
} SDL_QuitEvent;
|
} SDL_QuitEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief OS Specific event
|
* A user-defined event type (event.user.*)
|
||||||
*/
|
|
||||||
typedef struct SDL_OSEvent
|
|
||||||
{
|
|
||||||
Uint32 type; /**< ::SDL_QUIT */
|
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
|
||||||
} SDL_OSEvent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief A user-defined event type (event.user.*)
|
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_UserEvent
|
typedef struct SDL_UserEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_USEREVENT through ::SDL_LASTEVENT-1 */
|
Uint32 type; /**< SDL_USEREVENT through SDL_LASTEVENT-1 */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Uint32 windowID; /**< The associated window if any */
|
Uint32 windowID; /**< The associated window if any */
|
||||||
Sint32 code; /**< User defined event code */
|
Sint32 code; /**< User defined event code */
|
||||||
@@ -607,20 +633,24 @@ struct SDL_SysWMmsg;
|
|||||||
typedef struct SDL_SysWMmsg SDL_SysWMmsg;
|
typedef struct SDL_SysWMmsg SDL_SysWMmsg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A video driver dependent system event (event.syswm.*)
|
* A video driver dependent system event (event.syswm.*)
|
||||||
* This event is disabled by default, you can enable it with SDL_EventState()
|
|
||||||
*
|
*
|
||||||
* \note If you want to use this event, you should include SDL_syswm.h.
|
* This event is disabled by default, you can enable it with SDL_EventState()
|
||||||
|
*
|
||||||
|
* If you want to use this event, you should include SDL_syswm.h.
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_SysWMEvent
|
typedef struct SDL_SysWMEvent
|
||||||
{
|
{
|
||||||
Uint32 type; /**< ::SDL_SYSWMEVENT */
|
Uint32 type; /**< SDL_SYSWMEVENT */
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
SDL_SysWMmsg *msg; /**< driver dependent data, defined in SDL_syswm.h */
|
SDL_SysWMmsg *msg; /**< driver dependent data, defined in SDL_syswm.h */
|
||||||
} SDL_SysWMEvent;
|
} SDL_SysWMEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief General event structure
|
* General event structure
|
||||||
|
*
|
||||||
|
* The SDL_Event structure is the core of all event handling in SDL. SDL_Event
|
||||||
|
* is a union of all event structures used in SDL.
|
||||||
*/
|
*/
|
||||||
typedef union SDL_Event
|
typedef union SDL_Event
|
||||||
{
|
{
|
||||||
@@ -703,7 +733,7 @@ SDL_COMPILE_TIME_ASSERT(SDL_Event, sizeof(SDL_Event) == sizeof(((SDL_Event *)NUL
|
|||||||
extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
|
extern DECLSPEC void SDLCALL SDL_PumpEvents(void);
|
||||||
|
|
||||||
/* @{ */
|
/* @{ */
|
||||||
typedef enum
|
typedef enum SDL_eventaction
|
||||||
{
|
{
|
||||||
SDL_ADDEVENT,
|
SDL_ADDEVENT,
|
||||||
SDL_PEEKEVENT,
|
SDL_PEEKEVENT,
|
||||||
@@ -730,15 +760,15 @@ typedef enum
|
|||||||
*
|
*
|
||||||
* This function is thread-safe.
|
* This function is thread-safe.
|
||||||
*
|
*
|
||||||
* \param events destination buffer for the retrieved events
|
* \param events destination buffer for the retrieved events.
|
||||||
* \param numevents if action is SDL_ADDEVENT, the number of events to add
|
* \param numevents if action is SDL_ADDEVENT, the number of events to add
|
||||||
* back to the event queue; if action is SDL_PEEKEVENT or
|
* back to the event queue; if action is SDL_PEEKEVENT or
|
||||||
* SDL_GETEVENT, the maximum number of events to retrieve
|
* SDL_GETEVENT, the maximum number of events to retrieve.
|
||||||
* \param action action to take; see [[#action|Remarks]] for details
|
* \param action action to take; see [[#action|Remarks]] for details.
|
||||||
* \param minType minimum value of the event type to be considered;
|
* \param minType minimum value of the event type to be considered;
|
||||||
* SDL_FIRSTEVENT is a safe choice
|
* SDL_FIRSTEVENT is a safe choice.
|
||||||
* \param maxType maximum value of the event type to be considered;
|
* \param maxType maximum value of the event type to be considered;
|
||||||
* SDL_LASTEVENT is a safe choice
|
* SDL_LASTEVENT is a safe choice.
|
||||||
* \returns the number of events actually stored or a negative error code on
|
* \returns the number of events actually stored or a negative error code on
|
||||||
* failure; call SDL_GetError() for more information.
|
* failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -759,7 +789,7 @@ extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
|
|||||||
* If you need to check for a range of event types, use SDL_HasEvents()
|
* If you need to check for a range of event types, use SDL_HasEvents()
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* \param type the type of event to be queried; see SDL_EventType for details
|
* \param type the type of event to be queried; see SDL_EventType for details.
|
||||||
* \returns SDL_TRUE if events matching `type` are present, or SDL_FALSE if
|
* \returns SDL_TRUE if events matching `type` are present, or SDL_FALSE if
|
||||||
* events matching `type` are not present.
|
* events matching `type` are not present.
|
||||||
*
|
*
|
||||||
@@ -776,9 +806,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type);
|
|||||||
* If you need to check for a single event type, use SDL_HasEvent() instead.
|
* If you need to check for a single event type, use SDL_HasEvent() instead.
|
||||||
*
|
*
|
||||||
* \param minType the low end of event type to be queried, inclusive; see
|
* \param minType the low end of event type to be queried, inclusive; see
|
||||||
* SDL_EventType for details
|
* SDL_EventType for details.
|
||||||
* \param maxType the high end of event type to be queried, inclusive; see
|
* \param maxType the high end of event type to be queried, inclusive; see
|
||||||
* SDL_EventType for details
|
* SDL_EventType for details.
|
||||||
* \returns SDL_TRUE if events with type >= `minType` and <= `maxType` are
|
* \returns SDL_TRUE if events with type >= `minType` and <= `maxType` are
|
||||||
* present, or SDL_FALSE if not.
|
* present, or SDL_FALSE if not.
|
||||||
*
|
*
|
||||||
@@ -802,7 +832,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);
|
|||||||
* sure that all pending OS events are flushed, you can call SDL_PumpEvents()
|
* sure that all pending OS events are flushed, you can call SDL_PumpEvents()
|
||||||
* on the main thread immediately before the flush call.
|
* on the main thread immediately before the flush call.
|
||||||
*
|
*
|
||||||
* \param type the type of event to be cleared; see SDL_EventType for details
|
* \param type the type of event to be cleared; see SDL_EventType for details.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -825,9 +855,9 @@ extern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);
|
|||||||
* on the main thread immediately before the flush call.
|
* on the main thread immediately before the flush call.
|
||||||
*
|
*
|
||||||
* \param minType the low end of event type to be cleared, inclusive; see
|
* \param minType the low end of event type to be cleared, inclusive; see
|
||||||
* SDL_EventType for details
|
* SDL_EventType for details.
|
||||||
* \param maxType the high end of event type to be cleared, inclusive; see
|
* \param maxType the high end of event type to be cleared, inclusive; see
|
||||||
* SDL_EventType for details
|
* SDL_EventType for details.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -868,7 +898,7 @@ extern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* \param event the SDL_Event structure to be filled with the next event from
|
* \param event the SDL_Event structure to be filled with the next event from
|
||||||
* the queue, or NULL
|
* the queue, or NULL.
|
||||||
* \returns 1 if there is a pending event or 0 if there are none available.
|
* \returns 1 if there is a pending event or 0 if there are none available.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -892,7 +922,7 @@ extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
|
|||||||
* this function in the thread that initialized the video subsystem.
|
* this function in the thread that initialized the video subsystem.
|
||||||
*
|
*
|
||||||
* \param event the SDL_Event structure to be filled in with the next event
|
* \param event the SDL_Event structure to be filled in with the next event
|
||||||
* from the queue, or NULL
|
* from the queue, or NULL.
|
||||||
* \returns 1 on success or 0 if there was an error while waiting for events;
|
* \returns 1 on success or 0 if there was an error while waiting for events;
|
||||||
* call SDL_GetError() for more information.
|
* call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -915,9 +945,9 @@ extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
|
|||||||
* this function in the thread that initialized the video subsystem.
|
* this function in the thread that initialized the video subsystem.
|
||||||
*
|
*
|
||||||
* \param event the SDL_Event structure to be filled in with the next event
|
* \param event the SDL_Event structure to be filled in with the next event
|
||||||
* from the queue, or NULL
|
* from the queue, or NULL.
|
||||||
* \param timeout the maximum number of milliseconds to wait for the next
|
* \param timeout the maximum number of milliseconds to wait for the next
|
||||||
* available event
|
* available event.
|
||||||
* \returns 1 on success or 0 if there was an error while waiting for events;
|
* \returns 1 on success or 0 if there was an error while waiting for events;
|
||||||
* call SDL_GetError() for more information. This also returns 0 if
|
* call SDL_GetError() for more information. This also returns 0 if
|
||||||
* the timeout elapsed without an event arriving.
|
* the timeout elapsed without an event arriving.
|
||||||
@@ -952,7 +982,7 @@ extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
|
|||||||
* get an event type that does not conflict with other code that also wants
|
* get an event type that does not conflict with other code that also wants
|
||||||
* its own custom event types.
|
* its own custom event types.
|
||||||
*
|
*
|
||||||
* \param event the SDL_Event to be added to the queue
|
* \param event the SDL_Event to be added to the queue.
|
||||||
* \returns 1 on success, 0 if the event was filtered, or a negative error
|
* \returns 1 on success, 0 if the event was filtered, or a negative error
|
||||||
* code on failure; call SDL_GetError() for more information. A
|
* code on failure; call SDL_GetError() for more information. A
|
||||||
* common reason for error is the event queue being full.
|
* common reason for error is the event queue being full.
|
||||||
@@ -968,11 +998,11 @@ extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
|
|||||||
/**
|
/**
|
||||||
* A function pointer used for callbacks that watch the event queue.
|
* A function pointer used for callbacks that watch the event queue.
|
||||||
*
|
*
|
||||||
* \param userdata what was passed as `userdata` to SDL_SetEventFilter()
|
* \param userdata what was passed as `userdata` to SDL_SetEventFilter() or
|
||||||
* or SDL_AddEventWatch, etc
|
* SDL_AddEventWatch, etc.
|
||||||
* \param event the event that triggered the callback
|
* \param event the event that triggered the callback.
|
||||||
* \returns 1 to permit event to be added to the queue, and 0 to disallow
|
* \returns 1 to permit event to be added to the queue, and 0 to disallow it.
|
||||||
* it. When used with SDL_AddEventWatch, the return value is ignored.
|
* When used with SDL_AddEventWatch, the return value is ignored.
|
||||||
*
|
*
|
||||||
* \sa SDL_SetEventFilter
|
* \sa SDL_SetEventFilter
|
||||||
* \sa SDL_AddEventWatch
|
* \sa SDL_AddEventWatch
|
||||||
@@ -995,7 +1025,7 @@ typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
|
|||||||
* interrupt signal (e.g. pressing Ctrl-C), it will be delivered to the
|
* interrupt signal (e.g. pressing Ctrl-C), it will be delivered to the
|
||||||
* application at the next event poll.
|
* application at the next event poll.
|
||||||
*
|
*
|
||||||
* There is one caveat when dealing with the ::SDL_QuitEvent event type. The
|
* There is one caveat when dealing with the SDL_QuitEvent event type. The
|
||||||
* event filter is only called when the window manager desires to close the
|
* event filter is only called when the window manager desires to close the
|
||||||
* application window. If the event filter returns 1, then the window will be
|
* application window. If the event filter returns 1, then the window will be
|
||||||
* closed, otherwise the window will remain open if possible.
|
* closed, otherwise the window will remain open if possible.
|
||||||
@@ -1010,8 +1040,8 @@ typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);
|
|||||||
* the event filter, but events pushed onto the queue with SDL_PeepEvents() do
|
* the event filter, but events pushed onto the queue with SDL_PeepEvents() do
|
||||||
* not.
|
* not.
|
||||||
*
|
*
|
||||||
* \param filter An SDL_EventFilter function to call when an event happens
|
* \param filter An SDL_EventFilter function to call when an event happens.
|
||||||
* \param userdata a pointer that is passed to `filter`
|
* \param userdata a pointer that is passed to `filter`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1030,9 +1060,9 @@ extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,
|
|||||||
* This function can be used to "chain" filters, by saving the existing filter
|
* This function can be used to "chain" filters, by saving the existing filter
|
||||||
* before replacing it with a function that will call that saved filter.
|
* before replacing it with a function that will call that saved filter.
|
||||||
*
|
*
|
||||||
* \param filter the current callback function will be stored here
|
* \param filter the current callback function will be stored here.
|
||||||
* \param userdata the pointer that is passed to the current event filter will
|
* \param userdata the pointer that is passed to the current event filter will
|
||||||
* be stored here
|
* be stored here.
|
||||||
* \returns SDL_TRUE on success or SDL_FALSE if there is no event filter set.
|
* \returns SDL_TRUE on success or SDL_FALSE if there is no event filter set.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -1061,7 +1091,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
|
|||||||
* through SDL_PeepEvents().
|
* through SDL_PeepEvents().
|
||||||
*
|
*
|
||||||
* \param filter an SDL_EventFilter function to call when an event happens.
|
* \param filter an SDL_EventFilter function to call when an event happens.
|
||||||
* \param userdata a pointer that is passed to `filter`
|
* \param userdata a pointer that is passed to `filter`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1077,8 +1107,8 @@ extern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,
|
|||||||
* This function takes the same input as SDL_AddEventWatch() to identify and
|
* This function takes the same input as SDL_AddEventWatch() to identify and
|
||||||
* delete the corresponding callback.
|
* delete the corresponding callback.
|
||||||
*
|
*
|
||||||
* \param filter the function originally passed to SDL_AddEventWatch()
|
* \param filter the function originally passed to SDL_AddEventWatch().
|
||||||
* \param userdata the pointer originally passed to SDL_AddEventWatch()
|
* \param userdata the pointer originally passed to SDL_AddEventWatch().
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1095,8 +1125,8 @@ extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
|
|||||||
* this function does not change the filter permanently, it only uses the
|
* this function does not change the filter permanently, it only uses the
|
||||||
* supplied filter until this function returns.
|
* supplied filter until this function returns.
|
||||||
*
|
*
|
||||||
* \param filter the SDL_EventFilter function to call when an event happens
|
* \param filter the SDL_EventFilter function to call when an event happens.
|
||||||
* \param userdata a pointer that is passed to `filter`
|
* \param userdata a pointer that is passed to `filter`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1122,8 +1152,8 @@ extern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,
|
|||||||
* from the event queue and will not be filtered
|
* from the event queue and will not be filtered
|
||||||
* - `SDL_ENABLE`: the event will be processed normally
|
* - `SDL_ENABLE`: the event will be processed normally
|
||||||
*
|
*
|
||||||
* \param type the type of event; see SDL_EventType for details
|
* \param type the type of event; see SDL_EventType for details.
|
||||||
* \param state how to process the event
|
* \param state how to process the event.
|
||||||
* \returns `SDL_DISABLE` or `SDL_ENABLE`, representing the processing state
|
* \returns `SDL_DISABLE` or `SDL_ENABLE`, representing the processing state
|
||||||
* of the event before this function makes any changes to it.
|
* of the event before this function makes any changes to it.
|
||||||
*
|
*
|
||||||
@@ -1145,7 +1175,7 @@ extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);
|
|||||||
* Note, (Uint32)-1 means the maximum unsigned 32-bit integer value (or
|
* Note, (Uint32)-1 means the maximum unsigned 32-bit integer value (or
|
||||||
* 0xFFFFFFFF), but is clearer to write.
|
* 0xFFFFFFFF), but is clearer to write.
|
||||||
*
|
*
|
||||||
* \param numevents the number of events to be allocated
|
* \param numevents the number of events to be allocated.
|
||||||
* \returns the beginning event number, or (Uint32)-1 if there are not enough
|
* \returns the beginning event number, or (Uint32)-1 if there are not enough
|
||||||
* user-defined events left.
|
* user-defined events left.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_filesystem.h
|
* # CategoryFilesystem
|
||||||
*
|
*
|
||||||
* \brief Include file for filesystem SDL API functions
|
* Include file for filesystem SDL API functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_filesystem_h_
|
#ifndef SDL_filesystem_h_
|
||||||
@@ -64,7 +64,7 @@ extern "C" {
|
|||||||
* directory of the application as it is uncommon to store resources outside
|
* directory of the application as it is uncommon to store resources outside
|
||||||
* the executable. As such it is not a writable directory.
|
* the executable. As such it is not a writable directory.
|
||||||
*
|
*
|
||||||
* The returned path is guaranteed to end with a path separator ('\' on
|
* The returned path is guaranteed to end with a path separator ('\\' on
|
||||||
* Windows, '/' on most other platforms).
|
* Windows, '/' on most other platforms).
|
||||||
*
|
*
|
||||||
* The pointer returned is owned by the caller. Please call SDL_free() on the
|
* The pointer returned is owned by the caller. Please call SDL_free() on the
|
||||||
@@ -120,14 +120,14 @@ extern DECLSPEC char *SDLCALL SDL_GetBasePath(void);
|
|||||||
* - ...only use letters, numbers, and spaces. Avoid punctuation like "Game
|
* - ...only use letters, numbers, and spaces. Avoid punctuation like "Game
|
||||||
* Name 2: Bad Guy's Revenge!" ... "Game Name 2" is sufficient.
|
* Name 2: Bad Guy's Revenge!" ... "Game Name 2" is sufficient.
|
||||||
*
|
*
|
||||||
* The returned path is guaranteed to end with a path separator ('\' on
|
* The returned path is guaranteed to end with a path separator ('\\' on
|
||||||
* Windows, '/' on most other platforms).
|
* Windows, '/' on most other platforms).
|
||||||
*
|
*
|
||||||
* The pointer returned is owned by the caller. Please call SDL_free() on the
|
* The pointer returned is owned by the caller. Please call SDL_free() on the
|
||||||
* pointer when done with it.
|
* pointer when done with it.
|
||||||
*
|
*
|
||||||
* \param org the name of your organization
|
* \param org the name of your organization.
|
||||||
* \param app the name of your application
|
* \param app the name of your application.
|
||||||
* \returns a UTF-8 string of the user directory in platform-dependent
|
* \returns a UTF-8 string of the user directory in platform-dependent
|
||||||
* notation. NULL if there's a problem (creating directory failed,
|
* notation. NULL if there's a problem (creating directory failed,
|
||||||
* etc.).
|
* etc.).
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,10 +19,12 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: GameController */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_gamecontroller.h
|
* # CategoryGameController
|
||||||
*
|
*
|
||||||
* Include file for SDL game controller event handling
|
* Include file for SDL game controller event handling
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_gamecontroller_h_
|
#ifndef SDL_gamecontroller_h_
|
||||||
@@ -44,7 +46,7 @@ extern "C" {
|
|||||||
* \file SDL_gamecontroller.h
|
* \file SDL_gamecontroller.h
|
||||||
*
|
*
|
||||||
* In order to use these functions, SDL_Init() must have been called
|
* In order to use these functions, SDL_Init() must have been called
|
||||||
* with the ::SDL_INIT_GAMECONTROLLER flag. This causes SDL to scan the system
|
* with the SDL_INIT_GAMECONTROLLER flag. This causes SDL to scan the system
|
||||||
* for game controllers, and load appropriate drivers.
|
* for game controllers, and load appropriate drivers.
|
||||||
*
|
*
|
||||||
* If you would like to receive controller updates while the application
|
* If you would like to receive controller updates while the application
|
||||||
@@ -58,7 +60,7 @@ extern "C" {
|
|||||||
struct _SDL_GameController;
|
struct _SDL_GameController;
|
||||||
typedef struct _SDL_GameController SDL_GameController;
|
typedef struct _SDL_GameController SDL_GameController;
|
||||||
|
|
||||||
typedef enum
|
typedef enum SDL_GameControllerType
|
||||||
{
|
{
|
||||||
SDL_CONTROLLER_TYPE_UNKNOWN = 0,
|
SDL_CONTROLLER_TYPE_UNKNOWN = 0,
|
||||||
SDL_CONTROLLER_TYPE_XBOX360,
|
SDL_CONTROLLER_TYPE_XBOX360,
|
||||||
@@ -73,10 +75,11 @@ typedef enum
|
|||||||
SDL_CONTROLLER_TYPE_NVIDIA_SHIELD,
|
SDL_CONTROLLER_TYPE_NVIDIA_SHIELD,
|
||||||
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT,
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT,
|
||||||
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT,
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT,
|
||||||
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR,
|
||||||
|
SDL_CONTROLLER_TYPE_MAX
|
||||||
} SDL_GameControllerType;
|
} SDL_GameControllerType;
|
||||||
|
|
||||||
typedef enum
|
typedef enum SDL_GameControllerBindType
|
||||||
{
|
{
|
||||||
SDL_CONTROLLER_BINDTYPE_NONE = 0,
|
SDL_CONTROLLER_BINDTYPE_NONE = 0,
|
||||||
SDL_CONTROLLER_BINDTYPE_BUTTON,
|
SDL_CONTROLLER_BINDTYPE_BUTTON,
|
||||||
@@ -85,7 +88,7 @@ typedef enum
|
|||||||
} SDL_GameControllerBindType;
|
} SDL_GameControllerBindType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the SDL joystick layer binding for this controller button/axis mapping
|
* Get the SDL joystick layer binding for this controller button/axis mapping
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_GameControllerButtonBind
|
typedef struct SDL_GameControllerButtonBind
|
||||||
{
|
{
|
||||||
@@ -143,6 +146,10 @@ typedef struct SDL_GameControllerButtonBind
|
|||||||
* If a new mapping is loaded for an already known controller GUID, the later
|
* If a new mapping is loaded for an already known controller GUID, the later
|
||||||
* version will overwrite the one currently loaded.
|
* version will overwrite the one currently loaded.
|
||||||
*
|
*
|
||||||
|
* If this function is called before SDL_Init, SDL will generate an
|
||||||
|
* SDL_CONTROLLERDEVICEADDED event for matching controllers that are plugged
|
||||||
|
* in at the time that SDL_Init is called.
|
||||||
|
*
|
||||||
* Mappings not belonging to the current platform or with no platform field
|
* Mappings not belonging to the current platform or with no platform field
|
||||||
* specified will be ignored (i.e. mappings for Linux will be ignored in
|
* specified will be ignored (i.e. mappings for Linux will be ignored in
|
||||||
* Windows, etc).
|
* Windows, etc).
|
||||||
@@ -151,8 +158,8 @@ typedef struct SDL_GameControllerButtonBind
|
|||||||
* processing it, so take this into consideration if you are in a memory
|
* processing it, so take this into consideration if you are in a memory
|
||||||
* constrained environment.
|
* constrained environment.
|
||||||
*
|
*
|
||||||
* \param rw the data stream for the mappings to be added
|
* \param rw the data stream for the mappings to be added.
|
||||||
* \param freerw non-zero to close the stream after being read
|
* \param freerw non-zero to close the stream after being read.
|
||||||
* \returns the number of mappings added or -1 on error; call SDL_GetError()
|
* \returns the number of mappings added or -1 on error; call SDL_GetError()
|
||||||
* for more information.
|
* for more information.
|
||||||
*
|
*
|
||||||
@@ -161,13 +168,15 @@ typedef struct SDL_GameControllerButtonBind
|
|||||||
* \sa SDL_GameControllerAddMapping
|
* \sa SDL_GameControllerAddMapping
|
||||||
* \sa SDL_GameControllerAddMappingsFromFile
|
* \sa SDL_GameControllerAddMappingsFromFile
|
||||||
* \sa SDL_GameControllerMappingForGUID
|
* \sa SDL_GameControllerMappingForGUID
|
||||||
|
* \sa SDL_CONTROLLERDEVICEADDED
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw, int freerw);
|
extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw, int freerw);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load a set of mappings from a file, filtered by the current SDL_GetPlatform()
|
* Load a set of mappings from a file, filtered by the current
|
||||||
|
* SDL_GetPlatform()
|
||||||
*
|
*
|
||||||
* Convenience macro.
|
* Convenience macro.
|
||||||
*/
|
*/
|
||||||
#define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)
|
#define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1)
|
||||||
|
|
||||||
@@ -189,7 +198,11 @@ extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw,
|
|||||||
* "341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7"
|
* "341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7"
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* \param mappingString the mapping string
|
* If this function is called before SDL_Init, SDL will generate an
|
||||||
|
* SDL_CONTROLLERDEVICEADDED event for matching controllers that are plugged
|
||||||
|
* in at the time that SDL_Init is called.
|
||||||
|
*
|
||||||
|
* \param mappingString the mapping string.
|
||||||
* \returns 1 if a new mapping is added, 0 if an existing mapping is updated,
|
* \returns 1 if a new mapping is added, 0 if an existing mapping is updated,
|
||||||
* -1 on error; call SDL_GetError() for more information.
|
* -1 on error; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -197,6 +210,7 @@ extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw,
|
|||||||
*
|
*
|
||||||
* \sa SDL_GameControllerMapping
|
* \sa SDL_GameControllerMapping
|
||||||
* \sa SDL_GameControllerMappingForGUID
|
* \sa SDL_GameControllerMappingForGUID
|
||||||
|
* \sa SDL_CONTROLLERDEVICEADDED
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping(const char* mappingString);
|
extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping(const char* mappingString);
|
||||||
|
|
||||||
@@ -224,7 +238,7 @@ extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForIndex(int mapping_ind
|
|||||||
*
|
*
|
||||||
* The returned string must be freed with SDL_free().
|
* The returned string must be freed with SDL_free().
|
||||||
*
|
*
|
||||||
* \param guid a structure containing the GUID for which a mapping is desired
|
* \param guid a structure containing the GUID for which a mapping is desired.
|
||||||
* \returns a mapping string or NULL on error; call SDL_GetError() for more
|
* \returns a mapping string or NULL on error; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
*
|
*
|
||||||
@@ -243,7 +257,7 @@ extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForGUID(SDL_JoystickGUID
|
|||||||
* Details about mappings are discussed with SDL_GameControllerAddMapping().
|
* Details about mappings are discussed with SDL_GameControllerAddMapping().
|
||||||
*
|
*
|
||||||
* \param gamecontroller the game controller you want to get the current
|
* \param gamecontroller the game controller you want to get the current
|
||||||
* mapping for
|
* mapping for.
|
||||||
* \returns a string that has the controller's mapping or NULL if no mapping
|
* \returns a string that has the controller's mapping or NULL if no mapping
|
||||||
* is available; call SDL_GetError() for more information.
|
* is available; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -261,7 +275,7 @@ extern DECLSPEC char * SDLCALL SDL_GameControllerMapping(SDL_GameController *gam
|
|||||||
* SDL_JoystickOpen().
|
* SDL_JoystickOpen().
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, up to
|
* \param joystick_index the device_index of a device, up to
|
||||||
* SDL_NumJoysticks()
|
* SDL_NumJoysticks().
|
||||||
* \returns SDL_TRUE if the given joystick is supported by the game controller
|
* \returns SDL_TRUE if the given joystick is supported by the game controller
|
||||||
* interface, SDL_FALSE if it isn't or it's an invalid index.
|
* interface, SDL_FALSE if it isn't or it's an invalid index.
|
||||||
*
|
*
|
||||||
@@ -281,7 +295,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index);
|
|||||||
* SDL_JoystickOpen().
|
* SDL_JoystickOpen().
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, from zero to
|
* \param joystick_index the device_index of a device, from zero to
|
||||||
* SDL_NumJoysticks()-1
|
* SDL_NumJoysticks()-1.
|
||||||
* \returns the implementation-dependent name for the game controller, or NULL
|
* \returns the implementation-dependent name for the game controller, or NULL
|
||||||
* if there is no name or the index is invalid.
|
* if there is no name or the index is invalid.
|
||||||
*
|
*
|
||||||
@@ -302,7 +316,7 @@ extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_
|
|||||||
* SDL_JoystickOpen().
|
* SDL_JoystickOpen().
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, from zero to
|
* \param joystick_index the device_index of a device, from zero to
|
||||||
* SDL_NumJoysticks()-1
|
* SDL_NumJoysticks()-1.
|
||||||
* \returns the implementation-dependent path for the game controller, or NULL
|
* \returns the implementation-dependent path for the game controller, or NULL
|
||||||
* if there is no path or the index is invalid.
|
* if there is no path or the index is invalid.
|
||||||
*
|
*
|
||||||
@@ -318,7 +332,7 @@ extern DECLSPEC const char *SDLCALL SDL_GameControllerPathForIndex(int joystick_
|
|||||||
* This can be called before any controllers are opened.
|
* This can be called before any controllers are opened.
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, from zero to
|
* \param joystick_index the device_index of a device, from zero to
|
||||||
* SDL_NumJoysticks()-1
|
* SDL_NumJoysticks()-1.
|
||||||
* \returns the controller type.
|
* \returns the controller type.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.12.
|
* \since This function is available since SDL 2.0.12.
|
||||||
@@ -331,7 +345,7 @@ extern DECLSPEC SDL_GameControllerType SDLCALL SDL_GameControllerTypeForIndex(in
|
|||||||
* This can be called before any controllers are opened.
|
* This can be called before any controllers are opened.
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, from zero to
|
* \param joystick_index the device_index of a device, from zero to
|
||||||
* SDL_NumJoysticks()-1
|
* SDL_NumJoysticks()-1.
|
||||||
* \returns the mapping string. Must be freed with SDL_free(). Returns NULL if
|
* \returns the mapping string. Must be freed with SDL_free(). Returns NULL if
|
||||||
* no mapping is available.
|
* no mapping is available.
|
||||||
*
|
*
|
||||||
@@ -351,7 +365,7 @@ extern DECLSPEC char *SDLCALL SDL_GameControllerMappingForDeviceIndex(int joysti
|
|||||||
* be used there instead.
|
* be used there instead.
|
||||||
*
|
*
|
||||||
* \param joystick_index the device_index of a device, up to
|
* \param joystick_index the device_index of a device, up to
|
||||||
* SDL_NumJoysticks()
|
* SDL_NumJoysticks().
|
||||||
* \returns a gamecontroller identifier or NULL if an error occurred; call
|
* \returns a gamecontroller identifier or NULL if an error occurred; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -366,7 +380,7 @@ extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerOpen(int joystick_
|
|||||||
/**
|
/**
|
||||||
* Get the SDL_GameController associated with an instance id.
|
* Get the SDL_GameController associated with an instance id.
|
||||||
*
|
*
|
||||||
* \param joyid the instance id to get the SDL_GameController for
|
* \param joyid the instance id to get the SDL_GameController for.
|
||||||
* \returns an SDL_GameController on success or NULL on failure; call
|
* \returns an SDL_GameController on success or NULL on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -398,7 +412,7 @@ extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromPlayerIndex(in
|
|||||||
* it takes a controller identifier instead of the (unstable) device index.
|
* it takes a controller identifier instead of the (unstable) device index.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller identifier previously returned by
|
* \param gamecontroller a game controller identifier previously returned by
|
||||||
* SDL_GameControllerOpen()
|
* SDL_GameControllerOpen().
|
||||||
* \returns the implementation dependent name for the game controller, or NULL
|
* \returns the implementation dependent name for the game controller, or NULL
|
||||||
* if there is no name or the identifier passed is invalid.
|
* if there is no name or the identifier passed is invalid.
|
||||||
*
|
*
|
||||||
@@ -416,7 +430,7 @@ extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController *g
|
|||||||
* it takes a controller identifier instead of the (unstable) device index.
|
* it takes a controller identifier instead of the (unstable) device index.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller identifier previously returned by
|
* \param gamecontroller a game controller identifier previously returned by
|
||||||
* SDL_GameControllerOpen()
|
* SDL_GameControllerOpen().
|
||||||
* \returns the implementation dependent path for the game controller, or NULL
|
* \returns the implementation dependent path for the game controller, or NULL
|
||||||
* if there is no path or the identifier passed is invalid.
|
* if there is no path or the identifier passed is invalid.
|
||||||
*
|
*
|
||||||
@@ -523,11 +537,25 @@ extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetFirmwareVersion(SDL_GameCont
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC const char * SDLCALL SDL_GameControllerGetSerial(SDL_GameController *gamecontroller);
|
extern DECLSPEC const char * SDLCALL SDL_GameControllerGetSerial(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Steam Input handle of an opened controller, if available.
|
||||||
|
*
|
||||||
|
* Returns an InputHandle_t for the controller that can be used with Steam
|
||||||
|
* Input API: https://partner.steamgames.com/doc/api/ISteamInput
|
||||||
|
*
|
||||||
|
* \param gamecontroller the game controller object to query.
|
||||||
|
* \returns the gamepad handle, or 0 if unavailable.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.30.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC Uint64 SDLCALL SDL_GameControllerGetSteamHandle(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a controller has been opened and is currently connected.
|
* Check if a controller has been opened and is currently connected.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller identifier previously returned by
|
* \param gamecontroller a game controller identifier previously returned by
|
||||||
* SDL_GameControllerOpen()
|
* SDL_GameControllerOpen().
|
||||||
* \returns SDL_TRUE if the controller has been opened and is currently
|
* \returns SDL_TRUE if the controller has been opened and is currently
|
||||||
* connected, or SDL_FALSE if not.
|
* connected, or SDL_FALSE if not.
|
||||||
*
|
*
|
||||||
@@ -552,7 +580,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerGetAttached(SDL_GameControlle
|
|||||||
* cause SDL to crash.
|
* cause SDL to crash.
|
||||||
*
|
*
|
||||||
* \param gamecontroller the game controller object that you want to get a
|
* \param gamecontroller the game controller object that you want to get a
|
||||||
* joystick from
|
* joystick from.
|
||||||
* \returns a SDL_Joystick object; call SDL_GetError() for more information.
|
* \returns a SDL_Joystick object; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -569,7 +597,7 @@ extern DECLSPEC SDL_Joystick *SDLCALL SDL_GameControllerGetJoystick(SDL_GameCont
|
|||||||
* Any number can be passed to SDL_GameControllerEventState(), but only -1, 0,
|
* Any number can be passed to SDL_GameControllerEventState(), but only -1, 0,
|
||||||
* and 1 will have any effect. Other numbers will just be returned.
|
* and 1 will have any effect. Other numbers will just be returned.
|
||||||
*
|
*
|
||||||
* \param state can be one of `SDL_QUERY`, `SDL_IGNORE`, or `SDL_ENABLE`
|
* \param state can be one of `SDL_QUERY`, `SDL_IGNORE`, or `SDL_ENABLE`.
|
||||||
* \returns the same value passed to the function, with exception to -1
|
* \returns the same value passed to the function, with exception to -1
|
||||||
* (SDL_QUERY), which will return the current state.
|
* (SDL_QUERY), which will return the current state.
|
||||||
*
|
*
|
||||||
@@ -592,15 +620,19 @@ extern DECLSPEC void SDLCALL SDL_GameControllerUpdate(void);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The list of axes available from a controller
|
* The list of axes available from a controller
|
||||||
*
|
*
|
||||||
* Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
|
* Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to
|
||||||
* and are centered within ~8000 of zero, though advanced UI will allow users to set
|
* SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though
|
||||||
* or autodetect the dead zone, which varies between controllers.
|
* advanced UI will allow users to set or autodetect the dead zone, which
|
||||||
|
* varies between controllers.
|
||||||
*
|
*
|
||||||
* Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
|
* Trigger axis values range from 0 (released) to SDL_JOYSTICK_AXIS_MAX (fully
|
||||||
|
* pressed) when reported by SDL_GameControllerGetAxis(). Note that this is
|
||||||
|
* not the same range that will be reported by the lower-level
|
||||||
|
* SDL_GetJoystickAxis().
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_GameControllerAxis
|
||||||
{
|
{
|
||||||
SDL_CONTROLLER_AXIS_INVALID = -1,
|
SDL_CONTROLLER_AXIS_INVALID = -1,
|
||||||
SDL_CONTROLLER_AXIS_LEFTX,
|
SDL_CONTROLLER_AXIS_LEFTX,
|
||||||
@@ -624,7 +656,7 @@ typedef enum
|
|||||||
* `SDL_CONTROLLER_AXIS_TRIGGERRIGHT` and `SDL_CONTROLLER_AXIS_TRIGGERLEFT`,
|
* `SDL_CONTROLLER_AXIS_TRIGGERRIGHT` and `SDL_CONTROLLER_AXIS_TRIGGERLEFT`,
|
||||||
* respectively.
|
* respectively.
|
||||||
*
|
*
|
||||||
* \param str string representing a SDL_GameController axis
|
* \param str string representing a SDL_GameController axis.
|
||||||
* \returns the SDL_GameControllerAxis enum corresponding to the input string,
|
* \returns the SDL_GameControllerAxis enum corresponding to the input string,
|
||||||
* or `SDL_CONTROLLER_AXIS_INVALID` if no match was found.
|
* or `SDL_CONTROLLER_AXIS_INVALID` if no match was found.
|
||||||
*
|
*
|
||||||
@@ -639,7 +671,7 @@ extern DECLSPEC SDL_GameControllerAxis SDLCALL SDL_GameControllerGetAxisFromStri
|
|||||||
*
|
*
|
||||||
* The caller should not SDL_free() the returned string.
|
* The caller should not SDL_free() the returned string.
|
||||||
*
|
*
|
||||||
* \param axis an enum value for a given SDL_GameControllerAxis
|
* \param axis an enum value for a given SDL_GameControllerAxis.
|
||||||
* \returns a string for the given axis, or NULL if an invalid axis is
|
* \returns a string for the given axis, or NULL if an invalid axis is
|
||||||
* specified. The string returned is of the format used by
|
* specified. The string returned is of the format used by
|
||||||
* SDL_GameController mapping strings.
|
* SDL_GameController mapping strings.
|
||||||
@@ -653,8 +685,8 @@ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForAxis(SDL_GameC
|
|||||||
/**
|
/**
|
||||||
* Get the SDL joystick layer binding for a controller axis mapping.
|
* Get the SDL joystick layer binding for a controller axis mapping.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller.
|
||||||
* \param axis an axis enum value (one of the SDL_GameControllerAxis values)
|
* \param axis an axis enum value (one of the SDL_GameControllerAxis values).
|
||||||
* \returns a SDL_GameControllerButtonBind describing the bind. On failure
|
* \returns a SDL_GameControllerButtonBind describing the bind. On failure
|
||||||
* (like the given Controller axis doesn't exist on the device), its
|
* (like the given Controller axis doesn't exist on the device), its
|
||||||
* `.bindType` will be `SDL_CONTROLLER_BINDTYPE_NONE`.
|
* `.bindType` will be `SDL_CONTROLLER_BINDTYPE_NONE`.
|
||||||
@@ -673,8 +705,8 @@ SDL_GameControllerGetBindForAxis(SDL_GameController *gamecontroller,
|
|||||||
* This merely reports whether the controller's mapping defined this axis, as
|
* This merely reports whether the controller's mapping defined this axis, as
|
||||||
* that is all the information SDL has about the physical device.
|
* that is all the information SDL has about the physical device.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller.
|
||||||
* \param axis an axis enum value (an SDL_GameControllerAxis value)
|
* \param axis an axis enum value (an SDL_GameControllerAxis value).
|
||||||
* \returns SDL_TRUE if the controller has this axis, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the controller has this axis, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -687,11 +719,15 @@ SDL_GameControllerHasAxis(SDL_GameController *gamecontroller, SDL_GameController
|
|||||||
*
|
*
|
||||||
* The axis indices start at index 0.
|
* The axis indices start at index 0.
|
||||||
*
|
*
|
||||||
* The state is a value ranging from -32768 to 32767. Triggers, however, range
|
* For thumbsticks, the state is a value ranging from -32768 (up/left) to
|
||||||
* from 0 to 32767 (they never return a negative value).
|
* 32767 (down/right).
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* Triggers range from 0 when released to 32767 when fully pressed, and never
|
||||||
* \param axis an axis index (one of the SDL_GameControllerAxis values)
|
* return a negative value. Note that this differs from the value reported by
|
||||||
|
* the lower-level SDL_JoystickGetAxis(), which normally uses the full range.
|
||||||
|
*
|
||||||
|
* \param gamecontroller a game controller.
|
||||||
|
* \param axis an axis index (one of the SDL_GameControllerAxis values).
|
||||||
* \returns axis state (including 0) on success or 0 (also) on failure; call
|
* \returns axis state (including 0) on success or 0 (also) on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -703,9 +739,9 @@ extern DECLSPEC Sint16 SDLCALL
|
|||||||
SDL_GameControllerGetAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis);
|
SDL_GameControllerGetAxis(SDL_GameController *gamecontroller, SDL_GameControllerAxis axis);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The list of buttons available from a controller
|
* The list of buttons available from a controller
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_GameControllerButton
|
||||||
{
|
{
|
||||||
SDL_CONTROLLER_BUTTON_INVALID = -1,
|
SDL_CONTROLLER_BUTTON_INVALID = -1,
|
||||||
SDL_CONTROLLER_BUTTON_A,
|
SDL_CONTROLLER_BUTTON_A,
|
||||||
@@ -740,7 +776,7 @@ typedef enum
|
|||||||
* SDL_GameController mapping. You do not normally need to call this function
|
* SDL_GameController mapping. You do not normally need to call this function
|
||||||
* unless you are parsing SDL_GameController mappings in your own code.
|
* unless you are parsing SDL_GameController mappings in your own code.
|
||||||
*
|
*
|
||||||
* \param str string representing a SDL_GameController axis
|
* \param str string representing a SDL_GameController axis.
|
||||||
* \returns the SDL_GameControllerButton enum corresponding to the input
|
* \returns the SDL_GameControllerButton enum corresponding to the input
|
||||||
* string, or `SDL_CONTROLLER_AXIS_INVALID` if no match was found.
|
* string, or `SDL_CONTROLLER_AXIS_INVALID` if no match was found.
|
||||||
*
|
*
|
||||||
@@ -753,7 +789,7 @@ extern DECLSPEC SDL_GameControllerButton SDLCALL SDL_GameControllerGetButtonFrom
|
|||||||
*
|
*
|
||||||
* The caller should not SDL_free() the returned string.
|
* The caller should not SDL_free() the returned string.
|
||||||
*
|
*
|
||||||
* \param button an enum value for a given SDL_GameControllerButton
|
* \param button an enum value for a given SDL_GameControllerButton.
|
||||||
* \returns a string for the given button, or NULL if an invalid button is
|
* \returns a string for the given button, or NULL if an invalid button is
|
||||||
* specified. The string returned is of the format used by
|
* specified. The string returned is of the format used by
|
||||||
* SDL_GameController mapping strings.
|
* SDL_GameController mapping strings.
|
||||||
@@ -767,8 +803,8 @@ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForButton(SDL_Gam
|
|||||||
/**
|
/**
|
||||||
* Get the SDL joystick layer binding for a controller button mapping.
|
* Get the SDL joystick layer binding for a controller button mapping.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller.
|
||||||
* \param button an button enum value (an SDL_GameControllerButton value)
|
* \param button an button enum value (an SDL_GameControllerButton value).
|
||||||
* \returns a SDL_GameControllerButtonBind describing the bind. On failure
|
* \returns a SDL_GameControllerButtonBind describing the bind. On failure
|
||||||
* (like the given Controller button doesn't exist on the device),
|
* (like the given Controller button doesn't exist on the device),
|
||||||
* its `.bindType` will be `SDL_CONTROLLER_BINDTYPE_NONE`.
|
* its `.bindType` will be `SDL_CONTROLLER_BINDTYPE_NONE`.
|
||||||
@@ -787,8 +823,8 @@ SDL_GameControllerGetBindForButton(SDL_GameController *gamecontroller,
|
|||||||
* This merely reports whether the controller's mapping defined this button,
|
* This merely reports whether the controller's mapping defined this button,
|
||||||
* as that is all the information SDL has about the physical device.
|
* as that is all the information SDL has about the physical device.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller.
|
||||||
* \param button a button enum value (an SDL_GameControllerButton value)
|
* \param button a button enum value (an SDL_GameControllerButton value).
|
||||||
* \returns SDL_TRUE if the controller has this button, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the controller has this button, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -799,8 +835,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasButton(SDL_GameController
|
|||||||
/**
|
/**
|
||||||
* Get the current state of a button on a game controller.
|
* Get the current state of a button on a game controller.
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller
|
* \param gamecontroller a game controller.
|
||||||
* \param button a button index (one of the SDL_GameControllerButton values)
|
* \param button a button index (one of the SDL_GameControllerButton values).
|
||||||
* \returns 1 for pressed state or 0 for not pressed state or error; call
|
* \returns 1 for pressed state or 0 for not pressed state or error; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -836,8 +872,8 @@ extern DECLSPEC int SDLCALL SDL_GameControllerGetTouchpadFinger(SDL_GameControll
|
|||||||
/**
|
/**
|
||||||
* Return whether a game controller has a particular sensor.
|
* Return whether a game controller has a particular sensor.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \param type The type of sensor to query
|
* \param type The type of sensor to query.
|
||||||
* \returns SDL_TRUE if the sensor exists, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the sensor exists, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -847,9 +883,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasSensor(SDL_GameController
|
|||||||
/**
|
/**
|
||||||
* Set whether data reporting for a game controller sensor is enabled.
|
* Set whether data reporting for a game controller sensor is enabled.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to update
|
* \param gamecontroller The controller to update.
|
||||||
* \param type The type of sensor to enable/disable
|
* \param type The type of sensor to enable/disable.
|
||||||
* \param enabled Whether data reporting should be enabled
|
* \param enabled Whether data reporting should be enabled.
|
||||||
* \returns 0 or -1 if an error occurred.
|
* \returns 0 or -1 if an error occurred.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -859,8 +895,8 @@ extern DECLSPEC int SDLCALL SDL_GameControllerSetSensorEnabled(SDL_GameControlle
|
|||||||
/**
|
/**
|
||||||
* Query whether sensor data reporting is enabled for a game controller.
|
* Query whether sensor data reporting is enabled for a game controller.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \param type The type of sensor to query
|
* \param type The type of sensor to query.
|
||||||
* \returns SDL_TRUE if the sensor is enabled, SDL_FALSE otherwise.
|
* \returns SDL_TRUE if the sensor is enabled, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -871,8 +907,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerIsSensorEnabled(SDL_GameContr
|
|||||||
* Get the data rate (number of events per second) of a game controller
|
* Get the data rate (number of events per second) of a game controller
|
||||||
* sensor.
|
* sensor.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \param type The type of sensor to query
|
* \param type The type of sensor to query.
|
||||||
* \return the data rate, or 0.0f if the data rate is not available.
|
* \return the data rate, or 0.0f if the data rate is not available.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.16.
|
* \since This function is available since SDL 2.0.16.
|
||||||
@@ -885,10 +921,10 @@ extern DECLSPEC float SDLCALL SDL_GameControllerGetSensorDataRate(SDL_GameContro
|
|||||||
* The number of values and interpretation of the data is sensor dependent.
|
* The number of values and interpretation of the data is sensor dependent.
|
||||||
* See SDL_sensor.h for the details for each type of sensor.
|
* See SDL_sensor.h for the details for each type of sensor.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \param type The type of sensor to query
|
* \param type The type of sensor to query.
|
||||||
* \param data A pointer filled with the current sensor state
|
* \param data A pointer filled with the current sensor state.
|
||||||
* \param num_values The number of values to write to data
|
* \param num_values The number of values to write to data.
|
||||||
* \return 0 or -1 if an error occurred.
|
* \return 0 or -1 if an error occurred.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -902,12 +938,12 @@ extern DECLSPEC int SDLCALL SDL_GameControllerGetSensorData(SDL_GameController *
|
|||||||
* The number of values and interpretation of the data is sensor dependent.
|
* The number of values and interpretation of the data is sensor dependent.
|
||||||
* See SDL_sensor.h for the details for each type of sensor.
|
* See SDL_sensor.h for the details for each type of sensor.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \param type The type of sensor to query
|
* \param type The type of sensor to query.
|
||||||
* \param timestamp A pointer filled with the timestamp in microseconds of the
|
* \param timestamp A pointer filled with the timestamp in microseconds of the
|
||||||
* current sensor reading if available, or 0 if not
|
* current sensor reading if available, or 0 if not.
|
||||||
* \param data A pointer filled with the current sensor state
|
* \param data A pointer filled with the current sensor state.
|
||||||
* \param num_values The number of values to write to data
|
* \param num_values The number of values to write to data.
|
||||||
* \return 0 or -1 if an error occurred.
|
* \return 0 or -1 if an error occurred.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.26.0.
|
* \since This function is available since SDL 2.26.0.
|
||||||
@@ -920,13 +956,13 @@ extern DECLSPEC int SDLCALL SDL_GameControllerGetSensorDataWithTimestamp(SDL_Gam
|
|||||||
* Each call to this function cancels any previous rumble effect, and calling
|
* Each call to this function cancels any previous rumble effect, and calling
|
||||||
* it with 0 intensity stops any rumbling.
|
* it with 0 intensity stops any rumbling.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to vibrate
|
* \param gamecontroller The controller to vibrate.
|
||||||
* \param low_frequency_rumble The intensity of the low frequency (left)
|
* \param low_frequency_rumble The intensity of the low frequency (left)
|
||||||
* rumble motor, from 0 to 0xFFFF
|
* rumble motor, from 0 to 0xFFFF.
|
||||||
* \param high_frequency_rumble The intensity of the high frequency (right)
|
* \param high_frequency_rumble The intensity of the high frequency (right)
|
||||||
* rumble motor, from 0 to 0xFFFF
|
* rumble motor, from 0 to 0xFFFF.
|
||||||
* \param duration_ms The duration of the rumble effect, in milliseconds
|
* \param duration_ms The duration of the rumble effect, in milliseconds.
|
||||||
* \returns 0, or -1 if rumble isn't supported on this controller
|
* \returns 0, or -1 if rumble isn't supported on this controller.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.9.
|
* \since This function is available since SDL 2.0.9.
|
||||||
*
|
*
|
||||||
@@ -945,13 +981,13 @@ extern DECLSPEC int SDLCALL SDL_GameControllerRumble(SDL_GameController *gamecon
|
|||||||
* want the (more common) whole-controller rumble, use
|
* want the (more common) whole-controller rumble, use
|
||||||
* SDL_GameControllerRumble() instead.
|
* SDL_GameControllerRumble() instead.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to vibrate
|
* \param gamecontroller The controller to vibrate.
|
||||||
* \param left_rumble The intensity of the left trigger rumble motor, from 0
|
* \param left_rumble The intensity of the left trigger rumble motor, from 0
|
||||||
* to 0xFFFF
|
* to 0xFFFF.
|
||||||
* \param right_rumble The intensity of the right trigger rumble motor, from 0
|
* \param right_rumble The intensity of the right trigger rumble motor, from 0
|
||||||
* to 0xFFFF
|
* to 0xFFFF.
|
||||||
* \param duration_ms The duration of the rumble effect, in milliseconds
|
* \param duration_ms The duration of the rumble effect, in milliseconds.
|
||||||
* \returns 0, or -1 if trigger rumble isn't supported on this controller
|
* \returns 0, or -1 if trigger rumble isn't supported on this controller.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*
|
*
|
||||||
@@ -962,9 +998,9 @@ extern DECLSPEC int SDLCALL SDL_GameControllerRumbleTriggers(SDL_GameController
|
|||||||
/**
|
/**
|
||||||
* Query whether a game controller has an LED.
|
* Query whether a game controller has an LED.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have a
|
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have a
|
||||||
* modifiable LED
|
* modifiable LED.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*/
|
*/
|
||||||
@@ -973,9 +1009,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasLED(SDL_GameController *ga
|
|||||||
/**
|
/**
|
||||||
* Query whether a game controller has rumble support.
|
* Query whether a game controller has rumble support.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have rumble
|
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have rumble
|
||||||
* support
|
* support.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*
|
*
|
||||||
@@ -986,9 +1022,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasRumble(SDL_GameController
|
|||||||
/**
|
/**
|
||||||
* Query whether a game controller has rumble support on triggers.
|
* Query whether a game controller has rumble support on triggers.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to query
|
* \param gamecontroller The controller to query.
|
||||||
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have trigger
|
* \returns SDL_TRUE, or SDL_FALSE if this controller does not have trigger
|
||||||
* rumble support
|
* rumble support.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*
|
*
|
||||||
@@ -999,11 +1035,11 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasRumbleTriggers(SDL_GameCon
|
|||||||
/**
|
/**
|
||||||
* Update a game controller's LED color.
|
* Update a game controller's LED color.
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to update
|
* \param gamecontroller The controller to update.
|
||||||
* \param red The intensity of the red LED
|
* \param red The intensity of the red LED.
|
||||||
* \param green The intensity of the green LED
|
* \param green The intensity of the green LED.
|
||||||
* \param blue The intensity of the blue LED
|
* \param blue The intensity of the blue LED.
|
||||||
* \returns 0, or -1 if this controller does not have a modifiable LED
|
* \returns 0, or -1 if this controller does not have a modifiable LED.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*/
|
*/
|
||||||
@@ -1012,11 +1048,11 @@ extern DECLSPEC int SDLCALL SDL_GameControllerSetLED(SDL_GameController *gamecon
|
|||||||
/**
|
/**
|
||||||
* Send a controller specific effect packet
|
* Send a controller specific effect packet
|
||||||
*
|
*
|
||||||
* \param gamecontroller The controller to affect
|
* \param gamecontroller The controller to affect.
|
||||||
* \param data The data to send to the controller
|
* \param data The data to send to the controller.
|
||||||
* \param size The size of the data to send to the controller
|
* \param size The size of the data to send to the controller.
|
||||||
* \returns 0, or -1 if this controller or driver doesn't support effect
|
* \returns 0, or -1 if this controller or driver doesn't support effect
|
||||||
* packets
|
* packets.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.16.
|
* \since This function is available since SDL 2.0.16.
|
||||||
*/
|
*/
|
||||||
@@ -1026,7 +1062,7 @@ extern DECLSPEC int SDLCALL SDL_GameControllerSendEffect(SDL_GameController *gam
|
|||||||
* Close a game controller previously opened with SDL_GameControllerOpen().
|
* Close a game controller previously opened with SDL_GameControllerOpen().
|
||||||
*
|
*
|
||||||
* \param gamecontroller a game controller identifier previously returned by
|
* \param gamecontroller a game controller identifier previously returned by
|
||||||
* SDL_GameControllerOpen()
|
* SDL_GameControllerOpen().
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1038,9 +1074,9 @@ extern DECLSPEC void SDLCALL SDL_GameControllerClose(SDL_GameController *gamecon
|
|||||||
* Return the sfSymbolsName for a given button on a game controller on Apple
|
* Return the sfSymbolsName for a given button on a game controller on Apple
|
||||||
* platforms.
|
* platforms.
|
||||||
*
|
*
|
||||||
* \param gamecontroller the controller to query
|
* \param gamecontroller the controller to query.
|
||||||
* \param button a button on the game controller
|
* \param button a button on the game controller.
|
||||||
* \returns the sfSymbolsName or NULL if the name can't be found
|
* \returns the sfSymbolsName or NULL if the name can't be found.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*
|
*
|
||||||
@@ -1052,9 +1088,9 @@ extern DECLSPEC const char* SDLCALL SDL_GameControllerGetAppleSFSymbolsNameForBu
|
|||||||
* Return the sfSymbolsName for a given axis on a game controller on Apple
|
* Return the sfSymbolsName for a given axis on a game controller on Apple
|
||||||
* platforms.
|
* platforms.
|
||||||
*
|
*
|
||||||
* \param gamecontroller the controller to query
|
* \param gamecontroller the controller to query.
|
||||||
* \param axis an axis on the game controller
|
* \param axis an axis on the game controller.
|
||||||
* \returns the sfSymbolsName or NULL if the name can't be found
|
* \returns the sfSymbolsName or NULL if the name can't be found.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_gesture.h
|
* # CategoryGesture
|
||||||
*
|
*
|
||||||
* Include file for SDL gesture event handling.
|
* Include file for SDL gesture event handling.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_gesture_h_
|
#ifndef SDL_gesture_h_
|
||||||
@@ -51,7 +51,7 @@ typedef Sint64 SDL_GestureID;
|
|||||||
* If the parameter `touchId` is -1 (i.e., all devices), this function will
|
* If the parameter `touchId` is -1 (i.e., all devices), this function will
|
||||||
* always return 1, regardless of whether there actually are any devices.
|
* always return 1, regardless of whether there actually are any devices.
|
||||||
*
|
*
|
||||||
* \param touchId the touch device id, or -1 for all touch devices
|
* \param touchId the touch device id, or -1 for all touch devices.
|
||||||
* \returns 1 on success or 0 if the specified device could not be found.
|
* \returns 1 on success or 0 if the specified device could not be found.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -64,7 +64,7 @@ extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId);
|
|||||||
/**
|
/**
|
||||||
* Save all currently loaded Dollar Gesture templates.
|
* Save all currently loaded Dollar Gesture templates.
|
||||||
*
|
*
|
||||||
* \param dst a SDL_RWops to save to
|
* \param dst a SDL_RWops to save to.
|
||||||
* \returns the number of saved templates on success or 0 on failure; call
|
* \returns the number of saved templates on success or 0 on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -78,8 +78,8 @@ extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst);
|
|||||||
/**
|
/**
|
||||||
* Save a currently loaded Dollar Gesture template.
|
* Save a currently loaded Dollar Gesture template.
|
||||||
*
|
*
|
||||||
* \param gestureId a gesture id
|
* \param gestureId a gesture id.
|
||||||
* \param dst a SDL_RWops to save to
|
* \param dst a SDL_RWops to save to.
|
||||||
* \returns 1 on success or 0 on failure; call SDL_GetError() for more
|
* \returns 1 on success or 0 on failure; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
*
|
*
|
||||||
@@ -94,8 +94,8 @@ extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_R
|
|||||||
/**
|
/**
|
||||||
* Load Dollar Gesture templates from a file.
|
* Load Dollar Gesture templates from a file.
|
||||||
*
|
*
|
||||||
* \param touchId a touch id
|
* \param touchId a touch id.
|
||||||
* \param src a SDL_RWops to load from
|
* \param src a SDL_RWops to load from.
|
||||||
* \returns the number of loaded templates on success or a negative error code
|
* \returns the number of loaded templates on success or a negative error code
|
||||||
* (or 0) on failure; call SDL_GetError() for more information.
|
* (or 0) on failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,10 +19,13 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: GUID */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_guid.h
|
* # CategoryGUID
|
||||||
*
|
*
|
||||||
* Include file for handling ::SDL_GUID values.
|
* A GUID is a 128-bit value that represents something that is uniquely
|
||||||
|
* identifiable by this value: "globally unique."
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_guid_h_
|
#ifndef SDL_guid_h_
|
||||||
@@ -38,34 +41,38 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An SDL_GUID is a 128-bit identifier for an input device that
|
* An SDL_GUID is a 128-bit identifier.
|
||||||
* identifies that device across runs of SDL programs on the same
|
|
||||||
* platform. If the device is detached and then re-attached to a
|
|
||||||
* different port, or if the base system is rebooted, the device
|
|
||||||
* should still report the same GUID.
|
|
||||||
*
|
*
|
||||||
* GUIDs are as precise as possible but are not guaranteed to
|
* This is an acronym for "Globally Unique ID."
|
||||||
* distinguish physically distinct but equivalent devices. For
|
|
||||||
* example, two game controllers from the same vendor with the same
|
|
||||||
* product ID and revision may have the same GUID.
|
|
||||||
*
|
*
|
||||||
* GUIDs may be platform-dependent (i.e., the same device may report
|
* While a GUID can be used to assign a unique value to almost anything, in
|
||||||
* different GUIDs on different operating systems).
|
* SDL these are largely used to identify input devices across runs of SDL
|
||||||
|
* programs on the same platform.If the device is detached and then
|
||||||
|
* re-attached to a different port, or if the base system is rebooted, the
|
||||||
|
* device should still report the same GUID.
|
||||||
|
*
|
||||||
|
* GUIDs are as precise as possible but are not guaranteed to distinguish
|
||||||
|
* physically distinct but equivalent devices. For example, two game
|
||||||
|
* controllers from the same vendor with the same product ID and revision may
|
||||||
|
* have the same GUID.
|
||||||
|
*
|
||||||
|
* GUIDs may be platform-dependent (i.e., the same device may report different
|
||||||
|
* GUIDs on different operating systems).
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct SDL_GUID {
|
||||||
Uint8 data[16];
|
Uint8 data[16];
|
||||||
} SDL_GUID;
|
} SDL_GUID;
|
||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get an ASCII string representation for a given ::SDL_GUID.
|
* Get an ASCII string representation for a given SDL_GUID.
|
||||||
*
|
*
|
||||||
* You should supply at least 33 bytes for pszGUID.
|
* You should supply at least 33 bytes for pszGUID.
|
||||||
*
|
*
|
||||||
* \param guid the ::SDL_GUID you wish to convert to string
|
* \param guid the SDL_GUID you wish to convert to string.
|
||||||
* \param pszGUID buffer in which to write the ASCII string
|
* \param pszGUID buffer in which to write the ASCII string.
|
||||||
* \param cbGUID the size of pszGUID
|
* \param cbGUID the size of pszGUID.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.24.0.
|
* \since This function is available since SDL 2.24.0.
|
||||||
*
|
*
|
||||||
@@ -74,14 +81,14 @@ typedef struct {
|
|||||||
extern DECLSPEC void SDLCALL SDL_GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID);
|
extern DECLSPEC void SDLCALL SDL_GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a GUID string into a ::SDL_GUID structure.
|
* Convert a GUID string into a SDL_GUID structure.
|
||||||
*
|
*
|
||||||
* Performs no error checking. If this function is given a string containing
|
* Performs no error checking. If this function is given a string containing
|
||||||
* an invalid GUID, the function will silently succeed, but the GUID generated
|
* an invalid GUID, the function will silently succeed, but the GUID generated
|
||||||
* will not be useful.
|
* will not be useful.
|
||||||
*
|
*
|
||||||
* \param pchGUID string containing an ASCII representation of a GUID
|
* \param pchGUID string containing an ASCII representation of a GUID.
|
||||||
* \returns a ::SDL_GUID structure.
|
* \returns a SDL_GUID structure.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.24.0.
|
* \since This function is available since SDL 2.24.0.
|
||||||
*
|
*
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,44 +19,35 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: HIDAPI */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_hidapi.h
|
* # CategoryHIDAPI
|
||||||
*
|
*
|
||||||
* Header file for SDL HIDAPI functions.
|
* Header file for SDL HIDAPI functions.
|
||||||
*
|
*
|
||||||
* This is an adaptation of the original HIDAPI interface by Alan Ott,
|
* This is an adaptation of the original HIDAPI interface by Alan Ott, and
|
||||||
* and includes source code licensed under the following BSD license:
|
* includes source code licensed under the following license:
|
||||||
*
|
*
|
||||||
Copyright (c) 2010, Alan Ott, Signal 11 Software
|
* ```
|
||||||
All rights reserved.
|
* HIDAPI - Multi-Platform library for
|
||||||
|
* communication with HID devices.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions are met:
|
* Copyright 2009, Alan Ott, Signal 11 Software.
|
||||||
|
* All Rights Reserved.
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
*
|
||||||
this list of conditions and the following disclaimer.
|
* This software may be used by anyone for any reason so
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
* long as the copyright notice in the source files
|
||||||
notice, this list of conditions and the following disclaimer in the
|
* remains intact.
|
||||||
documentation and/or other materials provided with the distribution.
|
* ```
|
||||||
* Neither the name of Signal 11 Software nor the names of its
|
*
|
||||||
contributors may be used to endorse or promote products derived from
|
* (Note that this license is the same as item three of SDL's zlib license, so
|
||||||
this software without specific prior written permission.
|
* it adds no new requirements on the user.)
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
||||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
||||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
*
|
||||||
* If you would like a version of SDL without this code, you can build SDL
|
* If you would like a version of SDL without this code, you can build SDL
|
||||||
* with SDL_HIDAPI_DISABLED defined to 1. You might want to do this for example
|
* with SDL_HIDAPI_DISABLED defined to 1. You might want to do this for
|
||||||
* on iOS or tvOS to avoid a dependency on the CoreBluetooth framework.
|
* example on iOS or tvOS to avoid a dependency on the CoreBluetooth
|
||||||
|
* framework.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_hidapi_h_
|
#ifndef SDL_hidapi_h_
|
||||||
@@ -71,14 +62,15 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A handle representing an open HID device
|
* A handle representing an open HID device
|
||||||
*/
|
*/
|
||||||
struct SDL_hid_device_;
|
struct SDL_hid_device_;
|
||||||
typedef struct SDL_hid_device_ SDL_hid_device; /**< opaque hidapi structure */
|
typedef struct SDL_hid_device_ SDL_hid_device; /**< opaque hidapi structure */
|
||||||
|
|
||||||
/** hidapi info structure */
|
/** hidapi info structure */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Information about a connected HID device
|
* Information about a connected HID device
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_hid_device_info
|
typedef struct SDL_hid_device_info
|
||||||
{
|
{
|
||||||
@@ -234,13 +226,13 @@ extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open(unsigned short vendor_id,
|
|||||||
* The path name be determined by calling SDL_hid_enumerate(), or a
|
* The path name be determined by calling SDL_hid_enumerate(), or a
|
||||||
* platform-specific path name can be used (eg: /dev/hidraw0 on Linux).
|
* platform-specific path name can be used (eg: /dev/hidraw0 on Linux).
|
||||||
*
|
*
|
||||||
* \param path The path name of the device to open
|
* \param path The path name of the device to open.
|
||||||
* \returns a pointer to a SDL_hid_device object on success or NULL on
|
* \returns a pointer to a SDL_hid_device object on success or NULL on
|
||||||
* failure.
|
* failure.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open_path(const char *path, int bExclusive /* = false */);
|
extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open_path(const char *path, int bExclusive);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write an Output report to a HID device.
|
* Write an Output report to a HID device.
|
||||||
@@ -434,7 +426,7 @@ extern DECLSPEC int SDLCALL SDL_hid_get_indexed_string(SDL_hid_device *dev, int
|
|||||||
/**
|
/**
|
||||||
* Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers
|
* Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers
|
||||||
*
|
*
|
||||||
* \param active SDL_TRUE to start the scan, SDL_FALSE to stop the scan
|
* \param active SDL_TRUE to start the scan, SDL_FALSE to stop the scan.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,22 +20,26 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_joystick.h
|
* # CategoryJoystick
|
||||||
*
|
*
|
||||||
* Include file for SDL joystick event handling
|
* Include file for SDL joystick event handling
|
||||||
*
|
*
|
||||||
* The term "device_index" identifies currently plugged in joystick devices between 0 and SDL_NumJoysticks(), with the exact joystick
|
* The term "device_index" identifies currently plugged in joystick devices
|
||||||
* behind a device_index changing as joysticks are plugged and unplugged.
|
* between 0 and SDL_NumJoysticks(), with the exact joystick behind a
|
||||||
|
* device_index changing as joysticks are plugged and unplugged.
|
||||||
*
|
*
|
||||||
* The term "instance_id" is the current instantiation of a joystick device in the system, if the joystick is removed and then re-inserted
|
* The term "instance_id" is the current instantiation of a joystick device in
|
||||||
* then it will get a new instance_id, instance_id's are monotonically increasing identifiers of a joystick plugged in.
|
* the system, if the joystick is removed and then re-inserted then it will
|
||||||
|
* get a new instance_id, instance_id's are monotonically increasing
|
||||||
|
* identifiers of a joystick plugged in.
|
||||||
*
|
*
|
||||||
* The term "player_index" is the number assigned to a player on a specific
|
* The term "player_index" is the number assigned to a player on a specific
|
||||||
* controller. For XInput controllers this returns the XInput user index.
|
* controller. For XInput controllers this returns the XInput user index. Many
|
||||||
* Many joysticks will not be able to supply this information.
|
* joysticks will not be able to supply this information.
|
||||||
*
|
*
|
||||||
* The term JoystickGUID is a stable 128-bit identifier for a joystick device that does not change over time, it identifies class of
|
* The term JoystickGUID is a stable 128-bit identifier for a joystick device
|
||||||
* the device (a X360 wired controller for example). This identifier is platform dependent.
|
* that does not change over time, it identifies class of the device (a X360
|
||||||
|
* wired controller for example). This identifier is platform dependent.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_joystick_h_
|
#ifndef SDL_joystick_h_
|
||||||
@@ -56,7 +60,7 @@ extern "C" {
|
|||||||
* \file SDL_joystick.h
|
* \file SDL_joystick.h
|
||||||
*
|
*
|
||||||
* In order to use these functions, SDL_Init() must have been called
|
* In order to use these functions, SDL_Init() must have been called
|
||||||
* with the ::SDL_INIT_JOYSTICK flag. This causes SDL to scan the system
|
* with the SDL_INIT_JOYSTICK flag. This causes SDL to scan the system
|
||||||
* for joysticks, and load appropriate drivers.
|
* for joysticks, and load appropriate drivers.
|
||||||
*
|
*
|
||||||
* If you would like to receive joystick updates while the application
|
* If you would like to receive joystick updates while the application
|
||||||
@@ -73,15 +77,21 @@ extern SDL_mutex *SDL_joystick_lock;
|
|||||||
struct _SDL_Joystick;
|
struct _SDL_Joystick;
|
||||||
typedef struct _SDL_Joystick SDL_Joystick;
|
typedef struct _SDL_Joystick SDL_Joystick;
|
||||||
|
|
||||||
/* A structure that encodes the stable unique id for a joystick device */
|
/**
|
||||||
|
* A structure that encodes the stable unique id for a joystick device.
|
||||||
|
*
|
||||||
|
* This is just a standard SDL_GUID by a different name.
|
||||||
|
*/
|
||||||
typedef SDL_GUID SDL_JoystickGUID;
|
typedef SDL_GUID SDL_JoystickGUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a unique ID for a joystick for the time it is connected to the system,
|
* This is a unique ID for a joystick for the time it is connected to the
|
||||||
* and is never reused for the lifetime of the application. If the joystick is
|
* system, and is never reused for the lifetime of the application.
|
||||||
* disconnected and reconnected, it will get a new ID.
|
|
||||||
*
|
*
|
||||||
* The ID value starts at 0 and increments from there. The value -1 is an invalid ID.
|
* If the joystick is disconnected and reconnected, it will get a new ID.
|
||||||
|
*
|
||||||
|
* The ID value starts at 0 and increments from there. The value -1 is an
|
||||||
|
* invalid ID.
|
||||||
*/
|
*/
|
||||||
typedef Sint32 SDL_JoystickID;
|
typedef Sint32 SDL_JoystickID;
|
||||||
|
|
||||||
@@ -172,7 +182,7 @@ extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
|
|||||||
* This can be called before any joysticks are opened.
|
* This can be called before any joysticks are opened.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system)
|
* on the system).
|
||||||
* \returns the name of the selected joystick. If no name can be found, this
|
* \returns the name of the selected joystick. If no name can be found, this
|
||||||
* function returns NULL; call SDL_GetError() for more information.
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -189,7 +199,7 @@ extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
|
|||||||
* This can be called before any joysticks are opened.
|
* This can be called before any joysticks are opened.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system)
|
* on the system).
|
||||||
* \returns the path of the selected joystick. If no path can be found, this
|
* \returns the path of the selected joystick. If no path can be found, this
|
||||||
* function returns NULL; call SDL_GetError() for more information.
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -215,9 +225,9 @@ extern DECLSPEC int SDLCALL SDL_JoystickGetDevicePlayerIndex(int device_index);
|
|||||||
* This function can be called before any joysticks are opened.
|
* This function can be called before any joysticks are opened.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the GUID of the selected joystick. If called on an invalid index,
|
* \returns the GUID of the selected joystick. If called on an invalid index,
|
||||||
* this function returns a zero GUID
|
* this function returns a zero GUID.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -233,9 +243,9 @@ extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetDeviceGUID(int device_in
|
|||||||
* available this function returns 0.
|
* available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the USB vendor ID of the selected joystick. If called on an
|
* \returns the USB vendor ID of the selected joystick. If called on an
|
||||||
* invalid index, this function returns zero
|
* invalid index, this function returns zero.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
*/
|
*/
|
||||||
@@ -248,9 +258,9 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceVendor(int device_index);
|
|||||||
* available this function returns 0.
|
* available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the USB product ID of the selected joystick. If called on an
|
* \returns the USB product ID of the selected joystick. If called on an
|
||||||
* invalid index, this function returns zero
|
* invalid index, this function returns zero.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
*/
|
*/
|
||||||
@@ -263,9 +273,9 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProduct(int device_index);
|
|||||||
* isn't available this function returns 0.
|
* isn't available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the product version of the selected joystick. If called on an
|
* \returns the product version of the selected joystick. If called on an
|
||||||
* invalid index, this function returns zero
|
* invalid index, this function returns zero.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
*/
|
*/
|
||||||
@@ -277,9 +287,9 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProductVersion(int device_in
|
|||||||
* This can be called before any joysticks are opened.
|
* This can be called before any joysticks are opened.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the SDL_JoystickType of the selected joystick. If called on an
|
* \returns the SDL_JoystickType of the selected joystick. If called on an
|
||||||
* invalid index, this function returns `SDL_JOYSTICK_TYPE_UNKNOWN`
|
* invalid index, this function returns `SDL_JOYSTICK_TYPE_UNKNOWN`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
*/
|
*/
|
||||||
@@ -291,7 +301,7 @@ extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetDeviceType(int device_in
|
|||||||
* This can be called before any joysticks are opened.
|
* This can be called before any joysticks are opened.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query (the N'th joystick
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
* on the system
|
* on the system.
|
||||||
* \returns the instance id of the selected joystick. If called on an invalid
|
* \returns the instance id of the selected joystick. If called on an invalid
|
||||||
* index, this function returns -1.
|
* index, this function returns -1.
|
||||||
*
|
*
|
||||||
@@ -310,7 +320,7 @@ extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickGetDeviceInstanceID(int devic
|
|||||||
* The joystick subsystem must be initialized before a joystick can be opened
|
* The joystick subsystem must be initialized before a joystick can be opened
|
||||||
* for use.
|
* for use.
|
||||||
*
|
*
|
||||||
* \param device_index the index of the joystick to query
|
* \param device_index the index of the joystick to query.
|
||||||
* \returns a joystick identifier or NULL if an error occurred; call
|
* \returns a joystick identifier or NULL if an error occurred; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -324,7 +334,7 @@ extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen(int device_index);
|
|||||||
/**
|
/**
|
||||||
* Get the SDL_Joystick associated with an instance id.
|
* Get the SDL_Joystick associated with an instance id.
|
||||||
*
|
*
|
||||||
* \param instance_id the instance id to get the SDL_Joystick for
|
* \param instance_id the instance id to get the SDL_Joystick for.
|
||||||
* \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError()
|
* \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError()
|
||||||
* for more information.
|
* for more information.
|
||||||
*
|
*
|
||||||
@@ -335,7 +345,7 @@ extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromInstanceID(SDL_JoystickID
|
|||||||
/**
|
/**
|
||||||
* Get the SDL_Joystick associated with a player index.
|
* Get the SDL_Joystick associated with a player index.
|
||||||
*
|
*
|
||||||
* \param player_index the player index to get the SDL_Joystick for
|
* \param player_index the player index to get the SDL_Joystick for.
|
||||||
* \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError()
|
* \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError()
|
||||||
* for more information.
|
* for more information.
|
||||||
*
|
*
|
||||||
@@ -358,8 +368,10 @@ extern DECLSPEC int SDLCALL SDL_JoystickAttachVirtual(SDL_JoystickType type,
|
|||||||
/**
|
/**
|
||||||
* The structure that defines an extended virtual joystick description
|
* The structure that defines an extended virtual joystick description
|
||||||
*
|
*
|
||||||
* The caller must zero the structure and then initialize the version with `SDL_VIRTUAL_JOYSTICK_DESC_VERSION` before passing it to SDL_JoystickAttachVirtualEx()
|
* The caller must zero the structure and then initialize the version with
|
||||||
* All other elements of this structure are optional and can be left 0.
|
* `SDL_VIRTUAL_JOYSTICK_DESC_VERSION` before passing it to
|
||||||
|
* SDL_JoystickAttachVirtualEx() All other elements of this structure are
|
||||||
|
* optional and can be left 0.
|
||||||
*
|
*
|
||||||
* \sa SDL_JoystickAttachVirtualEx
|
* \sa SDL_JoystickAttachVirtualEx
|
||||||
*/
|
*/
|
||||||
@@ -390,7 +402,7 @@ typedef struct SDL_VirtualJoystickDesc
|
|||||||
} SDL_VirtualJoystickDesc;
|
} SDL_VirtualJoystickDesc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The current version of the SDL_VirtualJoystickDesc structure
|
* The current version of the SDL_VirtualJoystickDesc structure
|
||||||
*/
|
*/
|
||||||
#define SDL_VIRTUAL_JOYSTICK_DESC_VERSION 1
|
#define SDL_VIRTUAL_JOYSTICK_DESC_VERSION 1
|
||||||
|
|
||||||
@@ -407,7 +419,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickAttachVirtualEx(const SDL_VirtualJoystic
|
|||||||
* Detach a virtual joystick.
|
* Detach a virtual joystick.
|
||||||
*
|
*
|
||||||
* \param device_index a value previously returned from
|
* \param device_index a value previously returned from
|
||||||
* SDL_JoystickAttachVirtual()
|
* SDL_JoystickAttachVirtual().
|
||||||
* \returns 0 on success, or -1 if an error occurred.
|
* \returns 0 on success, or -1 if an error occurred.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -485,7 +497,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualHat(SDL_Joystick *joystick, in
|
|||||||
/**
|
/**
|
||||||
* Get the implementation dependent name of a joystick.
|
* Get the implementation dependent name of a joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the name of the selected joystick. If no name can be found, this
|
* \returns the name of the selected joystick. If no name can be found, this
|
||||||
* function returns NULL; call SDL_GetError() for more information.
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -499,7 +511,7 @@ extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Get the implementation dependent path of a joystick.
|
* Get the implementation dependent path of a joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the path of the selected joystick. If no path can be found, this
|
* \returns the path of the selected joystick. If no path can be found, this
|
||||||
* function returns NULL; call SDL_GetError() for more information.
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -515,7 +527,7 @@ extern DECLSPEC const char *SDLCALL SDL_JoystickPath(SDL_Joystick *joystick);
|
|||||||
* For XInput controllers this returns the XInput user index. Many joysticks
|
* For XInput controllers this returns the XInput user index. Many joysticks
|
||||||
* will not be able to supply this information.
|
* will not be able to supply this information.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the player index, or -1 if it's not available.
|
* \returns the player index, or -1 if it's not available.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.9.
|
* \since This function is available since SDL 2.0.9.
|
||||||
@@ -525,7 +537,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickGetPlayerIndex(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Set the player index of an opened joystick.
|
* Set the player index of an opened joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \param player_index Player index to assign to this joystick, or -1 to clear
|
* \param player_index Player index to assign to this joystick, or -1 to clear
|
||||||
* the player index and turn off player LEDs.
|
* the player index and turn off player LEDs.
|
||||||
*
|
*
|
||||||
@@ -538,7 +550,7 @@ extern DECLSPEC void SDLCALL SDL_JoystickSetPlayerIndex(SDL_Joystick *joystick,
|
|||||||
*
|
*
|
||||||
* This function requires an open joystick.
|
* This function requires an open joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the GUID of the given joystick. If called on an invalid index,
|
* \returns the GUID of the given joystick. If called on an invalid index,
|
||||||
* this function returns a zero GUID; call SDL_GetError() for more
|
* this function returns a zero GUID; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
@@ -555,7 +567,7 @@ extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUID(SDL_Joystick *joyst
|
|||||||
*
|
*
|
||||||
* If the vendor ID isn't available this function returns 0.
|
* If the vendor ID isn't available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the USB vendor ID of the selected joystick, or 0 if unavailable.
|
* \returns the USB vendor ID of the selected joystick, or 0 if unavailable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
@@ -567,7 +579,7 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetVendor(SDL_Joystick *joystick);
|
|||||||
*
|
*
|
||||||
* If the product ID isn't available this function returns 0.
|
* If the product ID isn't available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the USB product ID of the selected joystick, or 0 if unavailable.
|
* \returns the USB product ID of the selected joystick, or 0 if unavailable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
@@ -579,7 +591,7 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProduct(SDL_Joystick *joystick);
|
|||||||
*
|
*
|
||||||
* If the product version isn't available this function returns 0.
|
* If the product version isn't available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the product version of the selected joystick, or 0 if unavailable.
|
* \returns the product version of the selected joystick, or 0 if unavailable.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
@@ -591,7 +603,7 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick *joyst
|
|||||||
*
|
*
|
||||||
* If the firmware version isn't available this function returns 0.
|
* If the firmware version isn't available this function returns 0.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the firmware version of the selected joystick, or 0 if
|
* \returns the firmware version of the selected joystick, or 0 if
|
||||||
* unavailable.
|
* unavailable.
|
||||||
*
|
*
|
||||||
@@ -604,7 +616,7 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetFirmwareVersion(SDL_Joystick *joys
|
|||||||
*
|
*
|
||||||
* Returns the serial number of the joystick, or NULL if it is not available.
|
* Returns the serial number of the joystick, or NULL if it is not available.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the serial number of the selected joystick, or NULL if
|
* \returns the serial number of the selected joystick, or NULL if
|
||||||
* unavailable.
|
* unavailable.
|
||||||
*
|
*
|
||||||
@@ -615,7 +627,7 @@ extern DECLSPEC const char * SDLCALL SDL_JoystickGetSerial(SDL_Joystick *joystic
|
|||||||
/**
|
/**
|
||||||
* Get the type of an opened joystick.
|
* Get the type of an opened joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen().
|
||||||
* \returns the SDL_JoystickType of the selected joystick.
|
* \returns the SDL_JoystickType of the selected joystick.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.6.
|
* \since This function is available since SDL 2.0.6.
|
||||||
@@ -627,9 +639,9 @@ extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetType(SDL_Joystick *joyst
|
|||||||
*
|
*
|
||||||
* You should supply at least 33 bytes for pszGUID.
|
* You should supply at least 33 bytes for pszGUID.
|
||||||
*
|
*
|
||||||
* \param guid the SDL_JoystickGUID you wish to convert to string
|
* \param guid the SDL_JoystickGUID you wish to convert to string.
|
||||||
* \param pszGUID buffer in which to write the ASCII string
|
* \param pszGUID buffer in which to write the ASCII string.
|
||||||
* \param cbGUID the size of pszGUID
|
* \param cbGUID the size of pszGUID.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -646,7 +658,7 @@ extern DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, ch
|
|||||||
* an invalid GUID, the function will silently succeed, but the GUID generated
|
* an invalid GUID, the function will silently succeed, but the GUID generated
|
||||||
* will not be useful.
|
* will not be useful.
|
||||||
*
|
*
|
||||||
* \param pchGUID string containing an ASCII representation of a GUID
|
* \param pchGUID string containing an ASCII representation of a GUID.
|
||||||
* \returns a SDL_JoystickGUID structure.
|
* \returns a SDL_JoystickGUID structure.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -658,15 +670,15 @@ extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const cha
|
|||||||
/**
|
/**
|
||||||
* Get the device information encoded in a SDL_JoystickGUID structure
|
* Get the device information encoded in a SDL_JoystickGUID structure
|
||||||
*
|
*
|
||||||
* \param guid the SDL_JoystickGUID you wish to get info about
|
* \param guid the SDL_JoystickGUID you wish to get info about.
|
||||||
* \param vendor A pointer filled in with the device VID, or 0 if not
|
* \param vendor A pointer filled in with the device VID, or 0 if not
|
||||||
* available
|
* available.
|
||||||
* \param product A pointer filled in with the device PID, or 0 if not
|
* \param product A pointer filled in with the device PID, or 0 if not
|
||||||
* available
|
* available.
|
||||||
* \param version A pointer filled in with the device version, or 0 if not
|
* \param version A pointer filled in with the device version, or 0 if not
|
||||||
* available
|
* available.
|
||||||
* \param crc16 A pointer filled in with a CRC used to distinguish different
|
* \param crc16 A pointer filled in with a CRC used to distinguish different
|
||||||
* products with the same VID/PID, or 0 if not available
|
* products with the same VID/PID, or 0 if not available.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.26.0.
|
* \since This function is available since SDL 2.26.0.
|
||||||
*
|
*
|
||||||
@@ -677,7 +689,7 @@ extern DECLSPEC void SDLCALL SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint
|
|||||||
/**
|
/**
|
||||||
* Get the status of a specified joystick.
|
* Get the status of a specified joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the joystick to query
|
* \param joystick the joystick to query.
|
||||||
* \returns SDL_TRUE if the joystick has been opened, SDL_FALSE if it has not;
|
* \returns SDL_TRUE if the joystick has been opened, SDL_FALSE if it has not;
|
||||||
* call SDL_GetError() for more information.
|
* call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -691,7 +703,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick *joystick)
|
|||||||
/**
|
/**
|
||||||
* Get the instance ID of an opened joystick.
|
* Get the instance ID of an opened joystick.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \returns the instance ID of the specified joystick on success or a negative
|
* \returns the instance ID of the specified joystick on success or a negative
|
||||||
* error code on failure; call SDL_GetError() for more information.
|
* error code on failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -708,7 +720,7 @@ extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick *joys
|
|||||||
* separate buttons or a POV hat, and not axes, but all of this is up to the
|
* separate buttons or a POV hat, and not axes, but all of this is up to the
|
||||||
* device and platform.
|
* device and platform.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \returns the number of axis controls/number of axes on success or a
|
* \returns the number of axis controls/number of axes on success or a
|
||||||
* negative error code on failure; call SDL_GetError() for more
|
* negative error code on failure; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
@@ -728,7 +740,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
|
|||||||
*
|
*
|
||||||
* Most joysticks do not have trackballs.
|
* Most joysticks do not have trackballs.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \returns the number of trackballs on success or a negative error code on
|
* \returns the number of trackballs on success or a negative error code on
|
||||||
* failure; call SDL_GetError() for more information.
|
* failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -741,7 +753,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Get the number of POV hats on a joystick.
|
* Get the number of POV hats on a joystick.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \returns the number of POV hats on success or a negative error code on
|
* \returns the number of POV hats on success or a negative error code on
|
||||||
* failure; call SDL_GetError() for more information.
|
* failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -755,7 +767,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Get the number of buttons on a joystick.
|
* Get the number of buttons on a joystick.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \returns the number of buttons on success or a negative error code on
|
* \returns the number of buttons on success or a negative error code on
|
||||||
* failure; call SDL_GetError() for more information.
|
* failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -790,12 +802,17 @@ extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void);
|
|||||||
* **WARNING**: Calling this function may delete all events currently in SDL's
|
* **WARNING**: Calling this function may delete all events currently in SDL's
|
||||||
* event queue.
|
* event queue.
|
||||||
*
|
*
|
||||||
* \param state can be one of `SDL_QUERY`, `SDL_IGNORE`, or `SDL_ENABLE`
|
* While `param` is meant to be one of `SDL_QUERY`, `SDL_IGNORE`, or
|
||||||
* \returns 1 if enabled, 0 if disabled, or a negative error code on failure;
|
* `SDL_ENABLE`, this function accepts any value, with any non-zero value that
|
||||||
* call SDL_GetError() for more information.
|
* isn't `SDL_QUERY` being treated as `SDL_ENABLE`.
|
||||||
*
|
*
|
||||||
* If `state` is `SDL_QUERY` then the current state is returned,
|
* If SDL was built with events disabled (extremely uncommon!), this will do
|
||||||
* otherwise the new processing state is returned.
|
* nothing and always return `SDL_IGNORE`.
|
||||||
|
*
|
||||||
|
* \param state can be one of `SDL_QUERY`, `SDL_IGNORE`, or `SDL_ENABLE`.
|
||||||
|
* \returns If `state` is `SDL_QUERY` then the current state is returned,
|
||||||
|
* otherwise `state` is returned (even if it was not one of the
|
||||||
|
* allowed values).
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -803,6 +820,7 @@ extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void);
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
|
extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
|
||||||
|
|
||||||
|
/* Limits for joystick axes... */
|
||||||
#define SDL_JOYSTICK_AXIS_MAX 32767
|
#define SDL_JOYSTICK_AXIS_MAX 32767
|
||||||
#define SDL_JOYSTICK_AXIS_MIN -32768
|
#define SDL_JOYSTICK_AXIS_MIN -32768
|
||||||
|
|
||||||
@@ -819,8 +837,8 @@ extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
|
|||||||
* 32767) representing the current position of the axis. It may be necessary
|
* 32767) representing the current position of the axis. It may be necessary
|
||||||
* to impose certain tolerances on these values to account for jitter.
|
* to impose certain tolerances on these values to account for jitter.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \param axis the axis to query; the axis indices start at index 0
|
* \param axis the axis to query; the axis indices start at index 0.
|
||||||
* \returns a 16-bit signed integer representing the current position of the
|
* \returns a 16-bit signed integer representing the current position of the
|
||||||
* axis or 0 on failure; call SDL_GetError() for more information.
|
* axis or 0 on failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -838,8 +856,8 @@ extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick,
|
|||||||
*
|
*
|
||||||
* The axis indices start at index 0.
|
* The axis indices start at index 0.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \param axis the axis to query; the axis indices start at index 0
|
* \param axis the axis to query; the axis indices start at index 0.
|
||||||
* \param state Upon return, the initial value is supplied here.
|
* \param state Upon return, the initial value is supplied here.
|
||||||
* \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
|
* \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
|
||||||
*
|
*
|
||||||
@@ -878,8 +896,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAxisInitialState(SDL_Joystick *j
|
|||||||
* - `SDL_HAT_LEFTUP`
|
* - `SDL_HAT_LEFTUP`
|
||||||
* - `SDL_HAT_LEFTDOWN`
|
* - `SDL_HAT_LEFTDOWN`
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \param hat the hat index to get the state from; indices start at index 0
|
* \param hat the hat index to get the state from; indices start at index 0.
|
||||||
* \returns the current hat position.
|
* \returns the current hat position.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -897,10 +915,10 @@ extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick,
|
|||||||
*
|
*
|
||||||
* Most joysticks do not have trackballs.
|
* Most joysticks do not have trackballs.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick to query
|
* \param joystick the SDL_Joystick to query.
|
||||||
* \param ball the ball index to query; ball indices start at index 0
|
* \param ball the ball index to query; ball indices start at index 0.
|
||||||
* \param dx stores the difference in the x axis position since the last poll
|
* \param dx stores the difference in the x axis position since the last poll.
|
||||||
* \param dy stores the difference in the y axis position since the last poll
|
* \param dy stores the difference in the y axis position since the last poll.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -914,9 +932,9 @@ extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick,
|
|||||||
/**
|
/**
|
||||||
* Get the current state of a button on a joystick.
|
* Get the current state of a button on a joystick.
|
||||||
*
|
*
|
||||||
* \param joystick an SDL_Joystick structure containing joystick information
|
* \param joystick an SDL_Joystick structure containing joystick information.
|
||||||
* \param button the button index to get the state from; indices start at
|
* \param button the button index to get the state from; indices start at
|
||||||
* index 0
|
* index 0.
|
||||||
* \returns 1 if the specified button is pressed, 0 otherwise.
|
* \returns 1 if the specified button is pressed, 0 otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -932,13 +950,13 @@ extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick,
|
|||||||
* Each call to this function cancels any previous rumble effect, and calling
|
* Each call to this function cancels any previous rumble effect, and calling
|
||||||
* it with 0 intensity stops any rumbling.
|
* it with 0 intensity stops any rumbling.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to vibrate
|
* \param joystick The joystick to vibrate.
|
||||||
* \param low_frequency_rumble The intensity of the low frequency (left)
|
* \param low_frequency_rumble The intensity of the low frequency (left)
|
||||||
* rumble motor, from 0 to 0xFFFF
|
* rumble motor, from 0 to 0xFFFF.
|
||||||
* \param high_frequency_rumble The intensity of the high frequency (right)
|
* \param high_frequency_rumble The intensity of the high frequency (right)
|
||||||
* rumble motor, from 0 to 0xFFFF
|
* rumble motor, from 0 to 0xFFFF.
|
||||||
* \param duration_ms The duration of the rumble effect, in milliseconds
|
* \param duration_ms The duration of the rumble effect, in milliseconds.
|
||||||
* \returns 0, or -1 if rumble isn't supported on this joystick
|
* \returns 0, or -1 if rumble isn't supported on this joystick.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.9.
|
* \since This function is available since SDL 2.0.9.
|
||||||
*
|
*
|
||||||
@@ -957,13 +975,13 @@ extern DECLSPEC int SDLCALL SDL_JoystickRumble(SDL_Joystick *joystick, Uint16 lo
|
|||||||
* want the (more common) whole-controller rumble, use SDL_JoystickRumble()
|
* want the (more common) whole-controller rumble, use SDL_JoystickRumble()
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to vibrate
|
* \param joystick The joystick to vibrate.
|
||||||
* \param left_rumble The intensity of the left trigger rumble motor, from 0
|
* \param left_rumble The intensity of the left trigger rumble motor, from 0
|
||||||
* to 0xFFFF
|
* to 0xFFFF.
|
||||||
* \param right_rumble The intensity of the right trigger rumble motor, from 0
|
* \param right_rumble The intensity of the right trigger rumble motor, from 0
|
||||||
* to 0xFFFF
|
* to 0xFFFF.
|
||||||
* \param duration_ms The duration of the rumble effect, in milliseconds
|
* \param duration_ms The duration of the rumble effect, in milliseconds.
|
||||||
* \returns 0, or -1 if trigger rumble isn't supported on this joystick
|
* \returns 0, or -1 if trigger rumble isn't supported on this joystick.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*
|
*
|
||||||
@@ -977,7 +995,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickRumbleTriggers(SDL_Joystick *joystick, U
|
|||||||
* An example of a joystick LED is the light on the back of a PlayStation 4's
|
* An example of a joystick LED is the light on the back of a PlayStation 4's
|
||||||
* DualShock 4 controller.
|
* DualShock 4 controller.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to query
|
* \param joystick The joystick to query.
|
||||||
* \return SDL_TRUE if the joystick has a modifiable LED, SDL_FALSE otherwise.
|
* \return SDL_TRUE if the joystick has a modifiable LED, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
@@ -987,7 +1005,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickHasLED(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Query whether a joystick has rumble support.
|
* Query whether a joystick has rumble support.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to query
|
* \param joystick The joystick to query.
|
||||||
* \return SDL_TRUE if the joystick has rumble, SDL_FALSE otherwise.
|
* \return SDL_TRUE if the joystick has rumble, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
@@ -999,7 +1017,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickHasRumble(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Query whether a joystick has rumble support on triggers.
|
* Query whether a joystick has rumble support on triggers.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to query
|
* \param joystick The joystick to query.
|
||||||
* \return SDL_TRUE if the joystick has trigger rumble, SDL_FALSE otherwise.
|
* \return SDL_TRUE if the joystick has trigger rumble, SDL_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
@@ -1014,11 +1032,11 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickHasRumbleTriggers(SDL_Joystick *joy
|
|||||||
* An example of a joystick LED is the light on the back of a PlayStation 4's
|
* An example of a joystick LED is the light on the back of a PlayStation 4's
|
||||||
* DualShock 4 controller.
|
* DualShock 4 controller.
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to update
|
* \param joystick The joystick to update.
|
||||||
* \param red The intensity of the red LED
|
* \param red The intensity of the red LED.
|
||||||
* \param green The intensity of the green LED
|
* \param green The intensity of the green LED.
|
||||||
* \param blue The intensity of the blue LED
|
* \param blue The intensity of the blue LED.
|
||||||
* \returns 0 on success, -1 if this joystick does not have a modifiable LED
|
* \returns 0 on success, -1 if this joystick does not have a modifiable LED.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*/
|
*/
|
||||||
@@ -1027,10 +1045,11 @@ extern DECLSPEC int SDLCALL SDL_JoystickSetLED(SDL_Joystick *joystick, Uint8 red
|
|||||||
/**
|
/**
|
||||||
* Send a joystick specific effect packet
|
* Send a joystick specific effect packet
|
||||||
*
|
*
|
||||||
* \param joystick The joystick to affect
|
* \param joystick The joystick to affect.
|
||||||
* \param data The data to send to the joystick
|
* \param data The data to send to the joystick.
|
||||||
* \param size The size of the data to send to the joystick
|
* \param size The size of the data to send to the joystick.
|
||||||
* \returns 0, or -1 if this joystick or driver doesn't support effect packets
|
* \returns 0, or -1 if this joystick or driver doesn't support effect
|
||||||
|
* packets.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.16.
|
* \since This function is available since SDL 2.0.16.
|
||||||
*/
|
*/
|
||||||
@@ -1039,7 +1058,7 @@ extern DECLSPEC int SDLCALL SDL_JoystickSendEffect(SDL_Joystick *joystick, const
|
|||||||
/**
|
/**
|
||||||
* Close a joystick previously opened with SDL_JoystickOpen().
|
* Close a joystick previously opened with SDL_JoystickOpen().
|
||||||
*
|
*
|
||||||
* \param joystick The joystick device to close
|
* \param joystick The joystick device to close.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -1050,9 +1069,9 @@ extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);
|
|||||||
/**
|
/**
|
||||||
* Get the battery level of a joystick as SDL_JoystickPowerLevel.
|
* Get the battery level of a joystick as SDL_JoystickPowerLevel.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick to query
|
* \param joystick the SDL_Joystick to query.
|
||||||
* \returns the current battery level as SDL_JoystickPowerLevel on success or
|
* \returns the current battery level as SDL_JoystickPowerLevel on success or
|
||||||
* `SDL_JOYSTICK_POWER_UNKNOWN` if it is unknown
|
* `SDL_JOYSTICK_POWER_UNKNOWN` if it is unknown.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.4.
|
* \since This function is available since SDL 2.0.4.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_keyboard.h
|
* # CategoryKeyboard
|
||||||
*
|
*
|
||||||
* Include file for SDL keyboard event handling
|
* Include file for SDL keyboard event handling
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_keyboard_h_
|
#ifndef SDL_keyboard_h_
|
||||||
@@ -40,15 +40,16 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The SDL keysym structure, used in key events.
|
* The SDL keysym structure, used in key events.
|
||||||
*
|
*
|
||||||
* \note If you are looking for translated character input, see the ::SDL_TEXTINPUT event.
|
* If you are looking for translated character input, see the SDL_TEXTINPUT
|
||||||
|
* event.
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_Keysym
|
typedef struct SDL_Keysym
|
||||||
{
|
{
|
||||||
SDL_Scancode scancode; /**< SDL physical key code - see ::SDL_Scancode for details */
|
SDL_Scancode scancode; /**< SDL physical key code - see SDL_Scancode for details */
|
||||||
SDL_Keycode sym; /**< SDL virtual key code - see ::SDL_Keycode for details */
|
SDL_Keycode sym; /**< SDL virtual key code - see SDL_Keycode for details */
|
||||||
Uint16 mod; /**< current key modifiers */
|
Uint16 mod; /**< current key modifiers - see SDL_Keymod for details */
|
||||||
Uint32 unused;
|
Uint32 unused;
|
||||||
} SDL_Keysym;
|
} SDL_Keysym;
|
||||||
|
|
||||||
@@ -84,7 +85,7 @@ extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
|
|||||||
* Note: This function doesn't take into account whether shift has been
|
* Note: This function doesn't take into account whether shift has been
|
||||||
* pressed or not.
|
* pressed or not.
|
||||||
*
|
*
|
||||||
* \param numkeys if non-NULL, receives the length of the returned array
|
* \param numkeys if non-NULL, receives the length of the returned array.
|
||||||
* \returns a pointer to an array of key states.
|
* \returns a pointer to an array of key states.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -129,7 +130,7 @@ extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);
|
|||||||
* This does not change the keyboard state, only the key modifier flags that
|
* This does not change the keyboard state, only the key modifier flags that
|
||||||
* SDL reports.
|
* SDL reports.
|
||||||
*
|
*
|
||||||
* \param modstate the desired SDL_Keymod for the keyboard
|
* \param modstate the desired SDL_Keymod for the keyboard.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -143,7 +144,7 @@ extern DECLSPEC void SDLCALL SDL_SetModState(SDL_Keymod modstate);
|
|||||||
*
|
*
|
||||||
* See SDL_Keycode for details.
|
* See SDL_Keycode for details.
|
||||||
*
|
*
|
||||||
* \param scancode the desired SDL_Scancode to query
|
* \param scancode the desired SDL_Scancode to query.
|
||||||
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -159,7 +160,7 @@ extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode
|
|||||||
*
|
*
|
||||||
* See SDL_Scancode for details.
|
* See SDL_Scancode for details.
|
||||||
*
|
*
|
||||||
* \param key the desired SDL_Keycode to query
|
* \param key the desired SDL_Keycode to query.
|
||||||
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -183,7 +184,7 @@ extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key);
|
|||||||
* unsuitable for creating a stable cross-platform two-way mapping between
|
* unsuitable for creating a stable cross-platform two-way mapping between
|
||||||
* strings and scancodes.
|
* strings and scancodes.
|
||||||
*
|
*
|
||||||
* \param scancode the desired SDL_Scancode to query
|
* \param scancode the desired SDL_Scancode to query.
|
||||||
* \returns a pointer to the name for the scancode. If the scancode doesn't
|
* \returns a pointer to the name for the scancode. If the scancode doesn't
|
||||||
* have a name this function returns an empty string ("").
|
* have a name this function returns an empty string ("").
|
||||||
*
|
*
|
||||||
@@ -197,7 +198,7 @@ extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_Scancode scancode);
|
|||||||
/**
|
/**
|
||||||
* Get a scancode from a human-readable name.
|
* Get a scancode from a human-readable name.
|
||||||
*
|
*
|
||||||
* \param name the human-readable scancode name
|
* \param name the human-readable scancode name.
|
||||||
* \returns the SDL_Scancode, or `SDL_SCANCODE_UNKNOWN` if the name wasn't
|
* \returns the SDL_Scancode, or `SDL_SCANCODE_UNKNOWN` if the name wasn't
|
||||||
* recognized; call SDL_GetError() for more information.
|
* recognized; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -214,7 +215,7 @@ extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName(const char *name);
|
|||||||
*
|
*
|
||||||
* See SDL_Scancode and SDL_Keycode for details.
|
* See SDL_Scancode and SDL_Keycode for details.
|
||||||
*
|
*
|
||||||
* \param key the desired SDL_Keycode to query
|
* \param key the desired SDL_Keycode to query.
|
||||||
* \returns a pointer to a UTF-8 string that stays valid at least until the
|
* \returns a pointer to a UTF-8 string that stays valid at least until the
|
||||||
* next call to this function. If you need it around any longer, you
|
* next call to this function. If you need it around any longer, you
|
||||||
* must copy it. If the key doesn't have a name, this function
|
* must copy it. If the key doesn't have a name, this function
|
||||||
@@ -231,7 +232,7 @@ extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDL_Keycode key);
|
|||||||
/**
|
/**
|
||||||
* Get a key code from a human-readable name.
|
* Get a key code from a human-readable name.
|
||||||
*
|
*
|
||||||
* \param name the human-readable key name
|
* \param name the human-readable key name.
|
||||||
* \returns key code, or `SDLK_UNKNOWN` if the name wasn't recognized; call
|
* \returns key code, or `SDLK_UNKNOWN` if the name wasn't recognized; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -253,6 +254,10 @@ extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName(const char *name);
|
|||||||
*
|
*
|
||||||
* On some platforms using this function activates the screen keyboard.
|
* On some platforms using this function activates the screen keyboard.
|
||||||
*
|
*
|
||||||
|
* On desktop platforms, SDL_StartTextInput() is implicitly called on SDL
|
||||||
|
* video subsystem initialization which will cause SDL_TextInputEvent and
|
||||||
|
* SDL_TextEditingEvent to begin emitting.
|
||||||
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_SetTextInputRect
|
* \sa SDL_SetTextInputRect
|
||||||
@@ -300,6 +305,9 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
|||||||
/**
|
/**
|
||||||
* Set the rectangle used to type Unicode text inputs.
|
* Set the rectangle used to type Unicode text inputs.
|
||||||
*
|
*
|
||||||
|
* Native input methods will place a window with word suggestions near it,
|
||||||
|
* without covering the text being inputted.
|
||||||
|
*
|
||||||
* To start text input in a given location, this function is intended to be
|
* To start text input in a given location, this function is intended to be
|
||||||
* called before SDL_StartTextInput, although some platforms support moving
|
* called before SDL_StartTextInput, although some platforms support moving
|
||||||
* the rectangle even while text input (and a composition) is active.
|
* the rectangle even while text input (and a composition) is active.
|
||||||
@@ -309,7 +317,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
|||||||
* any feedback.
|
* any feedback.
|
||||||
*
|
*
|
||||||
* \param rect the SDL_Rect structure representing the rectangle to receive
|
* \param rect the SDL_Rect structure representing the rectangle to receive
|
||||||
* text (ignored if NULL)
|
* text (ignored if NULL).
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -333,7 +341,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasScreenKeyboardSupport(void);
|
|||||||
/**
|
/**
|
||||||
* Check whether the screen keyboard is shown for given window.
|
* Check whether the screen keyboard is shown for given window.
|
||||||
*
|
*
|
||||||
* \param window the window for which screen keyboard should be queried
|
* \param window the window for which screen keyboard should be queried.
|
||||||
* \returns SDL_TRUE if screen keyboard is shown or SDL_FALSE if not.
|
* \returns SDL_TRUE if screen keyboard is shown or SDL_FALSE if not.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_keycode.h
|
* # CategoryKeycode
|
||||||
*
|
*
|
||||||
* Defines constants which identify keyboard keys and modifiers.
|
* Defines constants which identify keyboard keys and modifiers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_keycode_h_
|
#ifndef SDL_keycode_h_
|
||||||
@@ -32,22 +32,22 @@
|
|||||||
#include "SDL_scancode.h"
|
#include "SDL_scancode.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The SDL virtual key representation.
|
* The SDL virtual key representation.
|
||||||
*
|
*
|
||||||
* Values of this type are used to represent keyboard keys using the current
|
* Values of this type are used to represent keyboard keys using the current
|
||||||
* layout of the keyboard. These values include Unicode values representing
|
* layout of the keyboard. These values include Unicode values representing
|
||||||
* the unmodified character that would be generated by pressing the key, or
|
* the unmodified character that would be generated by pressing the key, or an
|
||||||
* an SDLK_* constant for those keys that do not generate characters.
|
* SDLK_* constant for those keys that do not generate characters.
|
||||||
*
|
*
|
||||||
* A special exception is the number keys at the top of the keyboard which
|
* A special exception is the number keys at the top of the keyboard which map
|
||||||
* map to SDLK_0...SDLK_9 on AZERTY layouts.
|
* to SDLK_0...SDLK_9 on AZERTY layouts.
|
||||||
*/
|
*/
|
||||||
typedef Sint32 SDL_Keycode;
|
typedef Sint32 SDL_Keycode;
|
||||||
|
|
||||||
#define SDLK_SCANCODE_MASK (1<<30)
|
#define SDLK_SCANCODE_MASK (1<<30)
|
||||||
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
|
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
|
||||||
|
|
||||||
typedef enum
|
typedef enum SDL_KeyCode
|
||||||
{
|
{
|
||||||
SDLK_UNKNOWN = 0,
|
SDLK_UNKNOWN = 0,
|
||||||
|
|
||||||
@@ -327,9 +327,9 @@ typedef enum
|
|||||||
} SDL_KeyCode;
|
} SDL_KeyCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Enumeration of valid key mods (possibly OR'd together).
|
* Enumeration of valid key mods (possibly OR'd together).
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_Keymod
|
||||||
{
|
{
|
||||||
KMOD_NONE = 0x0000,
|
KMOD_NONE = 0x0000,
|
||||||
KMOD_LSHIFT = 0x0001,
|
KMOD_LSHIFT = 0x0001,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,23 +19,25 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* WIKI CATEGORY: LoadSO */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_loadso.h
|
* # CategoryLoadSO
|
||||||
*
|
*
|
||||||
* System dependent library loading routines
|
* System-dependent library loading routines.
|
||||||
*
|
*
|
||||||
* Some things to keep in mind:
|
* Some things to keep in mind:
|
||||||
* \li These functions only work on C function names. Other languages may
|
*
|
||||||
* have name mangling and intrinsic language support that varies from
|
* - These functions only work on C function names. Other languages may have
|
||||||
* compiler to compiler.
|
* name mangling and intrinsic language support that varies from compiler to
|
||||||
* \li Make sure you declare your function pointers with the same calling
|
* compiler.
|
||||||
* convention as the actual library function. Your code will crash
|
* - Make sure you declare your function pointers with the same calling
|
||||||
* mysteriously if you do not do this.
|
* convention as the actual library function. Your code will crash
|
||||||
* \li Avoid namespace collisions. If you load a symbol from the library,
|
* mysteriously if you do not do this.
|
||||||
* it is not defined whether or not it goes into the global symbol
|
* - Avoid namespace collisions. If you load a symbol from the library, it is
|
||||||
* namespace for the application. If it does and it conflicts with
|
* not defined whether or not it goes into the global symbol namespace for
|
||||||
* symbols in your code or other shared libraries, you will not get
|
* the application. If it does and it conflicts with symbols in your code or
|
||||||
* the results you expect. :)
|
* other shared libraries, you will not get the results you expect. :)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_loadso_h_
|
#ifndef SDL_loadso_h_
|
||||||
@@ -53,7 +55,7 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* Dynamically load a shared object.
|
* Dynamically load a shared object.
|
||||||
*
|
*
|
||||||
* \param sofile a system-dependent name of the object file
|
* \param sofile a system-dependent name of the object file.
|
||||||
* \returns an opaque pointer to the object handle or NULL if there was an
|
* \returns an opaque pointer to the object handle or NULL if there was an
|
||||||
* error; call SDL_GetError() for more information.
|
* error; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -79,8 +81,8 @@ extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
|
|||||||
*
|
*
|
||||||
* If the requested function doesn't exist, NULL is returned.
|
* If the requested function doesn't exist, NULL is returned.
|
||||||
*
|
*
|
||||||
* \param handle a valid shared object handle returned by SDL_LoadObject()
|
* \param handle a valid shared object handle returned by SDL_LoadObject().
|
||||||
* \param name the name of the function to look up
|
* \param name the name of the function to look up.
|
||||||
* \returns a pointer to the function or NULL if there was an error; call
|
* \returns a pointer to the function or NULL if there was an error; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -95,7 +97,7 @@ extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
|
|||||||
/**
|
/**
|
||||||
* Unload a shared object from memory.
|
* Unload a shared object from memory.
|
||||||
*
|
*
|
||||||
* \param handle a valid shared object handle returned by SDL_LoadObject()
|
* \param handle a valid shared object handle returned by SDL_LoadObject().
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_locale.h
|
* # CategoryLocale
|
||||||
*
|
*
|
||||||
* Include file for SDL locale services
|
* Include file for SDL locale services
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SDL_locale_h
|
#ifndef _SDL_locale_h
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,18 +20,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_log.h
|
* # CategoryLog
|
||||||
*
|
*
|
||||||
* Simple log messages with categories and priorities.
|
* Simple log messages with categories and priorities.
|
||||||
*
|
*
|
||||||
* By default logs are quiet, but if you're debugging SDL you might want:
|
* By default logs are quiet, but if you're debugging SDL you might want:
|
||||||
*
|
*
|
||||||
* SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);
|
* SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);
|
||||||
*
|
*
|
||||||
* Here's where the messages go on different platforms:
|
* Here's where the messages go on different platforms:
|
||||||
* Windows: debug output stream
|
*
|
||||||
* Android: log output
|
* - Windows: debug output stream
|
||||||
* Others: standard error output (stderr)
|
* - Android: log output
|
||||||
|
* - Others: standard error output (stderr)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_log_h_
|
#ifndef SDL_log_h_
|
||||||
@@ -47,21 +48,20 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The maximum size of a log message prior to SDL 2.0.24
|
* The maximum size of a log message prior to SDL 2.0.24
|
||||||
*
|
*
|
||||||
* As of 2.0.24 there is no limit to the length of SDL log messages.
|
* As of 2.0.24 there is no limit to the length of SDL log messages.
|
||||||
*/
|
*/
|
||||||
#define SDL_MAX_LOG_MESSAGE 4096
|
#define SDL_MAX_LOG_MESSAGE 4096
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The predefined log categories
|
* The predefined log categories
|
||||||
*
|
*
|
||||||
* By default the application category is enabled at the INFO level,
|
* By default the application category is enabled at the INFO level, the
|
||||||
* the assert category is enabled at the WARN level, test is enabled
|
* assert category is enabled at the WARN level, test is enabled at the
|
||||||
* at the VERBOSE level and all other categories are enabled at the
|
* VERBOSE level and all other categories are enabled at the ERROR level.
|
||||||
* CRITICAL level.
|
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_LogCategory
|
||||||
{
|
{
|
||||||
SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LOG_CATEGORY_APPLICATION,
|
||||||
SDL_LOG_CATEGORY_ERROR,
|
SDL_LOG_CATEGORY_ERROR,
|
||||||
@@ -97,9 +97,9 @@ typedef enum
|
|||||||
} SDL_LogCategory;
|
} SDL_LogCategory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The predefined log priorities
|
* The predefined log priorities
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_LogPriority
|
||||||
{
|
{
|
||||||
SDL_LOG_PRIORITY_VERBOSE = 1,
|
SDL_LOG_PRIORITY_VERBOSE = 1,
|
||||||
SDL_LOG_PRIORITY_DEBUG,
|
SDL_LOG_PRIORITY_DEBUG,
|
||||||
@@ -114,7 +114,7 @@ typedef enum
|
|||||||
/**
|
/**
|
||||||
* Set the priority of all log categories.
|
* Set the priority of all log categories.
|
||||||
*
|
*
|
||||||
* \param priority the SDL_LogPriority to assign
|
* \param priority the SDL_LogPriority to assign.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -125,8 +125,8 @@ extern DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority);
|
|||||||
/**
|
/**
|
||||||
* Set the priority of a particular log category.
|
* Set the priority of a particular log category.
|
||||||
*
|
*
|
||||||
* \param category the category to assign a priority to
|
* \param category the category to assign a priority to.
|
||||||
* \param priority the SDL_LogPriority to assign
|
* \param priority the SDL_LogPriority to assign.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -139,8 +139,8 @@ extern DECLSPEC void SDLCALL SDL_LogSetPriority(int category,
|
|||||||
/**
|
/**
|
||||||
* Get the priority of a particular log category.
|
* Get the priority of a particular log category.
|
||||||
*
|
*
|
||||||
* \param category the category to query
|
* \param category the category to query.
|
||||||
* \returns the SDL_LogPriority for the requested category
|
* \returns the SDL_LogPriority for the requested category.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -166,7 +166,7 @@ extern DECLSPEC void SDLCALL SDL_LogResetPriorities(void);
|
|||||||
* = * \param fmt a printf() style message format string
|
* = * \param fmt a printf() style message format string
|
||||||
*
|
*
|
||||||
* \param ... additional parameters matching % tokens in the `fmt` string, if
|
* \param ... additional parameters matching % tokens in the `fmt` string, if
|
||||||
* any
|
* any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -184,10 +184,10 @@ extern DECLSPEC void SDLCALL SDL_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, .
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_VERBOSE.
|
* Log a message with SDL_LOG_PRIORITY_VERBOSE.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -205,10 +205,10 @@ extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, SDL_PRINTF_FORMAT_STRI
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_DEBUG.
|
* Log a message with SDL_LOG_PRIORITY_DEBUG.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -226,10 +226,10 @@ extern DECLSPEC void SDLCALL SDL_LogDebug(int category, SDL_PRINTF_FORMAT_STRING
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_INFO.
|
* Log a message with SDL_LOG_PRIORITY_INFO.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -247,10 +247,10 @@ extern DECLSPEC void SDLCALL SDL_LogInfo(int category, SDL_PRINTF_FORMAT_STRING
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_WARN.
|
* Log a message with SDL_LOG_PRIORITY_WARN.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -268,10 +268,10 @@ extern DECLSPEC void SDLCALL SDL_LogWarn(int category, SDL_PRINTF_FORMAT_STRING
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_ERROR.
|
* Log a message with SDL_LOG_PRIORITY_ERROR.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -289,10 +289,10 @@ extern DECLSPEC void SDLCALL SDL_LogError(int category, SDL_PRINTF_FORMAT_STRING
|
|||||||
/**
|
/**
|
||||||
* Log a message with SDL_LOG_PRIORITY_CRITICAL.
|
* Log a message with SDL_LOG_PRIORITY_CRITICAL.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -310,11 +310,11 @@ extern DECLSPEC void SDLCALL SDL_LogCritical(int category, SDL_PRINTF_FORMAT_STR
|
|||||||
/**
|
/**
|
||||||
* Log a message with the specified category and priority.
|
* Log a message with the specified category and priority.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param priority the priority of the message
|
* \param priority the priority of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ... additional parameters matching % tokens in the **fmt** string,
|
* \param ... additional parameters matching % tokens in the **fmt** string,
|
||||||
* if any
|
* if any.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -334,10 +334,10 @@ extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
|
|||||||
/**
|
/**
|
||||||
* Log a message with the specified category and priority.
|
* Log a message with the specified category and priority.
|
||||||
*
|
*
|
||||||
* \param category the category of the message
|
* \param category the category of the message.
|
||||||
* \param priority the priority of the message
|
* \param priority the priority of the message.
|
||||||
* \param fmt a printf() style message format string
|
* \param fmt a printf() style message format string.
|
||||||
* \param ap a variable argument list
|
* \param ap a variable argument list.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -352,17 +352,18 @@ extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
|
|||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
|
extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
const char *fmt, va_list ap);
|
SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(3);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The prototype for the log output callback function.
|
* The prototype for the log output callback function.
|
||||||
*
|
*
|
||||||
* This function is called by SDL when there is new text to be logged.
|
* This function is called by SDL when there is new text to be logged.
|
||||||
*
|
*
|
||||||
* \param userdata what was passed as `userdata` to SDL_LogSetOutputFunction()
|
* \param userdata what was passed as `userdata` to
|
||||||
* \param category the category of the message
|
* SDL_LogSetOutputFunction().
|
||||||
* \param priority the priority of the message
|
* \param category the category of the message.
|
||||||
* \param message the message being output
|
* \param priority the priority of the message.
|
||||||
|
* \param message the message being output.
|
||||||
*/
|
*/
|
||||||
typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
|
typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
|
||||||
|
|
||||||
@@ -370,9 +371,9 @@ typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_
|
|||||||
* Get the current log output function.
|
* Get the current log output function.
|
||||||
*
|
*
|
||||||
* \param callback an SDL_LogOutputFunction filled in with the current log
|
* \param callback an SDL_LogOutputFunction filled in with the current log
|
||||||
* callback
|
* callback.
|
||||||
* \param userdata a pointer filled in with the pointer that is passed to
|
* \param userdata a pointer filled in with the pointer that is passed to
|
||||||
* `callback`
|
* `callback`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -383,8 +384,8 @@ extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *cal
|
|||||||
/**
|
/**
|
||||||
* Replace the default log output function with one of your own.
|
* Replace the default log output function with one of your own.
|
||||||
*
|
*
|
||||||
* \param callback an SDL_LogOutputFunction to call instead of the default
|
* \param callback an SDL_LogOutputFunction to call instead of the default.
|
||||||
* \param userdata a pointer that is passed to `callback`
|
* \param userdata a pointer that is passed to `callback`.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -25,9 +25,9 @@
|
|||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_main.h
|
* # CategoryMain
|
||||||
*
|
*
|
||||||
* Redefine main() on some platforms so that it is called by SDL.
|
* Redefine main() on some platforms so that it is called by SDL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_MAIN_HANDLED
|
#ifndef SDL_MAIN_HANDLED
|
||||||
@@ -129,14 +129,14 @@
|
|||||||
*
|
*
|
||||||
* The application's main() function must be called with C linkage,
|
* The application's main() function must be called with C linkage,
|
||||||
* and should be declared like this:
|
* and should be declared like this:
|
||||||
* \code
|
* ```c
|
||||||
* #ifdef __cplusplus
|
* #ifdef __cplusplus
|
||||||
* extern "C"
|
* extern "C"
|
||||||
* #endif
|
* #endif
|
||||||
* int main(int argc, char *argv[])
|
* int main(int argc, char *argv[])
|
||||||
* {
|
* {
|
||||||
* }
|
* }
|
||||||
* \endcode
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE)
|
#if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE)
|
||||||
@@ -149,7 +149,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The prototype for the application's main() function
|
* The prototype for the application's main() function
|
||||||
*/
|
*/
|
||||||
typedef int (*SDL_main_func)(int argc, char *argv[]);
|
typedef int (*SDL_main_func)(int argc, char *argv[]);
|
||||||
extern SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
|
extern SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
|
||||||
@@ -222,8 +222,8 @@ extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
|
|||||||
/**
|
/**
|
||||||
* Initialize and launch an SDL/WinRT application.
|
* Initialize and launch an SDL/WinRT application.
|
||||||
*
|
*
|
||||||
* \param mainFunction the SDL app's C-style main(), an SDL_main_func
|
* \param mainFunction the SDL app's C-style main(), an SDL_main_func.
|
||||||
* \param reserved reserved for future use; should be NULL
|
* \param reserved reserved for future use; should be NULL.
|
||||||
* \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve
|
* \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve
|
||||||
* more information on the failure.
|
* more information on the failure.
|
||||||
*
|
*
|
||||||
@@ -238,10 +238,10 @@ extern DECLSPEC int SDLCALL SDL_WinRTRunApp(SDL_main_func mainFunction, void * r
|
|||||||
/**
|
/**
|
||||||
* Initializes and launches an SDL application.
|
* Initializes and launches an SDL application.
|
||||||
*
|
*
|
||||||
* \param argc The argc parameter from the application's main() function
|
* \param argc The argc parameter from the application's main() function.
|
||||||
* \param argv The argv parameter from the application's main() function
|
* \param argv The argv parameter from the application's main() function.
|
||||||
* \param mainFunction The SDL app's C-style main(), an SDL_main_func
|
* \param mainFunction The SDL app's C-style main(), an SDL_main_func.
|
||||||
* \return the return value from mainFunction
|
* \return the return value from mainFunction.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.10.
|
* \since This function is available since SDL 2.0.10.
|
||||||
*/
|
*/
|
||||||
@@ -254,8 +254,8 @@ extern DECLSPEC int SDLCALL SDL_UIKitRunApp(int argc, char *argv[], SDL_main_fun
|
|||||||
/**
|
/**
|
||||||
* Initialize and launch an SDL GDK application.
|
* Initialize and launch an SDL GDK application.
|
||||||
*
|
*
|
||||||
* \param mainFunction the SDL app's C-style main(), an SDL_main_func
|
* \param mainFunction the SDL app's C-style main(), an SDL_main_func.
|
||||||
* \param reserved reserved for future use; should be NULL
|
* \param reserved reserved for future use; should be NULL.
|
||||||
* \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve
|
* \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve
|
||||||
* more information on the failure.
|
* more information on the failure.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -32,9 +32,11 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SDL_MessageBox flags. If supported will display warning icon, etc.
|
* SDL_MessageBox flags.
|
||||||
|
*
|
||||||
|
* If supported will display warning icon, etc.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_MessageBoxFlags
|
||||||
{
|
{
|
||||||
SDL_MESSAGEBOX_ERROR = 0x00000010, /**< error dialog */
|
SDL_MESSAGEBOX_ERROR = 0x00000010, /**< error dialog */
|
||||||
SDL_MESSAGEBOX_WARNING = 0x00000020, /**< warning dialog */
|
SDL_MESSAGEBOX_WARNING = 0x00000020, /**< warning dialog */
|
||||||
@@ -46,7 +48,7 @@ typedef enum
|
|||||||
/**
|
/**
|
||||||
* Flags for SDL_MessageBoxButtonData.
|
* Flags for SDL_MessageBoxButtonData.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_MessageBoxButtonFlags
|
||||||
{
|
{
|
||||||
SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001, /**< Marks the default button when return is hit */
|
SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = 0x00000001, /**< Marks the default button when return is hit */
|
||||||
SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002 /**< Marks the default button when escape is hit */
|
SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002 /**< Marks the default button when escape is hit */
|
||||||
@@ -55,9 +57,9 @@ typedef enum
|
|||||||
/**
|
/**
|
||||||
* Individual button data.
|
* Individual button data.
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct SDL_MessageBoxButtonData
|
||||||
{
|
{
|
||||||
Uint32 flags; /**< ::SDL_MessageBoxButtonFlags */
|
Uint32 flags; /**< SDL_MessageBoxButtonFlags */
|
||||||
int buttonid; /**< User defined button id (value returned via SDL_ShowMessageBox) */
|
int buttonid; /**< User defined button id (value returned via SDL_ShowMessageBox) */
|
||||||
const char * text; /**< The UTF-8 button text */
|
const char * text; /**< The UTF-8 button text */
|
||||||
} SDL_MessageBoxButtonData;
|
} SDL_MessageBoxButtonData;
|
||||||
@@ -65,12 +67,12 @@ typedef struct
|
|||||||
/**
|
/**
|
||||||
* RGB value used in a message box color scheme
|
* RGB value used in a message box color scheme
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct SDL_MessageBoxColor
|
||||||
{
|
{
|
||||||
Uint8 r, g, b;
|
Uint8 r, g, b;
|
||||||
} SDL_MessageBoxColor;
|
} SDL_MessageBoxColor;
|
||||||
|
|
||||||
typedef enum
|
typedef enum SDL_MessageBoxColorType
|
||||||
{
|
{
|
||||||
SDL_MESSAGEBOX_COLOR_BACKGROUND,
|
SDL_MESSAGEBOX_COLOR_BACKGROUND,
|
||||||
SDL_MESSAGEBOX_COLOR_TEXT,
|
SDL_MESSAGEBOX_COLOR_TEXT,
|
||||||
@@ -83,7 +85,7 @@ typedef enum
|
|||||||
/**
|
/**
|
||||||
* A set of colors to use for message box dialogs
|
* A set of colors to use for message box dialogs
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct SDL_MessageBoxColorScheme
|
||||||
{
|
{
|
||||||
SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX];
|
SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX];
|
||||||
} SDL_MessageBoxColorScheme;
|
} SDL_MessageBoxColorScheme;
|
||||||
@@ -91,9 +93,9 @@ typedef struct
|
|||||||
/**
|
/**
|
||||||
* MessageBox structure containing title, text, window, etc.
|
* MessageBox structure containing title, text, window, etc.
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct SDL_MessageBoxData
|
||||||
{
|
{
|
||||||
Uint32 flags; /**< ::SDL_MessageBoxFlags */
|
Uint32 flags; /**< SDL_MessageBoxFlags */
|
||||||
SDL_Window *window; /**< Parent window, can be NULL */
|
SDL_Window *window; /**< Parent window, can be NULL */
|
||||||
const char *title; /**< UTF-8 title */
|
const char *title; /**< UTF-8 title */
|
||||||
const char *message; /**< UTF-8 message text */
|
const char *message; /**< UTF-8 message text */
|
||||||
@@ -101,7 +103,7 @@ typedef struct
|
|||||||
int numbuttons;
|
int numbuttons;
|
||||||
const SDL_MessageBoxButtonData *buttons;
|
const SDL_MessageBoxButtonData *buttons;
|
||||||
|
|
||||||
const SDL_MessageBoxColorScheme *colorScheme; /**< ::SDL_MessageBoxColorScheme, can be NULL to use system settings */
|
const SDL_MessageBoxColorScheme *colorScheme; /**< SDL_MessageBoxColorScheme, can be NULL to use system settings */
|
||||||
} SDL_MessageBoxData;
|
} SDL_MessageBoxData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -128,8 +130,9 @@ typedef struct
|
|||||||
* to stderr if you can.
|
* to stderr if you can.
|
||||||
*
|
*
|
||||||
* \param messageboxdata the SDL_MessageBoxData structure with title, text and
|
* \param messageboxdata the SDL_MessageBoxData structure with title, text and
|
||||||
* other options
|
* other options.
|
||||||
* \param buttonid the pointer to which user id of hit button should be copied
|
* \param buttonid the pointer to which user id of hit button should be
|
||||||
|
* copied.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -168,10 +171,10 @@ extern DECLSPEC int SDLCALL SDL_ShowMessageBox(const SDL_MessageBoxData *message
|
|||||||
* concern, check the return value from this function and fall back to writing
|
* concern, check the return value from this function and fall back to writing
|
||||||
* to stderr if you can.
|
* to stderr if you can.
|
||||||
*
|
*
|
||||||
* \param flags an SDL_MessageBoxFlags value
|
* \param flags an SDL_MessageBoxFlags value.
|
||||||
* \param title UTF-8 title text
|
* \param title UTF-8 title text.
|
||||||
* \param message UTF-8 message text
|
* \param message UTF-8 message text.
|
||||||
* \param window the parent window, or NULL for no parent
|
* \param window the parent window, or NULL for no parent.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_metal.h
|
* # CategoryMetal
|
||||||
*
|
*
|
||||||
* Header file for functions to creating Metal layers and views on SDL windows.
|
* Header file for functions to creating Metal layers and views on SDL
|
||||||
|
* windows.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_metal_h_
|
#ifndef SDL_metal_h_
|
||||||
@@ -37,9 +38,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS).
|
* A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS).
|
||||||
*
|
*
|
||||||
* \note This can be cast directly to an NSView or UIView.
|
* This can be cast directly to an NSView or UIView.
|
||||||
*/
|
*/
|
||||||
typedef void *SDL_MetalView;
|
typedef void *SDL_MetalView;
|
||||||
|
|
||||||
@@ -90,9 +91,9 @@ extern DECLSPEC void *SDLCALL SDL_Metal_GetLayer(SDL_MetalView view);
|
|||||||
* Get the size of a window's underlying drawable in pixels (for use with
|
* Get the size of a window's underlying drawable in pixels (for use with
|
||||||
* setting viewport, scissor & etc).
|
* setting viewport, scissor & etc).
|
||||||
*
|
*
|
||||||
* \param window SDL_Window from which the drawable size should be queried
|
* \param window SDL_Window from which the drawable size should be queried.
|
||||||
* \param w Pointer to variable for storing the width in pixels, may be NULL
|
* \param w Pointer to variable for storing the width in pixels, may be NULL.
|
||||||
* \param h Pointer to variable for storing the height in pixels, may be NULL
|
* \param h Pointer to variable for storing the height in pixels, may be NULL.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_misc.h
|
* # CategoryMisc
|
||||||
*
|
*
|
||||||
* \brief Include file for SDL API functions that don't fit elsewhere.
|
* Include file for SDL API functions that don't fit elsewhere.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_misc_h_
|
#ifndef SDL_misc_h_
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_mouse.h
|
* # CategoryMouse
|
||||||
*
|
*
|
||||||
* Include file for SDL mouse event handling.
|
* Include file for SDL mouse event handling.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_mouse_h_
|
#ifndef SDL_mouse_h_
|
||||||
@@ -41,9 +41,9 @@ extern "C" {
|
|||||||
typedef struct SDL_Cursor SDL_Cursor; /**< Implementation dependent */
|
typedef struct SDL_Cursor SDL_Cursor; /**< Implementation dependent */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Cursor types for SDL_CreateSystemCursor().
|
* Cursor types for SDL_CreateSystemCursor().
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_SystemCursor
|
||||||
{
|
{
|
||||||
SDL_SYSTEM_CURSOR_ARROW, /**< Arrow */
|
SDL_SYSTEM_CURSOR_ARROW, /**< Arrow */
|
||||||
SDL_SYSTEM_CURSOR_IBEAM, /**< I-beam */
|
SDL_SYSTEM_CURSOR_IBEAM, /**< I-beam */
|
||||||
@@ -61,9 +61,9 @@ typedef enum
|
|||||||
} SDL_SystemCursor;
|
} SDL_SystemCursor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Scroll direction types for the Scroll event
|
* Scroll direction types for the Scroll event
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_MouseWheelDirection
|
||||||
{
|
{
|
||||||
SDL_MOUSEWHEEL_NORMAL, /**< The scroll direction is normal */
|
SDL_MOUSEWHEEL_NORMAL, /**< The scroll direction is normal */
|
||||||
SDL_MOUSEWHEEL_FLIPPED /**< The scroll direction is flipped / natural */
|
SDL_MOUSEWHEEL_FLIPPED /**< The scroll direction is flipped / natural */
|
||||||
@@ -90,9 +90,9 @@ extern DECLSPEC SDL_Window * SDLCALL SDL_GetMouseFocus(void);
|
|||||||
* either `x` or `y`.
|
* either `x` or `y`.
|
||||||
*
|
*
|
||||||
* \param x the x coordinate of the mouse cursor position relative to the
|
* \param x the x coordinate of the mouse cursor position relative to the
|
||||||
* focus window
|
* focus window.
|
||||||
* \param y the y coordinate of the mouse cursor position relative to the
|
* \param y the y coordinate of the mouse cursor position relative to the
|
||||||
* focus window
|
* focus window.
|
||||||
* \returns a 32-bit button bitmask of the current button state.
|
* \returns a 32-bit button bitmask of the current button state.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -120,9 +120,9 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetMouseState(int *x, int *y);
|
|||||||
* reason to use this function, you probably want SDL_GetMouseState() instead.
|
* reason to use this function, you probably want SDL_GetMouseState() instead.
|
||||||
*
|
*
|
||||||
* \param x filled in with the current X coord relative to the desktop; can be
|
* \param x filled in with the current X coord relative to the desktop; can be
|
||||||
* NULL
|
* NULL.
|
||||||
* \param y filled in with the current Y coord relative to the desktop; can be
|
* \param y filled in with the current Y coord relative to the desktop; can be
|
||||||
* NULL
|
* NULL.
|
||||||
* \returns the current button state as a bitmask which can be tested using
|
* \returns the current button state as a bitmask which can be tested using
|
||||||
* the SDL_BUTTON(X) macros.
|
* the SDL_BUTTON(X) macros.
|
||||||
*
|
*
|
||||||
@@ -141,8 +141,8 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetGlobalMouseState(int *x, int *y);
|
|||||||
* mouse deltas since the last call to SDL_GetRelativeMouseState() or since
|
* mouse deltas since the last call to SDL_GetRelativeMouseState() or since
|
||||||
* event initialization. You can pass NULL for either `x` or `y`.
|
* event initialization. You can pass NULL for either `x` or `y`.
|
||||||
*
|
*
|
||||||
* \param x a pointer filled with the last recorded x coordinate of the mouse
|
* \param x a pointer filled with the last recorded x coordinate of the mouse.
|
||||||
* \param y a pointer filled with the last recorded y coordinate of the mouse
|
* \param y a pointer filled with the last recorded y coordinate of the mouse.
|
||||||
* \returns a 32-bit button bitmask of the relative button state.
|
* \returns a 32-bit button bitmask of the relative button state.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -162,9 +162,9 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
|
|||||||
* mouse when used over Microsoft Remote Desktop.
|
* mouse when used over Microsoft Remote Desktop.
|
||||||
*
|
*
|
||||||
* \param window the window to move the mouse into, or NULL for the current
|
* \param window the window to move the mouse into, or NULL for the current
|
||||||
* mouse focus
|
* mouse focus.
|
||||||
* \param x the x coordinate within the window
|
* \param x the x coordinate within the window.
|
||||||
* \param y the y coordinate within the window
|
* \param y the y coordinate within the window.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -184,8 +184,8 @@ extern DECLSPEC void SDLCALL SDL_WarpMouseInWindow(SDL_Window * window,
|
|||||||
* Note that this function will appear to succeed, but not actually move the
|
* Note that this function will appear to succeed, but not actually move the
|
||||||
* mouse when used over Microsoft Remote Desktop.
|
* mouse when used over Microsoft Remote Desktop.
|
||||||
*
|
*
|
||||||
* \param x the x coordinate
|
* \param x the x coordinate.
|
||||||
* \param y the y coordinate
|
* \param y the y coordinate.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -297,14 +297,14 @@ extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void);
|
|||||||
* Also, since SDL 2.0.0, SDL_CreateSystemCursor() is available, which
|
* Also, since SDL 2.0.0, SDL_CreateSystemCursor() is available, which
|
||||||
* provides twelve readily available system cursors to pick from.
|
* provides twelve readily available system cursors to pick from.
|
||||||
*
|
*
|
||||||
* \param data the color value for each pixel of the cursor
|
* \param data the color value for each pixel of the cursor.
|
||||||
* \param mask the mask value for each pixel of the cursor
|
* \param mask the mask value for each pixel of the cursor.
|
||||||
* \param w the width of the cursor
|
* \param w the width of the cursor.
|
||||||
* \param h the height of the cursor
|
* \param h the height of the cursor.
|
||||||
* \param hot_x the X-axis location of the upper left corner of the cursor
|
* \param hot_x the X-axis location of the upper left corner of the cursor
|
||||||
* relative to the actual mouse position
|
* relative to the actual mouse position.
|
||||||
* \param hot_y the Y-axis location of the upper left corner of the cursor
|
* \param hot_y the Y-axis location of the upper left corner of the cursor
|
||||||
* relative to the actual mouse position
|
* relative to the actual mouse position.
|
||||||
* \returns a new cursor with the specified parameters on success or NULL on
|
* \returns a new cursor with the specified parameters on success or NULL on
|
||||||
* failure; call SDL_GetError() for more information.
|
* failure; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -322,9 +322,9 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateCursor(const Uint8 * data,
|
|||||||
/**
|
/**
|
||||||
* Create a color cursor.
|
* Create a color cursor.
|
||||||
*
|
*
|
||||||
* \param surface an SDL_Surface structure representing the cursor image
|
* \param surface an SDL_Surface structure representing the cursor image.
|
||||||
* \param hot_x the x position of the cursor hot spot
|
* \param hot_x the x position of the cursor hot spot.
|
||||||
* \param hot_y the y position of the cursor hot spot
|
* \param hot_y the y position of the cursor hot spot.
|
||||||
* \returns the new cursor on success or NULL on failure; call SDL_GetError()
|
* \returns the new cursor on success or NULL on failure; call SDL_GetError()
|
||||||
* for more information.
|
* for more information.
|
||||||
*
|
*
|
||||||
@@ -340,7 +340,7 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateColorCursor(SDL_Surface *surface,
|
|||||||
/**
|
/**
|
||||||
* Create a system cursor.
|
* Create a system cursor.
|
||||||
*
|
*
|
||||||
* \param id an SDL_SystemCursor enum value
|
* \param id an SDL_SystemCursor enum value.
|
||||||
* \returns a cursor on success or NULL on failure; call SDL_GetError() for
|
* \returns a cursor on success or NULL on failure; call SDL_GetError() for
|
||||||
* more information.
|
* more information.
|
||||||
*
|
*
|
||||||
@@ -358,7 +358,7 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id);
|
|||||||
* the display. SDL_SetCursor(NULL) can be used to force cursor redraw, if
|
* the display. SDL_SetCursor(NULL) can be used to force cursor redraw, if
|
||||||
* this is desired for any reason.
|
* this is desired for any reason.
|
||||||
*
|
*
|
||||||
* \param cursor a cursor to make active
|
* \param cursor a cursor to make active.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -402,7 +402,7 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void);
|
|||||||
* Use this function to free cursor resources created with SDL_CreateCursor(),
|
* Use this function to free cursor resources created with SDL_CreateCursor(),
|
||||||
* SDL_CreateColorCursor() or SDL_CreateSystemCursor().
|
* SDL_CreateColorCursor() or SDL_CreateSystemCursor().
|
||||||
*
|
*
|
||||||
* \param cursor the cursor to free
|
* \param cursor the cursor to free.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -437,9 +437,9 @@ extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
|
|||||||
/**
|
/**
|
||||||
* Used as a mask when testing buttons in buttonstate.
|
* Used as a mask when testing buttons in buttonstate.
|
||||||
*
|
*
|
||||||
* - Button 1: Left mouse button
|
* - Button 1: Left mouse button
|
||||||
* - Button 2: Middle mouse button
|
* - Button 2: Middle mouse button
|
||||||
* - Button 3: Right mouse button
|
* - Button 3: Right mouse button
|
||||||
*/
|
*/
|
||||||
#define SDL_BUTTON(X) (1 << ((X)-1))
|
#define SDL_BUTTON(X) (1 << ((X)-1))
|
||||||
#define SDL_BUTTON_LEFT 1
|
#define SDL_BUTTON_LEFT 1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
#define SDL_mutex_h_
|
#define SDL_mutex_h_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_mutex.h
|
* # CategoryMutex
|
||||||
*
|
*
|
||||||
* Functions to provide thread synchronization primitives.
|
* Functions to provide thread synchronization primitives.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
@@ -112,13 +112,13 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synchronization functions which can time out return this value
|
* Synchronization functions which can time out return this value if they time
|
||||||
* if they time out.
|
* out.
|
||||||
*/
|
*/
|
||||||
#define SDL_MUTEX_TIMEDOUT 1
|
#define SDL_MUTEX_TIMEDOUT 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the timeout value which corresponds to never time out.
|
* This is the timeout value which corresponds to never time out.
|
||||||
*/
|
*/
|
||||||
#define SDL_MUTEX_MAXWAIT (~(Uint32)0)
|
#define SDL_MUTEX_MAXWAIT (~(Uint32)0)
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ extern DECLSPEC SDL_mutex *SDLCALL SDL_CreateMutex(void);
|
|||||||
* unlock it the same number of times before it is actually made available for
|
* unlock it the same number of times before it is actually made available for
|
||||||
* other threads in the system (this is known as a "recursive mutex").
|
* other threads in the system (this is known as a "recursive mutex").
|
||||||
*
|
*
|
||||||
* \param mutex the mutex to lock
|
* \param mutex the mutex to lock.
|
||||||
* \return 0, or -1 on error.
|
* \return 0, or -1 on error.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -182,7 +182,7 @@ extern DECLSPEC int SDLCALL SDL_LockMutex(SDL_mutex * mutex) SDL_ACQUIRE(mutex);
|
|||||||
* This technique is useful if you need exclusive access to a resource but
|
* This technique is useful if you need exclusive access to a resource but
|
||||||
* don't want to wait for it, and will return to it to try again later.
|
* don't want to wait for it, and will return to it to try again later.
|
||||||
*
|
*
|
||||||
* \param mutex the mutex to try to lock
|
* \param mutex the mutex to try to lock.
|
||||||
* \returns 0, `SDL_MUTEX_TIMEDOUT`, or -1 on error; call SDL_GetError() for
|
* \returns 0, `SDL_MUTEX_TIMEDOUT`, or -1 on error; call SDL_GetError() for
|
||||||
* more information.
|
* more information.
|
||||||
*
|
*
|
||||||
@@ -224,7 +224,7 @@ extern DECLSPEC int SDLCALL SDL_UnlockMutex(SDL_mutex * mutex) SDL_RELEASE(mutex
|
|||||||
* to destroy a locked mutex, and may result in undefined behavior depending
|
* to destroy a locked mutex, and may result in undefined behavior depending
|
||||||
* on the platform.
|
* on the platform.
|
||||||
*
|
*
|
||||||
* \param mutex the mutex to destroy
|
* \param mutex the mutex to destroy.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -256,7 +256,7 @@ typedef struct SDL_semaphore SDL_sem;
|
|||||||
* is 0. Each post operation will atomically increment the semaphore value and
|
* is 0. Each post operation will atomically increment the semaphore value and
|
||||||
* wake waiting threads and allow them to retry the wait operation.
|
* wake waiting threads and allow them to retry the wait operation.
|
||||||
*
|
*
|
||||||
* \param initial_value the starting value of the semaphore
|
* \param initial_value the starting value of the semaphore.
|
||||||
* \returns a new semaphore or NULL on failure; call SDL_GetError() for more
|
* \returns a new semaphore or NULL on failure; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
*
|
*
|
||||||
@@ -277,7 +277,7 @@ extern DECLSPEC SDL_sem *SDLCALL SDL_CreateSemaphore(Uint32 initial_value);
|
|||||||
* It is not safe to destroy a semaphore if there are threads currently
|
* It is not safe to destroy a semaphore if there are threads currently
|
||||||
* waiting on it.
|
* waiting on it.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore to destroy
|
* \param sem the semaphore to destroy.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -301,7 +301,7 @@ extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem * sem);
|
|||||||
* This function is the equivalent of calling SDL_SemWaitTimeout() with a time
|
* This function is the equivalent of calling SDL_SemWaitTimeout() with a time
|
||||||
* length of `SDL_MUTEX_MAXWAIT`.
|
* length of `SDL_MUTEX_MAXWAIT`.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore wait on
|
* \param sem the semaphore wait on.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -325,7 +325,7 @@ extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem * sem);
|
|||||||
* the semaphore doesn't have a positive value, the function immediately
|
* the semaphore doesn't have a positive value, the function immediately
|
||||||
* returns SDL_MUTEX_TIMEDOUT.
|
* returns SDL_MUTEX_TIMEDOUT.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore to wait on
|
* \param sem the semaphore to wait on.
|
||||||
* \returns 0 if the wait succeeds, `SDL_MUTEX_TIMEDOUT` if the wait would
|
* \returns 0 if the wait succeeds, `SDL_MUTEX_TIMEDOUT` if the wait would
|
||||||
* block, or a negative error code on failure; call SDL_GetError()
|
* block, or a negative error code on failure; call SDL_GetError()
|
||||||
* for more information.
|
* for more information.
|
||||||
@@ -349,8 +349,8 @@ extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem * sem);
|
|||||||
* signal or error, or the specified time has elapsed. If the call is
|
* signal or error, or the specified time has elapsed. If the call is
|
||||||
* successful it will atomically decrement the semaphore value.
|
* successful it will atomically decrement the semaphore value.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore to wait on
|
* \param sem the semaphore to wait on.
|
||||||
* \param timeout the length of the timeout, in milliseconds
|
* \param timeout the length of the timeout, in milliseconds.
|
||||||
* \returns 0 if the wait succeeds, `SDL_MUTEX_TIMEDOUT` if the wait does not
|
* \returns 0 if the wait succeeds, `SDL_MUTEX_TIMEDOUT` if the wait does not
|
||||||
* succeed in the allotted time, or a negative error code on failure;
|
* succeed in the allotted time, or a negative error code on failure;
|
||||||
* call SDL_GetError() for more information.
|
* call SDL_GetError() for more information.
|
||||||
@@ -369,7 +369,7 @@ extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout);
|
|||||||
/**
|
/**
|
||||||
* Atomically increment a semaphore's value and wake waiting threads.
|
* Atomically increment a semaphore's value and wake waiting threads.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore to increment
|
* \param sem the semaphore to increment.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -387,7 +387,7 @@ extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem * sem);
|
|||||||
/**
|
/**
|
||||||
* Get the current value of a semaphore.
|
* Get the current value of a semaphore.
|
||||||
*
|
*
|
||||||
* \param sem the semaphore to query
|
* \param sem the semaphore to query.
|
||||||
* \returns the current value of the semaphore.
|
* \returns the current value of the semaphore.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
@@ -427,7 +427,7 @@ extern DECLSPEC SDL_cond *SDLCALL SDL_CreateCond(void);
|
|||||||
/**
|
/**
|
||||||
* Destroy a condition variable.
|
* Destroy a condition variable.
|
||||||
*
|
*
|
||||||
* \param cond the condition variable to destroy
|
* \param cond the condition variable to destroy.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -442,7 +442,7 @@ extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond * cond);
|
|||||||
/**
|
/**
|
||||||
* Restart one of the threads that are waiting on the condition variable.
|
* Restart one of the threads that are waiting on the condition variable.
|
||||||
*
|
*
|
||||||
* \param cond the condition variable to signal
|
* \param cond the condition variable to signal.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -459,7 +459,7 @@ extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond * cond);
|
|||||||
/**
|
/**
|
||||||
* Restart all threads that are waiting on the condition variable.
|
* Restart all threads that are waiting on the condition variable.
|
||||||
*
|
*
|
||||||
* \param cond the condition variable to signal
|
* \param cond the condition variable to signal.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -486,8 +486,8 @@ extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond * cond);
|
|||||||
* This function is the equivalent of calling SDL_CondWaitTimeout() with a
|
* This function is the equivalent of calling SDL_CondWaitTimeout() with a
|
||||||
* time length of `SDL_MUTEX_MAXWAIT`.
|
* time length of `SDL_MUTEX_MAXWAIT`.
|
||||||
*
|
*
|
||||||
* \param cond the condition variable to wait on
|
* \param cond the condition variable to wait on.
|
||||||
* \param mutex the mutex used to coordinate thread access
|
* \param mutex the mutex used to coordinate thread access.
|
||||||
* \returns 0 when it is signaled or a negative error code on failure; call
|
* \returns 0 when it is signaled or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -512,10 +512,10 @@ extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond * cond, SDL_mutex * mutex);
|
|||||||
*
|
*
|
||||||
* The mutex must be locked before calling this function.
|
* The mutex must be locked before calling this function.
|
||||||
*
|
*
|
||||||
* \param cond the condition variable to wait on
|
* \param cond the condition variable to wait on.
|
||||||
* \param mutex the mutex used to coordinate thread access
|
* \param mutex the mutex used to coordinate thread access.
|
||||||
* \param ms the maximum time to wait, in milliseconds, or `SDL_MUTEX_MAXWAIT`
|
* \param ms the maximum time to wait, in milliseconds, or `SDL_MUTEX_MAXWAIT`
|
||||||
* to wait indefinitely
|
* to wait indefinitely.
|
||||||
* \returns 0 if the condition variable is signaled, `SDL_MUTEX_TIMEDOUT` if
|
* \returns 0 if the condition variable is signaled, `SDL_MUTEX_TIMEDOUT` if
|
||||||
* the condition is not signaled in the allotted time, or a negative
|
* the condition is not signaled in the allotted time, or a negative
|
||||||
* error code on failure; call SDL_GetError() for more information.
|
* error code on failure; call SDL_GetError() for more information.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,17 +19,11 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* \file SDL_opengl.h
|
* This is a simple file to encapsulate the OpenGL API headers.
|
||||||
*
|
*
|
||||||
* This is a simple file to encapsulate the OpenGL API headers.
|
* Define NO_SDL_GLEXT if you have your own version of glext.h and want
|
||||||
*/
|
* to disable the version included in SDL_opengl.h.
|
||||||
|
|
||||||
/**
|
|
||||||
* \def NO_SDL_GLEXT
|
|
||||||
*
|
|
||||||
* Define this if you have your own version of glext.h and want to disable the
|
|
||||||
* version included in SDL_opengl.h.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_opengl_h_
|
#ifndef SDL_opengl_h_
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,11 +19,10 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* \file SDL_opengles.h
|
* This is a simple file to encapsulate the OpenGL ES 1.X API headers.
|
||||||
*
|
|
||||||
* This is a simple file to encapsulate the OpenGL ES 1.X API headers.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "SDL_config.h"
|
#include "SDL_config.h"
|
||||||
|
|
||||||
#ifdef __IPHONEOS__
|
#ifdef __IPHONEOS__
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -19,11 +19,10 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* \file SDL_opengles2.h
|
* This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
|
||||||
*
|
|
||||||
* This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "SDL_config.h"
|
#include "SDL_config.h"
|
||||||
|
|
||||||
#if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
|
#if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_pixels.h
|
* # CategoryPixels
|
||||||
*
|
*
|
||||||
* Header for the enumerated pixel format definitions.
|
* Header for the enumerated pixel format definitions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_pixels_h_
|
#ifndef SDL_pixels_h_
|
||||||
@@ -61,7 +61,10 @@ typedef enum
|
|||||||
SDL_PIXELTYPE_ARRAYU16,
|
SDL_PIXELTYPE_ARRAYU16,
|
||||||
SDL_PIXELTYPE_ARRAYU32,
|
SDL_PIXELTYPE_ARRAYU32,
|
||||||
SDL_PIXELTYPE_ARRAYF16,
|
SDL_PIXELTYPE_ARRAYF16,
|
||||||
SDL_PIXELTYPE_ARRAYF32
|
SDL_PIXELTYPE_ARRAYF32,
|
||||||
|
|
||||||
|
/* This must be at the end of the list to avoid breaking the existing ABI */
|
||||||
|
SDL_PIXELTYPE_INDEX2
|
||||||
} SDL_PixelType;
|
} SDL_PixelType;
|
||||||
|
|
||||||
/** Bitmap pixel order, high bit -> low bit. */
|
/** Bitmap pixel order, high bit -> low bit. */
|
||||||
@@ -134,6 +137,7 @@ typedef enum
|
|||||||
#define SDL_ISPIXELFORMAT_INDEXED(format) \
|
#define SDL_ISPIXELFORMAT_INDEXED(format) \
|
||||||
(!SDL_ISPIXELFORMAT_FOURCC(format) && \
|
(!SDL_ISPIXELFORMAT_FOURCC(format) && \
|
||||||
((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1) || \
|
((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1) || \
|
||||||
|
(SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX2) || \
|
||||||
(SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \
|
(SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \
|
||||||
(SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8)))
|
(SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8)))
|
||||||
|
|
||||||
@@ -177,6 +181,12 @@ typedef enum
|
|||||||
SDL_PIXELFORMAT_INDEX1MSB =
|
SDL_PIXELFORMAT_INDEX1MSB =
|
||||||
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0,
|
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0,
|
||||||
1, 0),
|
1, 0),
|
||||||
|
SDL_PIXELFORMAT_INDEX2LSB =
|
||||||
|
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_4321, 0,
|
||||||
|
2, 0),
|
||||||
|
SDL_PIXELFORMAT_INDEX2MSB =
|
||||||
|
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_1234, 0,
|
||||||
|
2, 0),
|
||||||
SDL_PIXELFORMAT_INDEX4LSB =
|
SDL_PIXELFORMAT_INDEX4LSB =
|
||||||
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0,
|
SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0,
|
||||||
4, 0),
|
4, 0),
|
||||||
@@ -276,11 +286,19 @@ typedef enum
|
|||||||
SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_ARGB8888,
|
SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_ARGB8888,
|
||||||
SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_BGRA8888,
|
SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_BGRA8888,
|
||||||
SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_ABGR8888,
|
SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_ABGR8888,
|
||||||
|
SDL_PIXELFORMAT_RGBX32 = SDL_PIXELFORMAT_RGBX8888,
|
||||||
|
SDL_PIXELFORMAT_XRGB32 = SDL_PIXELFORMAT_XRGB8888,
|
||||||
|
SDL_PIXELFORMAT_BGRX32 = SDL_PIXELFORMAT_BGRX8888,
|
||||||
|
SDL_PIXELFORMAT_XBGR32 = SDL_PIXELFORMAT_XBGR8888,
|
||||||
#else
|
#else
|
||||||
SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_ABGR8888,
|
SDL_PIXELFORMAT_RGBA32 = SDL_PIXELFORMAT_ABGR8888,
|
||||||
SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_BGRA8888,
|
SDL_PIXELFORMAT_ARGB32 = SDL_PIXELFORMAT_BGRA8888,
|
||||||
SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_ARGB8888,
|
SDL_PIXELFORMAT_BGRA32 = SDL_PIXELFORMAT_ARGB8888,
|
||||||
SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_RGBA8888,
|
SDL_PIXELFORMAT_ABGR32 = SDL_PIXELFORMAT_RGBA8888,
|
||||||
|
SDL_PIXELFORMAT_RGBX32 = SDL_PIXELFORMAT_XBGR8888,
|
||||||
|
SDL_PIXELFORMAT_XRGB32 = SDL_PIXELFORMAT_BGRX8888,
|
||||||
|
SDL_PIXELFORMAT_BGRX32 = SDL_PIXELFORMAT_XRGB8888,
|
||||||
|
SDL_PIXELFORMAT_XBGR32 = SDL_PIXELFORMAT_RGBX8888,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_PIXELFORMAT_YV12 = /**< Planar mode: Y + V + U (3 planes) */
|
SDL_PIXELFORMAT_YV12 = /**< Planar mode: Y + V + U (3 planes) */
|
||||||
@@ -302,9 +320,10 @@ typedef enum
|
|||||||
} SDL_PixelFormatEnum;
|
} SDL_PixelFormatEnum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The bits of this structure can be directly reinterpreted as an integer-packed
|
* The bits of this structure can be directly reinterpreted as an
|
||||||
* color which uses the SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888
|
* integer-packed color which uses the SDL_PIXELFORMAT_RGBA32 format
|
||||||
* on little-endian systems and SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
|
* (SDL_PIXELFORMAT_ABGR8888 on little-endian systems and
|
||||||
|
* SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_Color
|
typedef struct SDL_Color
|
||||||
{
|
{
|
||||||
@@ -324,7 +343,30 @@ typedef struct SDL_Palette
|
|||||||
} SDL_Palette;
|
} SDL_Palette;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \note Everything in the pixel format structure is read-only.
|
* A structure that contains pixel format information.
|
||||||
|
*
|
||||||
|
* Everything in the pixel format structure is read-only.
|
||||||
|
*
|
||||||
|
* A pixel format has either a palette or masks. If a palette is used `Rmask`,
|
||||||
|
* `Gmask`, `Bmask`, and `Amask` will be 0.
|
||||||
|
*
|
||||||
|
* An SDL_PixelFormat describes the format of the pixel data stored at the
|
||||||
|
* `pixels` field of an SDL_Surface. Every surface stores an SDL_PixelFormat
|
||||||
|
* in the `format` field.
|
||||||
|
*
|
||||||
|
* If you wish to do pixel level modifications on a surface, then
|
||||||
|
* understanding how SDL stores its color information is essential.
|
||||||
|
*
|
||||||
|
* For information on modern pixel color spaces, see the following Wikipedia
|
||||||
|
* article: http://en.wikipedia.org/wiki/RGBA_color_space
|
||||||
|
*
|
||||||
|
* \sa SDL_ConvertSurface
|
||||||
|
* \sa SDL_GetRGB
|
||||||
|
* \sa SDL_GetRGBA
|
||||||
|
* \sa SDL_MapRGB
|
||||||
|
* \sa SDL_MapRGBA
|
||||||
|
* \sa SDL_AllocFormat
|
||||||
|
* \sa SDL_FreeFormat
|
||||||
*/
|
*/
|
||||||
typedef struct SDL_PixelFormat
|
typedef struct SDL_PixelFormat
|
||||||
{
|
{
|
||||||
@@ -352,7 +394,7 @@ typedef struct SDL_PixelFormat
|
|||||||
/**
|
/**
|
||||||
* Get the human readable name of a pixel format.
|
* Get the human readable name of a pixel format.
|
||||||
*
|
*
|
||||||
* \param format the pixel format to query
|
* \param format the pixel format to query.
|
||||||
* \returns the human readable name of the specified pixel format or
|
* \returns the human readable name of the specified pixel format or
|
||||||
* `SDL_PIXELFORMAT_UNKNOWN` if the format isn't recognized.
|
* `SDL_PIXELFORMAT_UNKNOWN` if the format isn't recognized.
|
||||||
*
|
*
|
||||||
@@ -363,12 +405,12 @@ extern DECLSPEC const char* SDLCALL SDL_GetPixelFormatName(Uint32 format);
|
|||||||
/**
|
/**
|
||||||
* Convert one of the enumerated pixel formats to a bpp value and RGBA masks.
|
* Convert one of the enumerated pixel formats to a bpp value and RGBA masks.
|
||||||
*
|
*
|
||||||
* \param format one of the SDL_PixelFormatEnum values
|
* \param format one of the SDL_PixelFormatEnum values.
|
||||||
* \param bpp a bits per pixel value; usually 15, 16, or 32
|
* \param bpp a bits per pixel value; usually 15, 16, or 32.
|
||||||
* \param Rmask a pointer filled in with the red mask for the format
|
* \param Rmask a pointer filled in with the red mask for the format.
|
||||||
* \param Gmask a pointer filled in with the green mask for the format
|
* \param Gmask a pointer filled in with the green mask for the format.
|
||||||
* \param Bmask a pointer filled in with the blue mask for the format
|
* \param Bmask a pointer filled in with the blue mask for the format.
|
||||||
* \param Amask a pointer filled in with the alpha mask for the format
|
* \param Amask a pointer filled in with the alpha mask for the format.
|
||||||
* \returns SDL_TRUE on success or SDL_FALSE if the conversion wasn't
|
* \returns SDL_TRUE on success or SDL_FALSE if the conversion wasn't
|
||||||
* possible; call SDL_GetError() for more information.
|
* possible; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -389,12 +431,12 @@ extern DECLSPEC SDL_bool SDLCALL SDL_PixelFormatEnumToMasks(Uint32 format,
|
|||||||
* This will return `SDL_PIXELFORMAT_UNKNOWN` if the conversion wasn't
|
* This will return `SDL_PIXELFORMAT_UNKNOWN` if the conversion wasn't
|
||||||
* possible.
|
* possible.
|
||||||
*
|
*
|
||||||
* \param bpp a bits per pixel value; usually 15, 16, or 32
|
* \param bpp a bits per pixel value; usually 15, 16, or 32.
|
||||||
* \param Rmask the red mask for the format
|
* \param Rmask the red mask for the format.
|
||||||
* \param Gmask the green mask for the format
|
* \param Gmask the green mask for the format.
|
||||||
* \param Bmask the blue mask for the format
|
* \param Bmask the blue mask for the format.
|
||||||
* \param Amask the alpha mask for the format
|
* \param Amask the alpha mask for the format.
|
||||||
* \returns one of the SDL_PixelFormatEnum values
|
* \returns one of the SDL_PixelFormatEnum values.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -413,7 +455,7 @@ extern DECLSPEC Uint32 SDLCALL SDL_MasksToPixelFormatEnum(int bpp,
|
|||||||
* allocated), and hence should not be modified, especially the palette. Weird
|
* allocated), and hence should not be modified, especially the palette. Weird
|
||||||
* errors such as `Blit combination not supported` may occur.
|
* errors such as `Blit combination not supported` may occur.
|
||||||
*
|
*
|
||||||
* \param pixel_format one of the SDL_PixelFormatEnum values
|
* \param pixel_format one of the SDL_PixelFormatEnum values.
|
||||||
* \returns the new SDL_PixelFormat structure or NULL on failure; call
|
* \returns the new SDL_PixelFormat structure or NULL on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -426,7 +468,7 @@ extern DECLSPEC SDL_PixelFormat * SDLCALL SDL_AllocFormat(Uint32 pixel_format);
|
|||||||
/**
|
/**
|
||||||
* Free an SDL_PixelFormat structure allocated by SDL_AllocFormat().
|
* Free an SDL_PixelFormat structure allocated by SDL_AllocFormat().
|
||||||
*
|
*
|
||||||
* \param format the SDL_PixelFormat structure to free
|
* \param format the SDL_PixelFormat structure to free.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -439,7 +481,7 @@ extern DECLSPEC void SDLCALL SDL_FreeFormat(SDL_PixelFormat *format);
|
|||||||
*
|
*
|
||||||
* The palette entries are initialized to white.
|
* The palette entries are initialized to white.
|
||||||
*
|
*
|
||||||
* \param ncolors represents the number of color entries in the color palette
|
* \param ncolors represents the number of color entries in the color palette.
|
||||||
* \returns a new SDL_Palette structure on success or NULL on failure (e.g. if
|
* \returns a new SDL_Palette structure on success or NULL on failure (e.g. if
|
||||||
* there wasn't enough memory); call SDL_GetError() for more
|
* there wasn't enough memory); call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
@@ -453,8 +495,8 @@ extern DECLSPEC SDL_Palette *SDLCALL SDL_AllocPalette(int ncolors);
|
|||||||
/**
|
/**
|
||||||
* Set the palette for a pixel format structure.
|
* Set the palette for a pixel format structure.
|
||||||
*
|
*
|
||||||
* \param format the SDL_PixelFormat structure that will use the palette
|
* \param format the SDL_PixelFormat structure that will use the palette.
|
||||||
* \param palette the SDL_Palette structure that will be used
|
* \param palette the SDL_Palette structure that will be used.
|
||||||
* \returns 0 on success or a negative error code on failure; call
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
* SDL_GetError() for more information.
|
* SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -469,10 +511,10 @@ extern DECLSPEC int SDLCALL SDL_SetPixelFormatPalette(SDL_PixelFormat * format,
|
|||||||
/**
|
/**
|
||||||
* Set a range of colors in a palette.
|
* Set a range of colors in a palette.
|
||||||
*
|
*
|
||||||
* \param palette the SDL_Palette structure to modify
|
* \param palette the SDL_Palette structure to modify.
|
||||||
* \param colors an array of SDL_Color structures to copy into the palette
|
* \param colors an array of SDL_Color structures to copy into the palette.
|
||||||
* \param firstcolor the index of the first palette entry to modify
|
* \param firstcolor the index of the first palette entry to modify.
|
||||||
* \param ncolors the number of entries to modify
|
* \param ncolors the number of entries to modify.
|
||||||
* \returns 0 on success or a negative error code if not all of the colors
|
* \returns 0 on success or a negative error code if not all of the colors
|
||||||
* could be set; call SDL_GetError() for more information.
|
* could be set; call SDL_GetError() for more information.
|
||||||
*
|
*
|
||||||
@@ -488,7 +530,7 @@ extern DECLSPEC int SDLCALL SDL_SetPaletteColors(SDL_Palette * palette,
|
|||||||
/**
|
/**
|
||||||
* Free a palette created with SDL_AllocPalette().
|
* Free a palette created with SDL_AllocPalette().
|
||||||
*
|
*
|
||||||
* \param palette the SDL_Palette structure to be freed
|
* \param palette the SDL_Palette structure to be freed.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -514,11 +556,11 @@ extern DECLSPEC void SDLCALL SDL_FreePalette(SDL_Palette * palette);
|
|||||||
* format the return value can be assigned to a Uint16, and similarly a Uint8
|
* format the return value can be assigned to a Uint16, and similarly a Uint8
|
||||||
* for an 8-bpp format).
|
* for an 8-bpp format).
|
||||||
*
|
*
|
||||||
* \param format an SDL_PixelFormat structure describing the pixel format
|
* \param format an SDL_PixelFormat structure describing the pixel format.
|
||||||
* \param r the red component of the pixel in the range 0-255
|
* \param r the red component of the pixel in the range 0-255.
|
||||||
* \param g the green component of the pixel in the range 0-255
|
* \param g the green component of the pixel in the range 0-255.
|
||||||
* \param b the blue component of the pixel in the range 0-255
|
* \param b the blue component of the pixel in the range 0-255.
|
||||||
* \returns a pixel value
|
* \returns a pixel value.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -548,12 +590,12 @@ extern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * format,
|
|||||||
* for an 8-bpp format).
|
* for an 8-bpp format).
|
||||||
*
|
*
|
||||||
* \param format an SDL_PixelFormat structure describing the format of the
|
* \param format an SDL_PixelFormat structure describing the format of the
|
||||||
* pixel
|
* pixel.
|
||||||
* \param r the red component of the pixel in the range 0-255
|
* \param r the red component of the pixel in the range 0-255.
|
||||||
* \param g the green component of the pixel in the range 0-255
|
* \param g the green component of the pixel in the range 0-255.
|
||||||
* \param b the blue component of the pixel in the range 0-255
|
* \param b the blue component of the pixel in the range 0-255.
|
||||||
* \param a the alpha component of the pixel in the range 0-255
|
* \param a the alpha component of the pixel in the range 0-255.
|
||||||
* \returns a pixel value
|
* \returns a pixel value.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -573,12 +615,12 @@ extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * format,
|
|||||||
* (e.g., a completely white pixel in 16-bit RGB565 format would return [0xff,
|
* (e.g., a completely white pixel in 16-bit RGB565 format would return [0xff,
|
||||||
* 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).
|
* 0xff, 0xff] not [0xf8, 0xfc, 0xf8]).
|
||||||
*
|
*
|
||||||
* \param pixel a pixel value
|
* \param pixel a pixel value.
|
||||||
* \param format an SDL_PixelFormat structure describing the format of the
|
* \param format an SDL_PixelFormat structure describing the format of the
|
||||||
* pixel
|
* pixel.
|
||||||
* \param r a pointer filled in with the red component
|
* \param r a pointer filled in with the red component.
|
||||||
* \param g a pointer filled in with the green component
|
* \param g a pointer filled in with the green component.
|
||||||
* \param b a pointer filled in with the blue component
|
* \param b a pointer filled in with the blue component.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -601,13 +643,13 @@ extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel,
|
|||||||
* If the surface has no alpha component, the alpha will be returned as 0xff
|
* If the surface has no alpha component, the alpha will be returned as 0xff
|
||||||
* (100% opaque).
|
* (100% opaque).
|
||||||
*
|
*
|
||||||
* \param pixel a pixel value
|
* \param pixel a pixel value.
|
||||||
* \param format an SDL_PixelFormat structure describing the format of the
|
* \param format an SDL_PixelFormat structure describing the format of the
|
||||||
* pixel
|
* pixel.
|
||||||
* \param r a pointer filled in with the red component
|
* \param r a pointer filled in with the red component.
|
||||||
* \param g a pointer filled in with the green component
|
* \param g a pointer filled in with the green component.
|
||||||
* \param b a pointer filled in with the blue component
|
* \param b a pointer filled in with the blue component.
|
||||||
* \param a a pointer filled in with the alpha component
|
* \param a a pointer filled in with the alpha component.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
@@ -623,8 +665,8 @@ extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,
|
|||||||
/**
|
/**
|
||||||
* Calculate a 256 entry gamma ramp for a gamma value.
|
* Calculate a 256 entry gamma ramp for a gamma value.
|
||||||
*
|
*
|
||||||
* \param gamma a gamma value where 0.0 is black and 1.0 is identity
|
* \param gamma a gamma value where 0.0 is black and 1.0 is identity.
|
||||||
* \param ramp an array of 256 values filled in with the gamma ramp
|
* \param ramp an array of 256 values filled in with the gamma ramp.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_platform.h
|
* # CategoryPlatform
|
||||||
*
|
*
|
||||||
* Try to get a standard set of platform defines.
|
* Try to get a standard set of platform defines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_platform_h_
|
#ifndef SDL_platform_h_
|
||||||
@@ -73,7 +73,13 @@
|
|||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
/* lets us know what version of Mac OS X we're compiling on */
|
/* lets us know what version of Mac OS X we're compiling on */
|
||||||
#include <AvailabilityMacros.h>
|
#include <AvailabilityMacros.h>
|
||||||
|
#ifndef __has_extension /* Older compilers don't support this */
|
||||||
|
#define __has_extension(x) 0
|
||||||
#include <TargetConditionals.h>
|
#include <TargetConditionals.h>
|
||||||
|
#undef __has_extension
|
||||||
|
#else
|
||||||
|
#include <TargetConditionals.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Fix building with older SDKs that don't define these
|
/* Fix building with older SDKs that don't define these
|
||||||
See this for more information:
|
See this for more information:
|
||||||
@@ -166,6 +172,12 @@
|
|||||||
#define WINAPI_FAMILY_WINRT 0
|
#define WINAPI_FAMILY_WINRT 0
|
||||||
#endif /* HAVE_WINAPIFAMILY_H */
|
#endif /* HAVE_WINAPIFAMILY_H */
|
||||||
|
|
||||||
|
#if (HAVE_WINAPIFAMILY_H) && defined(WINAPI_FAMILY_PHONE_APP)
|
||||||
|
#define SDL_WINAPI_FAMILY_PHONE (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP)
|
||||||
|
#else
|
||||||
|
#define SDL_WINAPI_FAMILY_PHONE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if WINAPI_FAMILY_WINRT
|
#if WINAPI_FAMILY_WINRT
|
||||||
#undef __WINRT__
|
#undef __WINRT__
|
||||||
#define __WINRT__ 1
|
#define __WINRT__ 1
|
||||||
@@ -193,8 +205,10 @@
|
|||||||
#undef __GDK__
|
#undef __GDK__
|
||||||
#define __GDK__ 1
|
#define __GDK__ 1
|
||||||
#endif
|
#endif
|
||||||
#if defined(__PSP__)
|
#if defined(__PSP__) || defined(__psp__)
|
||||||
|
#ifdef __PSP__
|
||||||
#undef __PSP__
|
#undef __PSP__
|
||||||
|
#endif
|
||||||
#define __PSP__ 1
|
#define __PSP__ 1
|
||||||
#endif
|
#endif
|
||||||
#if defined(PS2)
|
#if defined(PS2)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
#define SDL_power_h_
|
#define SDL_power_h_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_power.h
|
* # CategoryPower
|
||||||
*
|
*
|
||||||
* Header for the SDL power management routines.
|
* Header for the SDL power management routines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
@@ -37,9 +37,9 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The basic state for the system's power supply.
|
* The basic state for the system's power supply.
|
||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum SDL_PowerState
|
||||||
{
|
{
|
||||||
SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */
|
SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */
|
||||||
SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */
|
SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */
|
||||||
@@ -66,10 +66,10 @@ typedef enum
|
|||||||
*
|
*
|
||||||
* \param seconds seconds of battery life left, you can pass a NULL here if
|
* \param seconds seconds of battery life left, you can pass a NULL here if
|
||||||
* you don't care, will return -1 if we can't determine a
|
* you don't care, will return -1 if we can't determine a
|
||||||
* value, or we're not running on a battery
|
* value, or we're not running on a battery.
|
||||||
* \param percent percentage of battery life left, between 0 and 100, you can
|
* \param percent percentage of battery life left, between 0 and 100, you can
|
||||||
* pass a NULL here if you don't care, will return -1 if we
|
* pass a NULL here if you don't care, will return -1 if we
|
||||||
* can't determine a value, or we're not running on a battery
|
* can't determine a value, or we're not running on a battery.
|
||||||
* \returns an SDL_PowerState enum representing the current battery state.
|
* \returns an SDL_PowerState enum representing the current battery state.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Simple DirectMedia Layer
|
Simple DirectMedia Layer
|
||||||
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@@ -20,9 +20,20 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file SDL_quit.h
|
* # CategoryQuit
|
||||||
*
|
*
|
||||||
* Include file for SDL quit event handling.
|
* An SDL_QUIT event is generated when the user tries to close the application
|
||||||
|
* window. If it is ignored or filtered out, the window will remain open. If
|
||||||
|
* it is not ignored or filtered, it is queued normally and the window is
|
||||||
|
* allowed to close. When the window is closed, screen updates will complete,
|
||||||
|
* but have no effect.
|
||||||
|
*
|
||||||
|
* SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) and
|
||||||
|
* SIGTERM (system termination request), if handlers do not already exist,
|
||||||
|
* that generate SDL_QUIT events as well. There is no way to determine the
|
||||||
|
* cause of an SDL_QUIT event, but setting a signal handler in your
|
||||||
|
* application will override the default generation of quit events for that
|
||||||
|
* signal.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_quit_h_
|
#ifndef SDL_quit_h_
|
||||||
@@ -31,25 +42,6 @@
|
|||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
#include "SDL_error.h"
|
#include "SDL_error.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* \file SDL_quit.h
|
|
||||||
*
|
|
||||||
* An ::SDL_QUIT event is generated when the user tries to close the application
|
|
||||||
* window. If it is ignored or filtered out, the window will remain open.
|
|
||||||
* If it is not ignored or filtered, it is queued normally and the window
|
|
||||||
* is allowed to close. When the window is closed, screen updates will
|
|
||||||
* complete, but have no effect.
|
|
||||||
*
|
|
||||||
* SDL_Init() installs signal handlers for SIGINT (keyboard interrupt)
|
|
||||||
* and SIGTERM (system termination request), if handlers do not already
|
|
||||||
* exist, that generate ::SDL_QUIT events as well. There is no way
|
|
||||||
* to determine the cause of an ::SDL_QUIT event, but setting a signal
|
|
||||||
* handler in your application will override the default generation of
|
|
||||||
* quit events for that signal.
|
|
||||||
*
|
|
||||||
* \sa SDL_Quit()
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* There are no functions directly affecting the quit event */
|
/* There are no functions directly affecting the quit event */
|
||||||
|
|
||||||
#define SDL_QuitRequested() \
|
#define SDL_QuitRequested() \
|
||||||
|
|||||||
Loaded 100 of 731 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user