Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·5981384c61971183076d33bbfc225dfe·1393944·doc·optional·allegro5-doc_5.2.10.1+dfsg-1_all.deb |
2 | ·0d0f0e36c802263571c8a4a4d37986e6·19388·libdevel·optional·liballegro-acodec5-dev_5.2.10.1+dfsg-1_amd64.deb | 2 | ·0d0f0e36c802263571c8a4a4d37986e6·19388·libdevel·optional·liballegro-acodec5-dev_5.2.10.1+dfsg-1_amd64.deb |
3 | ·ac890799c72bac11e19927eb7db8358d·62612·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 3 | ·ac890799c72bac11e19927eb7db8358d·62612·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
4 | ·18062cc015e32f13d4f5d0152c2cc95a·38428·libs·optional·liballegro-acodec5.2t64_5.2.10.1+dfsg-1_amd64.deb | 4 | ·18062cc015e32f13d4f5d0152c2cc95a·38428·libs·optional·liballegro-acodec5.2t64_5.2.10.1+dfsg-1_amd64.deb |
5 | ·88c48ff68fbc70f244e6289381910e53·22164·libdevel·optional·liballegro-audio5-dev_5.2.10.1+dfsg-1_amd64.deb | 5 | ·88c48ff68fbc70f244e6289381910e53·22164·libdevel·optional·liballegro-audio5-dev_5.2.10.1+dfsg-1_amd64.deb |
6 | ·ed8c9f8c56fbeb54d73b7a96c7bd0e56·110708·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 6 | ·ed8c9f8c56fbeb54d73b7a96c7bd0e56·110708·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
7 | ·253671a7a4fafdc85a7f33101818868f·62120·libs·optional·liballegro-audio5.2t64_5.2.10.1+dfsg-1_amd64.deb | 7 | ·253671a7a4fafdc85a7f33101818868f·62120·libs·optional·liballegro-audio5.2t64_5.2.10.1+dfsg-1_amd64.deb |
8 | ·1392e795640f5aea611fc0be61a01f49·20432·libdevel·optional·liballegro-dialog5-dev_5.2.10.1+dfsg-1_amd64.deb | 8 | ·1392e795640f5aea611fc0be61a01f49·20432·libdevel·optional·liballegro-dialog5-dev_5.2.10.1+dfsg-1_amd64.deb |
Offset 17, 10 lines modified | Offset 17, 10 lines modified | ||
17 | ·b6a19a9cd2fb23255bcf22da0eedf648·23616·libs·optional·liballegro-physfs5.2t64_5.2.10.1+dfsg-1_amd64.deb | 17 | ·b6a19a9cd2fb23255bcf22da0eedf648·23616·libs·optional·liballegro-physfs5.2t64_5.2.10.1+dfsg-1_amd64.deb |
18 | ·da9f68d4e67494231657f1fe069ad829·19488·libdevel·optional·liballegro-ttf5-dev_5.2.10.1+dfsg-1_amd64.deb | 18 | ·da9f68d4e67494231657f1fe069ad829·19488·libdevel·optional·liballegro-ttf5-dev_5.2.10.1+dfsg-1_amd64.deb |
19 | ·ce8076d786ecc5c8204fdd2f8c0011ff·32400·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 19 | ·ce8076d786ecc5c8204fdd2f8c0011ff·32400·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
20 | ·6ff25a2d5d0d69ad0beb1a4bdfba67c6·29072·libs·optional·liballegro-ttf5.2t64_5.2.10.1+dfsg-1_amd64.deb | 20 | ·6ff25a2d5d0d69ad0beb1a4bdfba67c6·29072·libs·optional·liballegro-ttf5.2t64_5.2.10.1+dfsg-1_amd64.deb |
21 | ·69c5613595a2d5ef9e3f8db6ae2395b6·19768·libdevel·optional·liballegro-video5-dev_5.2.10.1+dfsg-1_amd64.deb | 21 | ·69c5613595a2d5ef9e3f8db6ae2395b6·19768·libdevel·optional·liballegro-video5-dev_5.2.10.1+dfsg-1_amd64.deb |
22 | ·129ab9eb6f2d25c4762196da1c702c5f·40228·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 22 | ·129ab9eb6f2d25c4762196da1c702c5f·40228·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
23 | ·881b85b60144a92f86782fb27cad0e35·32980·libs·optional·liballegro-video5.2t64_5.2.10.1+dfsg-1_amd64.deb | 23 | ·881b85b60144a92f86782fb27cad0e35·32980·libs·optional·liballegro-video5.2t64_5.2.10.1+dfsg-1_amd64.deb |
24 | · | 24 | ·e212fc256386bc84f62b6221beb7ce6f·117028·libdevel·optional·liballegro5-dev_5.2.10.1+dfsg-1_amd64.deb |
25 | ·711b376d804e675c6b243fcb3bec054a·1318472·debug·optional·liballegro5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 25 | ·711b376d804e675c6b243fcb3bec054a·1318472·debug·optional·liballegro5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
26 | ·99fdcd50d008ba20b826dd5acf9349ec·439044·libs·optional·liballegro5.2t64_5.2.10.1+dfsg-1_amd64.deb | 26 | ·99fdcd50d008ba20b826dd5acf9349ec·439044·libs·optional·liballegro5.2t64_5.2.10.1+dfsg-1_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary |
2 | -rw-r--r--···0········0········0····316 | 2 | -rw-r--r--···0········0········0····31648·2025-01-09·13:52:42.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··136 | 3 | -rw-r--r--···0········0········0··1362104·2025-01-09·13:52:42.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·allegro5-doc | 1 | Package:·allegro5-doc |
2 | Source:·allegro5 | 2 | Source:·allegro5 |
3 | Version:·2:5.2.10.1+dfsg-1 | 3 | Version:·2:5.2.10.1+dfsg-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> | 5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> |
6 | Installed-Size:·55 | 6 | Installed-Size:·5500 |
7 | Depends:·fonts-dejavu-core | 7 | Depends:·fonts-dejavu-core |
8 | Section:·doc | 8 | Section:·doc |
9 | Priority:·optional | 9 | Priority:·optional |
10 | Multi-Arch:·foreign | 10 | Multi-Arch:·foreign |
11 | Homepage:·https://liballeg.org/ | 11 | Homepage:·https://liballeg.org/ |
12 | Description:·documentation·for·the·Allegro·5·library | 12 | Description:·documentation·for·the·Allegro·5·library |
13 | ·This·package·contains·the·Allegro·documentation·in·various·formats, | 13 | ·This·package·contains·the·Allegro·documentation·in·various·formats, |
Offset 202, 60 lines modified | Offset 202, 60 lines modified | ||
202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/ | 204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/ |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····11397·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/acodec.html | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····11397·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)···206673·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/audio.html | 206 | -rw-r--r--···0·root·········(0)·root·········(0)···206673·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····62104·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/color.html | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····62104·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····371 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····37137·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/config.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17577·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17577·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····87216·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····797 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····79787·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····613 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····61321·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/file.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····56 | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····56466·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)····87416·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/font.html | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····87416·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····42130·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fshook.html | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····42130·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····13213·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····13213·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····17055·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····17055·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···215493·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····68519·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····12034·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/image.html | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····12034·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/image.html |
222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/ | 222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/ |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····29831·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····21928·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/main.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/main.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····10382·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memfile.html | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10382·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····23336·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memory.html | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····23336·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····10027·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/misc.html | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····10027·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····14 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····14086·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····40213·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)····74835·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····74835·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····26550·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····33068·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/path.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····11716·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/physfs.html | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····11716·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····31348·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····31348·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)···136387·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/primitives.html | 244 | -rw-r--r--···0·root·········(0)·root·········(0)···136387·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····40657·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····14393·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····7 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····70428·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/system.html |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····31258·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····11589·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/time.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····23605·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····20618·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····76968·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)····9 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)····91582·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)····29995·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/video.html | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····29995·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/video.html |
256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc-base/ | 256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc-base/ |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2025-01-01·19:45:12.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2025-01-01·19:45:12.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/ |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/man3/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/man3/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
Offset 315, 15 lines modified | Offset 315, 15 lines modified | ||
315 | <p>Examples:</p> | 315 | <p>Examples:</p> |
316 | <ul> | 316 | <ul> |
317 | <li><a | 317 | <li><a |
318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li> | 318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li> |
319 | <li><a | 319 | <li><a |
320 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li> | 320 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li> |
321 | <li><a | 321 | <li><a |
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L354">ex_ttf.c</a></li> |
323 | </ul> | 323 | </ul> |
324 | <h1·id="al_load_config_file">al_load_config_file</h1> | 324 | <h1·id="al_load_config_file">al_load_config_file</h1> |
325 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | 325 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> |
326 | <p><a | 326 | <p><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source | 327 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source |
328 | Code</a></p> | 328 | Code</a></p> |
329 | <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The | 329 | <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The |
Offset 335, 15 lines modified | Offset 335, 15 lines modified | ||
335 | <p>Examples:</p> | 335 | <p>Examples:</p> |
336 | <ul> | 336 | <ul> |
337 | <li><a | 337 | <li><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li> | 338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li> |
339 | <li><a | 339 | <li><a |
340 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li> | 340 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li> |
341 | <li><a | 341 | <li><a |
342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L309">ex_ttf.c</a></li> |
343 | </ul> | 343 | </ul> |
344 | <h1·id="al_load_config_file_f">al_load_config_file_f</h1> | 344 | <h1·id="al_load_config_file_f">al_load_config_file_f</h1> |
345 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div> | 345 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div> |
346 | <p><a | 346 | <p><a |
347 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source | 347 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source |
348 | Code</a></p> | 348 | Code</a></p> |
349 | <p>Read·a·configuration·file·from·an·already·open·file.</p> | 349 | <p>Read·a·configuration·file·from·an·already·open·file.</p> |
Offset 431, 15 lines modified | Offset 431, 15 lines modified | ||
431 | <p>Examples:</p> | 431 | <p>Examples:</p> |
432 | <ul> | 432 | <ul> |
433 | <li><a | 433 | <li><a |
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li> | 434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li> |
435 | <li><a | 435 | <li><a |
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li> | 436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li> |
437 | <li><a | 437 | <li><a |
438 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 438 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L41">ex_ttf.c</a></li> |
439 | </ul> | 439 | </ul> |
440 | <h1·id="al_set_config_value">al_set_config_value</h1> | 440 | <h1·id="al_set_config_value">al_set_config_value</h1> |
441 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span> | 441 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span> |
442 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div> | 442 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div> |
443 | <p><a | 443 | <p><a |
444 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source | 444 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source |
445 | Code</a></p> | 445 | Code</a></p> |
Offset 454, 17 lines modified | Offset 454, 17 lines modified | ||
454 | <p>See·also:·<a | 454 | <p>See·also:·<a |
455 | href="config.html#al_get_config_value">al_get_config_value</a></p> | 455 | href="config.html#al_get_config_value">al_get_config_value</a></p> |
456 | <p>Examples:</p> | 456 | <p>Examples:</p> |
457 | <ul> | 457 | <ul> |
458 | <li><a | 458 | <li><a |
459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L54">ex_config.c</a></li> | 459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L54">ex_config.c</a></li> |
460 | <li><a | 460 | <li><a |
461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize2.c#L35">ex_resize2.c</a></li> | ||
462 | <li><a | ||
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L22">ex_vsync.c</a></li> | 461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L22">ex_vsync.c</a></li> |
462 | <li><a | ||
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L493">ex_camera.c</a></li> | ||
464 | </ul> | 464 | </ul> |
465 | <h1·id="al_remove_config_key">al_remove_config_key</h1> | 465 | <h1·id="al_remove_config_key">al_remove_config_key</h1> |
466 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_remove_config_key<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>section<span·class="op">,</span></span> | 466 | <div·class="sourceCode"·id="cb18"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb18-1"><a·href="#cb18-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_remove_config_key<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>section<span·class="op">,</span></span> |
467 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>key<span·class="op">)</span></span></code></pre></div> | 467 | <span·id="cb18-2"><a·href="#cb18-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>key<span·class="op">)</span></span></code></pre></div> |
468 | <p><a | 468 | <p><a |
469 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L700">Source | 469 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L700">Source |
470 | Code</a></p> | 470 | Code</a></p> |
Offset 133, 25 lines modified | Offset 133, 25 lines modified | ||
133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
134 | Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed | 134 | Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed |
135 | NULL. | 135 | NULL. |
136 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 136 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
137 | Examples: | 137 | Examples: |
138 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 138 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
139 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | 139 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c |
140 | ····*·_\x8e_\x8x_\x8__\x8 | 140 | ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c |
141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
142 | ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename) | 142 | ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename) |
143 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 143 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
144 | Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration | 144 | Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration |
145 | structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g. | 145 | structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g. |
146 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 146 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
147 | Examples: | 147 | Examples: |
148 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 148 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
149 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | 149 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c |
150 | ····*·_\x8e_\x8x_\x8__\x8 | 150 | ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c |
151 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* | 151 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* |
152 | ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file) | 152 | ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file) |
153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
154 | Read·a·configuration·file·from·an·already·open·file. | 154 | Read·a·configuration·file·from·an·already·open·file. |
155 | Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with | 155 | Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with |
156 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards. | 156 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards. |
157 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 157 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
Offset 202, 31 lines modified | Offset 202, 31 lines modified | ||
202 | long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you | 202 | long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you |
203 | need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL | 203 | need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL |
204 | if·the·section·or·key·do·not·exist. | 204 | if·the·section·or·key·do·not·exist. |
205 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e | 205 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e |
206 | Examples: | 206 | Examples: |
207 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 207 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
208 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | 208 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c |
209 | ····*·_\x8e_\x8x_\x8__\x8 | 209 | ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c |
210 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 210 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
211 | void·al_set_config_value(ALLEGRO_CONFIG·*config, | 211 | void·al_set_config_value(ALLEGRO_CONFIG·*config, |
212 | ···const·char·*section,·const·char·*key,·const·char·*value) | 212 | ···const·char·*section,·const·char·*key,·const·char·*value) |
213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
214 | Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist, | 214 | Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist, |
215 | it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be | 215 | it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be |
216 | overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section. | 216 | overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section. |
217 | For·consistency·with·the·on-disk·format·of·config·files,·any·leading·and | 217 | For·consistency·with·the·on-disk·format·of·config·files,·any·leading·and |
218 | trailing·whitespace·will·be·stripped·from·the·value.·If·you·have·significant | 218 | trailing·whitespace·will·be·stripped·from·the·value.·If·you·have·significant |
219 | whitespace·you·wish·to·preserve,·you·should·add·your·own·quote·characters·and | 219 | whitespace·you·wish·to·preserve,·you·should·add·your·own·quote·characters·and |
220 | remove·them·when·reading·the·values·back·in. | 220 | remove·them·when·reading·the·values·back·in. |
221 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e | 221 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e |
222 | Examples: | 222 | Examples: |
223 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 223 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
224 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c | ||
225 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 224 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
225 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
226 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_k\x8ke\x8ey\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 226 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_k\x8ke\x8ey\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
227 | bool·al_remove_config_key(ALLEGRO_CONFIG·*config,·char·const·*section, | 227 | bool·al_remove_config_key(ALLEGRO_CONFIG·*config,·char·const·*section, |
228 | ···char·const·*key) | 228 | ···char·const·*key) |
229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
230 | Remove·a·key·and·its·associated·value·in·a·section·of·a·configuration. | 230 | Remove·a·key·and·its·associated·value·in·a·section·of·a·configuration. |
231 | Returns·true·if·the·entry·was·removed,·or·false·if·the·entry·did·not·exist. | 231 | Returns·true·if·the·entry·was·removed,·or·false·if·the·entry·did·not·exist. |
232 | Since:·5.1.5 | 232 | Since:·5.1.5 |
Offset 377, 17 lines modified | Offset 377, 17 lines modified | ||
377 | <a | 377 | <a |
378 | href="display.html#al_set_window_position">al_set_window_position</a></p> | 378 | href="display.html#al_set_window_position">al_set_window_position</a></p> |
379 | <p>Examples:</p> | 379 | <p>Examples:</p> |
380 | <ul> | 380 | <ul> |
381 | <li><a | 381 | <li><a |
382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L177">ex_audio_props.cpp</a></li> | 382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L177">ex_audio_props.cpp</a></li> |
383 | <li><a | 383 | <li><a |
384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li> | ||
385 | <li><a | ||
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li> | 384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li> |
385 | <li><a | ||
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li> | ||
387 | </ul> | 387 | </ul> |
388 | <h2·id="al_destroy_display">al_destroy_display</h2> | 388 | <h2·id="al_destroy_display">al_destroy_display</h2> |
389 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 389 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
390 | <p><a | 390 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source | 391 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source |
392 | Code</a></p> | 392 | Code</a></p> |
393 | <p>Destroy·a·display.</p> | 393 | <p>Destroy·a·display.</p> |
Offset 402, 15 lines modified | Offset 402, 15 lines modified | ||
402 | <p>Examples:</p> | 402 | <p>Examples:</p> |
403 | <ul> | 403 | <ul> |
404 | <li><a | 404 | <li><a |
405 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L115">ex_d3d.cpp</a></li> | 405 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L115">ex_d3d.cpp</a></li> |
406 | <li><a | 406 | <li><a |
407 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L51">ex_mouse_focus.c</a></li> | 407 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L51">ex_mouse_focus.c</a></li> |
408 | <li><a | 408 | <li><a |
409 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_o | 409 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L249">ex_audio_simple.c</a></li> |
410 | </ul> | 410 | </ul> |
411 | <h2·id="al_get_new_display_flags">al_get_new_display_flags</h2> | 411 | <h2·id="al_get_new_display_flags">al_get_new_display_flags</h2> |
412 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_flags<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 412 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_flags<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
413 | <p><a | 413 | <p><a |
414 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L253">Source | 414 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L253">Source |
415 | Code</a></p> | 415 | Code</a></p> |
416 | <p>Get·the·display·flags·to·be·used·when·creating·new·displays·on·the | 416 | <p>Get·the·display·flags·to·be·used·when·creating·new·displays·on·the |
Offset 564, 23 lines modified | Offset 564, 14 lines modified | ||
564 | </dl> | 564 | </dl> |
565 | <p>0·can·be·used·for·default·values.</p> | 565 | <p>0·can·be·used·for·default·values.</p> |
566 | <p>See·also:·<a | 566 | <p>See·also:·<a |
567 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>, | 567 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>, |
568 | <a·href="display.html#al_get_display_option">al_get_display_option</a>, | 568 | <a·href="display.html#al_get_display_option">al_get_display_option</a>, |
569 | <a | 569 | <a |
570 | href="display.html#al_set_display_option">al_set_display_option</a></p> | 570 | href="display.html#al_set_display_option">al_set_display_option</a></p> |
571 | <p>Examples:</p> | ||
572 | <ul> | ||
573 | <li><a | ||
574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L176">ex_audio_props.cpp</a></li> | ||
575 | <li><a | ||
576 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> | ||
577 | <li><a | ||
578 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L201">ex_color.cpp</a></li> | ||
579 | </ul> | ||
580 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> | 571 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> |
581 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div> | 572 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div> |
582 | <p><a | 573 | <p><a |
583 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source | 574 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source |
584 | Code</a></p> | 575 | Code</a></p> |
585 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a | 576 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a |
586 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>.</p> | 577 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>.</p> |
Offset 782, 17 lines modified | Offset 773, 17 lines modified | ||
782 | <a | 773 | <a |
783 | href="display.html#al_get_display_option">al_get_display_option</a></p> | 774 | href="display.html#al_get_display_option">al_get_display_option</a></p> |
784 | <p>Examples:</p> | 775 | <p>Examples:</p> |
785 | <ul> | 776 | <ul> |
786 | <li><a | 777 | <li><a |
787 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li> | 778 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li> |
788 | <li><a | 779 | <li><a |
789 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_g | 780 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L231">ex_color_gradient.c</a></li> |
790 | <li><a | 781 | <li><a |
791 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 782 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L216">ex_glext.c</a></li> |
792 | </ul> | 783 | </ul> |
793 | <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2> | 784 | <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2> |
794 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 785 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
795 | <p><a | 786 | <p><a |
796 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source | 787 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source |
797 | Code</a></p> | 788 | Code</a></p> |
798 | <p>This·undoes·any·previous·call·to·<a | 789 | <p>This·undoes·any·previous·call·to·<a |
Offset 815, 19 lines modified | Offset 806, 14 lines modified | ||
815 | <p>Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created | 806 | <p>Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created |
816 | windows·(non-fullscreen)·will·be·on·screen,·for·displays·created·by·the | 807 | windows·(non-fullscreen)·will·be·on·screen,·for·displays·created·by·the |
817 | calling·thread.·Negative·values·are·allowed·on·some·multihead | 808 | calling·thread.·Negative·values·are·allowed·on·some·multihead |
818 | systems.</p> | 809 | systems.</p> |
819 | <p>To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX).</p> | 810 | <p>To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX).</p> |
820 | <p>See·also:·<a | 811 | <p>See·also:·<a |
821 | href="display.html#al_get_new_window_position">al_get_new_window_position</a></p> | 812 | href="display.html#al_get_new_window_position">al_get_new_window_position</a></p> |
822 | <p>Examples:</p> | ||
823 | <ul> | ||
824 | <li><a | ||
825 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L61">ex_windows.c</a></li> | ||
826 | </ul> | ||
827 | <h2 | 813 | <h2 |
828 | id="al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</h2> | 814 | id="al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</h2> |
829 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_refresh_rate<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 815 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_refresh_rate<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
830 | <p><a | 816 | <p><a |
831 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L279">Source | 817 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L279">Source |
832 | Code</a></p> | 818 | Code</a></p> |
833 | <p>Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays | 819 | <p>Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays |
Offset 846, 19 lines modified | Offset 832, 14 lines modified | ||
846 | list·of·modes·with·refresh·rates·can·be·found·with·<a | 832 | list·of·modes·with·refresh·rates·can·be·found·with·<a |
847 | href="fullscreen_mode.html#al_get_num_display_modes">al_get_num_display_modes</a> | 833 | href="fullscreen_mode.html#al_get_num_display_modes">al_get_num_display_modes</a> |
848 | and·<a | 834 | and·<a |
849 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a>.</p> | 835 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a>.</p> |
850 | <p>The·default·setting·is·zero·(don’t·care).</p> | 836 | <p>The·default·setting·is·zero·(don’t·care).</p> |
851 | <p>See·also:·<a | 837 | <p>See·also:·<a |
852 | href="display.html#al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</a></p> | 838 | href="display.html#al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</a></p> |
853 | <p>Examples:</p> | ||
854 | <ul> | ||
855 | <li><a | ||
856 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L133">ex_vsync.c</a></li> | ||
857 | </ul> | ||
858 | <h2·id="al_get_new_display_adapter">al_get_new_display_adapter</h2> | 839 | <h2·id="al_get_new_display_adapter">al_get_new_display_adapter</h2> |
859 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_adapter<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 840 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_adapter<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
860 | <p><a | 841 | <p><a |
861 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L309">Source | 842 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L309">Source |
862 | Code</a></p> | 843 | Code</a></p> |
863 | <p>Gets·the·video·adapter·index·where·new·displays·will·be·created·by | 844 | <p>Gets·the·video·adapter·index·where·new·displays·will·be·created·by |
864 | the·calling·thread,·if·previously·set·with·<a | 845 | the·calling·thread,·if·previously·set·with·<a |
Offset 878, 40 lines modified | Offset 859, 31 lines modified | ||
878 | and·<a | 859 | and·<a |
879 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a>.</p> | 860 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a>.</p> |
880 | <p>To·return·to·the·default·behaviour,·pass | 861 | <p>To·return·to·the·default·behaviour,·pass |
881 | <code>ALLEGRO_DEFAULT_DISPLAY_ADAPTER</code>.</p> | 862 | <code>ALLEGRO_DEFAULT_DISPLAY_ADAPTER</code>.</p> |
882 | <p>See·also:·<a | 863 | <p>See·also:·<a |
883 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a>, | 864 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a>, |
884 | <a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 865 | <a·href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
885 | <p>Examples:</p> | ||
886 | <ul> | ||
Max diff block lines reached; 25783/33706 bytes (76.49%) of diff not shown. |
Offset 144, 31 lines modified | Offset 144, 31 lines modified | ||
144 | context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about | 144 | context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about |
145 | rendering·contexts. | 145 | rendering·contexts. |
146 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, | 146 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, |
147 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r, | 147 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r, |
148 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n | 148 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n |
149 | Examples: | 149 | Examples: |
150 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | 150 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p |
151 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
152 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 151 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
152 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
153 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* | 153 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* |
154 | void·al_destroy_display(ALLEGRO_DISPLAY·*display) | 154 | void·al_destroy_display(ALLEGRO_DISPLAY·*display) |
155 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 155 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
156 | Destroy·a·display. | 156 | Destroy·a·display. |
157 | If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it | 157 | If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it |
158 | implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is | 158 | implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is |
159 | destroyed. | 159 | destroyed. |
160 | That·special·case·notwithstanding,·you·should·make·sure·no·threads·are | 160 | That·special·case·notwithstanding,·you·should·make·sure·no·threads·are |
161 | currently·targeting·a·bitmap·which·is·tied·to·the·display·before·you·destroy | 161 | currently·targeting·a·bitmap·which·is·tied·to·the·display·before·you·destroy |
162 | it. | 162 | it. |
163 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 163 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
164 | Examples: | 164 | Examples: |
165 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 165 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
166 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 166 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
167 | ····*·_\x8e_\x8x_\x8__\x8o_. | 167 | ····*·_\x8e_\x8x_\x8__\x8a_.u_.d_.i_.o_.__.s_.i_.m_.p_.l_.e_\x8._\x8c |
168 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* | 168 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* |
169 | int·al_get_new_display_flags(void) | 169 | int·al_get_new_display_flags(void) |
170 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 170 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
171 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the·calling | 171 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the·calling |
172 | thread. | 172 | thread. |
173 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g | 173 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g |
174 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* | 174 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* |
Offset 263, 18 lines modified | Offset 263, 14 lines modified | ||
263 | ······the·display. | 263 | ······the·display. |
264 | ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently | 264 | ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently |
265 | ···········only·works·for·the·X11·backend. | 265 | ···········only·works·for·the·X11·backend. |
266 | ······Since:·5.2.9 | 266 | ······Since:·5.2.9 |
267 | 0·can·be·used·for·default·values. | 267 | 0·can·be·used·for·default·values. |
268 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, | 268 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, |
269 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n | 269 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n |
270 | Examples: | ||
271 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
272 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
273 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
274 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 270 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
275 | int·al_get_new_display_option(int·option,·int·*importance) | 271 | int·al_get_new_display_option(int·option,·int·*importance) |
276 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 272 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
277 | Retrieve·an·extra·display·setting·which·was·previously·set·with | 273 | Retrieve·an·extra·display·setting·which·was·previously·set·with |
278 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n. | 274 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n. |
279 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 275 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
280 | void·al_set_new_display_option(int·option,·int·value,·int·importance) | 276 | void·al_set_new_display_option(int·option,·int·value,·int·importance) |
Offset 391, 16 lines modified | Offset 387, 16 lines modified | ||
391 | ··ALLEGRO_DEFAULT_SHADER_PLATFORM | 387 | ··ALLEGRO_DEFAULT_SHADER_PLATFORM |
392 | ······Specify·the·shader·platform·to·use·for·the·default·shader.·See | 388 | ······Specify·the·shader·platform·to·use·for·the·default·shader.·See |
393 | ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO. | 389 | ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO. |
394 | ······Since:·5.2.8 | 390 | ······Since:·5.2.8 |
395 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n | 391 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n |
396 | Examples: | 392 | Examples: |
397 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 393 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
394 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
398 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c | 395 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c |
399 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8._\x8c | ||
400 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* | 396 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* |
401 | void·al_reset_new_display_options(void) | 397 | void·al_reset_new_display_options(void) |
402 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 398 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
403 | This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling | 399 | This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling |
404 | thread. | 400 | thread. |
405 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 401 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
406 | void·al_get_new_window_position(int·*x,·int·*y) | 402 | void·al_get_new_window_position(int·*x,·int·*y) |
Offset 412, 16 lines modified | Offset 408, 14 lines modified | ||
412 | void·al_set_new_window_position(int·x,·int·y) | 408 | void·al_set_new_window_position(int·x,·int·y) |
413 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
414 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created·windows·(non- | 410 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created·windows·(non- |
415 | fullscreen)·will·be·on·screen,·for·displays·created·by·the·calling·thread. | 411 | fullscreen)·will·be·on·screen,·for·displays·created·by·the·calling·thread. |
416 | Negative·values·are·allowed·on·some·multihead·systems. | 412 | Negative·values·are·allowed·on·some·multihead·systems. |
417 | To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX). | 413 | To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX). |
418 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n | 414 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n |
419 | Examples: | ||
420 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
421 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* | 415 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* |
422 | int·al_get_new_display_refresh_rate(void) | 416 | int·al_get_new_display_refresh_rate(void) |
423 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 417 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
424 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on·the | 418 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on·the |
425 | calling·thread. | 419 | calling·thread. |
426 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 420 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
427 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* | 421 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* |
Offset 429, 16 lines modified | Offset 423, 14 lines modified | ||
429 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 423 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
430 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling·thread. | 424 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling·thread. |
431 | If·the·refresh·rate·is·not·available,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·fail.·A·list·of | 425 | If·the·refresh·rate·is·not·available,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·fail.·A·list·of |
432 | modes·with·refresh·rates·can·be·found·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and | 426 | modes·with·refresh·rates·can·be·found·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and |
433 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e. | 427 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e. |
434 | The·default·setting·is·zero·(don’t·care). | 428 | The·default·setting·is·zero·(don’t·care). |
435 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 429 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
436 | Examples: | ||
437 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | ||
438 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 430 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
439 | int·al_get_new_display_adapter(void) | 431 | int·al_get_new_display_adapter(void) |
440 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 432 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
441 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling | 433 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling |
442 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns | 434 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns |
443 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. | 435 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. |
444 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r | 436 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r |
Offset 446, 28 lines modified | Offset 438, 24 lines modified | ||
446 | void·al_set_new_display_adapter(int·adapter) | 438 | void·al_set_new_display_adapter(int·adapter) |
447 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 439 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
448 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The | 440 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The |
449 | adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be | 441 | adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be |
450 | gotten·using·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o. | 442 | gotten·using·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o. |
451 | To·return·to·the·default·behaviour,·pass·ALLEGRO_DEFAULT_DISPLAY_ADAPTER. | 443 | To·return·to·the·default·behaviour,·pass·ALLEGRO_DEFAULT_DISPLAY_ADAPTER. |
452 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 444 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
453 | Examples: | ||
454 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
455 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
456 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c | ||
457 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·o\x8op\x8pe\x8er\x8ra\x8at\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 445 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·o\x8op\x8pe\x8er\x8ra\x8at\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
458 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 446 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
459 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) | 447 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) |
460 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 448 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
461 | Retrieve·the·associated·event·source.·See·the·_\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n_\x8·_\x8o_\x8n_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·for·a | 449 | Retrieve·the·associated·event·source.·See·the·_\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n_\x8·_\x8o_\x8n_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·for·a |
462 | list·of·the·events·displays·will·generate. | 450 | list·of·the·events·displays·will·generate. |
463 | Examples: | 451 | Examples: |
452 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
464 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 453 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
454 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
465 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
466 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
Max diff block lines reached; 16925/25218 bytes (67.11%) of diff not shown. |
Offset 1136, 19 lines modified | Offset 1136, 19 lines modified | ||
1136 | <p>See·also:·<a | 1136 | <p>See·also:·<a |
1137 | href="events.html#al_register_event_source">al_register_event_source</a>, | 1137 | href="events.html#al_register_event_source">al_register_event_source</a>, |
1138 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, | 1138 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, |
1139 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 1139 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
1140 | <p>Examples:</p> | 1140 | <p>Examples:</p> |
1141 | <ul> | 1141 | <ul> |
1142 | <li><a | 1142 | <li><a |
1143 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> | ||
1144 | <li><a | ||
1143 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L23">ex_saw.c</a></li> | 1145 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L23">ex_saw.c</a></li> |
1144 | <li><a | 1146 | <li><a |
1145 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L83">ex_stream_file.c</a></li> | 1147 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L83">ex_stream_file.c</a></li> |
1146 | <li><a | ||
1147 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
1148 | </ul> | 1148 | </ul> |
1149 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> | 1149 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> |
1150 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div> | 1150 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div> |
1151 | <p><a | 1151 | <p><a |
1152 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source | 1152 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source |
1153 | Code</a></p> | 1153 | Code</a></p> |
1154 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently | 1154 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently |
Offset 1162, 15 lines modified | Offset 1162, 15 lines modified | ||
1162 | <p>Examples:</p> | 1162 | <p>Examples:</p> |
1163 | <ul> | 1163 | <ul> |
1164 | <li><a | 1164 | <li><a |
1165 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L79">ex_saw.c</a></li> | 1165 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L79">ex_saw.c</a></li> |
1166 | <li><a | 1166 | <li><a |
1167 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L123">ex_stream_file.c</a></li> | 1167 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L123">ex_stream_file.c</a></li> |
1168 | <li><a | 1168 | <li><a |
1169 | href="https://github.com/liballeg/allegro5/blob/master/examples/ | 1169 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L68">ex_timer_pause.c</a></li> |
1170 | </ul> | 1170 | </ul> |
1171 | <h1·id="al_register_event_source">al_register_event_source</h1> | 1171 | <h1·id="al_register_event_source">al_register_event_source</h1> |
1172 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_register_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> | 1172 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_register_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> |
1173 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> | 1173 | <span·id="cb14-2"><a·href="#cb14-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> |
1174 | <p><a | 1174 | <p><a |
1175 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source | 1175 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source |
1176 | Code</a></p> | 1176 | Code</a></p> |
Offset 1180, 19 lines modified | Offset 1180, 19 lines modified | ||
1180 | more·than·once·does·nothing.</p> | 1180 | more·than·once·does·nothing.</p> |
1181 | <p>See·also:·<a | 1181 | <p>See·also:·<a |
1182 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, | 1182 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, |
1183 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> | 1183 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> |
1184 | <p>Examples:</p> | 1184 | <p>Examples:</p> |
1185 | <ul> | 1185 | <ul> |
1186 | <li><a | 1186 | <li><a |
1187 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | ||
1188 | <li><a | ||
1187 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L24">ex_saw.c</a></li> | 1189 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L24">ex_saw.c</a></li> |
1188 | <li><a | 1190 | <li><a |
1189 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L102">ex_stream_file.c</a></li> | 1191 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L102">ex_stream_file.c</a></li> |
1190 | <li><a | ||
1191 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L67">common.c</a></li> | ||
1192 | </ul> | 1192 | </ul> |
1193 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> | 1193 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> |
1194 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unregister_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> | 1194 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unregister_event_source<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> |
1195 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> | 1195 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> |
1196 | <p><a | 1196 | <p><a |
1197 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source | 1197 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source |
1198 | Code</a></p> | 1198 | Code</a></p> |
Offset 1250, 19 lines modified | Offset 1250, 19 lines modified | ||
1250 | <p>Return·true·if·the·event·queue·specified·is·currently·empty.</p> | 1250 | <p>Return·true·if·the·event·queue·specified·is·currently·empty.</p> |
1251 | <p>See·also:·<a | 1251 | <p>See·also:·<a |
1252 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a | 1252 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a |
1253 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> | 1253 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> |
1254 | <p>Examples:</p> | 1254 | <p>Examples:</p> |
1255 | <ul> | 1255 | <ul> |
1256 | <li><a | 1256 | <li><a |
1257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L159">ex_audio_timer.c</a></li> |
1258 | <li><a | 1258 | <li><a |
1259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1259 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L218">ex_enet_client.c</a></li> |
1260 | <li><a | 1260 | <li><a |
1261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L49">ex_inject_events.c</a></li> |
1262 | </ul> | 1262 | </ul> |
1263 | <h1·id="al_get_next_event">al_get_next_event</h1> | 1263 | <h1·id="al_get_next_event">al_get_next_event</h1> |
1264 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> | 1264 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> |
1265 | <p><a | 1265 | <p><a |
1266 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source | 1266 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source |
1267 | Code</a></p> | 1267 | Code</a></p> |
1268 | <p>Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the | 1268 | <p>Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the |
Offset 1273, 17 lines modified | Offset 1273, 17 lines modified | ||
1273 | href="events.html#al_peek_next_event">al_peek_next_event</a>,·<a | 1273 | href="events.html#al_peek_next_event">al_peek_next_event</a>,·<a |
1274 | href="events.html#al_wait_for_event">al_wait_for_event</a></p> | 1274 | href="events.html#al_wait_for_event">al_wait_for_event</a></p> |
1275 | <p>Examples:</p> | 1275 | <p>Examples:</p> |
1276 | <ul> | 1276 | <ul> |
1277 | <li><a | 1277 | <li><a |
1278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L152">ex_opengl.c</a></li> | 1278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L152">ex_opengl.c</a></li> |
1279 | <li><a | 1279 | <li><a |
1280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L41">ex_dualies.c</a></li> | ||
1281 | <li><a | ||
1282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L44">ex_winfull.c</a></li> | 1280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L44">ex_winfull.c</a></li> |
1281 | <li><a | ||
1282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L41">ex_dualies.c</a></li> | ||
1283 | </ul> | 1283 | </ul> |
1284 | <h1·id="al_peek_next_event">al_peek_next_event</h1> | 1284 | <h1·id="al_peek_next_event">al_peek_next_event</h1> |
1285 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_peek_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> | 1285 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_peek_next_event<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span>·ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">)</span></span></code></pre></div> |
1286 | <p><a | 1286 | <p><a |
1287 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L324">Source | 1287 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L324">Source |
1288 | Code</a></p> | 1288 | Code</a></p> |
1289 | <p>Copy·the·contents·of·the·next·event·in·the·event·queue·specified·into | 1289 | <p>Copy·the·contents·of·the·next·event·in·the·event·queue·specified·into |
Offset 1332, 19 lines modified | Offset 1332, 19 lines modified | ||
1332 | href="events.html#al_wait_for_event_timed">al_wait_for_event_timed</a>, | 1332 | href="events.html#al_wait_for_event_timed">al_wait_for_event_timed</a>, |
1333 | <a | 1333 | <a |
1334 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a>, | 1334 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a>, |
1335 | <a·href="events.html#al_get_next_event">al_get_next_event</a></p> | 1335 | <a·href="events.html#al_get_next_event">al_get_next_event</a></p> |
1336 | <p>Examples:</p> | 1336 | <p>Examples:</p> |
1337 | <ul> | 1337 | <ul> |
1338 | <li><a | 1338 | <li><a |
1339 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L224">ex_enet_server.c</a></li> | ||
1340 | <li><a | ||
1339 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L36">ex_saw.c</a></li> | 1341 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L36">ex_saw.c</a></li> |
1340 | <li><a | 1342 | <li><a |
1341 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L117">ex_stream_file.c</a></li> | 1343 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L117">ex_stream_file.c</a></li> |
1342 | <li><a | ||
1343 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L69">common.c</a></li> | ||
1344 | </ul> | 1344 | </ul> |
1345 | <h1·id="al_wait_for_event_timed">al_wait_for_event_timed</h1> | 1345 | <h1·id="al_wait_for_event_timed">al_wait_for_event_timed</h1> |
1346 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb25-1"><a·href="#cb25-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_wait_for_event_timed<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> | 1346 | <div·class="sourceCode"·id="cb25"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb25-1"><a·href="#cb25-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_wait_for_event_timed<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">,</span></span> |
1347 | <span·id="cb25-2"><a·href="#cb25-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">,</span>·<span·class="dt">float</span>·secs<span·class="op">)</span></span></code></pre></div> | 1347 | <span·id="cb25-2"><a·href="#cb25-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_EVENT·<span·class="op">*</span>ret_event<span·class="op">,</span>·<span·class="dt">float</span>·secs<span·class="op">)</span></span></code></pre></div> |
1348 | <p><a | 1348 | <p><a |
1349 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L430">Source | 1349 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L430">Source |
1350 | Code</a></p> | 1350 | Code</a></p> |
Offset 578, 41 lines modified | Offset 578, 41 lines modified | ||
578 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 578 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
579 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 579 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
580 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 580 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
581 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 581 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
582 | object·if·successful.·Returns·NULL·on·error. | 582 | object·if·successful.·Returns·NULL·on·error. |
583 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E | 583 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E |
584 | Examples: | 584 | Examples: |
585 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
585 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 586 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
586 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 587 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
587 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
588 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 588 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
589 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) | 589 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) |
590 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 590 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
591 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with | 591 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with |
592 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. | 592 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. |
593 | This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9) | 593 | This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9) |
594 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E | 594 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E |
595 | Examples: | 595 | Examples: |
596 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 596 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
597 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 597 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
598 | ····*·_\x8 | 598 | ····*·_\x8e_.x_.__.t_.i_.m_.e_.r_.__.p_.a_.u_.s_.e_\x8._\x8c |
599 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 599 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
600 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 600 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
601 | ···ALLEGRO_EVENT_SOURCE·*source) | 601 | ···ALLEGRO_EVENT_SOURCE·*source) |
602 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 602 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
603 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may | 603 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may |
604 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying | 604 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying |
605 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does | 605 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does |
606 | nothing. | 606 | nothing. |
607 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E | 607 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E |
608 | Examples: | 608 | Examples: |
609 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
609 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 610 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
610 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 611 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
611 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
612 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nr\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 612 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nr\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
613 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 613 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
614 | ···ALLEGRO_EVENT_SOURCE·*source) | 614 | ···ALLEGRO_EVENT_SOURCE·*source) |
615 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 615 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
616 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not | 616 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not |
617 | actually·registered·with·the·event·queue,·nothing·happens. | 617 | actually·registered·with·the·event·queue,·nothing·happens. |
618 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they | 618 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they |
Offset 646, 29 lines modified | Offset 646, 29 lines modified | ||
646 | Since:·5.1.0 | 646 | Since:·5.1.0 |
647 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e_\x8_e\x8em\x8mp\x8pt\x8ty\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 647 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e_\x8_e\x8em\x8mp\x8pt\x8ty\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
648 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) | 648 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) |
649 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 649 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
650 | Return·true·if·the·event·queue·specified·is·currently·empty. | 650 | Return·true·if·the·event·queue·specified·is·currently·empty. |
651 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8e_\x8k_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 651 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8e_\x8k_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t |
652 | Examples: | 652 | Examples: |
653 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
654 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
653 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 655 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
654 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
655 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
656 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ex\x8xt\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 656 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ex\x8xt\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
657 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) | 657 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) |
658 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 658 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
659 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents | 659 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents |
660 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the | 660 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the |
661 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event | 661 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event |
662 | are·unspecified. | 662 | are·unspecified. |
663 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8e_\x8k_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 663 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8e_\x8k_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t |
664 | Examples: | 664 | Examples: |
665 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | 665 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c |
666 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
667 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c | 666 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c |
667 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
668 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pe\x8ee\x8ek\x8k_\x8_n\x8ne\x8ex\x8xt\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 668 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pe\x8ee\x8ek\x8k_\x8_n\x8ne\x8ex\x8xt\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
669 | bool·al_peek_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) | 669 | bool·al_peek_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) |
670 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 670 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
671 | Copy·the·contents·of·the·next·event·in·the·event·queue·specified·into·ret_event | 671 | Copy·the·contents·of·the·next·event·in·the·event·queue·specified·into·ret_event |
672 | and·return·true.·The·original·event·packet·will·remain·at·the·head·of·the | 672 | and·return·true.·The·original·event·packet·will·remain·at·the·head·of·the |
673 | queue.·If·the·event·queue·is·actually·empty,·this·function·returns·false·and | 673 | queue.·If·the·event·queue·is·actually·empty,·this·function·returns·false·and |
674 | the·contents·of·ret_event·are·unspecified. | 674 | the·contents·of·ret_event·are·unspecified. |
Offset 691, 17 lines modified | Offset 691, 17 lines modified | ||
691 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 691 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
692 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 692 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
693 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 693 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
694 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 694 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
695 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l, | 695 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l, |
696 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 696 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t |
697 | Examples: | 697 | Examples: |
698 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
698 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 699 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
699 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 700 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
700 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
701 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wa\x8ai\x8it\x8t_\x8_f\x8fo\x8or\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_t\x8ti\x8im\x8me\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 701 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wa\x8ai\x8it\x8t_\x8_f\x8fo\x8or\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_t\x8ti\x8im\x8me\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
702 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, | 702 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, |
703 | ···ALLEGRO_EVENT·*ret_event,·float·secs) | 703 | ···ALLEGRO_EVENT·*ret_event,·float·secs) |
704 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 704 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
705 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 705 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
706 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 706 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
707 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 707 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
Offset 318, 18 lines modified | Offset 318, 18 lines modified | ||
318 | <p>Returns·a·file·handle·on·success,·or·NULL·on·error.</p> | 318 | <p>Returns·a·file·handle·on·success,·or·NULL·on·error.</p> |
319 | <p>See·also:·<a | 319 | <p>See·also:·<a |
320 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>, | 320 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>, |
321 | <a·href="file.html#al_fclose">al_fclose</a>.</p> | 321 | <a·href="file.html#al_fclose">al_fclose</a>.</p> |
322 | <p>Examples:</p> | 322 | <p>Examples:</p> |
323 | <ul> | 323 | <ul> |
324 | <li><a | 324 | <li><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> | ||
326 | <li><a | ||
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L313">ex_synth.cpp</a></li> | 325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L313">ex_synth.cpp</a></li> |
328 | <li><a | 326 | <li><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> | ||
328 | <li><a | ||
329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> | 329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> |
330 | </ul> | 330 | </ul> |
331 | <h1·id="al_fopen_interface">al_fopen_interface</h1> | 331 | <h1·id="al_fopen_interface">al_fopen_interface</h1> |
332 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span> | 332 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span> |
333 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | 333 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> |
334 | <p><a | 334 | <p><a |
335 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source | 335 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source |
Offset 389, 18 lines modified | Offset 389, 18 lines modified | ||
389 | Code</a></p> | 389 | Code</a></p> |
390 | <p>Close·the·given·file,·writing·any·buffered·output·data·(if·any).</p> | 390 | <p>Close·the·given·file,·writing·any·buffered·output·data·(if·any).</p> |
391 | <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate | 391 | <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate |
392 | the·error.</p> | 392 | the·error.</p> |
393 | <p>Examples:</p> | 393 | <p>Examples:</p> |
394 | <ul> | 394 | <ul> |
395 | <li><a | 395 | <li><a |
396 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li> | ||
397 | <li><a | ||
398 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L506">ex_synth.cpp</a></li> | 396 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L506">ex_synth.cpp</a></li> |
399 | <li><a | 397 | <li><a |
398 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li> | ||
399 | <li><a | ||
400 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li> | 400 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li> |
401 | </ul> | 401 | </ul> |
402 | <h1·id="al_fread">al_fread</h1> | 402 | <h1·id="al_fread">al_fread</h1> |
403 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> | 403 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> |
404 | <p><a | 404 | <p><a |
405 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source | 405 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source |
406 | Code</a></p> | 406 | Code</a></p> |
Offset 890, 19 lines modified | Offset 890, 14 lines modified | ||
890 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·table | 890 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·table |
891 | for·the·calling·thread.·This·will·change·the·handler·for·later·calls·to | 891 | for·the·calling·thread.·This·will·change·the·handler·for·later·calls·to |
892 | <a·href="file.html#al_fopen">al_fopen</a>.</p> | 892 | <a·href="file.html#al_fopen">al_fopen</a>.</p> |
893 | <p>See·also:·<a | 893 | <p>See·also:·<a |
894 | href="file.html#al_set_standard_file_interface">al_set_standard_file_interface</a>, | 894 | href="file.html#al_set_standard_file_interface">al_set_standard_file_interface</a>, |
895 | <a·href="state.html#al_store_state">al_store_state</a>,·<a | 895 | <a·href="state.html#al_store_state">al_store_state</a>,·<a |
896 | href="state.html#al_restore_state">al_restore_state</a>.</p> | 896 | href="state.html#al_restore_state">al_restore_state</a>.</p> |
897 | <p>Examples:</p> | ||
898 | <ul> | ||
899 | <li><a | ||
900 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L410">ex_curl.c</a></li> | ||
901 | </ul> | ||
902 | <h2 | 897 | <h2 |
903 | id="al_set_standard_file_interface">al_set_standard_file_interface</h2> | 898 | id="al_set_standard_file_interface">al_set_standard_file_interface</h2> |
904 | <div·class="sourceCode"·id="cb41"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb41-1"><a·href="#cb41-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_standard_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 899 | <div·class="sourceCode"·id="cb41"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb41-1"><a·href="#cb41-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_standard_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
905 | <p><a | 900 | <p><a |
906 | href="https://github.com/liballeg/allegro5/blob/master/src/file_stdio.c#L382">Source | 901 | href="https://github.com/liballeg/allegro5/blob/master/src/file_stdio.c#L382">Source |
907 | Code</a></p> | 902 | Code</a></p> |
908 | <p>Set·the·<a | 903 | <p>Set·the·<a |
Offset 950, 11 lines modified | Offset 945, 14 lines modified | ||
950 | handle.·This·is·intended·to·be·used·by·functions·that·extend·<a | 945 | handle.·This·is·intended·to·be·used·by·functions·that·extend·<a |
951 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> | 946 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>.</p> |
952 | <p>Examples:</p> | 947 | <p>Examples:</p> |
953 | <ul> | 948 | <ul> |
954 | <li><a | 949 | <li><a |
955 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L145">ex_curl.c</a></li> | 950 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L145">ex_curl.c</a></li> |
956 | </ul> | 951 | </ul> |
952 | <p·class="timestamp"> | ||
953 | Allegro·version·5.2.10 | ||
954 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
955 | </p> | ||
957 | </div> | 956 | </div> |
958 | </body> | 957 | </body> |
959 | </html> | 958 | </html> |
Offset 144, 16 lines modified | Offset 144, 16 lines modified | ||
144 | defined·to·be·equal·to·LF·either.) | 144 | defined·to·be·equal·to·LF·either.) |
145 | Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary | 145 | Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary |
146 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by | 146 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by |
147 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. | 147 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. |
148 | Returns·a·file·handle·on·success,·or·NULL·on·error. | 148 | Returns·a·file·handle·on·success,·or·NULL·on·error. |
149 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e. | 149 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e. |
150 | Examples: | 150 | Examples: |
151 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
152 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | 151 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p |
152 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
153 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | 153 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c |
154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
155 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, | 155 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, |
156 | ···const·char·*path,·const·char·*mode) | 156 | ···const·char·*path,·const·char·*mode) |
157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
158 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with | 158 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with |
159 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. | 159 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. |
Offset 194, 16 lines modified | Offset 194, 16 lines modified | ||
194 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | 194 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c |
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | bool·al_fclose(ALLEGRO_FILE·*f) | 196 | bool·al_fclose(ALLEGRO_FILE·*f) |
197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
198 | Close·the·given·file,·writing·any·buffered·output·data·(if·any). | 198 | Close·the·given·file,·writing·any·buffered·output·data·(if·any). |
199 | Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error. | 199 | Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error. |
200 | Examples: | 200 | Examples: |
201 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
202 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | 201 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p |
202 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
203 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 203 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
205 | size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size) | 205 | size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size) |
206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
207 | Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file. | 207 | Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file. |
208 | Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of- | 208 | Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of- |
209 | file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero). | 209 | file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero). |
Offset 502, 16 lines modified | Offset 502, 14 lines modified | ||
502 | will·handle·the·following·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·calls·for·the·current·thread. | 502 | will·handle·the·following·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·calls·for·the·current·thread. |
503 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 503 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
504 | void·al_set_new_file_interface(const·ALLEGRO_FILE_INTERFACE·*file_interface) | 504 | void·al_set_new_file_interface(const·ALLEGRO_FILE_INTERFACE·*file_interface) |
505 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 505 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
506 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·for·the·calling·thread.·This·will·change | 506 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·for·the·calling·thread.·This·will·change |
507 | the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 507 | the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
508 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. | 508 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. |
509 | Examples: | ||
510 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | ||
511 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8st\x8ta\x8an\x8nd\x8da\x8ar\x8rd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 509 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8st\x8ta\x8an\x8nd\x8da\x8ar\x8rd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
512 | void·al_set_standard_file_interface(void) | 510 | void·al_set_standard_file_interface(void) |
513 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 511 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
514 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·to·the·default,·for·the·calling·thread. | 512 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·to·the·default,·for·the·calling·thread. |
515 | This·will·change·the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 513 | This·will·change·the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
516 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 514 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
517 | Examples: | 515 | Examples: |
Offset 534, 7 lines modified | Offset 532, 8 lines modified | ||
534 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_u\x8us\x8se\x8er\x8rd\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8* | 532 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_u\x8us\x8se\x8er\x8rd\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8* |
535 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) | 533 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) |
536 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 534 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
537 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. | 535 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. |
538 | This·is·intended·to·be·used·by·functions·that·extend·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. | 536 | This·is·intended·to·be·used·by·functions·that·extend·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. |
539 | Examples: | 537 | Examples: |
540 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | 538 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c |
539 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 665, 14 lines modified | Offset 665, 11 lines modified | ||
665 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a>al_fixed·al_fixhypot<span·class="op">(</span>al_fixed·x<span·class="op">,</span>·al_fixed·y<span·class="op">)</span></span></code></pre></div> | 665 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a>al_fixed·al_fixhypot<span·class="op">(</span>al_fixed·x<span·class="op">,</span>·al_fixed·y<span·class="op">)</span></span></code></pre></div> |
666 | <p><a | 666 | <p><a |
667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source | 667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source |
668 | Code</a></p> | 668 | Code</a></p> |
669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of | 669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of |
670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the | 670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the |
671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> | 671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> |
672 | <p·class="timestamp"> | ||
673 | Allegro·version·5.2.10 | ||
674 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
675 | </p> | ||
676 | </div> | 672 | </div> |
677 | </body> | 673 | </body> |
678 | </html> | 674 | </html> |
Offset 435, 8 lines modified | Offset 435, 7 lines modified | ||
435 | errno·is·set·to·EDOM·and·the·function·returns·zero. | 435 | errno·is·set·to·EDOM·and·the·function·returns·zero. |
436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* | 436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* |
437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) | 437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) |
438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be | 439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be |
440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much | 440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much |
441 | smaller. | 441 | smaller. |
442 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 462, 65 lines modified | Offset 462, 38 lines modified | ||
462 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a | 462 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a |
463 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for | 463 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·255·for |
464 | alpha.</p> | 464 | alpha.</p> |
465 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 465 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
466 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 466 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
467 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a | 467 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a |
468 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 468 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
469 | <p>Examples:</p> | ||
470 | <ul> | ||
471 | <li><a | ||
472 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L97">ex_audio_props.cpp</a></li> | ||
473 | <li><a | ||
474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | ||
475 | <li><a | ||
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li> | ||
477 | </ul> | ||
478 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> | 469 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> |
479 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> | 470 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> |
480 | <p><a | 471 | <p><a |
481 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source | 472 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source |
482 | Code</a></p> | 473 | Code</a></p> |
483 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a | 474 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a |
484 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·1.0f·for | 475 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·using·1.0f·for |
485 | alpha.</p> | 476 | alpha.</p> |
486 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 477 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
487 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 478 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
488 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a | 479 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a |
489 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> | 480 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> |
490 | <p>Examples:</p> | ||
491 | <ul> | ||
492 | <li><a | ||
493 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | ||
494 | <li><a | ||
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L173">ex_color.cpp</a></li> | ||
496 | <li><a | ||
497 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L80">ex_font_justify.cpp</a></li> | ||
498 | </ul> | ||
499 | <h2·id="al_map_rgba">al_map_rgba</h2> | 481 | <h2·id="al_map_rgba">al_map_rgba</h2> |
500 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> | 482 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> |
501 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 483 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
502 | <p><a | 484 | <p><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source | 485 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source |
504 | Code</a></p> | 486 | Code</a></p> |
505 | <p>Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·<a | 487 | <p>Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·<a |
506 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> | 488 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> |
507 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 489 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
508 | <p>See·also:·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a | 490 | <p>See·also:·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a |
509 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a | 491 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a |
510 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 492 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
511 | <p>Examples:</p> | ||
512 | <ul> | ||
513 | <li><a | ||
514 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li> | ||
515 | <li><a | ||
516 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li> | ||
517 | <li><a | ||
518 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li> | ||
519 | </ul> | ||
520 | <h2·id="al_premul_rgba">al_premul_rgba</h2> | 493 | <h2·id="al_premul_rgba">al_premul_rgba</h2> |
521 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> | 494 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> |
522 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 495 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
523 | <p><a | 496 | <p><a |
524 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source | 497 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source |
525 | Code</a></p> | 498 | Code</a></p> |
526 | <p>This·is·a·shortcut·for·<a | 499 | <p>This·is·a·shortcut·for·<a |
Offset 551, 23 lines modified | Offset 524, 14 lines modified | ||
551 | Code</a></p> | 524 | Code</a></p> |
552 | <p>Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·<a | 525 | <p>Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·<a |
553 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> | 526 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>.</p> |
554 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 527 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
555 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 528 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
556 | href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a | 529 | href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a |
557 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 530 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
558 | <p>Examples:</p> | ||
559 | <ul> | ||
560 | <li><a | ||
561 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li> | ||
562 | <li><a | ||
563 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L59">ex_cpu.c</a></li> | ||
564 | <li><a | ||
565 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L11">ex_resize.c</a></li> | ||
566 | </ul> | ||
567 | <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2> | 531 | <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2> |
568 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div> | 532 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div> |
569 | <p><a | 533 | <p><a |
570 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source | 534 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source |
571 | Code</a></p> | 535 | Code</a></p> |
572 | <p>This·is·a·shortcut·for·<a | 536 | <p>This·is·a·shortcut·for·<a |
573 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>(r·*·a,·g·*·a,·b·* | 537 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>(r·*·a,·g·*·a,·b·* |
Offset 598, 82 lines modified | Offset 562, 52 lines modified | ||
598 | Code</a></p> | 562 | Code</a></p> |
599 | <p>Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components | 563 | <p>Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components |
600 | will·range·from·0-255.</p> | 564 | will·range·from·0-255.</p> |
601 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 565 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
602 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a | 566 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a |
603 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a>,·<a | 567 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a>,·<a |
604 | href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> | 568 | href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> |
605 | <p>Examples:</p> | ||
606 | <ul> | ||
607 | <li><a | ||
608 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> | ||
609 | <li><a | ||
610 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L399">ex_haiku.c</a></li> | ||
611 | <li><a | ||
612 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L107">ex_color_gradient.c</a></li> | ||
613 | </ul> | ||
614 | <h2·id="al_unmap_rgb_f">al_unmap_rgb_f</h2> | 569 | <h2·id="al_unmap_rgb_f">al_unmap_rgb_f</h2> |
615 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgb_f<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> | 570 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgb_f<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> |
616 | <p><a | 571 | <p><a |
617 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L656">Source | 572 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L656">Source |
618 | Code</a></p> | 573 | Code</a></p> |
619 | <p>Retrieves·components·of·an·<a | 574 | <p>Retrieves·components·of·an·<a |
620 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·ignoring·alpha. | 575 | href="graphics.html#allegro_color">ALLEGRO_COLOR</a>,·ignoring·alpha. |
621 | Components·will·range·from·0.0f-1.0f.</p> | 576 | Components·will·range·from·0.0f-1.0f.</p> |
622 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 577 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
623 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a | 578 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a |
624 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a | 579 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a |
625 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a></p> | 580 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a></p> |
626 | <p>Examples:</p> | ||
627 | <ul> | ||
628 | <li><a | ||
629 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L399">ex_haiku.c</a></li> | ||
630 | <li><a | ||
631 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L107">ex_color_gradient.c</a></li> | ||
632 | </ul> | ||
633 | <h2·id="al_unmap_rgba">al_unmap_rgba</h2> | 581 | <h2·id="al_unmap_rgba">al_unmap_rgba</h2> |
634 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgba<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span></span> | 582 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgba<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span></span> |
Max diff block lines reached; 58858/67951 bytes (86.62%) of diff not shown. |
Offset 183, 40 lines modified | Offset 183, 28 lines modified | ||
183 | ALLEGRO_COLOR·al_map_rgb( | 183 | ALLEGRO_COLOR·al_map_rgb( |
184 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) | 184 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) |
185 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 185 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
186 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for | 186 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for |
187 | alpha. | 187 | alpha. |
188 | This·function·can·be·called·before·Allegro·is·initialized. | 188 | This·function·can·be·called·before·Allegro·is·initialized. |
189 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 189 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
190 | Examples: | ||
191 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
192 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
193 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
194 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 190 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
195 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) | 191 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) |
196 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
197 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for | 193 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for |
198 | alpha. | 194 | alpha. |
199 | This·function·can·be·called·before·Allegro·is·initialized. | 195 | This·function·can·be·called·before·Allegro·is·initialized. |
200 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 196 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f |
201 | Examples: | ||
202 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
203 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
204 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
205 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 197 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
206 | ALLEGRO_COLOR·al_map_rgba( | 198 | ALLEGRO_COLOR·al_map_rgba( |
207 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 199 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 200 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
209 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 201 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. |
210 | This·function·can·be·called·before·Allegro·is·initialized. | 202 | This·function·can·be·called·before·Allegro·is·initialized. |
211 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 203 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
212 | Examples: | ||
213 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
214 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
215 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | ||
216 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 204 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
217 | ALLEGRO_COLOR·al_premul_rgba( | 205 | ALLEGRO_COLOR·al_premul_rgba( |
218 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 206 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). | 208 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). |
221 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of | 209 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of |
222 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that | 210 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that |
Offset 235, 18 lines modified | Offset 223, 14 lines modified | ||
235 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 223 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f |
236 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 224 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
237 | ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a) | 225 | ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a) |
238 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 226 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
239 | Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 227 | Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. |
240 | This·function·can·be·called·before·Allegro·is·initialized. | 228 | This·function·can·be·called·before·Allegro·is·initialized. |
241 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 229 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
242 | Examples: | ||
243 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
244 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | ||
245 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
246 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 230 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
247 | ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a) | 231 | ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a) |
248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 232 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
249 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a). | 233 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a). |
250 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of | 234 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of |
251 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that | 235 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that |
252 | feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be | 236 | feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be |
Offset 266, 48 lines modified | Offset 250, 35 lines modified | ||
266 | void·al_unmap_rgb(ALLEGRO_COLOR·color, | 250 | void·al_unmap_rgb(ALLEGRO_COLOR·color, |
267 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b) | 251 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b) |
268 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 252 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
269 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components·will·range | 253 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components·will·range |
270 | from·0-255. | 254 | from·0-255. |
271 | This·function·can·be·called·before·Allegro·is·initialized. | 255 | This·function·can·be·called·before·Allegro·is·initialized. |
272 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 256 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
273 | Examples: | ||
274 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
275 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
276 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
277 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 257 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
278 | void·al_unmap_rgb_f(ALLEGRO_COLOR·color,·float·*r,·float·*g,·float·*b) | 258 | void·al_unmap_rgb_f(ALLEGRO_COLOR·color,·float·*r,·float·*g,·float·*b) |
279 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 259 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
280 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·ignoring·alpha.·Components·will·range | 260 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·ignoring·alpha.·Components·will·range |
281 | from·0.0f-1.0f. | 261 | from·0.0f-1.0f. |
282 | This·function·can·be·called·before·Allegro·is·initialized. | 262 | This·function·can·be·called·before·Allegro·is·initialized. |
283 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 263 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f |
284 | Examples: | ||
285 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
286 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
287 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 264 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
288 | void·al_unmap_rgba(ALLEGRO_COLOR·color, | 265 | void·al_unmap_rgba(ALLEGRO_COLOR·color, |
289 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b,·unsigned·char·*a) | 266 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b,·unsigned·char·*a) |
290 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 267 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
291 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0-255. | 268 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0-255. |
292 | This·function·can·be·called·before·Allegro·is·initialized. | 269 | This·function·can·be·called·before·Allegro·is·initialized. |
293 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 270 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
294 | Examples: | ||
295 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
296 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c | ||
297 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 271 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
298 | void·al_unmap_rgba_f(ALLEGRO_COLOR·color, | 272 | void·al_unmap_rgba_f(ALLEGRO_COLOR·color, |
299 | ···float·*r,·float·*g,·float·*b,·float·*a) | 273 | ···float·*r,·float·*g,·float·*b,·float·*a) |
300 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 274 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
301 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0.0f-1.0f. | 275 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0.0f-1.0f. |
302 | This·function·can·be·called·before·Allegro·is·initialized. | 276 | This·function·can·be·called·before·Allegro·is·initialized. |
303 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 277 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
304 | Examples: | ||
305 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
306 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c | ||
307 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 278 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
308 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* | 279 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* |
309 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | 280 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
310 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 281 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
311 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it | 282 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it |
312 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 283 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
313 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 284 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
Offset 458, 25 lines modified | Offset 429, 21 lines modified | ||
458 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* | 429 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* |
459 | int·al_get_pixel_block_width(int·format) | 430 | int·al_get_pixel_block_width(int·format) |
460 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 431 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
461 | Return·the·width·of·the·the·pixel·block·for·this·format. | 432 | Return·the·width·of·the·the·pixel·block·for·this·format. |
462 | Since:·5.1.9. | 433 | Since:·5.1.9. |
463 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8i_\x8z_\x8e, | 434 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8i_\x8z_\x8e, |
464 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t | 435 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
465 | Examples: | ||
466 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | ||
467 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* | 436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* |
468 | int·al_get_pixel_block_height(int·format) | 437 | int·al_get_pixel_block_height(int·format) |
469 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
470 | Return·the·height·of·the·the·pixel·block·for·this·format. | 439 | Return·the·height·of·the·the·pixel·block·for·this·format. |
471 | Since:·5.1.9. | 440 | Since:·5.1.9. |
472 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8i_\x8z_\x8e, | 441 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8i_\x8z_\x8e, |
473 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8w_\x8i_\x8d_\x8t_\x8h | 442 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8w_\x8i_\x8d_\x8t_\x8h |
474 | Examples: | ||
475 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | ||
Max diff block lines reached; 38643/46467 bytes (83.16%) of diff not shown. |
Offset 792, 21 lines modified | Offset 792, 14 lines modified | ||
792 | <p>Since:·5.1.8</p> | 792 | <p>Since:·5.1.8</p> |
793 | <blockquote> | 793 | <blockquote> |
794 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 794 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
795 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 795 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
796 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 796 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
797 | users.</p> | 797 | users.</p> |
798 | </blockquote> | 798 | </blockquote> |
799 | <p>Examples:</p> | ||
800 | <ul> | ||
801 | <li><a | ||
802 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L77">ex_haptic.c</a></li> | ||
803 | <li><a | ||
804 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L37">ex_haptic2.cpp</a></li> | ||
805 | </ul> | ||
806 | <h1·id="al_is_haptic_active">al_is_haptic_active</h1> | 799 | <h1·id="al_is_haptic_active">al_is_haptic_active</h1> |
807 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_haptic_active<span·class="op">(</span>ALLEGRO_HAPTIC·<span·class="op">*</span>hap<span·class="op">)</span></span></code></pre></div> | 800 | <div·class="sourceCode"·id="cb20"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb20-1"><a·href="#cb20-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_haptic_active<span·class="op">(</span>ALLEGRO_HAPTIC·<span·class="op">*</span>hap<span·class="op">)</span></span></code></pre></div> |
808 | <p><a | 801 | <p><a |
809 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L192">Source | 802 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L192">Source |
810 | Code</a></p> | 803 | Code</a></p> |
811 | <p>Returns·true·if·the·haptic·device·can·currently·be·used,·false·if | 804 | <p>Returns·true·if·the·haptic·device·can·currently·be·used,·false·if |
812 | not.</p> | 805 | not.</p> |
Offset 1208, 21 lines modified | Offset 1201, 14 lines modified | ||
1208 | <p>Since:·5.1.8</p> | 1201 | <p>Since:·5.1.8</p> |
1209 | <blockquote> | 1202 | <blockquote> |
1210 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1203 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1211 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 1204 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
1212 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 1205 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
1213 | users.</p> | 1206 | users.</p> |
1214 | </blockquote> | 1207 | </blockquote> |
1215 | <p>Examples:</p> | ||
1216 | <ul> | ||
1217 | <li><a | ||
1218 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L77">ex_haptic.c</a></li> | ||
1219 | <li><a | ||
1220 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L456">ex_haptic2.cpp</a></li> | ||
1221 | </ul> | ||
1222 | <h1·id="al_rumble_haptic">al_rumble_haptic</h1> | 1208 | <h1·id="al_rumble_haptic">al_rumble_haptic</h1> |
1223 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb36-1"><a·href="#cb36-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_rumble_haptic<span·class="op">(</span>ALLEGRO_HAPTIC·<span·class="op">*</span>hap<span·class="op">,</span></span> | 1209 | <div·class="sourceCode"·id="cb36"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb36-1"><a·href="#cb36-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_rumble_haptic<span·class="op">(</span>ALLEGRO_HAPTIC·<span·class="op">*</span>hap<span·class="op">,</span></span> |
1224 | <span·id="cb36-2"><a·href="#cb36-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">double</span>·intensity<span·class="op">,</span>·<span·class="dt">double</span>·duration<span·class="op">,</span>·ALLEGRO_HAPTIC_EFFECT_ID·<span·class="op">*</span>id<span·class="op">)</span></span></code></pre></div> | 1210 | <span·id="cb36-2"><a·href="#cb36-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">double</span>·intensity<span·class="op">,</span>·<span·class="dt">double</span>·duration<span·class="op">,</span>·ALLEGRO_HAPTIC_EFFECT_ID·<span·class="op">*</span>id<span·class="op">)</span></span></code></pre></div> |
1225 | <p><a | 1211 | <p><a |
1226 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L356">Source | 1212 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L356">Source |
1227 | Code</a></p> | 1213 | Code</a></p> |
1228 | <p>Uploads·a·simple·rumble·effect·to·the·haptic·device·and·starts | 1214 | <p>Uploads·a·simple·rumble·effect·to·the·haptic·device·and·starts |
Offset 447, 17 lines modified | Offset 447, 14 lines modified | ||
447 | Returns·true·on·success·or·false·if·the·haptic·device·couldn’t·be·released·for | 447 | Returns·true·on·success·or·false·if·the·haptic·device·couldn’t·be·released·for |
448 | any·reason,·such·as·NULL·being·passed,·the·device·not·being·active·or·failure | 448 | any·reason,·such·as·NULL·being·passed,·the·device·not·being·active·or·failure |
449 | in·the·driver. | 449 | in·the·driver. |
450 | Since:·5.1.8 | 450 | Since:·5.1.8 |
451 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 451 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
452 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 452 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
453 | ·····feedback·from·users. | 453 | ·····feedback·from·users. |
454 | Examples: | ||
455 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
456 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
457 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c_\x8_a\x8ac\x8ct\x8ti\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 454 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c_\x8_a\x8ac\x8ct\x8ti\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
458 | bool·al_is_haptic_active(ALLEGRO_HAPTIC·*hap) | 455 | bool·al_is_haptic_active(ALLEGRO_HAPTIC·*hap) |
459 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 456 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
460 | Returns·true·if·the·haptic·device·can·currently·be·used,·false·if·not. | 457 | Returns·true·if·the·haptic·device·can·currently·be·used,·false·if·not. |
461 | Since:·5.1.8 | 458 | Since:·5.1.8 |
462 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 459 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
463 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 460 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
Offset 685, 17 lines modified | Offset 682, 14 lines modified | ||
685 | Returns·true·on·success,·false·if·the·effect·couldn’t·be·released·for·any | 682 | Returns·true·on·success,·false·if·the·effect·couldn’t·be·released·for·any |
686 | reason·such·as·when·NULL·is·passed,·the·effect·is·not·active·or·failure·to | 683 | reason·such·as·when·NULL·is·passed,·the·effect·is·not·active·or·failure·to |
687 | release·the·effect·by·the·driver. | 684 | release·the·effect·by·the·driver. |
688 | Since:·5.1.8 | 685 | Since:·5.1.8 |
689 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 686 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
690 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 687 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
691 | ·····feedback·from·users. | 688 | ·····feedback·from·users. |
692 | Examples: | ||
693 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
694 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
695 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8um\x8mb\x8bl\x8le\x8e_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 689 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8um\x8mb\x8bl\x8le\x8e_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
696 | bool·al_rumble_haptic(ALLEGRO_HAPTIC·*hap, | 690 | bool·al_rumble_haptic(ALLEGRO_HAPTIC·*hap, |
697 | ···double·intensity,·double·duration,·ALLEGRO_HAPTIC_EFFECT_ID·*id) | 691 | ···double·intensity,·double·duration,·ALLEGRO_HAPTIC_EFFECT_ID·*id) |
698 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 692 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
699 | Uploads·a·simple·rumble·effect·to·the·haptic·device·and·starts·playback | 693 | Uploads·a·simple·rumble·effect·to·the·haptic·device·and·starts·playback |
700 | immediately.·The·parameter·intensity·is·a·relative·magnitude·between·0.0·and | 694 | immediately.·The·parameter·intensity·is·a·relative·magnitude·between·0.0·and |
701 | 1.0·that·determines·the·intensity·of·the·rumble·effect.·The·duration·determines | 695 | 1.0·that·determines·the·intensity·of·the·rumble·effect.·The·duration·determines |
Offset 265, 23 lines modified | Offset 265, 14 lines modified | ||
265 | <p><a | 265 | <p><a |
266 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L40">Source | 266 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L40">Source |
267 | Code</a></p> | 267 | Code</a></p> |
268 | <p>Install·a·joystick·driver,·returning·true·if·successful.·If·a | 268 | <p>Install·a·joystick·driver,·returning·true·if·successful.·If·a |
269 | joystick·driver·was·already·installed,·returns·true·immediately.</p> | 269 | joystick·driver·was·already·installed,·returns·true·immediately.</p> |
270 | <p>See·also:·<a | 270 | <p>See·also:·<a |
271 | href="joystick.html#al_uninstall_joystick">al_uninstall_joystick</a></p> | 271 | href="joystick.html#al_uninstall_joystick">al_uninstall_joystick</a></p> |
272 | <p>Examples:</p> | ||
273 | <ul> | ||
274 | <li><a | ||
275 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L101">ex_haptic.c</a></li> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L77">ex_joystick_hotplugging.c</a></li> | ||
278 | <li><a | ||
279 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L239">ex_joystick_events.c</a></li> | ||
280 | </ul> | ||
281 | <h1·id="al_uninstall_joystick">al_uninstall_joystick</h1> | 272 | <h1·id="al_uninstall_joystick">al_uninstall_joystick</h1> |
282 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_joystick<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 273 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_joystick<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
283 | <p><a | 274 | <p><a |
284 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L73">Source | 275 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L73">Source |
285 | Code</a></p> | 276 | Code</a></p> |
286 | <p>Uninstalls·the·active·joystick·driver.·All·outstanding·<a | 277 | <p>Uninstalls·the·active·joystick·driver.·All·outstanding·<a |
287 | href="joystick.html#allegro_joystick">ALLEGRO_JOYSTICK</a>·structures | 278 | href="joystick.html#allegro_joystick">ALLEGRO_JOYSTICK</a>·structures |
Offset 328, 45 lines modified | Offset 319, 27 lines modified | ||
328 | your·game·has·an·input·configuration·screen·or·similar,·you·may·wish·to | 319 | your·game·has·an·input·configuration·screen·or·similar,·you·may·wish·to |
329 | call·<a | 320 | call·<a |
330 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a> | 321 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a> |
331 | when·entering·that·screen.</p> | 322 | when·entering·that·screen.</p> |
332 | <p>See·also:·<a | 323 | <p>See·also:·<a |
333 | href="joystick.html#al_get_joystick_event_source">al_get_joystick_event_source</a>, | 324 | href="joystick.html#al_get_joystick_event_source">al_get_joystick_event_source</a>, |
334 | <a·href="events.html#allegro_event">ALLEGRO_EVENT</a></p> | 325 | <a·href="events.html#allegro_event">ALLEGRO_EVENT</a></p> |
335 | <p>Examples:</p> | ||
336 | <ul> | ||
337 | <li><a | ||
338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L127">ex_joystick_hotplugging.c</a></li> | ||
339 | <li><a | ||
340 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L199">ex_joystick_events.c</a></li> | ||
341 | <li><a | ||
342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L470">ex_haptic2.cpp</a></li> | ||
343 | </ul> | ||
344 | <h1·id="al_get_num_joysticks">al_get_num_joysticks</h1> | 326 | <h1·id="al_get_num_joysticks">al_get_num_joysticks</h1> |
345 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_num_joysticks<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 327 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_num_joysticks<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
346 | <p><a | 328 | <p><a |
347 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L138">Source | 329 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L138">Source |
348 | Code</a></p> | 330 | Code</a></p> |
349 | <p>Return·the·number·of·joysticks·currently·on·the·system·(or | 331 | <p>Return·the·number·of·joysticks·currently·on·the·system·(or |
350 | potentially·on·the·system).·This·number·can·change·after·<a | 332 | potentially·on·the·system).·This·number·can·change·after·<a |
351 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a> | 333 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a> |
352 | is·called,·in·order·to·support·hotplugging.</p> | 334 | is·called,·in·order·to·support·hotplugging.</p> |
353 | <p>Returns·0·if·there·is·no·joystick·driver·installed.</p> | 335 | <p>Returns·0·if·there·is·no·joystick·driver·installed.</p> |
354 | <p>See·also:·<a | 336 | <p>See·also:·<a |
355 | href="joystick.html#al_get_joystick">al_get_joystick</a>,·<a | 337 | href="joystick.html#al_get_joystick">al_get_joystick</a>,·<a |
356 | href="joystick.html#al_get_joystick_active">al_get_joystick_active</a></p> | 338 | href="joystick.html#al_get_joystick_active">al_get_joystick_active</a></p> |
357 | <p>Examples:</p> | ||
358 | <ul> | ||
359 | <li><a | ||
360 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L110">ex_haptic.c</a></li> | ||
361 | <li><a | ||
362 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L95">ex_joystick_hotplugging.c</a></li> | ||
363 | <li><a | ||
364 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L56">ex_haptic2.cpp</a></li> | ||
365 | </ul> | ||
366 | <h1·id="al_get_joystick">al_get_joystick</h1> | 339 | <h1·id="al_get_joystick">al_get_joystick</h1> |
367 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_JOYSTICK·<span·class="op">*</span>·al_get_joystick<span·class="op">(</span><span·class="dt">int</span>·num<span·class="op">)</span></span></code></pre></div> | 340 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_JOYSTICK·<span·class="op">*</span>·al_get_joystick<span·class="op">(</span><span·class="dt">int</span>·num<span·class="op">)</span></span></code></pre></div> |
368 | <p><a | 341 | <p><a |
369 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L150">Source | 342 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L150">Source |
370 | Code</a></p> | 343 | Code</a></p> |
371 | <p>Get·a·handle·for·a·joystick·on·the·system.·The·number·may·be·from·0 | 344 | <p>Get·a·handle·for·a·joystick·on·the·system.·The·number·may·be·from·0 |
372 | to·<a | 345 | to·<a |
Offset 379, 130 lines modified | Offset 352, 81 lines modified | ||
379 | may·return·handles·in·a·different·order,·and·handles·which·represent | 352 | may·return·handles·in·a·different·order,·and·handles·which·represent |
380 | disconnected·devices·will·not·be·returned.</p> | 353 | disconnected·devices·will·not·be·returned.</p> |
381 | <p>See·also:·<a | 354 | <p>See·also:·<a |
382 | href="joystick.html#al_get_num_joysticks">al_get_num_joysticks</a>,·<a | 355 | href="joystick.html#al_get_num_joysticks">al_get_num_joysticks</a>,·<a |
383 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a>, | 356 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a>, |
384 | <a | 357 | <a |
385 | href="joystick.html#al_get_joystick_active">al_get_joystick_active</a></p> | 358 | href="joystick.html#al_get_joystick_active">al_get_joystick_active</a></p> |
386 | <p>Examples:</p> | ||
387 | <ul> | ||
388 | <li><a | ||
389 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L114">ex_haptic.c</a></li> | ||
390 | <li><a | ||
391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L14">ex_joystick_hotplugging.c</a></li> | ||
392 | <li><a | ||
393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L43">ex_joystick_events.c</a></li> | ||
394 | </ul> | ||
395 | <h1·id="al_release_joystick">al_release_joystick</h1> | 359 | <h1·id="al_release_joystick">al_release_joystick</h1> |
396 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_release_joystick<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> | 360 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_release_joystick<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> |
397 | <p><a | 361 | <p><a |
398 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L162">Source | 362 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L162">Source |
399 | Code</a></p> | 363 | Code</a></p> |
400 | <p>This·function·currently·does·nothing.</p> | 364 | <p>This·function·currently·does·nothing.</p> |
401 | <p>See·also:·<a | 365 | <p>See·also:·<a |
402 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 366 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
403 | <p>Examples:</p> | ||
404 | <ul> | ||
405 | <li><a | ||
406 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L129">ex_haptic.c</a></li> | ||
407 | </ul> | ||
408 | <h1·id="al_get_joystick_active">al_get_joystick_active</h1> | 367 | <h1·id="al_get_joystick_active">al_get_joystick_active</h1> |
409 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_joystick_active<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> | 368 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_joystick_active<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> |
410 | <p><a | 369 | <p><a |
411 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L174">Source | 370 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L174">Source |
412 | Code</a></p> | 371 | Code</a></p> |
413 | <p>Return·if·the·joystick·handle·is·“active”,·i.e. in·the·current | 372 | <p>Return·if·the·joystick·handle·is·“active”,·i.e. in·the·current |
414 | configuration,·the·handle·represents·some·physical·device·plugged·into | 373 | configuration,·the·handle·represents·some·physical·device·plugged·into |
415 | the·system.·<a·href="joystick.html#al_get_joystick">al_get_joystick</a> | 374 | the·system.·<a·href="joystick.html#al_get_joystick">al_get_joystick</a> |
416 | returns·active·handles.·After·reconfiguration,·active·handles·may·become | 375 | returns·active·handles.·After·reconfiguration,·active·handles·may·become |
417 | inactive,·and·vice·versa.</p> | 376 | inactive,·and·vice·versa.</p> |
418 | <p>See·also:·<a | 377 | <p>See·also:·<a |
419 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a></p> | 378 | href="joystick.html#al_reconfigure_joysticks">al_reconfigure_joysticks</a></p> |
420 | <p>Examples:</p> | ||
421 | <ul> | ||
422 | <li><a | ||
423 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L133">ex_joystick_hotplugging.c</a></li> | ||
424 | </ul> | ||
425 | <h1·id="al_get_joystick_name">al_get_joystick_name</h1> | 379 | <h1·id="al_get_joystick_name">al_get_joystick_name</h1> |
426 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_joystick_name<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> | 380 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_joystick_name<span·class="op">(</span>ALLEGRO_JOYSTICK·<span·class="op">*</span>joy<span·class="op">)</span></span></code></pre></div> |
427 | <p><a | 381 | <p><a |
428 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L185">Source | 382 | href="https://github.com/liballeg/allegro5/blob/master/src/joynu.c#L185">Source |
429 | Code</a></p> | 383 | Code</a></p> |
430 | <p>Return·the·name·of·the·given·joystick.</p> | 384 | <p>Return·the·name·of·the·given·joystick.</p> |
431 | <p>See·also:·<a | 385 | <p>See·also:·<a |
432 | href="joystick.html#al_get_joystick_stick_name">al_get_joystick_stick_name</a>, | 386 | href="joystick.html#al_get_joystick_stick_name">al_get_joystick_stick_name</a>, |
433 | <a | 387 | <a |
434 | href="joystick.html#al_get_joystick_axis_name">al_get_joystick_axis_name</a>, | 388 | href="joystick.html#al_get_joystick_axis_name">al_get_joystick_axis_name</a>, |
435 | <a | 389 | <a |
Max diff block lines reached; 9910/17461 bytes (56.76%) of diff not shown. |
Offset 97, 18 lines modified | Offset 97, 14 lines modified | ||
97 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | 97 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s |
98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | bool·al_install_joystick(void) | 99 | bool·al_install_joystick(void) |
100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
101 | Install·a·joystick·driver,·returning·true·if·successful.·If·a·joystick·driver | 101 | Install·a·joystick·driver,·returning·true·if·successful.·If·a·joystick·driver |
102 | was·already·installed,·returns·true·immediately. | 102 | was·already·installed,·returns·true·immediately. |
103 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 103 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
104 | Examples: | ||
105 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
106 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
107 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
108 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
109 | void·al_uninstall_joystick(void) | 105 | void·al_uninstall_joystick(void) |
110 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
111 | Uninstalls·the·active·joystick·driver.·All·outstanding·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8J_\x8O_\x8Y_\x8S_\x8T_\x8I_\x8C_\x8K | 107 | Uninstalls·the·active·joystick·driver.·All·outstanding·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8J_\x8O_\x8Y_\x8S_\x8T_\x8I_\x8C_\x8K |
112 | structures·are·invalidated.·If·no·joystick·driver·was·active,·this·function | 108 | structures·are·invalidated.·If·no·joystick·driver·was·active,·this·function |
113 | does·nothing. | 109 | does·nothing. |
114 | This·function·is·automatically·called·when·Allegro·is·shut·down. | 110 | This·function·is·automatically·called·when·Allegro·is·shut·down. |
Offset 134, 147 lines modified | Offset 130, 102 lines modified | ||
134 | again,·being·reused·to·represent·newly·connected·devices. | 130 | again,·being·reused·to·represent·newly·connected·devices. |
135 | Returns·true·if·the·joystick·configuration·changed,·otherwise·returns·false. | 131 | Returns·true·if·the·joystick·configuration·changed,·otherwise·returns·false. |
136 | It·is·possible·that·on·some·systems,·Allegro·won’t·be·able·to·generate | 132 | It·is·possible·that·on·some·systems,·Allegro·won’t·be·able·to·generate |
137 | ALLEGRO_EVENT_JOYSTICK_CONFIGURATION·events.·If·your·game·has·an·input | 133 | ALLEGRO_EVENT_JOYSTICK_CONFIGURATION·events.·If·your·game·has·an·input |
138 | configuration·screen·or·similar,·you·may·wish·to·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s | 134 | configuration·screen·or·similar,·you·may·wish·to·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s |
139 | when·entering·that·screen. | 135 | when·entering·that·screen. |
140 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T | 136 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T |
141 | Examples: | ||
142 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
143 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
144 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8ks\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 137 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8ks\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
146 | int·al_get_num_joysticks(void) | 138 | int·al_get_num_joysticks(void) |
147 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 139 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
148 | Return·the·number·of·joysticks·currently·on·the·system·(or·potentially·on·the | 140 | Return·the·number·of·joysticks·currently·on·the·system·(or·potentially·on·the |
149 | system).·This·number·can·change·after·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s·is·called,·in | 141 | system).·This·number·can·change·after·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s·is·called,·in |
150 | order·to·support·hotplugging. | 142 | order·to·support·hotplugging. |
151 | Returns·0·if·there·is·no·joystick·driver·installed. | 143 | Returns·0·if·there·is·no·joystick·driver·installed. |
152 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8c_\x8t_\x8i_\x8v_\x8e | 144 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8c_\x8t_\x8i_\x8v_\x8e |
153 | Examples: | ||
154 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
155 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
156 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
157 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
158 | ALLEGRO_JOYSTICK·*·al_get_joystick(int·num) | 146 | ALLEGRO_JOYSTICK·*·al_get_joystick(int·num) |
159 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 147 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
160 | Get·a·handle·for·a·joystick·on·the·system.·The·number·may·be·from·0·to | 148 | Get·a·handle·for·a·joystick·on·the·system.·The·number·may·be·from·0·to |
161 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s-1.·If·successful·a·pointer·to·a·joystick·object·is | 149 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s-1.·If·successful·a·pointer·to·a·joystick·object·is |
162 | returned,·which·represents·a·physical·device.·Otherwise·NULL·is·returned. | 150 | returned,·which·represents·a·physical·device.·Otherwise·NULL·is·returned. |
163 | The·handle·and·the·index·are·only·incidentally·linked.·After | 151 | The·handle·and·the·index·are·only·incidentally·linked.·After |
164 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s·is·called,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k·may·return·handles·in·a | 152 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s·is·called,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k·may·return·handles·in·a |
165 | different·order,·and·handles·which·represent·disconnected·devices·will·not·be | 153 | different·order,·and·handles·which·represent·disconnected·devices·will·not·be |
166 | returned. | 154 | returned. |
167 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s, | 155 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s, |
168 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8c_\x8t_\x8i_\x8v_\x8e | 156 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8c_\x8t_\x8i_\x8v_\x8e |
169 | Examples: | ||
170 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
171 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
172 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
173 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8el\x8le\x8ea\x8as\x8se\x8e_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 157 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8el\x8le\x8ea\x8as\x8se\x8e_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
174 | void·al_release_joystick(ALLEGRO_JOYSTICK·*joy) | 158 | void·al_release_joystick(ALLEGRO_JOYSTICK·*joy) |
175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 159 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
176 | This·function·currently·does·nothing. | 160 | This·function·currently·does·nothing. |
177 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 161 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
178 | Examples: | ||
179 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
180 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_a\x8ac\x8ct\x8ti\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 162 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_a\x8ac\x8ct\x8ti\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
181 | bool·al_get_joystick_active(ALLEGRO_JOYSTICK·*joy) | 163 | bool·al_get_joystick_active(ALLEGRO_JOYSTICK·*joy) |
182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
183 | Return·if·the·joystick·handle·is·“active”,·i.e. in·the·current·configuration, | 165 | Return·if·the·joystick·handle·is·“active”,·i.e. in·the·current·configuration, |
184 | the·handle·represents·some·physical·device·plugged·into·the·system. | 166 | the·handle·represents·some·physical·device·plugged·into·the·system. |
185 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k·returns·active·handles.·After·reconfiguration,·active·handles | 167 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k·returns·active·handles.·After·reconfiguration,·active·handles |
186 | may·become·inactive,·and·vice·versa. | 168 | may·become·inactive,·and·vice·versa. |
187 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s | 169 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8u_\x8r_\x8e_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8s |
188 | Examples: | ||
189 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
190 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 170 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
191 | const·char·*al_get_joystick_name(ALLEGRO_JOYSTICK·*joy) | 171 | const·char·*al_get_joystick_name(ALLEGRO_JOYSTICK·*joy) |
192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
193 | Return·the·name·of·the·given·joystick. | 173 | Return·the·name·of·the·given·joystick. |
194 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e, | 174 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e, |
195 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8n_\x8a_\x8m_\x8e | 175 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8n_\x8a_\x8m_\x8e |
196 | Examples: | ||
197 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
198 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
199 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
200 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_s\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 176 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_s\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
201 | const·char·*al_get_joystick_stick_name(ALLEGRO_JOYSTICK·*joy,·int·stick) | 177 | const·char·*al_get_joystick_stick_name(ALLEGRO_JOYSTICK·*joy,·int·stick) |
202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
203 | Return·the·name·of·the·given·“stick”.·If·the·stick·doesn’t·exist,·NULL·is | 179 | Return·the·name·of·the·given·“stick”.·If·the·stick·doesn’t·exist,·NULL·is |
204 | returned. | 180 | returned. |
205 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8s | 181 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8s |
206 | Examples: | ||
207 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
208 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
209 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_a\x8ax\x8xi\x8is\x8s_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 182 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_a\x8ax\x8xi\x8is\x8s_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
210 | const·char·*al_get_joystick_axis_name(ALLEGRO_JOYSTICK·*joy,·int·stick,·int | 183 | const·char·*al_get_joystick_axis_name(ALLEGRO_JOYSTICK·*joy,·int·stick,·int |
211 | axis) | 184 | axis) |
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 185 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Return·the·name·of·the·given·axis.·If·the·axis·doesn’t·exist,·NULL·is·returned. | 186 | Return·the·name·of·the·given·axis.·If·the·axis·doesn’t·exist,·NULL·is·returned. |
214 | Indices·begin·from·0. | 187 | Indices·begin·from·0. |
215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s | 188 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s |
216 | Examples: | ||
217 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
218 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
219 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8n_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 189 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8n_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
220 | const·char·*al_get_joystick_button_name(ALLEGRO_JOYSTICK·*joy,·int·button) | 190 | const·char·*al_get_joystick_button_name(ALLEGRO_JOYSTICK·*joy,·int·button) |
221 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 191 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
222 | Return·the·name·of·the·given·button.·If·the·button·doesn’t·exist,·NULL·is | 192 | Return·the·name·of·the·given·button.·If·the·button·doesn’t·exist,·NULL·is |
223 | returned.·Indices·begin·from·0. | 193 | returned.·Indices·begin·from·0. |
224 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e, | 194 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8a_\x8x_\x8i_\x8s_\x8__\x8n_\x8a_\x8m_\x8e, |
225 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s | 195 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s |
226 | Examples: | ||
227 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
228 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
229 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_s\x8st\x8ti\x8ic\x8ck\x8k_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 196 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_s\x8st\x8ti\x8ic\x8ck\x8k_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
230 | int·al_get_joystick_stick_flags(ALLEGRO_JOYSTICK·*joy,·int·stick) | 197 | int·al_get_joystick_stick_flags(ALLEGRO_JOYSTICK·*joy,·int·stick) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Return·the·flags·of·the·given·“stick”.·If·the·stick·doesn’t·exist,·NULL·is | 199 | Return·the·flags·of·the·given·“stick”.·If·the·stick·doesn’t·exist,·NULL·is |
233 | returned.·Indices·begin·from·0. | 200 | returned.·Indices·begin·from·0. |
234 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8J_\x8O_\x8Y_\x8F_\x8L_\x8A_\x8G_\x8S | 201 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8J_\x8O_\x8Y_\x8F_\x8L_\x8A_\x8G_\x8S |
235 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8nu\x8um\x8m_\x8_s\x8st\x8ti\x8ic\x8ck\x8ks\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 202 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k_\x8_n\x8nu\x8um\x8m_\x8_s\x8st\x8ti\x8ic\x8ck\x8ks\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
236 | int·al_get_joystick_num_sticks(ALLEGRO_JOYSTICK·*joy) | 203 | int·al_get_joystick_num_sticks(ALLEGRO_JOYSTICK·*joy) |
237 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 204 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
238 | Return·the·number·of·“sticks”·on·the·given·joystick.·A·stick·has·one·or·more | 205 | Return·the·number·of·“sticks”·on·the·given·joystick.·A·stick·has·one·or·more |
239 | axes. | 206 | axes. |
240 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s | 207 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s |
241 | Examples: | ||
Max diff block lines reached; 2234/10945 bytes (20.41%) of diff not shown. |
Offset 341, 23 lines modified | Offset 341, 14 lines modified | ||
341 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L121">Source | 341 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L121">Source |
342 | Code</a></p> | 342 | Code</a></p> |
343 | <p>Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver | 343 | <p>Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver |
344 | was·already·installed,·nothing·happens·and·true·is·returned.</p> | 344 | was·already·installed,·nothing·happens·and·true·is·returned.</p> |
345 | <p>See·also:·<a | 345 | <p>See·also:·<a |
346 | href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a | 346 | href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a |
347 | href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p> | 347 | href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p> |
348 | <p>Examples:</p> | ||
349 | <ul> | ||
350 | <li><a | ||
351 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L155">ex_audio_props.cpp</a></li> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L34">ex_d3d.cpp</a></li> | ||
354 | <li><a | ||
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L39">ex_keyboard_focus.c</a></li> | ||
356 | </ul> | ||
357 | <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1> | 348 | <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1> |
358 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 349 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
359 | <p><a | 350 | <p><a |
360 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source | 351 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source |
361 | Code</a></p> | 352 | Code</a></p> |
362 | <p>Returns·true·if·<a | 353 | <p>Returns·true·if·<a |
363 | href="keyboard.html#al_install_keyboard">al_install_keyboard</a>·was | 354 | href="keyboard.html#al_install_keyboard">al_install_keyboard</a>·was |
Offset 380, 23 lines modified | Offset 371, 14 lines modified | ||
380 | Code</a></p> | 371 | Code</a></p> |
381 | <p>Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is | 372 | <p>Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is |
382 | called·into·the·structure·pointed·to·by·<em>ret_state</em>.</p> | 373 | called·into·the·structure·pointed·to·by·<em>ret_state</em>.</p> |
383 | <p>See·also:·<a·href="keyboard.html#al_key_down">al_key_down</a>,·<a | 374 | <p>See·also:·<a·href="keyboard.html#al_key_down">al_key_down</a>,·<a |
384 | href="keyboard.html#al_clear_keyboard_state">al_clear_keyboard_state</a>, | 375 | href="keyboard.html#al_clear_keyboard_state">al_clear_keyboard_state</a>, |
385 | <a | 376 | <a |
386 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> | 377 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> |
387 | <p>Examples:</p> | ||
388 | <ul> | ||
389 | <li><a | ||
390 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L107">ex_d3d.cpp</a></li> | ||
391 | <li><a | ||
392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L53">ex_keyboard_focus.c</a></li> | ||
393 | <li><a | ||
394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L94">ex_mouse_focus.c</a></li> | ||
395 | </ul> | ||
396 | <h1·id="al_clear_keyboard_state">al_clear_keyboard_state</h1> | 378 | <h1·id="al_clear_keyboard_state">al_clear_keyboard_state</h1> |
397 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_clear_keyboard_state<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 379 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_clear_keyboard_state<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
398 | <p><a | 380 | <p><a |
399 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L262">Source | 381 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L262">Source |
400 | Code</a></p> | 382 | Code</a></p> |
401 | <p>Clear·the·state·of·the·keyboard,·emitting·<a | 383 | <p>Clear·the·state·of·the·keyboard,·emitting·<a |
402 | href="events.html#allegro_event_key_up">ALLEGRO_EVENT_KEY_UP</a>·for | 384 | href="events.html#allegro_event_key_up">ALLEGRO_EVENT_KEY_UP</a>·for |
Offset 414, 48 lines modified | Offset 396, 29 lines modified | ||
414 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> | 396 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> |
415 | <p>Since:·5.2.3</p> | 397 | <p>Since:·5.2.3</p> |
416 | <blockquote> | 398 | <blockquote> |
417 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 399 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
418 | API</a>:</em>·This·is·a·new·feature·and·the·exact·semantics·are·still | 400 | API</a>:</em>·This·is·a·new·feature·and·the·exact·semantics·are·still |
419 | being·decided·upon.</p> | 401 | being·decided·upon.</p> |
420 | </blockquote> | 402 | </blockquote> |
421 | <p>Examples:</p> | ||
422 | <ul> | ||
423 | <li><a | ||
424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L98">ex_keyboard_events.c</a></li> | ||
425 | </ul> | ||
426 | <h1·id="al_key_down">al_key_down</h1> | 403 | <h1·id="al_key_down">al_key_down</h1> |
427 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_key_down<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_KEYBOARD_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div> | 404 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_key_down<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_KEYBOARD_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div> |
428 | <p><a | 405 | <p><a |
429 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L295">Source | 406 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L295">Source |
430 | Code</a></p> | 407 | Code</a></p> |
431 | <p>Return·true·if·the·key·specified·was·held·down·in·the·state | 408 | <p>Return·true·if·the·key·specified·was·held·down·in·the·state |
432 | specified.</p> | 409 | specified.</p> |
433 | <p>See·also:·<a | 410 | <p>See·also:·<a |
434 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> | 411 | href="keyboard.html#allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</a></p> |
435 | <p>Examples:</p> | ||
436 | <ul> | ||
437 | <li><a | ||
438 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L111">ex_d3d.cpp</a></li> | ||
439 | <li><a | ||
440 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L54">ex_keyboard_focus.c</a></li> | ||
441 | <li><a | ||
442 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L95">ex_mouse_focus.c</a></li> | ||
443 | </ul> | ||
444 | <h1·id="al_keycode_to_name">al_keycode_to_name</h1> | 412 | <h1·id="al_keycode_to_name">al_keycode_to_name</h1> |
445 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_keycode_to_name<span·class="op">(</span><span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div> | 413 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_keycode_to_name<span·class="op">(</span><span·class="dt">int</span>·keycode<span·class="op">)</span></span></code></pre></div> |
446 | <p><a | 414 | <p><a |
447 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L228">Source | 415 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L228">Source |
448 | Code</a></p> | 416 | Code</a></p> |
449 | <p>Converts·the·given·keycode·to·a·description·of·the·key.</p> | 417 | <p>Converts·the·given·keycode·to·a·description·of·the·key.</p> |
450 | <p>Examples:</p> | ||
451 | <ul> | ||
452 | <li><a | ||
453 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L31">ex_keyboard_events.c</a></li> | ||
454 | </ul> | ||
455 | <h1·id="al_can_set_keyboard_leds">al_can_set_keyboard_leds</h1> | 418 | <h1·id="al_can_set_keyboard_leds">al_can_set_keyboard_leds</h1> |
456 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_can_set_keyboard_leds<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 419 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_can_set_keyboard_leds<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
457 | <p><a | 420 | <p><a |
458 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L203">Source | 421 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L203">Source |
459 | Code</a></p> | 422 | Code</a></p> |
460 | <p>Returns·true·if·setting·the·keyboard·LED·indicators·is·available.</p> | 423 | <p>Returns·true·if·setting·the·keyboard·LED·indicators·is·available.</p> |
461 | <p>Since:·5.2.9</p> | 424 | <p>Since:·5.2.9</p> |
Offset 481, 23 lines modified | Offset 444, 14 lines modified | ||
481 | <p><a | 444 | <p><a |
482 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L304">Source | 445 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L304">Source |
483 | Code</a></p> | 446 | Code</a></p> |
484 | <p>Retrieve·the·keyboard·event·source.·All·<a | 447 | <p>Retrieve·the·keyboard·event·source.·All·<a |
485 | href="events.html#allegro_event_key_down">keyboard·events</a>·are | 448 | href="events.html#allegro_event_key_down">keyboard·events</a>·are |
486 | generated·by·this·event·source.</p> | 449 | generated·by·this·event·source.</p> |
487 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> | 450 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> |
488 | <p>Examples:</p> | ||
489 | <ul> | ||
490 | <li><a | ||
491 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L140">ex_keyboard_events.c</a></li> | ||
492 | <li><a | ||
493 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L44">ex_disable_screensaver.c</a></li> | ||
494 | <li><a | ||
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li> | ||
496 | </ul> | ||
497 | <p·class="timestamp"> | 451 | <p·class="timestamp"> |
498 | Allegro·version·5.2.10 | 452 | Allegro·version·5.2.10 |
499 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 453 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
500 | </p> | 454 | </p> |
501 | </div> | 455 | </div> |
502 | </body> | 456 | </body> |
503 | </html> | 457 | </html> |
Offset 185, 18 lines modified | Offset 185, 14 lines modified | ||
185 | typed. | 185 | typed. |
186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
187 | bool·al_install_keyboard(void) | 187 | bool·al_install_keyboard(void) |
188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
189 | Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already | 189 | Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already |
190 | installed,·nothing·happens·and·true·is·returned. | 190 | installed,·nothing·happens·and·true·is·returned. |
191 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d | 191 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d |
192 | Examples: | ||
193 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
194 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
195 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
196 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 192 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
197 | bool·al_is_keyboard_installed(void) | 193 | bool·al_is_keyboard_installed(void) |
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 194 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully. | 195 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully. |
200 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 196 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
201 | void·al_uninstall_keyboard(void) | 197 | void·al_uninstall_keyboard(void) |
202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 206, 18 lines modified | Offset 202, 14 lines modified | ||
206 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d | 202 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d |
207 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 203 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
208 | void·al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE·*ret_state) | 204 | void·al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE·*ret_state) |
209 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 205 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
210 | Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is·called | 206 | Save·the·state·of·the·keyboard·specified·at·the·time·the·function·is·called |
211 | into·the·structure·pointed·to·by·r\x8re\x8et\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e. | 207 | into·the·structure·pointed·to·by·r\x8re\x8et\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e. |
212 | See·also:·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 208 | See·also:·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
213 | Examples: | ||
214 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
215 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
216 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
217 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8le\x8ea\x8ar\x8r_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 209 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8le\x8ea\x8ar\x8r_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
218 | void·al_clear_keyboard_state(ALLEGRO_DISPLAY·*display) | 210 | void·al_clear_keyboard_state(ALLEGRO_DISPLAY·*display) |
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 211 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | Clear·the·state·of·the·keyboard,·emitting·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8K_\x8E_\x8Y_\x8__\x8U_\x8P·for·each | 212 | Clear·the·state·of·the·keyboard,·emitting·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8K_\x8E_\x8Y_\x8__\x8U_\x8P·for·each |
221 | currently·pressed·key.·The·given·display·is·regarded·as·the·one·which·had·the | 213 | currently·pressed·key.·The·given·display·is·regarded·as·the·one·which·had·the |
222 | keyboard·focus·when·the·event·occurred.·In·case·display·is·NULL·no·event·is | 214 | keyboard·focus·when·the·event·occurred.·In·case·display·is·NULL·no·event·is |
223 | emitted.·For·most·keyboard·drivers·Allegro·maintains·its·own·state·of·the | 215 | emitted.·For·most·keyboard·drivers·Allegro·maintains·its·own·state·of·the |
Offset 225, 31 lines modified | Offset 217, 23 lines modified | ||
225 | intended·to·remedy·such·situation·by·resetting·Allegro’s·keyboard·state·to·a | 217 | intended·to·remedy·such·situation·by·resetting·Allegro’s·keyboard·state·to·a |
226 | known·default·(no·key·pressed).·This·is·particularly·useful·in·response·to | 218 | known·default·(no·key·pressed).·This·is·particularly·useful·in·response·to |
227 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8S_\x8W_\x8I_\x8T_\x8C_\x8H_\x8__\x8O_\x8U_\x8T·events. | 219 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8S_\x8W_\x8I_\x8T_\x8C_\x8H_\x8__\x8O_\x8U_\x8T·events. |
228 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 220 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
229 | Since:·5.2.3 | 221 | Since:·5.2.3 |
230 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·a·new·feature·and·the·exact·semantics·are·still | 222 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·a·new·feature·and·the·exact·semantics·are·still |
231 | ·····being·decided·upon. | 223 | ·····being·decided·upon. |
232 | Examples: | ||
233 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
234 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8y_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 224 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8y_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
235 | bool·al_key_down(const·ALLEGRO_KEYBOARD_STATE·*state,·int·keycode) | 225 | bool·al_key_down(const·ALLEGRO_KEYBOARD_STATE·*state,·int·keycode) |
236 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 226 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
237 | Return·true·if·the·key·specified·was·held·down·in·the·state·specified. | 227 | Return·true·if·the·key·specified·was·held·down·in·the·state·specified. |
238 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 228 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8K_\x8E_\x8Y_\x8B_\x8O_\x8A_\x8R_\x8D_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
239 | Examples: | ||
240 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
241 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
242 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
243 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8yc\x8co\x8od\x8de\x8e_\x8_t\x8to\x8o_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 229 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_k\x8ke\x8ey\x8yc\x8co\x8od\x8de\x8e_\x8_t\x8to\x8o_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
244 | const·char·*al_keycode_to_name(int·keycode) | 230 | const·char·*al_keycode_to_name(int·keycode) |
245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
246 | Converts·the·given·keycode·to·a·description·of·the·key. | 232 | Converts·the·given·keycode·to·a·description·of·the·key. |
247 | Examples: | ||
248 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
249 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8an\x8n_\x8_s\x8se\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_l\x8le\x8ed\x8ds\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 233 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8an\x8n_\x8_s\x8se\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_l\x8le\x8ed\x8ds\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
250 | bool·al_can_set_keyboard_leds(void) | 234 | bool·al_can_set_keyboard_leds(void) |
251 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
252 | Returns·true·if·setting·the·keyboard·LED·indicators·is·available. | 236 | Returns·true·if·setting·the·keyboard·LED·indicators·is·available. |
253 | Since:·5.2.9 | 237 | Since:·5.2.9 |
254 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 238 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
255 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_l\x8le\x8ed\x8ds\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 239 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_l\x8le\x8ed\x8ds\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 263, 12 lines modified | Offset 247, 8 lines modified | ||
263 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 247 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
264 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 248 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
265 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) | 249 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) |
266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 250 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
267 | Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this | 251 | Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this |
268 | event·source. | 252 | event·source. |
269 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. | 253 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. |
270 | Examples: | ||
271 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
272 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
273 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
274 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 254 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 218, 38 lines modified | Offset 218, 24 lines modified | ||
218 | to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have | 218 | to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have |
219 | different·adapters·available.</p> | 219 | different·adapters·available.</p> |
220 | <p>Returns·<code>true</code>·on·success,·<code>false</code>·on | 220 | <p>Returns·<code>true</code>·on·success,·<code>false</code>·on |
221 | failure.</p> | 221 | failure.</p> |
222 | <p>See·also:·<a | 222 | <p>See·also:·<a |
223 | href="monitor.html#allegro_monitor_info">ALLEGRO_MONITOR_INFO</a>,·<a | 223 | href="monitor.html#allegro_monitor_info">ALLEGRO_MONITOR_INFO</a>,·<a |
224 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a></p> | 224 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a></p> |
225 | <p>Examples:</p> | ||
226 | <ul> | ||
227 | <li><a | ||
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L26">ex_monitorinfo.c</a></li> | ||
229 | <li><a | ||
230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L68">ex_drag_and_drop.c</a></li> | ||
231 | <li><a | ||
232 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L49">ex_windows.c</a></li> | ||
233 | </ul> | ||
234 | <h1·id="al_get_monitor_dpi">al_get_monitor_dpi</h1> | 225 | <h1·id="al_get_monitor_dpi">al_get_monitor_dpi</h1> |
235 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_dpi<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> | 226 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_dpi<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> |
236 | <p><a | 227 | <p><a |
237 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L68">Source | 228 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L68">Source |
238 | Code</a></p> | 229 | Code</a></p> |
239 | <p>Get·the·dots·per·inch·of·a·monitor·attached·to·the·display | 230 | <p>Get·the·dots·per·inch·of·a·monitor·attached·to·the·display |
240 | adapter.</p> | 231 | adapter.</p> |
241 | <p>Since:·5.2.5</p> | 232 | <p>Since:·5.2.5</p> |
242 | <p>See·also:·<a | 233 | <p>See·also:·<a |
243 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a></p> | 234 | href="monitor.html#al_get_num_video_adapters">al_get_num_video_adapters</a></p> |
244 | <p>Examples:</p> | ||
245 | <ul> | ||
246 | <li><a | ||
247 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L28">ex_monitorinfo.c</a></li> | ||
248 | </ul> | ||
249 | <h1·id="al_get_num_video_adapters">al_get_num_video_adapters</h1> | 235 | <h1·id="al_get_num_video_adapters">al_get_num_video_adapters</h1> |
250 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_num_video_adapters<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 236 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_num_video_adapters<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
251 | <p><a | 237 | <p><a |
252 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L23">Source |
253 | Code</a></p> | 239 | Code</a></p> |
254 | <p>Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each | 240 | <p>Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each |
255 | video·card·attached·to·the·computer·counts·as·one·or·more·adapters.·An | 241 | video·card·attached·to·the·computer·counts·as·one·or·more·adapters.·An |
Offset 257, 23 lines modified | Offset 243, 14 lines modified | ||
257 | it.</p> | 243 | it.</p> |
258 | <p>On·Windows,·use·<a | 244 | <p>On·Windows,·use·<a |
259 | href="display.html#al_set_new_display_flags">al_set_new_display_flags</a> | 245 | href="display.html#al_set_new_display_flags">al_set_new_display_flags</a> |
260 | to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have | 246 | to·switch·between·Direct3D·and·OpenGL·backends,·which·will·often·have |
261 | different·adapters·available.</p> | 247 | different·adapters·available.</p> |
262 | <p>See·also:·<a | 248 | <p>See·also:·<a |
263 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 249 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
264 | <p>Examples:</p> | ||
265 | <ul> | ||
266 | <li><a | ||
267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L21">ex_monitorinfo.c</a></li> | ||
268 | <li><a | ||
269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L79">ex_dualies.c</a></li> | ||
270 | <li><a | ||
271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L20">ex_winfull.c</a></li> | ||
272 | </ul> | ||
273 | <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1> | 250 | <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1> |
274 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> | 251 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> |
275 | <p><a | 252 | <p><a |
276 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source | 253 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source |
277 | Code</a></p> | 254 | Code</a></p> |
278 | <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display | 255 | <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display |
279 | adapter.</p> | 256 | adapter.</p> |
Offset 71, 39 lines modified | Offset 71, 29 lines modified | ||
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number | 72 | Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number |
73 | from·0·to·al_get_num_video_adapters()-1. | 73 | from·0·to·al_get_num_video_adapters()-1. |
74 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL | 74 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL |
75 | backends,·which·will·often·have·different·adapters·available. | 75 | backends,·which·will·often·have·different·adapters·available. |
76 | Returns·true·on·success,·false·on·failure. | 76 | Returns·true·on·success,·false·on·failure. |
77 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8N_\x8I_\x8T_\x8O_\x8R_\x8__\x8I_\x8N_\x8F_\x8O,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s | 77 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8N_\x8I_\x8T_\x8O_\x8R_\x8__\x8I_\x8N_\x8F_\x8O,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s |
78 | Examples: | ||
79 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
80 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | ||
81 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
82 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_d\x8dp\x8pi\x8i·*\x8**\x8**\x8**\x8**\x8**\x8* | 78 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_d\x8dp\x8pi\x8i·*\x8**\x8**\x8**\x8**\x8**\x8* |
83 | int·al_get_monitor_dpi(int·adapter) | 79 | int·al_get_monitor_dpi(int·adapter) |
84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
85 | Get·the·dots·per·inch·of·a·monitor·attached·to·the·display·adapter. | 81 | Get·the·dots·per·inch·of·a·monitor·attached·to·the·display·adapter. |
86 | Since:·5.2.5 | 82 | Since:·5.2.5 |
87 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s | 83 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s |
88 | Examples: | ||
89 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 84 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | int·al_get_num_video_adapters(void) | 85 | int·al_get_num_video_adapters(void) |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 86 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each·video·card | 87 | Get·the·number·of·video·“adapters”·attached·to·the·computer.·Each·video·card |
94 | attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus | 88 | attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus |
95 | really·a·video·port·that·can·have·a·monitor·connected·to·it. | 89 | really·a·video·port·that·can·have·a·monitor·connected·to·it. |
96 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL | 90 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL |
97 | backends,·which·will·often·have·different·adapters·available. | 91 | backends,·which·will·often·have·different·adapters·available. |
98 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 92 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
99 | Examples: | ||
100 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
101 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
102 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c | ||
103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
104 | int·al_get_monitor_refresh_rate(int·adapter) | 94 | int·al_get_monitor_refresh_rate(int·adapter) |
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. | 96 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. |
107 | Since:·5.2.6 | 97 | Since:·5.2.6 |
108 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only | 98 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only |
109 | ·····works·on·Windows. | 99 | ·····works·on·Windows. |
Offset 279, 23 lines modified | Offset 279, 14 lines modified | ||
279 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_mouse<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 279 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_install_mouse<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
280 | <p><a | 280 | <p><a |
281 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L49">Source | 281 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L49">Source |
282 | Code</a></p> | 282 | Code</a></p> |
283 | <p>Install·a·mouse·driver.</p> | 283 | <p>Install·a·mouse·driver.</p> |
284 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, | 284 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, |
285 | nothing·happens·and·true·is·returned.</p> | 285 | nothing·happens·and·true·is·returned.</p> |
286 | <p>Examples:</p> | ||
287 | <ul> | ||
288 | <li><a | ||
289 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L156">ex_audio_props.cpp</a></li> | ||
290 | <li><a | ||
291 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L195">ex_color.cpp</a></li> | ||
292 | <li><a | ||
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> | ||
294 | </ul> | ||
295 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> | 286 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> |
296 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 287 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
297 | <p><a | 288 | <p><a |
298 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source | 289 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source |
299 | Code</a></p> | 290 | Code</a></p> |
300 | <p>Returns·true·if·<a | 291 | <p>Returns·true·if·<a |
301 | href="mouse.html#al_install_mouse">al_install_mouse</a>·was·called | 292 | href="mouse.html#al_install_mouse">al_install_mouse</a>·was·called |
Offset 320, 19 lines modified | Offset 311, 14 lines modified | ||
320 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">unsigned</span>·<span·class="dt">int</span>·al_get_mouse_num_buttons<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 311 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">unsigned</span>·<span·class="dt">int</span>·al_get_mouse_num_buttons<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
321 | <p><a | 312 | <p><a |
322 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L134">Source | 313 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L134">Source |
323 | Code</a></p> | 314 | Code</a></p> |
324 | <p>Return·the·number·of·buttons·on·the·mouse.·The·first·button·is·1.</p> | 315 | <p>Return·the·number·of·buttons·on·the·mouse.·The·first·button·is·1.</p> |
325 | <p>See·also:·<a | 316 | <p>See·also:·<a |
326 | href="mouse.html#al_get_mouse_num_axes">al_get_mouse_num_axes</a></p> | 317 | href="mouse.html#al_get_mouse_num_axes">al_get_mouse_num_axes</a></p> |
327 | <p>Examples:</p> | ||
328 | <ul> | ||
329 | <li><a | ||
330 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_events.c#L68">ex_mouse_events.c</a></li> | ||
331 | </ul> | ||
332 | <h1·id="al_get_mouse_state">al_get_mouse_state</h1> | 318 | <h1·id="al_get_mouse_state">al_get_mouse_state</h1> |
333 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_mouse_state<span·class="op">(</span>ALLEGRO_MOUSE_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> | 319 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_mouse_state<span·class="op">(</span>ALLEGRO_MOUSE_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> |
334 | <p><a | 320 | <p><a |
335 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L209">Source | 321 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L209">Source |
336 | Code</a></p> | 322 | Code</a></p> |
337 | <p>Save·the·state·of·the·mouse·specified·at·the·time·the·function·is | 323 | <p>Save·the·state·of·the·mouse·specified·at·the·time·the·function·is |
338 | called·into·the·given·structure.</p> | 324 | called·into·the·given·structure.</p> |
Offset 350, 23 lines modified | Offset 336, 14 lines modified | ||
350 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="cf">if</span>·<span·class="op">(</span>state<span·class="op">.</span>buttons·<span·class="op">&</span>·<span·class="dv">4</span><span·class="op">)</span>·<span·class="op">{</span></span> | 336 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="cf">if</span>·<span·class="op">(</span>state<span·class="op">.</span>buttons·<span·class="op">&</span>·<span·class="dv">4</span><span·class="op">)</span>·<span·class="op">{</span></span> |
351 | <span·id="cb10-12"><a·href="#cb10-12"·aria-hidden="true"·tabindex="-1"></a>····<span·class="co">/*·Tertiary·(e.g.·middle)·mouse·button·is·held.·*/</span></span> | 337 | <span·id="cb10-12"><a·href="#cb10-12"·aria-hidden="true"·tabindex="-1"></a>····<span·class="co">/*·Tertiary·(e.g.·middle)·mouse·button·is·held.·*/</span></span> |
352 | <span·id="cb10-13"><a·href="#cb10-13"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span></span></code></pre></div> | 338 | <span·id="cb10-13"><a·href="#cb10-13"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span></span></code></pre></div> |
353 | <p>See·also:·<a | 339 | <p>See·also:·<a |
354 | href="mouse.html#allegro_mouse_state">ALLEGRO_MOUSE_STATE</a>,·<a | 340 | href="mouse.html#allegro_mouse_state">ALLEGRO_MOUSE_STATE</a>,·<a |
355 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, | 341 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, |
356 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> | 342 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> |
357 | <p>Examples:</p> | ||
358 | <ul> | ||
359 | <li><a | ||
360 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L65">ex_mouse_focus.c</a></li> | ||
361 | <li><a | ||
362 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L64">ex_mouse.c</a></li> | ||
363 | <li><a | ||
364 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L161">nihgui.cpp</a></li> | ||
365 | </ul> | ||
366 | <h1·id="al_get_mouse_state_axis">al_get_mouse_state_axis</h1> | 343 | <h1·id="al_get_mouse_state_axis">al_get_mouse_state_axis</h1> |
367 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_state_axis<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_MOUSE_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·axis<span·class="op">)</span></span></code></pre></div> | 344 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_state_axis<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_MOUSE_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·axis<span·class="op">)</span></span></code></pre></div> |
368 | <p><a | 345 | <p><a |
369 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L221">Source | 346 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L221">Source |
370 | Code</a></p> | 347 | Code</a></p> |
371 | <p>Extract·the·mouse·axis·value·from·the·saved·state.·The·axes·are | 348 | <p>Extract·the·mouse·axis·value·from·the·saved·state.·The·axes·are |
372 | numbered·from·0,·in·this·order:·x-axis,·y-axis,·z-axis,·w-axis.</p> | 349 | numbered·from·0,·in·this·order:·x-axis,·y-axis,·z-axis,·w-axis.</p> |
Offset 388, 39 lines modified | Offset 365, 27 lines modified | ||
388 | buttons.·You·can·check·<a | 365 | buttons.·You·can·check·<a |
389 | href="mouse.html#al_get_mouse_num_buttons">al_get_mouse_num_buttons</a> | 366 | href="mouse.html#al_get_mouse_num_buttons">al_get_mouse_num_buttons</a> |
390 | if·you·want·to·be·sure.</p> | 367 | if·you·want·to·be·sure.</p> |
391 | <p>See·also:·<a | 368 | <p>See·also:·<a |
392 | href="mouse.html#allegro_mouse_state">ALLEGRO_MOUSE_STATE</a>,·<a | 369 | href="mouse.html#allegro_mouse_state">ALLEGRO_MOUSE_STATE</a>,·<a |
393 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a | 370 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a |
394 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a></p> | 371 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a></p> |
395 | <p>Examples:</p> | ||
396 | <ul> | ||
397 | <li><a | ||
398 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L69">ex_mouse.c</a></li> | ||
399 | </ul> | ||
400 | <h1·id="al_set_mouse_xy">al_set_mouse_xy</h1> | 372 | <h1·id="al_set_mouse_xy">al_set_mouse_xy</h1> |
401 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_xy<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·x<span·class="op">,</span>·<span·class="dt">int</span>·y<span·class="op">)</span></span></code></pre></div> | 373 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_xy<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·x<span·class="op">,</span>·<span·class="dt">int</span>·y<span·class="op">)</span></span></code></pre></div> |
402 | <p><a | 374 | <p><a |
403 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L156">Source | 375 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L156">Source |
404 | Code</a></p> | 376 | Code</a></p> |
405 | <p>Try·to·position·the·mouse·at·the·given·coordinates·on·the·given | 377 | <p>Try·to·position·the·mouse·at·the·given·coordinates·on·the·given |
406 | display.·The·mouse·movement·resulting·from·a·successful·move·will | 378 | display.·The·mouse·movement·resulting·from·a·successful·move·will |
407 | generate·an·<a | 379 | generate·an·<a |
408 | href="events.html#allegro_event_mouse_warped">ALLEGRO_EVENT_MOUSE_WARPED</a> | 380 | href="events.html#allegro_event_mouse_warped">ALLEGRO_EVENT_MOUSE_WARPED</a> |
409 | event.</p> | 381 | event.</p> |
410 | <p>Returns·true·on·success,·false·on·failure.</p> | 382 | <p>Returns·true·on·success,·false·on·failure.</p> |
411 | <p>See·also:·<a·href="mouse.html#al_set_mouse_z">al_set_mouse_z</a>,·<a | 383 | <p>See·also:·<a·href="mouse.html#al_set_mouse_z">al_set_mouse_z</a>,·<a |
412 | href="mouse.html#al_set_mouse_w">al_set_mouse_w</a></p> | 384 | href="mouse.html#al_set_mouse_w">al_set_mouse_w</a></p> |
413 | <p>Examples:</p> | ||
414 | <ul> | ||
415 | <li><a | ||
416 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L92">ex_mouse_warp.c</a></li> | ||
417 | <li><a | ||
418 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L337">ex_ogre3d.cpp</a></li> | ||
419 | </ul> | ||
420 | <h1·id="al_set_mouse_z">al_set_mouse_z</h1> | 385 | <h1·id="al_set_mouse_z">al_set_mouse_z</h1> |
421 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_z<span·class="op">(</span><span·class="dt">int</span>·z<span·class="op">)</span></span></code></pre></div> | 386 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_z<span·class="op">(</span><span·class="dt">int</span>·z<span·class="op">)</span></span></code></pre></div> |
422 | <p><a | 387 | <p><a |
423 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L168">Source | 388 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L168">Source |
424 | Code</a></p> | 389 | Code</a></p> |
425 | <p>Set·the·mouse·wheel·position·to·the·given·value.</p> | 390 | <p>Set·the·mouse·wheel·position·to·the·given·value.</p> |
426 | <p>Returns·true·on·success,·false·on·failure.</p> | 391 | <p>Returns·true·on·success,·false·on·failure.</p> |
Offset 429, 19 lines modified | Offset 394, 14 lines modified | ||
429 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_w<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">)</span></span></code></pre></div> | 394 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_w<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">)</span></span></code></pre></div> |
430 | <p><a | 395 | <p><a |
431 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L180">Source | 396 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L180">Source |
432 | Code</a></p> | 397 | Code</a></p> |
433 | <p>Set·the·second·mouse·wheel·position·to·the·given·value.</p> | 398 | <p>Set·the·second·mouse·wheel·position·to·the·given·value.</p> |
434 | <p>Returns·true·on·success,·false·on·failure.</p> | 399 | <p>Returns·true·on·success,·false·on·failure.</p> |
435 | <p>See·also:·<a·href="mouse.html#al_set_mouse_z">al_set_mouse_z</a></p> | 400 | <p>See·also:·<a·href="mouse.html#al_set_mouse_z">al_set_mouse_z</a></p> |
436 | <p>Examples:</p> | ||
437 | <ul> | ||
438 | <li><a | ||
439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_events.c#L165">ex_mouse_events.c</a></li> | ||
440 | </ul> | ||
441 | <h1·id="al_set_mouse_axis">al_set_mouse_axis</h1> | 401 | <h1·id="al_set_mouse_axis">al_set_mouse_axis</h1> |
442 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_axis<span·class="op">(</span><span·class="dt">int</span>·which<span·class="op">,</span>·<span·class="dt">int</span>·value<span·class="op">)</span></span></code></pre></div> | 402 | <div·class="sourceCode"·id="cb16"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb16-1"><a·href="#cb16-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_mouse_axis<span·class="op">(</span><span·class="dt">int</span>·which<span·class="op">,</span>·<span·class="dt">int</span>·value<span·class="op">)</span></span></code></pre></div> |
443 | <p><a | 403 | <p><a |
444 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L192">Source | 404 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L192">Source |
445 | Code</a></p> | 405 | Code</a></p> |
446 | <p>Set·the·given·mouse·axis·to·the·given·value.</p> | 406 | <p>Set·the·given·mouse·axis·to·the·given·value.</p> |
447 | <p>The·axis·number·must·not·be·0·or·1,·which·are·the·X·and·Y·axes.·Use | 407 | <p>The·axis·number·must·not·be·0·or·1,·which·are·the·X·and·Y·axes.·Use |
Max diff block lines reached; 10530/19201 bytes (54.84%) of diff not shown. |
Offset 102, 18 lines modified | Offset 102, 14 lines modified | ||
102 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n | 102 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n |
103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
104 | bool·al_install_mouse(void) | 104 | bool·al_install_mouse(void) |
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | Install·a·mouse·driver. | 106 | Install·a·mouse·driver. |
107 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens | 107 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens |
108 | and·true·is·returned. | 108 | and·true·is·returned. |
109 | Examples: | ||
110 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
112 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 109 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
114 | bool·al_is_mouse_installed(void) | 110 | bool·al_is_mouse_installed(void) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 111 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. | 112 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. |
117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
118 | void·al_uninstall_mouse(void) | 114 | void·al_uninstall_mouse(void) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 126, 16 lines modified | Offset 122, 14 lines modified | ||
126 | Return·the·number·of·axes·on·the·mouse.·The·first·axis·is·0. | 122 | Return·the·number·of·axes·on·the·mouse.·The·first·axis·is·0. |
127 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s | 123 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s |
128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_n\x8nu\x8um\x8m_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_n\x8nu\x8um\x8m_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
129 | unsigned·int·al_get_mouse_num_buttons(void) | 125 | unsigned·int·al_get_mouse_num_buttons(void) |
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | Return·the·number·of·buttons·on·the·mouse.·The·first·button·is·1. | 127 | Return·the·number·of·buttons·on·the·mouse.·The·first·button·is·1. |
132 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s | 128 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8a_\x8x_\x8e_\x8s |
133 | Examples: | ||
134 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
135 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 129 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | void·al_get_mouse_state(ALLEGRO_MOUSE_STATE·*ret_state) | 130 | void·al_get_mouse_state(ALLEGRO_MOUSE_STATE·*ret_state) |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Save·the·state·of·the·mouse·specified·at·the·time·the·function·is·called·into | 132 | Save·the·state·of·the·mouse·specified·at·the·time·the·function·is·called·into |
139 | the·given·structure. | 133 | the·given·structure. |
140 | Example: | 134 | Example: |
141 | ALLEGRO_MOUSE_STATE·state; | 135 | ALLEGRO_MOUSE_STATE·state; |
Offset 148, 18 lines modified | Offset 142, 14 lines modified | ||
148 | if·(state.buttons·&·2)·{ | 142 | if·(state.buttons·&·2)·{ |
149 | ····/*·Secondary·(e.g.·right)·mouse·button·is·held.·*/ | 143 | ····/*·Secondary·(e.g.·right)·mouse·button·is·held.·*/ |
150 | } | 144 | } |
151 | if·(state.buttons·&·4)·{ | 145 | if·(state.buttons·&·4)·{ |
152 | ····/*·Tertiary·(e.g.·middle)·mouse·button·is·held.·*/ | 146 | ····/*·Tertiary·(e.g.·middle)·mouse·button·is·held.·*/ |
153 | } | 147 | } |
154 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n | 148 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n |
155 | Examples: | ||
156 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
157 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
158 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
159 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e_\x8_a\x8ax\x8xi\x8is\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 149 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e_\x8_a\x8ax\x8xi\x8is\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
160 | int·al_get_mouse_state_axis(const·ALLEGRO_MOUSE_STATE·*state,·int·axis) | 150 | int·al_get_mouse_state_axis(const·ALLEGRO_MOUSE_STATE·*state,·int·axis) |
161 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 151 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
162 | Extract·the·mouse·axis·value·from·the·saved·state.·The·axes·are·numbered·from | 152 | Extract·the·mouse·axis·value·from·the·saved·state.·The·axes·are·numbered·from |
163 | 0,·in·this·order:·x-axis,·y-axis,·z-axis,·w-axis. | 153 | 0,·in·this·order:·x-axis,·y-axis,·z-axis,·w-axis. |
164 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n | 154 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n |
165 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8n_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 155 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_b\x8bu\x8ut\x8tt\x8to\x8on\x8n_\x8_d\x8do\x8ow\x8wn\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 168, 59 lines modified | Offset 158, 48 lines modified | ||
168 | Return·true·if·the·mouse·button·specified·was·held·down·in·the·state·specified. | 158 | Return·true·if·the·mouse·button·specified·was·held·down·in·the·state·specified. |
169 | Unlike·most·things,·the·first·mouse·button·is·numbered·1.·As·a·convenience,·the | 159 | Unlike·most·things,·the·first·mouse·button·is·numbered·1.·As·a·convenience,·the |
170 | constants·ALLEGRO_MOUSE_BUTTON_LEFT,·ALLEGRO_MOUSE_BUTTON_RIGHT, | 160 | constants·ALLEGRO_MOUSE_BUTTON_LEFT,·ALLEGRO_MOUSE_BUTTON_RIGHT, |
171 | ALLEGRO_MOUSE_BUTTON_MIDDLE·are·provided.·However,·depending·on·the·hardware | 161 | ALLEGRO_MOUSE_BUTTON_MIDDLE·are·provided.·However,·depending·on·the·hardware |
172 | there·may·be·more·or·fewer·mouse·buttons.·You·can·check | 162 | there·may·be·more·or·fewer·mouse·buttons.·You·can·check |
173 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure. | 163 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure. |
174 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s | 164 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s |
175 | Examples: | ||
176 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
177 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_x\x8xy\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 165 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_x\x8xy\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
178 | bool·al_set_mouse_xy(ALLEGRO_DISPLAY·*display,·int·x,·int·y) | 166 | bool·al_set_mouse_xy(ALLEGRO_DISPLAY·*display,·int·x,·int·y) |
179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
180 | Try·to·position·the·mouse·at·the·given·coordinates·on·the·given·display.·The | 168 | Try·to·position·the·mouse·at·the·given·coordinates·on·the·given·display.·The |
181 | mouse·movement·resulting·from·a·successful·move·will·generate·an | 169 | mouse·movement·resulting·from·a·successful·move·will·generate·an |
182 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8W_\x8A_\x8R_\x8P_\x8E_\x8D·event. | 170 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8W_\x8A_\x8R_\x8P_\x8E_\x8D·event. |
183 | Returns·true·on·success,·false·on·failure. | 171 | Returns·true·on·success,·false·on·failure. |
184 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w | 172 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w |
185 | Examples: | ||
186 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | ||
187 | ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
188 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_z\x8z·*\x8**\x8**\x8**\x8**\x8**\x8* | 173 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_z\x8z·*\x8**\x8**\x8**\x8**\x8**\x8* |
189 | bool·al_set_mouse_z(int·z) | 174 | bool·al_set_mouse_z(int·z) |
190 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
191 | Set·the·mouse·wheel·position·to·the·given·value. | 176 | Set·the·mouse·wheel·position·to·the·given·value. |
192 | Returns·true·on·success,·false·on·failure. | 177 | Returns·true·on·success,·false·on·failure. |
193 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w | 178 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w |
194 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8w·*\x8**\x8**\x8**\x8**\x8**\x8* | 179 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8w·*\x8**\x8**\x8**\x8**\x8**\x8* |
195 | bool·al_set_mouse_w(int·w) | 180 | bool·al_set_mouse_w(int·w) |
196 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 181 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
197 | Set·the·second·mouse·wheel·position·to·the·given·value. | 182 | Set·the·second·mouse·wheel·position·to·the·given·value. |
198 | Returns·true·on·success,·false·on·failure. | 183 | Returns·true·on·success,·false·on·failure. |
199 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z | 184 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z |
200 | Examples: | ||
201 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
202 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_a\x8ax\x8xi\x8is\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 185 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_a\x8ax\x8xi\x8is\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
203 | bool·al_set_mouse_axis(int·which,·int·value) | 186 | bool·al_set_mouse_axis(int·which,·int·value) |
204 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
205 | Set·the·given·mouse·axis·to·the·given·value. | 188 | Set·the·given·mouse·axis·to·the·given·value. |
206 | The·axis·number·must·not·be·0·or·1,·which·are·the·X·and·Y·axes.·Use | 189 | The·axis·number·must·not·be·0·or·1,·which·are·the·X·and·Y·axes.·Use |
207 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8x_\x8y·for·that. | 190 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8x_\x8y·for·that. |
208 | Returns·true·on·success,·false·on·failure. | 191 | Returns·true·on·success,·false·on·failure. |
209 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8x_\x8y,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w | 192 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8x_\x8y,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8z,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w |
210 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 193 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
211 | ALLEGRO_EVENT_SOURCE·*al_get_mouse_event_source(void) | 194 | ALLEGRO_EVENT_SOURCE·*al_get_mouse_event_source(void) |
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 195 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event | 196 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event |
214 | source. | 197 | source. |
215 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. | 198 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. |
216 | Examples: | ||
217 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
218 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | ||
219 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
220 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 199 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
221 | void·al_set_mouse_wheel_precision(int·precision) | 200 | void·al_set_mouse_wheel_precision(int·precision) |
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision | 202 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision |
224 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It | 203 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It |
225 | also·affects·the·z·and·w·fields·of·events·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·but·not·in·a | 204 | also·affects·the·z·and·w·fields·of·events·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·but·not·in·a |
226 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those | 205 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those |
Offset 237, 16 lines modified | Offset 216, 14 lines modified | ||
237 | ··double·dz·=·(double)event.mouse.dz·/·al_get_mouse_wheel_precision(); | 216 | ··double·dz·=·(double)event.mouse.dz·/·al_get_mouse_wheel_precision(); |
238 | ··/*·Use·dz·in·some·way...·*/ | 217 | ··/*·Use·dz·in·some·way...·*/ |
239 | } | 218 | } |
240 | Precision·is·set·to·1·by·default.·It·is·impossible·to·set·it·to·a·lower | 219 | Precision·is·set·to·1·by·default.·It·is·impossible·to·set·it·to·a·lower |
241 | precision·than·that. | 220 | precision·than·that. |
242 | Since:·5.1.10 | 221 | Since:·5.1.10 |
243 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8h_\x8e_\x8e_\x8l_\x8__\x8p_\x8r_\x8e_\x8c_\x8i_\x8s_\x8i_\x8o_\x8n | 222 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8h_\x8e_\x8e_\x8l_\x8__\x8p_\x8r_\x8e_\x8c_\x8i_\x8s_\x8i_\x8o_\x8n |
244 | Examples: | ||
245 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
246 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 223 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
247 | int·al_get_mouse_wheel_precision(void) | 224 | int·al_get_mouse_wheel_precision(void) |
248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 225 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Max diff block lines reached; 5547/13034 bytes (42.56%) of diff not shown. |
Offset 233, 21 lines modified | Offset 233, 14 lines modified | ||
233 | <p><em>Note:</em>·the·exact·extensions·exposed·depend·on·how·Allegro·was | 233 | <p><em>Note:</em>·the·exact·extensions·exposed·depend·on·how·Allegro·was |
234 | compiled.·It·is·recommended·to·use·<a | 234 | compiled.·It·is·recommended·to·use·<a |
235 | href="opengl.html#al_have_opengl_extension">al_have_opengl_extension</a> | 235 | href="opengl.html#al_have_opengl_extension">al_have_opengl_extension</a> |
236 | and·<a | 236 | and·<a |
237 | href="opengl.html#al_get_opengl_proc_address">al_get_opengl_proc_address</a> | 237 | href="opengl.html#al_get_opengl_proc_address">al_get_opengl_proc_address</a> |
238 | for·the·most·stable·experience.</p> | 238 | for·the·most·stable·experience.</p> |
239 | </blockquote> | 239 | </blockquote> |
240 | <p>Examples:</p> | ||
241 | <ul> | ||
242 | <li><a | ||
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L52">ex_opengl.c</a></li> | ||
244 | <li><a | ||
245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L245">ex_glext.c</a></li> | ||
246 | </ul> | ||
247 | <h1·id="al_get_opengl_proc_address">al_get_opengl_proc_address</h1> | 240 | <h1·id="al_get_opengl_proc_address">al_get_opengl_proc_address</h1> |
248 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_get_opengl_proc_address<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">)</span></span></code></pre></div> | 241 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_get_opengl_proc_address<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">)</span></span></code></pre></div> |
249 | <p><a | 242 | <p><a |
250 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L578">Source | 243 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L578">Source |
251 | Code</a></p> | 244 | Code</a></p> |
252 | <p>Helper·to·get·the·address·of·an·OpenGL·symbol</p> | 245 | <p>Helper·to·get·the·address·of·an·OpenGL·symbol</p> |
253 | <p>Example:</p> | 246 | <p>Example:</p> |
Offset 281, 21 lines modified | Offset 274, 14 lines modified | ||
281 | <p>Returns·the·OpenGL·texture·id·internally·used·by·the·given·bitmap·if | 274 | <p>Returns·the·OpenGL·texture·id·internally·used·by·the·given·bitmap·if |
282 | it·uses·one,·else·0.</p> | 275 | it·uses·one,·else·0.</p> |
283 | <p>Example:</p> | 276 | <p>Example:</p> |
284 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>bitmap·<span·class="op">=</span>·al_load_bitmap<span·class="op">(</span><span·class="st">"my_texture.png"</span><span·class="op">);</span></span> | 277 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>bitmap·<span·class="op">=</span>·al_load_bitmap<span·class="op">(</span><span·class="st">"my_texture.png"</span><span·class="op">);</span></span> |
285 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>texture·<span·class="op">=</span>·al_get_opengl_texture<span·class="op">(</span>bitmap<span·class="op">);</span></span> | 278 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>texture·<span·class="op">=</span>·al_get_opengl_texture<span·class="op">(</span>bitmap<span·class="op">);</span></span> |
286 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a><span·class="cf">if</span>·<span·class="op">(</span>texture·<span·class="op">!=</span>·<span·class="dv">0</span><span·class="op">)</span></span> | 279 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a><span·class="cf">if</span>·<span·class="op">(</span>texture·<span·class="op">!=</span>·<span·class="dv">0</span><span·class="op">)</span></span> |
287 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>····glBindTexture<span·class="op">(</span>GL_TEXTURE_2D<span·class="op">,</span>·texture<span·class="op">);</span></span></code></pre></div> | 280 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>····glBindTexture<span·class="op">(</span>GL_TEXTURE_2D<span·class="op">,</span>·texture<span·class="op">);</span></span></code></pre></div> |
288 | <p>Examples:</p> | ||
289 | <ul> | ||
290 | <li><a | ||
291 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L81">ex_opengl_pixel_shader.c</a></li> | ||
292 | <li><a | ||
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_gldepth.c#L174">ex_gldepth.c</a></li> | ||
294 | </ul> | ||
295 | <h1·id="al_get_opengl_texture_size">al_get_opengl_texture_size</h1> | 281 | <h1·id="al_get_opengl_texture_size">al_get_opengl_texture_size</h1> |
296 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_opengl_texture_size<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>w<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>h<span·class="op">)</span></span></code></pre></div> | 282 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_opengl_texture_size<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>w<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>h<span·class="op">)</span></span></code></pre></div> |
297 | <p><a | 283 | <p><a |
298 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/ogl_bitmap.c#L1228">Source | 284 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/ogl_bitmap.c#L1228">Source |
299 | Code</a></p> | 285 | Code</a></p> |
300 | <p>Retrieves·the·size·of·the·texture·used·for·the·bitmap.·This·can·be | 286 | <p>Retrieves·the·size·of·the·texture·used·for·the·bitmap.·This·can·be |
301 | different·from·the·bitmap·size·if·OpenGL·only·supports·power-of-two | 287 | different·from·the·bitmap·size·if·OpenGL·only·supports·power-of-two |
Offset 362, 19 lines modified | Offset 348, 14 lines modified | ||
362 | <p>This·function·is·a·helper·to·determine·whether·an·OpenGL·extension·is | 348 | <p>This·function·is·a·helper·to·determine·whether·an·OpenGL·extension·is |
363 | available·on·the·given·display·or·not.</p> | 349 | available·on·the·given·display·or·not.</p> |
364 | <p>Example:</p> | 350 | <p>Example:</p> |
365 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·packedpixels·<span·class="op">=</span>·al_have_opengl_extension<span·class="op">(</span><span·class="st">"GL_EXT_packed_pixels"</span><span·class="op">);</span></span></code></pre></div> | 351 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·packedpixels·<span·class="op">=</span>·al_have_opengl_extension<span·class="op">(</span><span·class="st">"GL_EXT_packed_pixels"</span><span·class="op">);</span></span></code></pre></div> |
366 | <p>If·<em>packedpixels</em>·is·true·then·you·can·safely·use·the | 352 | <p>If·<em>packedpixels</em>·is·true·then·you·can·safely·use·the |
367 | constants·related·to·the·packed·pixels·extension.</p> | 353 | constants·related·to·the·packed·pixels·extension.</p> |
368 | <p>Returns·true·if·the·extension·is·available;·false·otherwise.</p> | 354 | <p>Returns·true·if·the·extension·is·available;·false·otherwise.</p> |
369 | <p>Examples:</p> | ||
370 | <ul> | ||
371 | <li><a | ||
372 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L68">ex_opengl_pixel_shader.c</a></li> | ||
373 | </ul> | ||
374 | <h1·id="al_get_opengl_version">al_get_opengl_version</h1> | 355 | <h1·id="al_get_opengl_version">al_get_opengl_version</h1> |
375 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_opengl_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 356 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_opengl_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
376 | <p><a | 357 | <p><a |
377 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L216">Source | 358 | href="https://github.com/liballeg/allegro5/blob/master/src/opengl/extensions.c#L216">Source |
378 | Code</a></p> | 359 | Code</a></p> |
379 | <p>Returns·the·OpenGL·or·OpenGL·ES·version·number·of·the·client·(the | 360 | <p>Returns·the·OpenGL·or·OpenGL·ES·version·number·of·the·client·(the |
380 | computer·the·program·is·running·on),·for·the·current·display.·“1.0”·is | 361 | computer·the·program·is·running·on),·for·the·current·display.·“1.0”·is |
Offset 78, 17 lines modified | Offset 78, 14 lines modified | ||
78 | In·case·you·want·to·manually·check·for·extensions·and·load·function·pointers | 78 | In·case·you·want·to·manually·check·for·extensions·and·load·function·pointers |
79 | yourself·(say,·in·case·the·Allegro·developers·did·not·include·it·yet),·you·can | 79 | yourself·(say,·in·case·the·Allegro·developers·did·not·include·it·yet),·you·can |
80 | use·the·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·functions | 80 | use·the·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·functions |
81 | instead. | 81 | instead. |
82 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·exact·extensions·exposed·depend·on·how·Allegro·was | 82 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·exact·extensions·exposed·depend·on·how·Allegro·was |
83 | ·····compiled.·It·is·recommended·to·use·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and | 83 | ·····compiled.·It·is·recommended·to·use·_\x8a_\x8l_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n·and |
84 | ·····_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·for·the·most·stable·experience. | 84 | ·····_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8r_\x8o_\x8c_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s·for·the·most·stable·experience. |
85 | Examples: | ||
86 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
87 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c | ||
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_p\x8pr\x8ro\x8oc\x8c_\x8_a\x8ad\x8dd\x8dr\x8re\x8es\x8ss\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_p\x8pr\x8ro\x8oc\x8c_\x8_a\x8ad\x8dd\x8dr\x8re\x8es\x8ss\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | void·*al_get_opengl_proc_address(const·char·*name) | 86 | void·*al_get_opengl_proc_address(const·char·*name) |
90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
91 | Helper·to·get·the·address·of·an·OpenGL·symbol | 88 | Helper·to·get·the·address·of·an·OpenGL·symbol |
92 | Example: | 89 | Example: |
93 | How·to·get·the·function·g\x8gl\x8lM\x8Mu\x8ul\x8lt\x8ti\x8iT\x8Te\x8ex\x8xC\x8Co\x8oo\x8or\x8rd\x8d3\x83f\x8fA\x8AR\x8RB\x8B·that·comes·with·ARB’s·Multitexture | 90 | How·to·get·the·function·g\x8gl\x8lM\x8Mu\x8ul\x8lt\x8ti\x8iT\x8Te\x8ex\x8xC\x8Co\x8oo\x8or\x8rd\x8d3\x83f\x8fA\x8AR\x8RB\x8B·that·comes·with·ARB’s·Multitexture |
94 | extension: | 91 | extension: |
Offset 116, 17 lines modified | Offset 113, 14 lines modified | ||
116 | Returns·the·OpenGL·texture·id·internally·used·by·the·given·bitmap·if·it·uses | 113 | Returns·the·OpenGL·texture·id·internally·used·by·the·given·bitmap·if·it·uses |
117 | one,·else·0. | 114 | one,·else·0. |
118 | Example: | 115 | Example: |
119 | bitmap·=·al_load_bitmap("my_texture.png"); | 116 | bitmap·=·al_load_bitmap("my_texture.png"); |
120 | texture·=·al_get_opengl_texture(bitmap); | 117 | texture·=·al_get_opengl_texture(bitmap); |
121 | if·(texture·!=·0) | 118 | if·(texture·!=·0) |
122 | ····glBindTexture(GL_TEXTURE_2D,·texture); | 119 | ····glBindTexture(GL_TEXTURE_2D,·texture); |
123 | Examples: | ||
124 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
125 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8d_\x8e_\x8p_\x8t_\x8h_\x8._\x8c | ||
126 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 120 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
127 | bool·al_get_opengl_texture_size(ALLEGRO_BITMAP·*bitmap,·int·*w,·int·*h) | 121 | bool·al_get_opengl_texture_size(ALLEGRO_BITMAP·*bitmap,·int·*w,·int·*h) |
128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
129 | Retrieves·the·size·of·the·texture·used·for·the·bitmap.·This·can·be·different | 123 | Retrieves·the·size·of·the·texture·used·for·the·bitmap.·This·can·be·different |
130 | from·the·bitmap·size·if·OpenGL·only·supports·power-of-two·sizes·or·if·it·is·a | 124 | from·the·bitmap·size·if·OpenGL·only·supports·power-of-two·sizes·or·if·it·is·a |
131 | sub-bitmap. | 125 | sub-bitmap. |
132 | Returns·true·on·success,·false·on·failure.·Zero·width·and·height·are·returned | 126 | Returns·true·on·success,·false·on·failure.·Zero·width·and·height·are·returned |
Offset 167, 16 lines modified | Offset 161, 14 lines modified | ||
167 | This·function·is·a·helper·to·determine·whether·an·OpenGL·extension·is·available | 161 | This·function·is·a·helper·to·determine·whether·an·OpenGL·extension·is·available |
168 | on·the·given·display·or·not. | 162 | on·the·given·display·or·not. |
169 | Example: | 163 | Example: |
170 | bool·packedpixels·=·al_have_opengl_extension("GL_EXT_packed_pixels"); | 164 | bool·packedpixels·=·al_have_opengl_extension("GL_EXT_packed_pixels"); |
171 | If·p\x8pa\x8ac\x8ck\x8ke\x8ed\x8dp\x8pi\x8ix\x8xe\x8el\x8ls\x8s·is·true·then·you·can·safely·use·the·constants·related·to·the | 165 | If·p\x8pa\x8ac\x8ck\x8ke\x8ed\x8dp\x8pi\x8ix\x8xe\x8el\x8ls\x8s·is·true·then·you·can·safely·use·the·constants·related·to·the |
172 | packed·pixels·extension. | 166 | packed·pixels·extension. |
173 | Returns·true·if·the·extension·is·available;·false·otherwise. | 167 | Returns·true·if·the·extension·is·available;·false·otherwise. |
174 | Examples: | ||
175 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
176 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 168 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8op\x8pe\x8en\x8ng\x8gl\x8l_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
177 | uint32_t·al_get_opengl_version(void) | 169 | uint32_t·al_get_opengl_version(void) |
178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 170 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
179 | Returns·the·OpenGL·or·OpenGL·ES·version·number·of·the·client·(the·computer·the | 171 | Returns·the·OpenGL·or·OpenGL·ES·version·number·of·the·client·(the·computer·the |
180 | program·is·running·on),·for·the·current·display.·“1.0”·is·returned·as | 172 | program·is·running·on),·for·the·current·display.·“1.0”·is·returned·as |
181 | 0x01000000,·“1.2.1”·is·returned·as·0x01020100,·and·“1.2.2”·as·0x01020200,·etc. | 173 | 0x01000000,·“1.2.1”·is·returned·as·0x01020100,·and·“1.2.2”·as·0x01020200,·etc. |
182 | A·valid·OpenGL·context·must·exist·for·this·function·to·work,·which·means·you | 174 | A·valid·OpenGL·context·must·exist·for·this·function·to·work,·which·means·you |
Offset 240, 23 lines modified | Offset 240, 14 lines modified | ||
240 | followed·by·a·directory·separator·and·is·neither·“.”·nor·“..”,·is | 240 | followed·by·a·directory·separator·and·is·neither·“.”·nor·“..”,·is |
241 | treated·as·the·last·directory·name·in·the·path.·Otherwise·the·last | 241 | treated·as·the·last·directory·name·in·the·path.·Otherwise·the·last |
242 | component·is·treated·as·the·filename.·The·string·may·be·NULL·for·an | 242 | component·is·treated·as·the·filename.·The·string·may·be·NULL·for·an |
243 | empty·path.</p> | 243 | empty·path.</p> |
244 | <p>See·also:·<a | 244 | <p>See·also:·<a |
245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, | 245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, |
246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> | 246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> |
247 | <p>Examples:</p> | ||
248 | <ul> | ||
249 | <li><a | ||
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li> | ||
251 | <li><a | ||
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li> | ||
253 | <li><a | ||
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> | ||
255 | </ul> | ||
256 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> | 247 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> |
257 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> | 248 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> |
258 | <p><a | 249 | <p><a |
259 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source | 250 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source |
260 | Code</a></p> | 251 | Code</a></p> |
261 | <p>This·is·the·same·as·<a | 252 | <p>This·is·the·same·as·<a |
262 | href="path.html#al_create_path">al_create_path</a>,·but·interprets·the | 253 | href="path.html#al_create_path">al_create_path</a>,·but·interprets·the |
Offset 268, 228 lines modified | Offset 259, 143 lines modified | ||
268 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_path<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 259 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_path<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
269 | <p><a | 260 | <p><a |
270 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L429">Source | 261 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L429">Source |
271 | Code</a></p> | 262 | Code</a></p> |
272 | <p>Free·a·path·structure.·Does·nothing·if·passed·NULL.</p> | 263 | <p>Free·a·path·structure.·Does·nothing·if·passed·NULL.</p> |
273 | <p>See·also:·<a·href="path.html#al_create_path">al_create_path</a>,·<a | 264 | <p>See·also:·<a·href="path.html#al_create_path">al_create_path</a>,·<a |
274 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a></p> | 265 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a></p> |
275 | <p>Examples:</p> | ||
276 | <ul> | ||
277 | <li><a | ||
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L14">ex_get_path.c</a></li> | ||
279 | <li><a | ||
280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L21">ex_path.c</a></li> | ||
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L732">ex_audio_chain.cpp</a></li> | ||
283 | </ul> | ||
284 | <h1·id="al_clone_path">al_clone_path</h1> | 266 | <h1·id="al_clone_path">al_clone_path</h1> |
285 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 267 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
286 | <p><a | 268 | <p><a |
287 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source | 269 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source |
288 | Code</a></p> | 270 | Code</a></p> |
289 | <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p> | 271 | <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p> |
290 | <p>See·also:·<a·href="path.html#al_destroy_path">al_destroy_path</a></p> | 272 | <p>See·also:·<a·href="path.html#al_destroy_path">al_destroy_path</a></p> |
291 | <p>Examples:</p> | ||
292 | <ul> | ||
293 | <li><a | ||
294 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L65">ex_path.c</a></li> | ||
295 | <li><a | ||
296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L490">ex_path_test.c</a></li> | ||
297 | </ul> | ||
298 | <h1·id="al_join_paths">al_join_paths</h1> | 273 | <h1·id="al_join_paths">al_join_paths</h1> |
299 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_join_paths<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>tail<span·class="op">)</span></span></code></pre></div> | 274 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_join_paths<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>tail<span·class="op">)</span></span></code></pre></div> |
300 | <p><a | 275 | <p><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L347">Source | 276 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L347">Source |
302 | Code</a></p> | 277 | Code</a></p> |
303 | <p>Concatenate·two·path·structures.·The·first·path·structure·is | 278 | <p>Concatenate·two·path·structures.·The·first·path·structure·is |
304 | modified.·If·‘tail’·is·an·absolute·path,·this·function·does·nothing.</p> | 279 | modified.·If·‘tail’·is·an·absolute·path,·this·function·does·nothing.</p> |
305 | <p>If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be | 280 | <p>If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be |
306 | appended·to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename, | 281 | appended·to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename, |
307 | even·if·it·is·just·the·empty·string.</p> | 282 | even·if·it·is·just·the·empty·string.</p> |
308 | <p>Tail’s·drive·is·ignored.</p> | 283 | <p>Tail’s·drive·is·ignored.</p> |
309 | <p>Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to | 284 | <p>Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to |
310 | ‘path’,·otherwise·returns·false.</p> | 285 | ‘path’,·otherwise·returns·false.</p> |
311 | <p>See·also:·<a·href="path.html#al_rebase_path">al_rebase_path</a></p> | 286 | <p>See·also:·<a·href="path.html#al_rebase_path">al_rebase_path</a></p> |
312 | <p>Examples:</p> | ||
313 | <ul> | ||
314 | <li><a | ||
315 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L318">ex_path_test.c</a></li> | ||
316 | </ul> | ||
317 | <h1·id="al_rebase_path">al_rebase_path</h1> | 287 | <h1·id="al_rebase_path">al_rebase_path</h1> |
318 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_rebase_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>head<span·class="op">,</span>·ALLEGRO_PATH·<span·class="op">*</span>tail<span·class="op">)</span></span></code></pre></div> | 288 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_rebase_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>head<span·class="op">,</span>·ALLEGRO_PATH·<span·class="op">*</span>tail<span·class="op">)</span></span></code></pre></div> |
319 | <p><a | 289 | <p><a |
320 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L374">Source | 290 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L374">Source |
321 | Code</a></p> | 291 | Code</a></p> |
322 | <p>Concatenate·two·path·structures,·modifying·the·second·path·structure. | 292 | <p>Concatenate·two·path·structures,·modifying·the·second·path·structure. |
323 | If·<em>tail</em>·is·an·absolute·path,·this·function·does·nothing. | 293 | If·<em>tail</em>·is·an·absolute·path,·this·function·does·nothing. |
324 | Otherwise,·the·drive·and·path·components·in·<em>head</em>·are·inserted | 294 | Otherwise,·the·drive·and·path·components·in·<em>head</em>·are·inserted |
325 | at·the·start·of·<em>tail</em>.</p> | 295 | at·the·start·of·<em>tail</em>.</p> |
326 | <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is | 296 | <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is |
327 | “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes | 297 | “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes |
328 | “/anchor/data/file.ext”.</p> | 298 | “/anchor/data/file.ext”.</p> |
329 | <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></p> | 299 | <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></p> |
330 | <p>Examples:</p> | ||
331 | <ul> | ||
332 | <li><a | ||
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L188">ex_audio_chain.cpp</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L376">ex_path_test.c</a></li> | ||
336 | </ul> | ||
337 | <h1·id="al_get_path_drive">al_get_path_drive</h1> | 300 | <h1·id="al_get_path_drive">al_get_path_drive</h1> |
338 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 301 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
339 | <p><a | 302 | <p><a |
340 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source | 303 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source |
341 | Code</a></p> | 304 | Code</a></p> |
342 | <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is | 305 | <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is |
343 | none.</p> | 306 | none.</p> |
344 | <p>The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string | 307 | <p>The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string |
345 | like·“c:”,·but·may·be·something·like·“\\Computer·Name”·in·the·case·of | 308 | like·“c:”,·but·may·be·something·like·“\\Computer·Name”·in·the·case·of |
346 | UNC·(Uniform·Naming·Convention)·syntax.</p> | 309 | UNC·(Uniform·Naming·Convention)·syntax.</p> |
347 | <p>Examples:</p> | ||
348 | <ul> | ||
349 | <li><a | ||
350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L35">ex_path.c</a></li> | ||
351 | <li><a | ||
352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L36">ex_path_test.c</a></li> | ||
353 | </ul> | ||
354 | <h1·id="al_get_path_num_components">al_get_path_num_components</h1> | 310 | <h1·id="al_get_path_num_components">al_get_path_num_components</h1> |
355 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_path_num_components<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 311 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_path_num_components<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
356 | <p><a | 312 | <p><a |
357 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L229">Source | 313 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L229">Source |
358 | Code</a></p> | 314 | Code</a></p> |
359 | <p>Return·the·number·of·directory·components·in·a·path.</p> | 315 | <p>Return·the·number·of·directory·components·in·a·path.</p> |
360 | <p>The·directory·components·do·not·include·the·final·part·of·a·path·(the | 316 | <p>The·directory·components·do·not·include·the·final·part·of·a·path·(the |
361 | filename).</p> | 317 | filename).</p> |
362 | <p>See·also:·<a | 318 | <p>See·also:·<a |
363 | href="path.html#al_get_path_component">al_get_path_component</a></p> | 319 | href="path.html#al_get_path_component">al_get_path_component</a></p> |
364 | <p>Examples:</p> | ||
365 | <ul> | ||
366 | <li><a | ||
367 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L50">ex_path.c</a></li> | ||
368 | <li><a | ||
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> | ||
370 | </ul> | ||
Max diff block lines reached; 17799/25920 bytes (68.67%) of diff not shown. |
Offset 79, 228 lines modified | Offset 79, 170 lines modified | ||
79 | ALLEGRO_PATH·*al_create_path(const·char·*str) | 79 | ALLEGRO_PATH·*al_create_path(const·char·*str) |
80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by | 81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by |
82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last | 82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last |
83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the | 83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the |
84 | filename.·The·string·may·be·NULL·for·an·empty·path. | 84 | filename.·The·string·may·be·NULL·for·an·empty·path. |
85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
86 | Examples: | ||
87 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
88 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
89 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) | 87 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a | 89 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a |
94 | directory·path.·The·filename·component·of·the·returned·path·will·always·be | 90 | directory·path.·The·filename·component·of·the·returned·path·will·always·be |
95 | empty. | 91 | empty. |
96 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 92 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
98 | void·al_destroy_path(ALLEGRO_PATH·*path) | 94 | void·al_destroy_path(ALLEGRO_PATH·*path) |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Free·a·path·structure.·Does·nothing·if·passed·NULL. | 96 | Free·a·path·structure.·Does·nothing·if·passed·NULL. |
101 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y | 97 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y |
102 | Examples: | ||
103 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
104 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
105 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) | 99 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. | 101 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. |
110 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 102 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
111 | Examples: | ||
112 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
113 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
114 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_p\x8pa\x8at\x8th\x8hs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_p\x8pa\x8at\x8th\x8hs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
115 | bool·al_join_paths(ALLEGRO_PATH·*path,·const·ALLEGRO_PATH·*tail) | 104 | bool·al_join_paths(ALLEGRO_PATH·*path,·const·ALLEGRO_PATH·*tail) |
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | Concatenate·two·path·structures.·The·first·path·structure·is·modified.·If | 106 | Concatenate·two·path·structures.·The·first·path·structure·is·modified.·If |
118 | ‘tail’·is·an·absolute·path,·this·function·does·nothing. | 107 | ‘tail’·is·an·absolute·path,·this·function·does·nothing. |
119 | If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be·appended | 108 | If·‘tail’·is·a·relative·path,·all·of·its·directory·components·will·be·appended |
120 | to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename,·even·if·it·is | 109 | to·‘path’.·tail’s·filename·will·also·overwrite·path’s·filename,·even·if·it·is |
121 | just·the·empty·string. | 110 | just·the·empty·string. |
122 | Tail’s·drive·is·ignored. | 111 | Tail’s·drive·is·ignored. |
123 | Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to·‘path’, | 112 | Returns·true·if·‘tail’·was·a·relative·path·and·so·concatenated·to·‘path’, |
124 | otherwise·returns·false. | 113 | otherwise·returns·false. |
125 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8b_\x8a_\x8s_\x8e_\x8__\x8p_\x8a_\x8t_\x8h | 114 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8b_\x8a_\x8s_\x8e_\x8__\x8p_\x8a_\x8t_\x8h |
126 | Examples: | ||
127 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eb\x8ba\x8as\x8se\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 115 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eb\x8ba\x8as\x8se\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
129 | bool·al_rebase_path(const·ALLEGRO_PATH·*head,·ALLEGRO_PATH·*tail) | 116 | bool·al_rebase_path(const·ALLEGRO_PATH·*head,·ALLEGRO_PATH·*tail) |
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 117 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l | 118 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l |
132 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path | 119 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path |
133 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. | 120 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. |
134 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the | 121 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the |
135 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. | 122 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. |
136 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s | 123 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s |
137 | Examples: | ||
138 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
139 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
140 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
141 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) | 125 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) |
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. | 127 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. |
144 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, | 128 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, |
145 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming | 129 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming |
146 | Convention)·syntax. | 130 | Convention)·syntax. |
147 | Examples: | ||
148 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
149 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_n\x8nu\x8um\x8m_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_n\x8nu\x8um\x8m_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
151 | int·al_get_path_num_components(const·ALLEGRO_PATH·*path) | 132 | int·al_get_path_num_components(const·ALLEGRO_PATH·*path) |
152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
153 | Return·the·number·of·directory·components·in·a·path. | 134 | Return·the·number·of·directory·components·in·a·path. |
154 | The·directory·components·do·not·include·the·final·part·of·a·path·(the | 135 | The·directory·components·do·not·include·the·final·part·of·a·path·(the |
155 | filename). | 136 | filename). |
156 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t | 137 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t |
157 | Examples: | ||
158 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
159 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_c\x8co\x8om\x8mp\x8po\x8on\x8ne\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
161 | const·char·*al_get_path_component(const·ALLEGRO_PATH·*path,·int·i) | 139 | const·char·*al_get_path_component(const·ALLEGRO_PATH·*path,·int·i) |
162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
163 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index | 141 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index |
164 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path | 142 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path |
165 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. | 143 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. |
166 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l | 144 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l |
167 | Examples: | ||
168 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
169 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
170 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
172 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) | 146 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) |
173 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 147 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
174 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory | 148 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory |
175 | components. | 149 | components. |
176 | Examples: | ||
177 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
178 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fi\x8il\x8le\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fi\x8il\x8le\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
179 | const·char·*al_get_path_filename(const·ALLEGRO_PATH·*path) | 151 | const·char·*al_get_path_filename(const·ALLEGRO_PATH·*path) |
180 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
181 | Return·the·filename·part·of·the·path,·or·the·empty·string·if·there·is·none. | 153 | Return·the·filename·part·of·the·path,·or·the·empty·string·if·there·is·none. |
182 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 154 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
183 | modified·in·any·way,·or·until·the·path·is·destroyed. | 155 | modified·in·any·way,·or·until·the·path·is·destroyed. |
184 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8b_\x8a_\x8s_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t | 156 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8b_\x8a_\x8s_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t |
185 | Examples: | ||
186 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
187 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
188 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_b\x8ba\x8as\x8se\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 157 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_b\x8ba\x8as\x8se\x8en\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
189 | const·char·*al_get_path_basename(const·ALLEGRO_PATH·*path) | 158 | const·char·*al_get_path_basename(const·ALLEGRO_PATH·*path) |
190 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 159 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
191 | Return·the·basename,·i.e. filename·with·the·extension·removed.·If·the·filename | 160 | Return·the·basename,·i.e. filename·with·the·extension·removed.·If·the·filename |
192 | doesn’t·have·an·extension,·the·whole·filename·is·the·basename.·If·there·is·no | 161 | doesn’t·have·an·extension,·the·whole·filename·is·the·basename.·If·there·is·no |
193 | filename·part·then·the·empty·string·is·returned. | 162 | filename·part·then·the·empty·string·is·returned. |
194 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 163 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
195 | modified·in·any·way,·or·until·the·path·is·destroyed. | 164 | modified·in·any·way,·or·until·the·path·is·destroyed. |
196 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8i_\x8l_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n | 165 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8i_\x8l_\x8e_\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n |
197 | Examples: | ||
198 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
199 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 166 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
200 | const·char·*al_get_path_extension(const·ALLEGRO_PATH·*path) | 167 | const·char·*al_get_path_extension(const·ALLEGRO_PATH·*path) |
201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 168 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
202 | Return·a·pointer·to·the·start·of·the·extension·of·the·filename,·i.e. everything | 169 | Return·a·pointer·to·the·start·of·the·extension·of·the·filename,·i.e. everything |
203 | from·the·final·dot·(‘.’)·character·onwards.·If·no·dot·exists,·returns·an·empty | 170 | from·the·final·dot·(‘.’)·character·onwards.·If·no·dot·exists,·returns·an·empty |
204 | string. | 171 | string. |
205 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is | 172 | The·returned·pointer·is·valid·only·until·the·filename·part·of·the·path·is |
Max diff block lines reached; 6795/14398 bytes (47.19%) of diff not shown. |
Offset 326, 17 lines modified | Offset 326, 17 lines modified | ||
326 | </blockquote> | 326 | </blockquote> |
327 | <p>Since:·5.1.2</p> | 327 | <p>Since:·5.1.2</p> |
328 | <p>Examples:</p> | 328 | <p>Examples:</p> |
329 | <ul> | 329 | <ul> |
330 | <li><a | 330 | <li><a |
331 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L19">common.c</a></li> | 331 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L19">common.c</a></li> |
332 | <li><a | 332 | <li><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L5">ex_android.c</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L222">ex_native_filechooser.c</a></li> | 333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L222">ex_native_filechooser.c</a></li> |
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L5">ex_android.c</a></li> | ||
336 | </ul> | 336 | </ul> |
337 | <h2 | 337 | <h2 |
338 | id="al_android_set_apk_fs_interface">al_android_set_apk_fs_interface</h2> | 338 | id="al_android_set_apk_fs_interface">al_android_set_apk_fs_interface</h2> |
339 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_android_set_apk_fs_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 339 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_android_set_apk_fs_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
340 | <p><a | 340 | <p><a |
341 | href="https://github.com/liballeg/allegro5/blob/master/src/android/android_apk_fs.c#L302">Source | 341 | href="https://github.com/liballeg/allegro5/blob/master/src/android/android_apk_fs.c#L302">Source |
342 | Code</a></p> | 342 | Code</a></p> |
Offset 134, 16 lines modified | Offset 134, 16 lines modified | ||
134 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·that·makes·all·future | 134 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·that·makes·all·future |
135 | calls·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·read·from·the·applicatons’s·APK·file. | 135 | calls·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·read·from·the·applicatons’s·APK·file. |
136 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Currently,·access·to·the·APK·file·after·calling·this·function | 136 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Currently,·access·to·the·APK·file·after·calling·this·function |
137 | ·····is·read·only. | 137 | ·····is·read·only. |
138 | Since:·5.1.2 | 138 | Since:·5.1.2 |
139 | Examples: | 139 | Examples: |
140 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 140 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c |
141 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
142 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 141 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
142 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
143 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8an\x8nd\x8dr\x8ro\x8oi\x8id\x8d_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pk\x8k_\x8_f\x8fs\x8s_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 143 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8an\x8nd\x8dr\x8ro\x8oi\x8id\x8d_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pk\x8k_\x8_f\x8fs\x8s_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
144 | void·al_android_set_apk_fs_interface(void) | 144 | void·al_android_set_apk_fs_interface(void) |
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
146 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·which·allows·working | 146 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·which·allows·working |
147 | within·the·APK·filesystem.·The·filesystem·root·is·your·assets·directory·and | 147 | within·the·APK·filesystem.·The·filesystem·root·is·your·assets·directory·and |
148 | there·is·read-only·access·to·all·files·within. | 148 | there·is·read-only·access·to·all·files·within. |
149 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Some·things·like·querying·file·size·or·attributes·are·not | 149 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Some·things·like·querying·file·size·or·attributes·are·not |
Offset 312, 23 lines modified | Offset 312, 14 lines modified | ||
312 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, | 312 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, |
313 | <a | 313 | <a |
314 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, | 314 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, |
315 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a | 315 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a |
316 | href="shader.html#al_use_shader">al_use_shader</a>,·<a | 316 | href="shader.html#al_use_shader">al_use_shader</a>,·<a |
317 | href="shader.html#al_destroy_shader">al_destroy_shader</a>,·<a | 317 | href="shader.html#al_destroy_shader">al_destroy_shader</a>,·<a |
318 | href="shader.html#al_get_shader_platform">al_get_shader_platform</a></p> | 318 | href="shader.html#al_get_shader_platform">al_get_shader_platform</a></p> |
319 | <p>Examples:</p> | ||
320 | <ul> | ||
321 | <li><a | ||
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L87">ex_shader.cpp</a></li> | ||
323 | <li><a | ||
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L86">ex_shader_target.c</a></li> | ||
325 | <li><a | ||
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L117">ex_prim_shader.c</a></li> | ||
327 | </ul> | ||
328 | <h1·id="al_attach_shader_source">al_attach_shader_source</h1> | 319 | <h1·id="al_attach_shader_source">al_attach_shader_source</h1> |
329 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_attach_shader_source<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">,</span>·ALLEGRO_SHADER_TYPE·type<span·class="op">,</span></span> | 320 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_attach_shader_source<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">,</span>·ALLEGRO_SHADER_TYPE·type<span·class="op">,</span></span> |
330 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> | 321 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>source<span·class="op">)</span></span></code></pre></div> |
331 | <p><a | 322 | <p><a |
332 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L102">Source | 323 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L102">Source |
333 | Code</a></p> | 324 | Code</a></p> |
334 | <p>Attaches·the·shader’s·source·code·to·the·shader·object·and·compiles | 325 | <p>Attaches·the·shader’s·source·code·to·the·shader·object·and·compiles |
Offset 466, 23 lines modified | Offset 457, 14 lines modified | ||
466 | <p>Since:·5.1.0</p> | 457 | <p>Since:·5.1.0</p> |
467 | <p>See·also:·<a | 458 | <p>See·also:·<a |
468 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, | 459 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, |
469 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a | 460 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a |
470 | href="shader.html#al_get_default_shader_source">al_get_default_shader_source</a>, | 461 | href="shader.html#al_get_default_shader_source">al_get_default_shader_source</a>, |
471 | <a·href="shader.html#al_get_shader_log">al_get_shader_log</a>,·<a | 462 | <a·href="shader.html#al_get_shader_log">al_get_shader_log</a>,·<a |
472 | href="primitives.html#allegro_prim_attr">ALLEGRO_PRIM_ATTR</a></p> | 463 | href="primitives.html#allegro_prim_attr">ALLEGRO_PRIM_ATTR</a></p> |
473 | <p>Examples:</p> | ||
474 | <ul> | ||
475 | <li><a | ||
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L97">ex_shader.cpp</a></li> | ||
477 | <li><a | ||
478 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L94">ex_shader_target.c</a></li> | ||
479 | <li><a | ||
480 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L132">ex_prim_shader.c</a></li> | ||
481 | </ul> | ||
482 | <h1·id="al_attach_shader_source_file">al_attach_shader_source_file</h1> | 464 | <h1·id="al_attach_shader_source_file">al_attach_shader_source_file</h1> |
483 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_attach_shader_source_file<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">,</span></span> | 465 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_attach_shader_source_file<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">,</span></span> |
484 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_SHADER_TYPE·type<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | 466 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_SHADER_TYPE·type<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> |
485 | <p><a | 467 | <p><a |
486 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L111">Source | 468 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L111">Source |
487 | Code</a></p> | 469 | Code</a></p> |
488 | <p>Like·<a | 470 | <p>Like·<a |
Offset 492, 23 lines modified | Offset 474, 14 lines modified | ||
492 | log·is·updated.·The·error·log·can·be·retrieved·with·<a | 474 | log·is·updated.·The·error·log·can·be·retrieved·with·<a |
493 | href="shader.html#al_get_shader_log">al_get_shader_log</a>.</p> | 475 | href="shader.html#al_get_shader_log">al_get_shader_log</a>.</p> |
494 | <p>Since:·5.1.0</p> | 476 | <p>Since:·5.1.0</p> |
495 | <p>See·also:·<a | 477 | <p>See·also:·<a |
496 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, | 478 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, |
497 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a | 479 | <a·href="shader.html#al_build_shader">al_build_shader</a>,·<a |
498 | href="shader.html#al_get_shader_log">al_get_shader_log</a></p> | 480 | href="shader.html#al_get_shader_log">al_get_shader_log</a></p> |
499 | <p>Examples:</p> | ||
500 | <ul> | ||
501 | <li><a | ||
502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L97">ex_shader.cpp</a></li> | ||
503 | <li><a | ||
504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L94">ex_shader_target.c</a></li> | ||
505 | <li><a | ||
506 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L132">ex_prim_shader.c</a></li> | ||
507 | </ul> | ||
508 | <h1·id="al_build_shader">al_build_shader</h1> | 481 | <h1·id="al_build_shader">al_build_shader</h1> |
509 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_build_shader<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> | 482 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_build_shader<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> |
510 | <p><a | 483 | <p><a |
511 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L144">Source | 484 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L144">Source |
512 | Code</a></p> | 485 | Code</a></p> |
513 | <p>This·is·required·before·the·shader·can·be·used·with·<a | 486 | <p>This·is·required·before·the·shader·can·be·used·with·<a |
514 | href="shader.html#al_use_shader">al_use_shader</a>.·It·should·be·called | 487 | href="shader.html#al_use_shader">al_use_shader</a>.·It·should·be·called |
Offset 523, 23 lines modified | Offset 496, 14 lines modified | ||
523 | <p><em>Note:</em>·If·you·are·using·the·ALLEGRO_PROGRAMMABLE_PIPELINE | 496 | <p><em>Note:</em>·If·you·are·using·the·ALLEGRO_PROGRAMMABLE_PIPELINE |
524 | flag,·then·you·must·specify·both·a·pixel·and·a·vertex·shader·sources·for | 497 | flag,·then·you·must·specify·both·a·pixel·and·a·vertex·shader·sources·for |
525 | anything·to·be·rendered.</p> | 498 | anything·to·be·rendered.</p> |
526 | </blockquote> | 499 | </blockquote> |
527 | <p>Since:·5.1.6</p> | 500 | <p>Since:·5.1.6</p> |
528 | <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a>,·<a | 501 | <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a>,·<a |
529 | href="shader.html#al_get_shader_log">al_get_shader_log</a></p> | 502 | href="shader.html#al_get_shader_log">al_get_shader_log</a></p> |
530 | <p>Examples:</p> | ||
531 | <ul> | ||
532 | <li><a | ||
533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L106">ex_shader.cpp</a></li> | ||
534 | <li><a | ||
535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L102">ex_shader_target.c</a></li> | ||
536 | <li><a | ||
537 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L141">ex_prim_shader.c</a></li> | ||
538 | </ul> | ||
539 | <h1·id="al_get_shader_log">al_get_shader_log</h1> | 503 | <h1·id="al_get_shader_log">al_get_shader_log</h1> |
540 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_shader_log<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> | 504 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_shader_log<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> |
541 | <p><a | 505 | <p><a |
542 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L152">Source | 506 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L152">Source |
543 | Code</a></p> | 507 | Code</a></p> |
544 | <p>Return·a·read-only·string·containing·the·information·log·for·a·shader | 508 | <p>Return·a·read-only·string·containing·the·information·log·for·a·shader |
545 | program.·The·log·is·updated·by·certain·functions,·such·as·<a | 509 | program.·The·log·is·updated·by·certain·functions,·such·as·<a |
Offset 549, 42 lines modified | Offset 513, 24 lines modified | ||
549 | <p>This·function·never·returns·NULL.</p> | 513 | <p>This·function·never·returns·NULL.</p> |
550 | <p>Since:·5.1.0</p> | 514 | <p>Since:·5.1.0</p> |
551 | <p>See·also:·<a | 515 | <p>See·also:·<a |
552 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, | 516 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a>, |
553 | <a | 517 | <a |
554 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, | 518 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a>, |
555 | <a·href="shader.html#al_build_shader">al_build_shader</a></p> | 519 | <a·href="shader.html#al_build_shader">al_build_shader</a></p> |
556 | <p>Examples:</p> | ||
557 | <ul> | ||
558 | <li><a | ||
559 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L99">ex_shader.cpp</a></li> | ||
560 | <li><a | ||
561 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L96">ex_shader_target.c</a></li> | ||
562 | <li><a | ||
563 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L134">ex_prim_shader.c</a></li> | ||
564 | </ul> | ||
565 | <h1·id="al_get_shader_platform">al_get_shader_platform</h1> | 520 | <h1·id="al_get_shader_platform">al_get_shader_platform</h1> |
566 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_SHADER_PLATFORM·al_get_shader_platform<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> | 521 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_SHADER_PLATFORM·al_get_shader_platform<span·class="op">(</span>ALLEGRO_SHADER·<span·class="op">*</span>shader<span·class="op">)</span></span></code></pre></div> |
567 | <p><a | 522 | <p><a |
568 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L161">Source | 523 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L161">Source |
569 | Code</a></p> | 524 | Code</a></p> |
570 | <p>Returns·the·platform·the·shader·was·created·with·(either | 525 | <p>Returns·the·platform·the·shader·was·created·with·(either |
571 | ALLEGRO_SHADER_HLSL·or·ALLEGRO_SHADER_GLSL).</p> | 526 | ALLEGRO_SHADER_HLSL·or·ALLEGRO_SHADER_GLSL).</p> |
572 | <p>Since:·5.1.6</p> | 527 | <p>Since:·5.1.6</p> |
573 | <p>See·also:·<a | 528 | <p>See·also:·<a |
574 | href="shader.html#al_create_shader">al_create_shader</a></p> | 529 | href="shader.html#al_create_shader">al_create_shader</a></p> |
575 | <p>Examples:</p> | ||
576 | <ul> | ||
577 | <li><a | ||
578 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L42">ex_shader.cpp</a></li> | ||
579 | <li><a | ||
Max diff block lines reached; 8915/16835 bytes (52.96%) of diff not shown. |
Offset 127, 18 lines modified | Offset 127, 14 lines modified | ||
127 | for·the·display·currently·targeted·by·the·calling·thread;·there·must·be·such·a | 127 | for·the·display·currently·targeted·by·the·calling·thread;·there·must·be·such·a |
128 | display.·It·will·create·a·GLSL·shader·for·an·OpenGL·display,·and·a·HLSL·shader | 128 | display.·It·will·create·a·GLSL·shader·for·an·OpenGL·display,·and·a·HLSL·shader |
129 | for·a·Direct3D·display. | 129 | for·a·Direct3D·display. |
130 | Returns·the·shader·object·on·success.·Otherwise,·returns·NULL. | 130 | Returns·the·shader·object·on·success.·Otherwise,·returns·NULL. |
131 | Since:·5.1.0 | 131 | Since:·5.1.0 |
132 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e, | 132 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e, |
133 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8p_\x8l_\x8a_\x8t_\x8f_\x8o_\x8r_\x8m | 133 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8p_\x8l_\x8a_\x8t_\x8f_\x8o_\x8r_\x8m |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
136 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8at\x8tt\x8ta\x8ac\x8ch\x8h_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 134 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8at\x8tt\x8ta\x8ac\x8ch\x8h_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
139 | bool·al_attach_shader_source(ALLEGRO_SHADER·*shader,·ALLEGRO_SHADER_TYPE·type, | 135 | bool·al_attach_shader_source(ALLEGRO_SHADER·*shader,·ALLEGRO_SHADER_TYPE·type, |
140 | ····const·char·*source) | 136 | ····const·char·*source) |
141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
142 | Attaches·the·shader’s·source·code·to·the·shader·object·and·compiles·it.·Passing | 138 | Attaches·the·shader’s·source·code·to·the·shader·object·and·compiles·it.·Passing |
143 | NULL·deletes·the·underlying·(OpenGL·or·DirectX)·shader.·See·also | 139 | NULL·deletes·the·underlying·(OpenGL·or·DirectX)·shader.·See·also |
144 | _\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·if·you·prefer·to·obtain·your·shader·source·from·an | 140 | _\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·if·you·prefer·to·obtain·your·shader·source·from·an |
Offset 217, 89 lines modified | Offset 213, 65 lines modified | ||
217 | Examine·the·output·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·for·an·example·of·how·to·use | 213 | Examine·the·output·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·for·an·example·of·how·to·use |
218 | the·above·uniforms·and·attributes. | 214 | the·above·uniforms·and·attributes. |
219 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is | 215 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is |
220 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. | 216 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. |
221 | Since:·5.1.0 | 217 | Since:·5.1.0 |
222 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r, | 218 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r, |
223 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8A_\x8T_\x8T_\x8R | 219 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8A_\x8T_\x8T_\x8R |
224 | Examples: | ||
225 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
226 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
227 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
228 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8at\x8tt\x8ta\x8ac\x8ch\x8h_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 220 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8at\x8tt\x8ta\x8ac\x8ch\x8h_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
229 | bool·al_attach_shader_source_file(ALLEGRO_SHADER·*shader, | 221 | bool·al_attach_shader_source_file(ALLEGRO_SHADER·*shader, |
230 | ···ALLEGRO_SHADER_TYPE·type,·const·char·*filename) | 222 | ···ALLEGRO_SHADER_TYPE·type,·const·char·*filename) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Like·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·but·reads·the·source·code·for·the·shader·from·the | 224 | Like·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·but·reads·the·source·code·for·the·shader·from·the |
233 | named·file. | 225 | named·file. |
234 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is | 226 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is |
235 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. | 227 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. |
236 | Since:·5.1.0 | 228 | Since:·5.1.0 |
237 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g | 229 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g |
238 | Examples: | ||
239 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
240 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
241 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
242 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 230 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
243 | bool·al_build_shader(ALLEGRO_SHADER·*shader) | 231 | bool·al_build_shader(ALLEGRO_SHADER·*shader) |
244 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 232 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
245 | This·is·required·before·the·shader·can·be·used·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r.·It·should·be | 233 | This·is·required·before·the·shader·can·be·used·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r.·It·should·be |
246 | called·after·successfully·attaching·the·pixel·and/or·vertex·shaders·with | 234 | called·after·successfully·attaching·the·pixel·and/or·vertex·shaders·with |
247 | _\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·or·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e. | 235 | _\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·or·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e. |
248 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is | 236 | Returns·true·on·success·and·false·on·error,·in·which·case·the·error·log·is |
249 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. | 237 | updated.·The·error·log·can·be·retrieved·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g. |
250 | ·····N\x8No\x8ot\x8te\x8e:\x8:·If·you·are·using·the·ALLEGRO_PROGRAMMABLE_PIPELINE·flag,·then | 238 | ·····N\x8No\x8ot\x8te\x8e:\x8:·If·you·are·using·the·ALLEGRO_PROGRAMMABLE_PIPELINE·flag,·then |
251 | ·····you·must·specify·both·a·pixel·and·a·vertex·shader·sources·for | 239 | ·····you·must·specify·both·a·pixel·and·a·vertex·shader·sources·for |
252 | ·····anything·to·be·rendered. | 240 | ·····anything·to·be·rendered. |
253 | Since:·5.1.6 | 241 | Since:·5.1.6 |
254 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g | 242 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8l_\x8o_\x8g |
255 | Examples: | ||
256 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
257 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
258 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
259 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 243 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
260 | const·char·*al_get_shader_log(ALLEGRO_SHADER·*shader) | 244 | const·char·*al_get_shader_log(ALLEGRO_SHADER·*shader) |
261 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
262 | Return·a·read-only·string·containing·the·information·log·for·a·shader·program. | 246 | Return·a·read-only·string·containing·the·information·log·for·a·shader·program. |
263 | The·log·is·updated·by·certain·functions,·such·as·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·or | 247 | The·log·is·updated·by·certain·functions,·such·as·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·or |
264 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r·when·there·is·an·error. | 248 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r·when·there·is·an·error. |
265 | This·function·never·returns·NULL. | 249 | This·function·never·returns·NULL. |
266 | Since:·5.1.0 | 250 | Since:·5.1.0 |
267 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e, | 251 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e, |
268 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 252 | _\x8a_\x8l_\x8__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
269 | Examples: | ||
270 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
271 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
272 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
273 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_p\x8pl\x8la\x8at\x8tf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 253 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_p\x8pl\x8la\x8at\x8tf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
274 | ALLEGRO_SHADER_PLATFORM·al_get_shader_platform(ALLEGRO_SHADER·*shader) | 254 | ALLEGRO_SHADER_PLATFORM·al_get_shader_platform(ALLEGRO_SHADER·*shader) |
275 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
276 | Returns·the·platform·the·shader·was·created·with·(either·ALLEGRO_SHADER_HLSL·or | 256 | Returns·the·platform·the·shader·was·created·with·(either·ALLEGRO_SHADER_HLSL·or |
277 | ALLEGRO_SHADER_GLSL). | 257 | ALLEGRO_SHADER_GLSL). |
278 | Since:·5.1.6 | 258 | Since:·5.1.6 |
279 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 259 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
280 | Examples: | ||
281 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
282 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
283 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
284 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 260 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
285 | bool·al_use_shader(ALLEGRO_SHADER·*shader) | 261 | bool·al_use_shader(ALLEGRO_SHADER·*shader) |
286 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 262 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
287 | Uses·the·shader·for·subsequent·drawing·operations·on·the·current·target·bitmap. | 263 | Uses·the·shader·for·subsequent·drawing·operations·on·the·current·target·bitmap. |
288 | Pass·NULL·to·stop·using·any·shader·on·the·current·target·bitmap. | 264 | Pass·NULL·to·stop·using·any·shader·on·the·current·target·bitmap. |
289 | Returns·true·on·success.·Otherwise·returns·false,·e.g. because·the·shader·is | 265 | Returns·true·on·success.·Otherwise·returns·false,·e.g. because·the·shader·is |
290 | incompatible·with·the·target·bitmap. | 266 | incompatible·with·the·target·bitmap. |
291 | Since:·5.1.6 | 267 | Since:·5.1.6 |
292 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8a_\x8t_\x8r_\x8i_\x8x, | 268 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8a_\x8t_\x8r_\x8i_\x8x, |
293 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8b_\x8o_\x8o_\x8l, | 269 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8b_\x8o_\x8o_\x8l, |
294 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 270 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
295 | Examples: | ||
296 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
297 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
298 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
299 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 271 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
300 | ALLEGRO_SHADER·*al_get_current_shader() | 272 | ALLEGRO_SHADER·*al_get_current_shader() |
301 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 273 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
302 | Return·the·shader·of·the·target·bitmap,·or·NULL·if·one·isn’t·being·used. | 274 | Return·the·shader·of·the·target·bitmap,·or·NULL·if·one·isn’t·being·used. |
303 | Since:·5.2.9 | 275 | Since:·5.2.9 |
304 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 276 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
305 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 277 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 309, 18 lines modified | Offset 281, 14 lines modified | ||
309 | stop·using·the·shader.·In·multi-threaded·programs,·be·careful·that·no·such | 281 | stop·using·the·shader.·In·multi-threaded·programs,·be·careful·that·no·such |
310 | bitmaps·are·being·accessed·by·other·threads·at·the·time. | 282 | bitmaps·are·being·accessed·by·other·threads·at·the·time. |
311 | As·a·convenience,·if·the·target·bitmap·of·the·calling·thread·is·using·the | 283 | As·a·convenience,·if·the·target·bitmap·of·the·calling·thread·is·using·the |
312 | shader·then·the·shader·is·implicitly·unused·before·being·destroyed. | 284 | shader·then·the·shader·is·implicitly·unused·before·being·destroyed. |
313 | This·function·does·nothing·if·the·shader·argument·is·NULL. | 285 | This·function·does·nothing·if·the·shader·argument·is·NULL. |
314 | Since:·5.1.0 | 286 | Since:·5.1.0 |
315 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 287 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
316 | Examples: | ||
317 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
318 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
319 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
320 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 288 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
321 | bool·al_set_shader_sampler(const·char·*name, | 289 | bool·al_set_shader_sampler(const·char·*name, |
322 | ···ALLEGRO_BITMAP·*bitmap,·int·unit) | 290 | ···ALLEGRO_BITMAP·*bitmap,·int·unit) |
323 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 291 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
324 | Sets·a·texture·sampler·uniform·and·texture·unit·of·the·current·target·bitmap’s | 292 | Sets·a·texture·sampler·uniform·and·texture·unit·of·the·current·target·bitmap’s |
325 | shader.·The·given·bitmap·must·be·a·video·bitmap. | 293 | shader.·The·given·bitmap·must·be·a·video·bitmap. |
326 | Different·samplers·should·use·different·units.·The·bitmap·passed·to·Allegro’s | 294 | Different·samplers·should·use·different·units.·The·bitmap·passed·to·Allegro’s |
Max diff block lines reached; 3589/12094 bytes (29.68%) of diff not shown. |
Offset 237, 23 lines modified | Offset 237, 14 lines modified | ||
237 | <p><a | 237 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L762">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L762">Source |
239 | Code</a></p> | 239 | Code</a></p> |
240 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a | 240 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a |
241 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> | 241 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> |
242 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a | 242 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a |
243 | href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> | 243 | href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> |
244 | <p>Examples:</p> | ||
245 | <ul> | ||
246 | <li><a | ||
247 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L96">ex_blend_bench.c</a></li> | ||
248 | <li><a | ||
249 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L316">ex_blend2.cpp</a></li> | ||
250 | <li><a | ||
251 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L33">nihgui.cpp</a></li> | ||
252 | </ul> | ||
253 | <h1·id="al_store_state">al_store_state</h1> | 244 | <h1·id="al_store_state">al_store_state</h1> |
254 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_store_state<span·class="op">(</span>ALLEGRO_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span></code></pre></div> | 245 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_store_state<span·class="op">(</span>ALLEGRO_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span></code></pre></div> |
255 | <p><a | 246 | <p><a |
256 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L692">Source | 247 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L692">Source |
257 | Code</a></p> | 248 | Code</a></p> |
258 | <p>Stores·part·of·the·state·of·the·current·thread·in·the·given·<a | 249 | <p>Stores·part·of·the·state·of·the·current·thread·in·the·given·<a |
259 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.·The·flags | 250 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.·The·flags |
Offset 272, 51 lines modified | Offset 263, 30 lines modified | ||
272 | <li>ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface</li> | 263 | <li>ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface</li> |
273 | <li>ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS | 264 | <li>ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS |
274 | and·ALLEGRO_STATE_TARGET_BITMAP</li> | 265 | and·ALLEGRO_STATE_TARGET_BITMAP</li> |
275 | <li>ALLEGRO_STATE_ALL·-·all·of·the·above</li> | 266 | <li>ALLEGRO_STATE_ALL·-·all·of·the·above</li> |
276 | </ul> | 267 | </ul> |
277 | <p>See·also:·<a·href="state.html#al_restore_state">al_restore_state</a>, | 268 | <p>See·also:·<a·href="state.html#al_restore_state">al_restore_state</a>, |
278 | <a·href="state.html#allegro_state">ALLEGRO_STATE</a></p> | 269 | <a·href="state.html#allegro_state">ALLEGRO_STATE</a></p> |
279 | <p>Examples:</p> | ||
280 | <ul> | ||
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L91">ex_blend_bench.c</a></li> | ||
283 | <li><a | ||
284 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L299">ex_blend2.cpp</a></li> | ||
285 | <li><a | ||
286 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L29">nihgui.cpp</a></li> | ||
287 | </ul> | ||
288 | <h1·id="al_get_errno">al_get_errno</h1> | 270 | <h1·id="al_get_errno">al_get_errno</h1> |
289 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_errno<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 271 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_errno<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
290 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>GETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·<span·class="dv">0</span><span·class="op">)</span></span></code></pre></div> | 272 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>GETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·<span·class="dv">0</span><span·class="op">)</span></span></code></pre></div> |
291 | <p><a | 273 | <p><a |
292 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L928">Source | 274 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L928">Source |
293 | Code</a></p> | 275 | Code</a></p> |
294 | <p>Some·Allegro·functions·will·set·an·error·number·as·well·as·returning | 276 | <p>Some·Allegro·functions·will·set·an·error·number·as·well·as·returning |
295 | an·error·code.·Call·this·function·to·retrieve·the·last·error·number·set | 277 | an·error·code.·Call·this·function·to·retrieve·the·last·error·number·set |
296 | for·the·calling·thread.</p> | 278 | for·the·calling·thread.</p> |
297 | <p>Examples:</p> | ||
298 | <ul> | ||
299 | <li><a | ||
300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L477">ex_utf8.c</a></li> | ||
301 | </ul> | ||
302 | <h1·id="al_set_errno">al_set_errno</h1> | 279 | <h1·id="al_set_errno">al_set_errno</h1> |
303 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_errno<span·class="op">(</span><span·class="dt">int</span>·errnum<span·class="op">)</span></span> | 280 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_errno<span·class="op">(</span><span·class="dt">int</span>·errnum<span·class="op">)</span></span> |
304 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>SETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·errnum<span·class="op">)</span></span></code></pre></div> | 281 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>SETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·errnum<span·class="op">)</span></span></code></pre></div> |
305 | <p><a | 282 | <p><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source | 283 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source |
307 | Code</a></p> | 284 | Code</a></p> |
308 | <p>Set·the·error·number·for·the·calling·thread.</p> | 285 | <p>Set·the·error·number·for·the·calling·thread.</p> |
309 | <p>Examples:</p> | ||
310 | <ul> | ||
311 | <li><a | ||
312 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L250">ex_curl.c</a></li> | ||
313 | <li><a | ||
314 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L475">ex_utf8.c</a></li> | ||
315 | </ul> | ||
316 | <p·class="timestamp"> | 286 | <p·class="timestamp"> |
317 | Allegro·version·5.2.10 | 287 | Allegro·version·5.2.10 |
318 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 288 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
319 | </p> | 289 | </p> |
320 | </div> | 290 | </div> |
321 | </body> | 291 | </body> |
322 | </html> | 292 | </html> |
Offset 87, 18 lines modified | Offset 87, 14 lines modified | ||
87 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. | 87 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. |
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 89 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
91 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 91 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
92 | object. | 92 | object. |
93 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 93 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
94 | Examples: | ||
95 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
96 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
97 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 94 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
99 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) | 95 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) |
100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
101 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 97 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
102 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: | 98 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: |
103 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, | 99 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, |
104 | ······new_display_refresh_rate,·new_display_flags | 100 | ······new_display_refresh_rate,·new_display_flags |
Offset 109, 29 lines modified | Offset 105, 20 lines modified | ||
109 | ····*·ALLEGRO_STATE_TRANSFORM·-·current_transformation | 105 | ····*·ALLEGRO_STATE_TRANSFORM·-·current_transformation |
110 | ····*·ALLEGRO_STATE_PROJECTION_TRANSFORM·-·current_projection_transformation | 106 | ····*·ALLEGRO_STATE_PROJECTION_TRANSFORM·-·current_projection_transformation |
111 | ····*·ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface | 107 | ····*·ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface |
112 | ····*·ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS·and | 108 | ····*·ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS·and |
113 | ······ALLEGRO_STATE_TARGET_BITMAP | 109 | ······ALLEGRO_STATE_TARGET_BITMAP |
114 | ····*·ALLEGRO_STATE_ALL·-·all·of·the·above | 110 | ····*·ALLEGRO_STATE_ALL·-·all·of·the·above |
115 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 111 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
116 | Examples: | ||
117 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
118 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
119 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
120 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 112 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
121 | int·al_get_errno(void) | 113 | int·al_get_errno(void) |
122 | GETTER(allegro_errno,·0) | 114 | GETTER(allegro_errno,·0) |
123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
124 | Some·Allegro·functions·will·set·an·error·number·as·well·as·returning·an·error | 116 | Some·Allegro·functions·will·set·an·error·number·as·well·as·returning·an·error |
125 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling | 117 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling |
126 | thread. | 118 | thread. |
127 | Examples: | ||
128 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
129 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
130 | void·al_set_errno(int·errnum) | 120 | void·al_set_errno(int·errnum) |
131 | SETTER(allegro_errno,·errnum) | 121 | SETTER(allegro_errno,·errnum) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | Set·the·error·number·for·the·calling·thread. | 123 | Set·the·error·number·for·the·calling·thread. |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | ||
136 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
137 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 124 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 259, 34 lines modified | Offset 259, 20 lines modified | ||
259 | Code</a></p> | 259 | Code</a></p> |
260 | <p>Closes·down·the·Allegro·system.</p> | 260 | <p>Closes·down·the·Allegro·system.</p> |
261 | <blockquote> | 261 | <blockquote> |
262 | <p>Note:·al_uninstall_system()·can·be·called·without·a·corresponding·<a | 262 | <p>Note:·al_uninstall_system()·can·be·called·without·a·corresponding·<a |
263 | href="system.html#al_install_system">al_install_system</a>·call, | 263 | href="system.html#al_install_system">al_install_system</a>·call, |
264 | e.g. from·atexit().</p> | 264 | e.g. from·atexit().</p> |
265 | </blockquote> | 265 | </blockquote> |
266 | <p>Examples:</p> | ||
267 | <ul> | ||
268 | <li><a | ||
269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L128">ex_opengl_pixel_shader.c</a></li> | ||
270 | <li><a | ||
271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L85">ex_icon2.c</a></li> | ||
272 | <li><a | ||
273 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon.c#L74">ex_icon.c</a></li> | ||
274 | </ul> | ||
275 | <h1·id="al_is_system_installed">al_is_system_installed</h1> | 266 | <h1·id="al_is_system_installed">al_is_system_installed</h1> |
276 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 267 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
277 | <p><a | 268 | <p><a |
278 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L346">Source | 269 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L346">Source |
279 | Code</a></p> | 270 | Code</a></p> |
280 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> | 271 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> |
281 | <p>Examples:</p> | ||
282 | <ul> | ||
283 | <li><a | ||
284 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L40">common.c</a></li> | ||
285 | </ul> | ||
286 | <h1·id="al_get_allegro_version">al_get_allegro_version</h1> | 272 | <h1·id="al_get_allegro_version">al_get_allegro_version</h1> |
287 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 273 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
288 | <p><a | 274 | <p><a |
289 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L27">Source | 275 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L27">Source |
290 | Code</a></p> | 276 | Code</a></p> |
291 | <p>Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a | 277 | <p>Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a |
292 | single·integer·as·groups·of·8·bits·in·the·form | 278 | single·integer·as·groups·of·8·bits·in·the·form |
Offset 372, 23 lines modified | Offset 358, 14 lines modified | ||
372 | </dl> | 358 | </dl> |
373 | <p>Returns·NULL·on·failure.·The·returned·path·should·be·freed·with·<a | 359 | <p>Returns·NULL·on·failure.·The·returned·path·should·be·freed·with·<a |
374 | href="path.html#al_destroy_path">al_destroy_path</a>.</p> | 360 | href="path.html#al_destroy_path">al_destroy_path</a>.</p> |
375 | <p>See·also:·<a·href="system.html#al_set_app_name">al_set_app_name</a>, | 361 | <p>See·also:·<a·href="system.html#al_set_app_name">al_set_app_name</a>, |
376 | <a·href="system.html#al_set_org_name">al_set_org_name</a>,·<a | 362 | <a·href="system.html#al_set_org_name">al_set_org_name</a>,·<a |
377 | href="path.html#al_destroy_path">al_destroy_path</a>,·<a | 363 | href="path.html#al_destroy_path">al_destroy_path</a>,·<a |
378 | href="system.html#al_set_exe_name">al_set_exe_name</a></p> | 364 | href="system.html#al_set_exe_name">al_set_exe_name</a></p> |
379 | <p>Examples:</p> | ||
380 | <ul> | ||
381 | <li><a | ||
382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L11">ex_get_path.c</a></li> | ||
383 | <li><a | ||
384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L172">ex_audio_chain.cpp</a></li> | ||
385 | <li><a | ||
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L87">ex_physfs.c</a></li> | ||
387 | </ul> | ||
388 | <h1·id="al_set_exe_name">al_set_exe_name</h1> | 365 | <h1·id="al_set_exe_name">al_set_exe_name</h1> |
389 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 366 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
390 | <p><a | 367 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source | 368 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source |
392 | Code</a></p> | 369 | Code</a></p> |
393 | <p>This·override·the·executable·name·used·by·<a | 370 | <p>This·override·the·executable·name·used·by·<a |
394 | href="system.html#al_get_standard_path">al_get_standard_path</a>·for | 371 | href="system.html#al_get_standard_path">al_get_standard_path</a>·for |
Offset 396, 57 lines modified | Offset 373, 42 lines modified | ||
396 | <p>One·possibility·where·changing·this·can·be·useful·is·if·you·use·the | 373 | <p>One·possibility·where·changing·this·can·be·useful·is·if·you·use·the |
397 | Python·wrapper.·Allegro·would·then·by·default·think·that·the·system’s | 374 | Python·wrapper.·Allegro·would·then·by·default·think·that·the·system’s |
398 | Python·executable·is·the·current·executable·-·but·you·can·set·it·to·the | 375 | Python·executable·is·the·current·executable·-·but·you·can·set·it·to·the |
399 | .py·file·being·executed·instead.</p> | 376 | .py·file·being·executed·instead.</p> |
400 | <p>Since:·5.0.6,·5.1.0</p> | 377 | <p>Since:·5.0.6,·5.1.0</p> |
401 | <p>See·also:·<a | 378 | <p>See·also:·<a |
402 | href="system.html#al_get_standard_path">al_get_standard_path</a></p> | 379 | href="system.html#al_get_standard_path">al_get_standard_path</a></p> |
403 | <p>Examples:</p> | ||
404 | <ul> | ||
405 | <li><a | ||
406 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L41">ex_get_path.c</a></li> | ||
407 | </ul> | ||
408 | <h1·id="al_set_app_name">al_set_app_name</h1> | 380 | <h1·id="al_set_app_name">al_set_app_name</h1> |
409 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_app_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>app_name<span·class="op">)</span></span></code></pre></div> | 381 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_app_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>app_name<span·class="op">)</span></span></code></pre></div> |
410 | <p><a | 382 | <p><a |
411 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L428">Source | 383 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L428">Source |
412 | Code</a></p> | 384 | Code</a></p> |
413 | <p>Sets·the·global·application·name.</p> | 385 | <p>Sets·the·global·application·name.</p> |
414 | <p>The·application·name·is·used·by·<a | 386 | <p>The·application·name·is·used·by·<a |
415 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to | 387 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to |
416 | build·the·full·path·to·an·application’s·files.</p> | 388 | build·the·full·path·to·an·application’s·files.</p> |
417 | <p>This·function·may·be·called·before·<a | 389 | <p>This·function·may·be·called·before·<a |
418 | href="system.html#al_init">al_init</a>·or·<a | 390 | href="system.html#al_init">al_init</a>·or·<a |
419 | href="system.html#al_install_system">al_install_system</a>.</p> | 391 | href="system.html#al_install_system">al_install_system</a>.</p> |
420 | <p>See·also:·<a·href="system.html#al_get_app_name">al_get_app_name</a>, | 392 | <p>See·also:·<a·href="system.html#al_get_app_name">al_get_app_name</a>, |
421 | <a·href="system.html#al_set_org_name">al_set_org_name</a></p> | 393 | <a·href="system.html#al_set_org_name">al_set_org_name</a></p> |
422 | <p>Examples:</p> | ||
423 | <ul> | ||
424 | <li><a | ||
425 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L28">ex_get_path.c</a></li> | ||
426 | </ul> | ||
427 | <h1·id="al_set_org_name">al_set_org_name</h1> | 394 | <h1·id="al_set_org_name">al_set_org_name</h1> |
428 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_org_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>org_name<span·class="op">)</span></span></code></pre></div> | 395 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_org_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>org_name<span·class="op">)</span></span></code></pre></div> |
429 | <p><a | 396 | <p><a |
430 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L417">Source | 397 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L417">Source |
431 | Code</a></p> | 398 | Code</a></p> |
432 | <p>Sets·the·global·organization·name.</p> | 399 | <p>Sets·the·global·organization·name.</p> |
433 | <p>The·organization·name·is·used·by·<a | 400 | <p>The·organization·name·is·used·by·<a |
434 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to | 401 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to |
435 | build·the·full·path·to·an·application’s·files.</p> | 402 | build·the·full·path·to·an·application’s·files.</p> |
436 | <p>This·function·may·be·called·before·<a | 403 | <p>This·function·may·be·called·before·<a |
437 | href="system.html#al_init">al_init</a>·or·<a | 404 | href="system.html#al_init">al_init</a>·or·<a |
438 | href="system.html#al_install_system">al_install_system</a>.</p> | 405 | href="system.html#al_install_system">al_install_system</a>.</p> |
439 | <p>See·also:·<a·href="system.html#al_get_org_name">al_get_org_name</a>, | 406 | <p>See·also:·<a·href="system.html#al_get_org_name">al_get_org_name</a>, |
440 | <a·href="system.html#al_set_app_name">al_set_app_name</a></p> | 407 | <a·href="system.html#al_set_app_name">al_set_app_name</a></p> |
441 | <p>Examples:</p> | ||
442 | <ul> | ||
443 | <li><a | ||
444 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L25">ex_get_path.c</a></li> | ||
445 | </ul> | ||
446 | <h1·id="al_get_app_name">al_get_app_name</h1> | 408 | <h1·id="al_get_app_name">al_get_app_name</h1> |
447 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_app_name<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 409 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_app_name<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
448 | <p><a | 410 | <p><a |
449 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L452">Source | 411 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L452">Source |
450 | Code</a></p> | 412 | Code</a></p> |
451 | <p>Returns·the·global·application·name·string.</p> | 413 | <p>Returns·the·global·application·name·string.</p> |
452 | <p>See·also:·<a | 414 | <p>See·also:·<a |
Offset 745, 21 lines modified | Offset 707, 14 lines modified | ||
745 | <span·id="cb15-257"><a·href="#cb15-257"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·To·restore·behavior·of·older·code·versions,·specify·this·value·to·the</span></span> | 707 | <span·id="cb15-257"><a·href="#cb15-257"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·To·restore·behavior·of·older·code·versions,·specify·this·value·to·the</span></span> |
746 | <span·id="cb15-258"><a·href="#cb15-258"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Allegro·version·that·had·the·desired·old·behavior.</span></span> | 708 | <span·id="cb15-258"><a·href="#cb15-258"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Allegro·version·that·had·the·desired·old·behavior.</span></span> |
747 | <span·id="cb15-259"><a·href="#cb15-259"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·joystick_version·=·5.2.9</span></span> | 709 | <span·id="cb15-259"><a·href="#cb15-259"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·joystick_version·=·5.2.9</span></span> |
748 | <span·id="cb15-260"><a·href="#cb15-260"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·keyboard_version·=·5.2.9</span></span> | 710 | <span·id="cb15-260"><a·href="#cb15-260"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·keyboard_version·=·5.2.9</span></span> |
749 | <span·id="cb15-261"><a·href="#cb15-261"·aria-hidden="true"·tabindex="-1"></a></span> | 711 | <span·id="cb15-261"><a·href="#cb15-261"·aria-hidden="true"·tabindex="-1"></a></span> |
750 | <span·id="cb15-262"><a·href="#cb15-262"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files.</span></span> | 712 | <span·id="cb15-262"><a·href="#cb15-262"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files.</span></span> |
751 | <span·id="cb15-263"><a·href="#cb15-263"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">acodec_prefer_dumb·</span><span·class="ot">=</span><span·class="st">·</span><span·class="kw">false</span></span></code></pre></div> | 713 | <span·id="cb15-263"><a·href="#cb15-263"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">acodec_prefer_dumb·</span><span·class="ot">=</span><span·class="st">·</span><span·class="kw">false</span></span></code></pre></div> |
752 | <p>Examples:</p> | ||
753 | <ul> | ||
754 | <li><a | ||
Max diff block lines reached; 481/8730 bytes (5.51%) of diff not shown. |
Offset 96, 24 lines modified | Offset 96, 18 lines modified | ||
96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m | 96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m |
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
98 | void·al_uninstall_system(void) | 98 | void·al_uninstall_system(void) |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Closes·down·the·Allegro·system. | 100 | Closes·down·the·Allegro·system. |
101 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding | 101 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding |
102 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). | 102 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). |
103 | Examples: | ||
104 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
105 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x82_\x8._\x8c | ||
106 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x8._\x8c | ||
107 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
108 | bool·al_is_system_installed(void) | 104 | bool·al_is_system_installed(void) |
109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
110 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. | 106 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. |
111 | Examples: | ||
112 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 107 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
114 | uint32_t·al_get_allegro_version(void) | 108 | uint32_t·al_get_allegro_version(void) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a·single | 110 | Returns·the·(compiled)·version·of·the·Allegro·library,·packed·into·a·single |
117 | integer·as·groups·of·8·bits·in·the·form·(major·<<·24)·|·(minor·<<·16)·| | 111 | integer·as·groups·of·8·bits·in·the·form·(major·<<·24)·|·(minor·<<·16)·| |
118 | (revision·<<·8)·|·release. | 112 | (revision·<<·8)·|·release. |
119 | You·can·use·code·like·this·to·extract·them: | 113 | You·can·use·code·like·this·to·extract·them: |
Offset 174, 51 lines modified | Offset 168, 41 lines modified | ||
174 | ······path·will·usually·not·be·present·on·the·file·system,·so·make·sure·to | 168 | ······path·will·usually·not·be·present·on·the·file·system,·so·make·sure·to |
175 | ······create·it·before·writing·to·it. | 169 | ······create·it·before·writing·to·it. |
176 | ··ALLEGRO_EXENAME_PATH | 170 | ··ALLEGRO_EXENAME_PATH |
177 | ······The·full·path·to·the·executable. | 171 | ······The·full·path·to·the·executable. |
178 | Returns·NULL·on·failure.·The·returned·path·should·be·freed·with | 172 | Returns·NULL·on·failure.·The·returned·path·should·be·freed·with |
179 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h. | 173 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h. |
180 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e | 174 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e |
181 | Examples: | ||
182 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
183 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
184 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | ||
185 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 175 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
186 | void·al_set_exe_name(char·const·*path) | 176 | void·al_set_exe_name(char·const·*path) |
187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 177 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
188 | This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for | 178 | This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for |
189 | ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH. | 179 | ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH. |
190 | One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python | 180 | One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python |
191 | wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python | 181 | wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python |
192 | executable·is·the·current·executable·-·but·you·can·set·it·to·the·.py·file·being | 182 | executable·is·the·current·executable·-·but·you·can·set·it·to·the·.py·file·being |
193 | executed·instead. | 183 | executed·instead. |
194 | Since:·5.0.6,·5.1.0 | 184 | Since:·5.0.6,·5.1.0 |
195 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h | 185 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h |
196 | Examples: | ||
197 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
198 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
199 | void·al_set_app_name(const·char·*app_name) | 187 | void·al_set_app_name(const·char·*app_name) |
200 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
201 | Sets·the·global·application·name. | 189 | Sets·the·global·application·name. |
202 | The·application·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to | 190 | The·application·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to |
203 | an·application’s·files. | 191 | an·application’s·files. |
204 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. | 192 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. |
205 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e | 193 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e |
206 | Examples: | ||
207 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
208 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 194 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
209 | void·al_set_org_name(const·char·*org_name) | 195 | void·al_set_org_name(const·char·*org_name) |
210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 196 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
211 | Sets·the·global·organization·name. | 197 | Sets·the·global·organization·name. |
212 | The·organization·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to | 198 | The·organization·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to |
213 | an·application’s·files. | 199 | an·application’s·files. |
214 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. | 200 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. |
215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e | 201 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e |
216 | Examples: | ||
217 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
218 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 202 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
219 | const·char·*al_get_app_name(void) | 203 | const·char·*al_get_app_name(void) |
220 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 204 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
221 | Returns·the·global·application·name·string. | 205 | Returns·the·global·application·name·string. |
222 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e | 206 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e |
223 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 207 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
224 | const·char·*al_get_org_name(void) | 208 | const·char·*al_get_org_name(void) |
Offset 509, 17 lines modified | Offset 493, 14 lines modified | ||
509 | #·To·restore·behavior·of·older·code·versions,·specify·this·value·to·the | 493 | #·To·restore·behavior·of·older·code·versions,·specify·this·value·to·the |
510 | #·Allegro·version·that·had·the·desired·old·behavior. | 494 | #·Allegro·version·that·had·the·desired·old·behavior. |
511 | #·joystick_version·=·5.2.9 | 495 | #·joystick_version·=·5.2.9 |
512 | #·keyboard_version·=·5.2.9 | 496 | #·keyboard_version·=·5.2.9 |
513 | #·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files. | 497 | #·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files. |
514 | acodec_prefer_dumb·=·false | 498 | acodec_prefer_dumb·=·false |
515 | Examples: | ||
516 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c | ||
517 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
518 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 499 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
519 | ALLEGRO_SYSTEM_ID·al_get_system_id(void) | 500 | ALLEGRO_SYSTEM_ID·al_get_system_id(void) |
520 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 501 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
521 | Returns·the·platform·that·Allegro·is·running·on. | 502 | Returns·the·platform·that·Allegro·is·running·on. |
522 | Since:·5.2.5 | 503 | Since:·5.2.5 |
523 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8Y_\x8S_\x8T_\x8E_\x8M_\x8__\x8I_\x8D | 504 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8Y_\x8S_\x8T_\x8E_\x8M_\x8__\x8I_\x8D |
524 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_a\x8as\x8ss\x8se\x8er\x8rt\x8t_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 505 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_a\x8as\x8ss\x8se\x8er\x8rt\x8t_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 253, 23 lines modified | Offset 253, 14 lines modified | ||
253 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new | 253 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new |
254 | thread·is·passed·its·own·thread·handle·and·the·value | 254 | thread·is·passed·its·own·thread·handle·and·the·value |
255 | <code>arg</code>.</p> | 255 | <code>arg</code>.</p> |
256 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL | 256 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL |
257 | if·there·was·an·error.</p> | 257 | if·there·was·an·error.</p> |
258 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, | 258 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, |
259 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> | 259 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> |
260 | <p>Examples:</p> | ||
261 | <ul> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> | ||
264 | <li><a | ||
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L158">ex_loading_thread.c</a></li> | ||
266 | <li><a | ||
267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L110">ex_native_filechooser.c</a></li> | ||
268 | </ul> | ||
269 | <h1 | 260 | <h1 |
270 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> | 261 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> |
271 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> | 262 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> |
272 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> | 263 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> |
273 | <p><a | 264 | <p><a |
274 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source | 265 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source |
275 | Code</a></p> | 266 | Code</a></p> |
Offset 293, 23 lines modified | Offset 284, 14 lines modified | ||
293 | Code</a></p> | 284 | Code</a></p> |
294 | <p>When·a·thread·is·created,·it·is·initially·in·a·suspended·state. | 285 | <p>When·a·thread·is·created,·it·is·initially·in·a·suspended·state. |
295 | Calling·<a·href="threads.html#al_start_thread">al_start_thread</a>·will | 286 | Calling·<a·href="threads.html#al_start_thread">al_start_thread</a>·will |
296 | start·its·actual·execution.</p> | 287 | start·its·actual·execution.</p> |
297 | <p>Starting·a·thread·which·has·already·been·started·does·nothing.</p> | 288 | <p>Starting·a·thread·which·has·already·been·started·does·nothing.</p> |
298 | <p>See·also:·<a | 289 | <p>See·also:·<a |
299 | href="threads.html#al_create_thread">al_create_thread</a>.</p> | 290 | href="threads.html#al_create_thread">al_create_thread</a>.</p> |
300 | <p>Examples:</p> | ||
301 | <ul> | ||
302 | <li><a | ||
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> | ||
304 | <li><a | ||
305 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L159">ex_loading_thread.c</a></li> | ||
306 | <li><a | ||
307 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L112">ex_native_filechooser.c</a></li> | ||
308 | </ul> | ||
309 | <h1·id="al_join_thread">al_join_thread</h1> | 291 | <h1·id="al_join_thread">al_join_thread</h1> |
310 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div> | 292 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div> |
311 | <p><a | 293 | <p><a |
312 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source | 294 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source |
313 | Code</a></p> | 295 | Code</a></p> |
314 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a | 296 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a |
315 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a> | 297 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a> |
Offset 318, 38 lines modified | Offset 300, 24 lines modified | ||
318 | returned·by·the·thread·function·will·be·stored·at·the·location·pointed | 300 | returned·by·the·thread·function·will·be·stored·at·the·location·pointed |
319 | to·by·<code>ret_value</code>.</p> | 301 | to·by·<code>ret_value</code>.</p> |
320 | <p>See·also:·<a | 302 | <p>See·also:·<a |
321 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>, | 303 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>, |
322 | <a | 304 | <a |
323 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>, | 305 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>, |
324 | <a·href="threads.html#al_destroy_thread">al_destroy_thread</a>.</p> | 306 | <a·href="threads.html#al_destroy_thread">al_destroy_thread</a>.</p> |
325 | <p>Examples:</p> | ||
326 | <ul> | ||
327 | <li><a | ||
328 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L240">ex_threads.c</a></li> | ||
329 | <li><a | ||
330 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L227">ex_loading_thread.c</a></li> | ||
331 | <li><a | ||
332 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L383">ex_threads2.c</a></li> | ||
333 | </ul> | ||
334 | <h1·id="al_set_thread_should_stop">al_set_thread_should_stop</h1> | 307 | <h1·id="al_set_thread_should_stop">al_set_thread_should_stop</h1> |
335 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> | 308 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> |
336 | <p><a | 309 | <p><a |
337 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L244">Source | 310 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L244">Source |
338 | Code</a></p> | 311 | Code</a></p> |
339 | <p>Set·the·flag·to·indicate·<code>thread</code>·should·stop.·Returns | 312 | <p>Set·the·flag·to·indicate·<code>thread</code>·should·stop.·Returns |
340 | immediately.</p> | 313 | immediately.</p> |
341 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, | 314 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, |
342 | <a | 315 | <a |
343 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>.</p> | 316 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>.</p> |
344 | <p>Examples:</p> | ||
345 | <ul> | ||
346 | <li><a | ||
347 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L375">ex_threads2.c</a></li> | ||
348 | </ul> | ||
349 | <h1·id="al_get_thread_should_stop">al_get_thread_should_stop</h1> | 317 | <h1·id="al_get_thread_should_stop">al_get_thread_should_stop</h1> |
350 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> | 318 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> |
351 | <p><a | 319 | <p><a |
352 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L253">Source | 320 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L253">Source |
353 | Code</a></p> | 321 | Code</a></p> |
354 | <p>Check·if·another·thread·is·waiting·for·<code>thread</code>·to·stop. | 322 | <p>Check·if·another·thread·is·waiting·for·<code>thread</code>·to·stop. |
355 | Threads·which·run·in·a·loop·should·check·this·periodically·and·act·on·it | 323 | Threads·which·run·in·a·loop·should·check·this·periodically·and·act·on·it |
Offset 360, 41 lines modified | Offset 328, 25 lines modified | ||
360 | on·this·thread.</p> | 328 | on·this·thread.</p> |
361 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, | 329 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, |
362 | <a | 330 | <a |
363 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>.</p> | 331 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>.</p> |
364 | <blockquote> | 332 | <blockquote> |
365 | <p><em>Note:</em>·We·don’t·support·forceful·killing·of·threads.</p> | 333 | <p><em>Note:</em>·We·don’t·support·forceful·killing·of·threads.</p> |
366 | </blockquote> | 334 | </blockquote> |
367 | <p>Examples:</p> | ||
368 | <ul> | ||
369 | <li><a | ||
370 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L38">ex_loading_thread.c</a></li> | ||
371 | <li><a | ||
372 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L168">ex_threads2.c</a></li> | ||
373 | </ul> | ||
374 | <h1·id="al_destroy_thread">al_destroy_thread</h1> | 335 | <h1·id="al_destroy_thread">al_destroy_thread</h1> |
375 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> | 336 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> |
376 | <p><a | 337 | <p><a |
377 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L262">Source | 338 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L262">Source |
378 | Code</a></p> | 339 | Code</a></p> |
379 | <p>Free·the·resources·used·by·a·thread.·Implicitly·performs·<a | 340 | <p>Free·the·resources·used·by·a·thread.·Implicitly·performs·<a |
380 | href="threads.html#al_join_thread">al_join_thread</a>·on·the·thread·if | 341 | href="threads.html#al_join_thread">al_join_thread</a>·on·the·thread·if |
381 | it·hasn’t·been·done·already.</p> | 342 | it·hasn’t·been·done·already.</p> |
382 | <p>Does·nothing·if·<code>thread</code>·is·NULL.</p> | 343 | <p>Does·nothing·if·<code>thread</code>·is·NULL.</p> |
383 | <p>See·also:·<a | 344 | <p>See·also:·<a |
384 | href="threads.html#al_join_thread">al_join_thread</a>.</p> | 345 | href="threads.html#al_join_thread">al_join_thread</a>.</p> |
385 | <p>Examples:</p> | ||
386 | <ul> | ||
387 | <li><a | ||
388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L241">ex_threads.c</a></li> | ||
389 | <li><a | ||
390 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L134">ex_native_filechooser.c</a></li> | ||
391 | <li><a | ||
392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L380">ex_threads2.c</a></li> | ||
393 | </ul> | ||
394 | <h1·id="al_run_detached_thread">al_run_detached_thread</h1> | 346 | <h1·id="al_run_detached_thread">al_run_detached_thread</h1> |
395 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_run_detached_thread<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> | 347 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_run_detached_thread<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">)</span></span></code></pre></div> |
396 | <p><a | 348 | <p><a |
397 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source | 349 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L147">Source |
398 | Code</a></p> | 350 | Code</a></p> |
399 | <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code> | 351 | <p>Runs·the·passed·function·in·its·own·thread,·with·<code>arg</code> |
Max diff block lines reached; 8007/16131 bytes (49.64%) of diff not shown. |
Offset 91, 18 lines modified | Offset 91, 14 lines modified | ||
91 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 91 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its | 93 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its |
94 | own·thread·handle·and·the·value·arg. | 94 | own·thread·handle·and·the·value·arg. |
95 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there | 95 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there |
96 | was·an·error. | 96 | was·an·error. |
97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
98 | Examples: | ||
99 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
101 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
102 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
103 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( | 99 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( |
104 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t | 100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t |
105 | stacksize) | 101 | stacksize) |
106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
107 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing | 103 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing |
108 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. | 104 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. |
Offset 115, 78 lines modified | Offset 111, 58 lines modified | ||
115 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
116 | void·al_start_thread(ALLEGRO_THREAD·*thread) | 112 | void·al_start_thread(ALLEGRO_THREAD·*thread) |
117 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
118 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling | 114 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling |
119 | _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution. | 115 | _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution. |
120 | Starting·a·thread·which·has·already·been·started·does·nothing. | 116 | Starting·a·thread·which·has·already·been·started·does·nothing. |
121 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 117 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
122 | Examples: | ||
123 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
124 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
125 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
126 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
127 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) | 119 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) |
128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
129 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls | 121 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls |
130 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·first. | 122 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·first. |
131 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be | 123 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be |
132 | stored·at·the·location·pointed·to·by·ret_value. | 124 | stored·at·the·location·pointed·to·by·ret_value. |
133 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p, | 125 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p, |
134 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 126 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
135 | Examples: | ||
136 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
138 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
139 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* | 127 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* |
140 | void·al_set_thread_should_stop(ALLEGRO_THREAD·*thread) | 128 | void·al_set_thread_should_stop(ALLEGRO_THREAD·*thread) |
141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 129 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
142 | Set·the·flag·to·indicate·thread·should·stop.·Returns·immediately. | 130 | Set·the·flag·to·indicate·thread·should·stop.·Returns·immediately. |
143 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. | 131 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. |
144 | Examples: | ||
145 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
146 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* | 132 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* |
147 | bool·al_get_thread_should_stop(ALLEGRO_THREAD·*thread) | 133 | bool·al_get_thread_should_stop(ALLEGRO_THREAD·*thread) |
148 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
149 | Check·if·another·thread·is·waiting·for·thread·to·stop.·Threads·which·run·in·a | 135 | Check·if·another·thread·is·waiting·for·thread·to·stop.·Threads·which·run·in·a |
150 | loop·should·check·this·periodically·and·act·on·it·when·convenient. | 136 | loop·should·check·this·periodically·and·act·on·it·when·convenient. |
151 | Returns·true·if·another·thread·has·called·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·or | 137 | Returns·true·if·another·thread·has·called·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·or |
152 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·on·this·thread. | 138 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·on·this·thread. |
153 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. | 139 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. |
154 | ·····N\x8No\x8ot\x8te\x8e:\x8:·We·don’t·support·forceful·killing·of·threads. | 140 | ·····N\x8No\x8ot\x8te\x8e:\x8:·We·don’t·support·forceful·killing·of·threads. |
155 | Examples: | ||
156 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
157 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
158 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
159 | void·al_destroy_thread(ALLEGRO_THREAD·*thread) | 142 | void·al_destroy_thread(ALLEGRO_THREAD·*thread) |
160 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 143 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
161 | Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the | 144 | Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the |
162 | thread·if·it·hasn’t·been·done·already. | 145 | thread·if·it·hasn’t·been·done·already. |
163 | Does·nothing·if·thread·is·NULL. | 146 | Does·nothing·if·thread·is·NULL. |
164 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 147 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
165 | Examples: | ||
166 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
167 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
168 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
169 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 148 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
170 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) | 149 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) |
171 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 150 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
172 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only | 151 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only |
173 | parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and | 152 | parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and |
174 | (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the | 153 | (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the |
175 | possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread. | 154 | possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread. |
176 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 155 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
177 | ALLEGRO_MUTEX·*al_create_mutex(void) | 156 | ALLEGRO_MUTEX·*al_create_mutex(void) |
178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
179 | Create·the·mutex·object·(a·mutual·exclusion·device).·The·mutex·may·or·may·not | 158 | Create·the·mutex·object·(a·mutual·exclusion·device).·The·mutex·may·or·may·not |
180 | support·“recursive”·locking. | 159 | support·“recursive”·locking. |
181 | Returns·the·mutex·on·success·or·NULL·on·error. | 160 | Returns·the·mutex·on·success·or·NULL·on·error. |
182 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e. | 161 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e. |
183 | Examples: | ||
184 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
185 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_r\x8re\x8ec\x8cu\x8ur\x8rs\x8si\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 162 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_r\x8re\x8ec\x8cu\x8ur\x8rs\x8si\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
187 | ALLEGRO_MUTEX·*al_create_mutex_recursive(void) | 163 | ALLEGRO_MUTEX·*al_create_mutex_recursive(void) |
188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
189 | Create·the·mutex·object·(a·mutual·exclusion·device),·with·support·for | 165 | Create·the·mutex·object·(a·mutual·exclusion·device),·with·support·for |
190 | “recursive”·locking.·That·is,·the·mutex·will·count·the·number·of·times·it·has | 166 | “recursive”·locking.·That·is,·the·mutex·will·count·the·number·of·times·it·has |
191 | been·locked·by·the·same·thread.·If·the·caller·tries·to·acquire·a·lock·on·the | 167 | been·locked·by·the·same·thread.·If·the·caller·tries·to·acquire·a·lock·on·the |
192 | mutex·when·it·already·holds·the·lock·then·the·count·is·incremented.·The·mutex | 168 | mutex·when·it·already·holds·the·lock·then·the·count·is·incremented.·The·mutex |
Offset 201, 42 lines modified | Offset 177, 32 lines modified | ||
201 | If·the·mutex·is·already·locked·by·the·calling·thread,·then·the·behaviour | 177 | If·the·mutex·is·already·locked·by·the·calling·thread,·then·the·behaviour |
202 | depends·on·whether·the·mutex·was·created·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x·or | 178 | depends·on·whether·the·mutex·was·created·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x·or |
203 | _\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e.·In·the·former·case,·the·behaviour·is·undefined;·the | 179 | _\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e.·In·the·former·case,·the·behaviour·is·undefined;·the |
204 | most·likely·behaviour·is·deadlock.·In·the·latter·case,·the·count·in·the·mutex | 180 | most·likely·behaviour·is·deadlock.·In·the·latter·case,·the·count·in·the·mutex |
205 | will·be·incremented·and·the·call·will·return·immediately. | 181 | will·be·incremented·and·the·call·will·return·immediately. |
206 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8m_\x8u_\x8t_\x8e_\x8x. | 182 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8m_\x8u_\x8t_\x8e_\x8x. |
207 | W\x8We\x8e·d\x8do\x8on\x8n?\x8’t\x8t·y\x8ye\x8et\x8t·h\x8ha\x8av\x8ve\x8e·a\x8al\x8l_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_t\x8tr\x8ry\x8yl\x8lo\x8oc\x8ck\x8k.\x8. | 183 | W\x8We\x8e·d\x8do\x8on\x8n?\x8’t\x8t·y\x8ye\x8et\x8t·h\x8ha\x8av\x8ve\x8e·a\x8al\x8l_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_t\x8tr\x8ry\x8yl\x8lo\x8oc\x8ck\x8k.\x8. |
208 | Examples: | ||
209 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
210 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
211 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 184 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
212 | void·al_unlock_mutex(ALLEGRO_MUTEX·*mutex) | 185 | void·al_unlock_mutex(ALLEGRO_MUTEX·*mutex) |
213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 186 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
214 | Release·the·lock·on·mutex·if·the·calling·thread·holds·the·lock·on·it. | 187 | Release·the·lock·on·mutex·if·the·calling·thread·holds·the·lock·on·it. |
215 | If·the·calling·thread·doesn’t·hold·the·lock,·or·if·the·mutex·is·not·locked, | 188 | If·the·calling·thread·doesn’t·hold·the·lock,·or·if·the·mutex·is·not·locked, |
216 | undefined·behaviour·results. | 189 | undefined·behaviour·results. |
217 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8m_\x8u_\x8t_\x8e_\x8x. | 190 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8m_\x8u_\x8t_\x8e_\x8x. |
218 | Examples: | ||
219 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
220 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
221 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 191 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
222 | void·al_destroy_mutex(ALLEGRO_MUTEX·*mutex) | 192 | void·al_destroy_mutex(ALLEGRO_MUTEX·*mutex) |
223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 193 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
224 | Free·the·resources·used·by·the·mutex.·The·mutex·should·be·unlocked.·Destroying | 194 | Free·the·resources·used·by·the·mutex.·The·mutex·should·be·unlocked.·Destroying |
225 | a·locked·mutex·results·in·undefined·behaviour. | 195 | a·locked·mutex·results·in·undefined·behaviour. |
226 | Does·nothing·if·mutex·is·NULL. | 196 | Does·nothing·if·mutex·is·NULL. |
227 | Examples: | ||
228 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
229 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 197 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 2630/10550 bytes (24.93%) of diff not shown. |
Offset 196, 61 lines modified | Offset 196, 38 lines modified | ||
196 | <p><a | 196 | <p><a |
197 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source | 197 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source |
198 | Code</a></p> | 198 | Code</a></p> |
199 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was | 199 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was |
200 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. | 200 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. |
201 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the | 201 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the |
202 | order·of·microseconds.</p> | 202 | order·of·microseconds.</p> |
203 | <p>Examples:</p> | ||
204 | <ul> | ||
205 | <li><a | ||
206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L40">ex_convert.c</a></li> | ||
207 | <li><a | ||
208 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L81">ex_d3d.cpp</a></li> | ||
209 | <li><a | ||
210 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | ||
211 | </ul> | ||
212 | <h1·id="al_init_timeout">al_init_timeout</h1> | 203 | <h1·id="al_init_timeout">al_init_timeout</h1> |
213 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 204 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
214 | <p><a | 205 | <p><a |
215 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source | 206 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source |
216 | Code</a></p> | 207 | Code</a></p> |
217 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function | 208 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function |
218 | call.</p> | 209 | call.</p> |
219 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be | 210 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be |
220 | 2,147,483.647·seconds·or·less.</p> | 211 | 2,147,483.647·seconds·or·less.</p> |
221 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a | 212 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a |
222 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> | 213 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> |
223 | <p>Examples:</p> | ||
224 | <ul> | ||
225 | <li><a | ||
226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L105">ex_timedwait.c</a></li> | ||
227 | </ul> | ||
228 | <h1·id="al_rest">al_rest</h1> | 214 | <h1·id="al_rest">al_rest</h1> |
229 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 215 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
230 | <p><a | 216 | <p><a |
231 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L516">Source | 217 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L516">Source |
232 | Code</a></p> | 218 | Code</a></p> |
233 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to | 219 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to |
234 | pause·the·current·thread·for·the·given·amount·of·time.·With·some | 220 | pause·the·current·thread·for·the·given·amount·of·time.·With·some |
235 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, | 221 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, |
236 | even</p> | 222 | even</p> |
237 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div> | 223 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div> |
238 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer | 224 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer |
239 | routines·for·easier·ways·to·time·your·program·without·using·up·all | 225 | routines·for·easier·ways·to·time·your·program·without·using·up·all |
240 | CPU.</p> | 226 | CPU.</p> |
241 | <p>Examples:</p> | ||
242 | <ul> | ||
243 | <li><a | ||
244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec.c#L104">ex_acodec.c</a></li> | ||
245 | <li><a | ||
246 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L116">ex_acodec_multi.c</a></li> | ||
247 | <li><a | ||
248 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L86">ex_kcm_direct.c</a></li> | ||
249 | </ul> | ||
250 | <p·class="timestamp"> | 227 | <p·class="timestamp"> |
251 | Allegro·version·5.2.10 | 228 | Allegro·version·5.2.10 |
252 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 229 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
253 | </p> | 230 | </p> |
254 | </div> | 231 | </div> |
255 | </body> | 232 | </body> |
256 | </html> | 233 | </html> |
Offset 57, 34 lines modified | Offset 57, 24 lines modified | ||
57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t | 57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t |
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | double·al_get_time(void) | 59 | double·al_get_time(void) |
60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
61 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The | 61 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The |
62 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends | 62 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends |
63 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. | 63 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. |
64 | Examples: | ||
65 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
66 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
67 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
68 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
69 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) | 65 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) |
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. | 67 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. |
72 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or | 68 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or |
73 | less. | 69 | less. |
74 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l | 70 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l |
75 | Examples: | ||
76 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | void·al_rest(double·seconds) | 72 | void·al_rest(double·seconds) |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the | 74 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the |
81 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the | 75 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the |
82 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even | 76 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even |
83 | al_rest(0.000001) | 77 | al_rest(0.000001) |
84 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for | 78 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for |
85 | easier·ways·to·time·your·program·without·using·up·all·CPU. | 79 | easier·ways·to·time·your·program·without·using·up·all·CPU. |
86 | Examples: | ||
87 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8._\x8c | ||
88 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
89 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | ||
90 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 80 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 253, 85 lines modified | Offset 253, 51 lines modified | ||
253 | href="timer.html#al_start_timer">al_start_timer</a>·before·<a | 253 | href="timer.html#al_start_timer">al_start_timer</a>·before·<a |
254 | href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>·events | 254 | href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>·events |
255 | are·sent.</p> | 255 | are·sent.</p> |
256 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but | 256 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but |
257 | with·some·drivers·might·only·be·milliseconds.</p> | 257 | with·some·drivers·might·only·be·milliseconds.</p> |
258 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 258 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
259 | href="timer.html#al_destroy_timer">al_destroy_timer</a></p> | 259 | href="timer.html#al_destroy_timer">al_destroy_timer</a></p> |
260 | <p>Examples:</p> | ||
261 | <ul> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L212">ex_enet_server.c</a></li> | ||
264 | <li><a | ||
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L37">ex_timer_pause.c</a></li> | ||
266 | <li><a | ||
267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L59">ex_user_events.c</a></li> | ||
268 | </ul> | ||
269 | <h1·id="al_start_timer">al_start_timer</h1> | 260 | <h1·id="al_start_timer">al_start_timer</h1> |
270 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 261 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
271 | <p><a | 262 | <p><a |
272 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L318">Source | 263 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L318">Source |
273 | Code</a></p> | 264 | Code</a></p> |
274 | <p>Start·the·timer·specified.·From·then,·the·timer’s·counter·will | 265 | <p>Start·the·timer·specified.·From·then,·the·timer’s·counter·will |
275 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. | 266 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. |
276 | Starting·a·timer·that·is·already·started·does·nothing.·Starting·a·timer | 267 | Starting·a·timer·that·is·already·started·does·nothing.·Starting·a·timer |
277 | that·was·stopped·will·reset·the·timer’s·counter,·effectively·restarting | 268 | that·was·stopped·will·reset·the·timer’s·counter,·effectively·restarting |
278 | the·timer·from·the·beginning.</p> | 269 | the·timer·from·the·beginning.</p> |
279 | <p>See·also:·<a·href="timer.html#al_stop_timer">al_stop_timer</a>,·<a | 270 | <p>See·also:·<a·href="timer.html#al_stop_timer">al_stop_timer</a>,·<a |
280 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a | 271 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a |
281 | href="timer.html#al_resume_timer">al_resume_timer</a></p> | 272 | href="timer.html#al_resume_timer">al_resume_timer</a></p> |
282 | <p>Examples:</p> | ||
283 | <ul> | ||
284 | <li><a | ||
285 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L216">ex_enet_server.c</a></li> | ||
286 | <li><a | ||
287 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L5">ex_timer_pause.c</a></li> | ||
288 | <li><a | ||
289 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L72">ex_user_events.c</a></li> | ||
290 | </ul> | ||
291 | <h1·id="al_resume_timer">al_resume_timer</h1> | 273 | <h1·id="al_resume_timer">al_resume_timer</h1> |
292 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_resume_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 274 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_resume_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
293 | <p><a | 275 | <p><a |
294 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L327">Source | 276 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L327">Source |
295 | Code</a></p> | 277 | Code</a></p> |
296 | <p>Resume·the·timer·specified.·From·then,·the·timer’s·counter·will | 278 | <p>Resume·the·timer·specified.·From·then,·the·timer’s·counter·will |
297 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. | 279 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. |
298 | Resuming·a·timer·that·is·already·started·does·nothing.·Resuming·a | 280 | Resuming·a·timer·that·is·already·started·does·nothing.·Resuming·a |
299 | stopped·timer·will·not·reset·the·timer’s·counter·(unlike·<a | 281 | stopped·timer·will·not·reset·the·timer’s·counter·(unlike·<a |
300 | href="timer.html#al_start_timer">al_start_timer</a>).</p> | 282 | href="timer.html#al_start_timer">al_start_timer</a>).</p> |
301 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 283 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
302 | href="timer.html#al_stop_timer">al_stop_timer</a>,·<a | 284 | href="timer.html#al_stop_timer">al_stop_timer</a>,·<a |
303 | href="timer.html#al_get_timer_started">al_get_timer_started</a></p> | 285 | href="timer.html#al_get_timer_started">al_get_timer_started</a></p> |
304 | <p>Examples:</p> | ||
305 | <ul> | ||
306 | <li><a | ||
307 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L5">ex_timer_pause.c</a></li> | ||
308 | <li><a | ||
309 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L350">ex_native_filechooser.c</a></li> | ||
310 | </ul> | ||
311 | <h1·id="al_stop_timer">al_stop_timer</h1> | 286 | <h1·id="al_stop_timer">al_stop_timer</h1> |
312 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 287 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
313 | <p><a | 288 | <p><a |
314 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L336">Source | 289 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L336">Source |
315 | Code</a></p> | 290 | Code</a></p> |
316 | <p>Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing | 291 | <p>Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing |
317 | and·it·will·stop·generating·events.·Stopping·a·timer·that·is·already | 292 | and·it·will·stop·generating·events.·Stopping·a·timer·that·is·already |
318 | stopped·does·nothing.</p> | 293 | stopped·does·nothing.</p> |
319 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 294 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
320 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a | 295 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a |
321 | href="timer.html#al_resume_timer">al_resume_timer</a></p> | 296 | href="timer.html#al_resume_timer">al_resume_timer</a></p> |
322 | <p>Examples:</p> | ||
323 | <ul> | ||
324 | <li><a | ||
325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L48">ex_timer_pause.c</a></li> | ||
326 | <li><a | ||
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L196">ex_android.c</a></li> | ||
328 | <li><a | ||
329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L343">ex_native_filechooser.c</a></li> | ||
330 | </ul> | ||
331 | <h1·id="al_get_timer_started">al_get_timer_started</h1> | 297 | <h1·id="al_get_timer_started">al_get_timer_started</h1> |
332 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 298 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
333 | <p><a | 299 | <p><a |
334 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source | 300 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source |
335 | Code</a></p> | 301 | Code</a></p> |
336 | <p>Return·true·if·the·timer·specified·is·currently·started.</p> | 302 | <p>Return·true·if·the·timer·specified·is·currently·started.</p> |
337 | <h1·id="al_destroy_timer">al_destroy_timer</h1> | 303 | <h1·id="al_destroy_timer">al_destroy_timer</h1> |
Offset 341, 53 lines modified | Offset 307, 34 lines modified | ||
341 | Code</a></p> | 307 | Code</a></p> |
342 | <p>Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will | 308 | <p>Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will |
343 | automatically·be·stopped·before·uninstallation.·It·will·also | 309 | automatically·be·stopped·before·uninstallation.·It·will·also |
344 | automatically·unregister·the·timer·with·any·event·queues.</p> | 310 | automatically·unregister·the·timer·with·any·event·queues.</p> |
345 | <p>Does·nothing·if·passed·the·NULL·pointer.</p> | 311 | <p>Does·nothing·if·passed·the·NULL·pointer.</p> |
346 | <p>See·also:·<a | 312 | <p>See·also:·<a |
347 | href="timer.html#al_create_timer">al_create_timer</a></p> | 313 | href="timer.html#al_create_timer">al_create_timer</a></p> |
348 | <p>Examples:</p> | ||
349 | <ul> | ||
350 | <li><a | ||
351 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L69">ex_timer_pause.c</a></li> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L112">ex_user_events.c</a></li> | ||
354 | <li><a | ||
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L224">ex_font_multiline.cpp</a></li> | ||
356 | </ul> | ||
357 | <h1·id="al_get_timer_count">al_get_timer_count</h1> | 314 | <h1·id="al_get_timer_count">al_get_timer_count</h1> |
358 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int64_t</span>·al_get_timer_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 315 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int64_t</span>·al_get_timer_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
359 | <p><a | 316 | <p><a |
360 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L399">Source | 317 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L399">Source |
361 | Code</a></p> | 318 | Code</a></p> |
362 | <p>Return·the·timer’s·counter·value.·The·timer·can·be·started·or | 319 | <p>Return·the·timer’s·counter·value.·The·timer·can·be·started·or |
363 | stopped.</p> | 320 | stopped.</p> |
364 | <p>See·also:·<a | 321 | <p>See·also:·<a |
365 | href="timer.html#al_set_timer_count">al_set_timer_count</a></p> | 322 | href="timer.html#al_set_timer_count">al_set_timer_count</a></p> |
366 | <p>Examples:</p> | ||
367 | <ul> | ||
368 | <li><a | ||
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L151">ex_menu.c</a></li> | ||
370 | </ul> | ||
371 | <h1·id="al_set_timer_count">al_set_timer_count</h1> | 323 | <h1·id="al_set_timer_count">al_set_timer_count</h1> |
372 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_timer_count<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">,</span>·<span·class="dt">int64_t</span>·new_count<span·class="op">)</span></span></code></pre></div> | 324 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_timer_count<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">,</span>·<span·class="dt">int64_t</span>·new_count<span·class="op">)</span></span></code></pre></div> |
373 | <p><a | 325 | <p><a |
374 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L410">Source | 326 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L410">Source |
375 | Code</a></p> | 327 | Code</a></p> |
376 | <p>Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. | 328 | <p>Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. |
377 | The·count·value·may·be·positive·or·negative,·but·will·always·be | 329 | The·count·value·may·be·positive·or·negative,·but·will·always·be |
378 | incremented·by·+1·at·each·tick.</p> | 330 | incremented·by·+1·at·each·tick.</p> |
379 | <p>See·also:·<a | 331 | <p>See·also:·<a |
380 | href="timer.html#al_get_timer_count">al_get_timer_count</a>,·<a | 332 | href="timer.html#al_get_timer_count">al_get_timer_count</a>,·<a |
381 | href="timer.html#al_add_timer_count">al_add_timer_count</a></p> | 333 | href="timer.html#al_add_timer_count">al_add_timer_count</a></p> |
Max diff block lines reached; 2364/10389 bytes (22.75%) of diff not shown. |
Offset 88, 84 lines modified | Offset 88, 61 lines modified | ||
88 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer | 88 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer |
89 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per | 89 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per |
90 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to | 90 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to |
91 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. | 91 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. |
92 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some | 92 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some |
93 | drivers·might·only·be·milliseconds. | 93 | drivers·might·only·be·milliseconds. |
94 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 94 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
95 | Examples: | ||
96 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
97 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
98 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 95 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | void·al_start_timer(ALLEGRO_TIMER·*timer) | 96 | void·al_start_timer(ALLEGRO_TIMER·*timer) |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 98 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
103 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is | 99 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is |
104 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the | 100 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the |
105 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. | 101 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. |
106 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 102 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
107 | Examples: | ||
108 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
109 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
110 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | void·al_resume_timer(ALLEGRO_TIMER·*timer) | 104 | void·al_resume_timer(ALLEGRO_TIMER·*timer) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 106 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
115 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is | 107 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is |
116 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the | 108 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the |
117 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). | 109 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). |
118 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d | 110 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d |
119 | Examples: | ||
120 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
121 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | void·al_stop_timer(ALLEGRO_TIMER·*timer) | 112 | void·al_stop_timer(ALLEGRO_TIMER·*timer) |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it | 114 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it |
126 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does | 115 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does |
127 | nothing. | 116 | nothing. |
128 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
129 | Examples: | ||
130 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
131 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
132 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
134 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) | 119 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) |
135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
136 | Return·true·if·the·timer·specified·is·currently·started. | 121 | Return·true·if·the·timer·specified·is·currently·started. |
137 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
138 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) | 123 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) |
139 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
140 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically | 125 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically |
141 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the | 126 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the |
142 | timer·with·any·event·queues. | 127 | timer·with·any·event·queues. |
143 | Does·nothing·if·passed·the·NULL·pointer. | 128 | Does·nothing·if·passed·the·NULL·pointer. |
144 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 129 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
145 | Examples: | ||
146 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
147 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
148 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
149 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
150 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) | 131 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) |
151 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
152 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. | 133 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. |
153 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 134 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
154 | Examples: | ||
155 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
156 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 135 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
157 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) | 136 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) |
158 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
159 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count | 138 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count |
160 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each | 139 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each |
161 | tick. | 140 | tick. |
162 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 141 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
163 | Examples: | ||
164 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
165 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 142 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
166 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) | 143 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) |
167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
168 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: | 145 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: |
169 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); | 146 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); |
170 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. | 147 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. |
171 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 148 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
Offset 180, 19 lines modified | Offset 157, 13 lines modified | ||
180 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
181 | Set·the·timer’s·speed,·i.e. the·rate·at·which·its·counter·will·be·incremented | 158 | Set·the·timer’s·speed,·i.e. the·rate·at·which·its·counter·will·be·incremented |
182 | when·it·is·started.·This·can·be·done·when·the·timer·is·started·or·stopped.·If | 159 | when·it·is·started.·This·can·be·done·when·the·timer·is·started·or·stopped.·If |
183 | the·timer·is·currently·running,·it·is·made·to·look·as·though·the·speed·change | 160 | the·timer·is·currently·running,·it·is·made·to·look·as·though·the·speed·change |
184 | occurred·precisely·at·the·last·tick. | 161 | occurred·precisely·at·the·last·tick. |
185 | s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·has·exactly·the·same·meaning·as·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r. | 162 | s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·has·exactly·the·same·meaning·as·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r. |
186 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 163 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
187 | Examples: | ||
188 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
189 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 164 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
190 | ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer) | 165 | ALLEGRO_EVENT_SOURCE·*al_get_timer_event_source(ALLEGRO_TIMER·*timer) |
191 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 166 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
192 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type | 167 | Retrieve·the·associated·event·source.·Timers·will·generate·events·of·type |
193 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R. | 168 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R. |
194 | Examples: | ||
195 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
196 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
197 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
198 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 169 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 294, 23 lines modified | Offset 294, 14 lines modified | ||
294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source | 294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source |
295 | Code</a></p> | 295 | Code</a></p> |
296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a | 296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a |
297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> | 297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> |
298 | <p>Since:·5.1.0</p> | 298 | <p>Since:·5.1.0</p> |
299 | <p>See·also:·<a | 299 | <p>See·also:·<a |
300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> | 300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L18">common.c</a></li> | ||
305 | <li><a | ||
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L56">ex_touch_input.c</a></li> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L165">ex_lockbitmap.c</a></li> | ||
309 | </ul> | ||
310 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> | 301 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> |
311 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 302 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
312 | <p><a | 303 | <p><a |
313 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source | 304 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source |
314 | Code</a></p> | 305 | Code</a></p> |
315 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver | 306 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver |
316 | was·active,·this·function·does·nothing.</p> | 307 | was·active,·this·function·does·nothing.</p> |
Offset 323, 23 lines modified | Offset 314, 14 lines modified | ||
323 | <p><a | 314 | <p><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L35">Source | 315 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L35">Source |
325 | Code</a></p> | 316 | Code</a></p> |
326 | <p>Returns·true·if·<a | 317 | <p>Returns·true·if·<a |
327 | href="touch.html#al_install_touch_input">al_install_touch_input</a>·was | 318 | href="touch.html#al_install_touch_input">al_install_touch_input</a>·was |
328 | called·successfully.</p> | 319 | called·successfully.</p> |
329 | <p>Since:·5.1.0</p> | 320 | <p>Since:·5.1.0</p> |
330 | <p>Examples:</p> | ||
331 | <ul> | ||
332 | <li><a | ||
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li> | ||
336 | <li><a | ||
337 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L121">nihgui.cpp</a></li> | ||
338 | </ul> | ||
339 | <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1> | 321 | <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1> |
340 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> | 322 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> |
341 | <p><a | 323 | <p><a |
342 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source |
343 | Code</a></p> | 325 | Code</a></p> |
344 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied | 326 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied |
345 | into·the·<a | 327 | into·the·<a |
Offset 359, 19 lines modified | Offset 341, 14 lines modified | ||
359 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have | 341 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have |
360 | different·semantics·compared·to·mouse·input.</p> | 342 | different·semantics·compared·to·mouse·input.</p> |
361 | </blockquote> | 343 | </blockquote> |
362 | <p>See·also:·<a | 344 | <p>See·also:·<a |
363 | href="touch.html#allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</a>, | 345 | href="touch.html#allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</a>, |
364 | <a | 346 | <a |
365 | href="touch.html#al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</a>.</p> | 347 | href="touch.html#al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</a>.</p> |
366 | <p>Examples:</p> | ||
367 | <ul> | ||
368 | <li><a | ||
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L205">ex_native_filechooser.c</a></li> | ||
370 | </ul> | ||
371 | <h1·id="al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</h1> | 348 | <h1·id="al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</h1> |
372 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_emulation_mode<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 349 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_emulation_mode<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
373 | <p><a | 350 | <p><a |
374 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L117">Source | 351 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L117">Source |
375 | Code</a></p> | 352 | Code</a></p> |
376 | <p>Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem | 353 | <p>Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem |
377 | is·set·to·perform.</p> | 354 | is·set·to·perform.</p> |
Offset 394, 23 lines modified | Offset 371, 14 lines modified | ||
394 | <p>Returns·the·global·touch·input·event·source.·This·event·source | 371 | <p>Returns·the·global·touch·input·event·source.·This·event·source |
395 | generates·<a·href="events.html#allegro_event_touch_begin">touch·input | 372 | generates·<a·href="events.html#allegro_event_touch_begin">touch·input |
396 | events</a>.</p> | 373 | events</a>.</p> |
397 | <p>Since:·5.1.0</p> | 374 | <p>Since:·5.1.0</p> |
398 | <p>See·also:·<a | 375 | <p>See·also:·<a |
399 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a | 376 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a |
400 | href="events.html#al_register_event_source">al_register_event_source</a></p> | 377 | href="events.html#al_register_event_source">al_register_event_source</a></p> |
401 | <p>Examples:</p> | ||
402 | <ul> | ||
403 | <li><a | ||
404 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> | ||
405 | <li><a | ||
406 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li> | ||
407 | <li><a | ||
408 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li> | ||
409 | </ul> | ||
410 | <h1 | 378 | <h1 |
411 | id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1> | 379 | id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1> |
412 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 380 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
413 | <p><a | 381 | <p><a |
414 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source | 382 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source |
415 | Code</a></p> | 383 | Code</a></p> |
416 | <p>Returns·the·global·touch·input·event·source·for·emulated·mouse | 384 | <p>Returns·the·global·touch·input·event·source·for·emulated·mouse |
Offset 422, 23 lines modified | Offset 390, 14 lines modified | ||
422 | href="events.html#al_register_event_source">al_register_event_source</a></p> | 390 | href="events.html#al_register_event_source">al_register_event_source</a></p> |
423 | <p>Since:·5.1.0</p> | 391 | <p>Since:·5.1.0</p> |
424 | <blockquote> | 392 | <blockquote> |
425 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 393 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
426 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have | 394 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have |
427 | different·semantics·compared·to·mouse·input.</p> | 395 | different·semantics·compared·to·mouse·input.</p> |
428 | </blockquote> | 396 | </blockquote> |
429 | <p>Examples:</p> | ||
430 | <ul> | ||
431 | <li><a | ||
432 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> | ||
433 | <li><a | ||
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L388">ex_polygon.c</a></li> | ||
435 | <li><a | ||
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li> | ||
437 | </ul> | ||
438 | <p·class="timestamp"> | 397 | <p·class="timestamp"> |
439 | Allegro·version·5.2.10 | 398 | Allegro·version·5.2.10 |
440 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 399 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
441 | </p> | 400 | </p> |
442 | </div> | 401 | </div> |
443 | </body> | 402 | </body> |
444 | </html> | 403 | </html> |
Offset 110, 51 lines modified | Offset 110, 41 lines modified | ||
110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
111 | bool·al_install_touch_input(void) | 111 | bool·al_install_touch_input(void) |
112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input | 113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input |
114 | driver·was·already·installed,·returns·true·immediately. | 114 | driver·was·already·installed,·returns·true·immediately. |
115 | Since:·5.1.0 | 115 | Since:·5.1.0 |
116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
117 | Examples: | ||
118 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
119 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
120 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
122 | void·al_uninstall_touch_input(void) | 118 | void·al_uninstall_touch_input(void) |
123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
124 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, | 120 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, |
125 | this·function·does·nothing. | 121 | this·function·does·nothing. |
126 | This·function·is·automatically·called·when·Allegro·is·shut·down. | 122 | This·function·is·automatically·called·when·Allegro·is·shut·down. |
127 | Since:·5.1.0 | 123 | Since:·5.1.0 |
128 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 124 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
129 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
130 | bool·al_is_touch_input_installed(void) | 126 | bool·al_is_touch_input_installed(void) |
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
132 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully. | 128 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully. |
133 | Since:·5.1.0 | 129 | Since:·5.1.0 |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
136 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
137 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
138 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
139 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) | 131 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) |
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
141 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the | 133 | Gets·the·current·touch·input·state.·The·touch·information·is·copied·into·the |
142 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function. | 134 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function. |
143 | Since:·5.1.0 | 135 | Since:·5.1.0 |
144 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 136 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
145 | void·al_set_mouse_emulation_mode(int·mode) | 137 | void·al_set_mouse_emulation_mode(int·mode) |
146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
147 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. | 139 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. |
148 | Since:·5.1.0 | 140 | Since:·5.1.0 |
149 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 141 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
150 | ·····different·semantics·compared·to·mouse·input. | 142 | ·····different·semantics·compared·to·mouse·input. |
151 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e. | 143 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e. |
152 | Examples: | ||
153 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 144 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
155 | int·al_get_mouse_emulation_mode(void) | 145 | int·al_get_mouse_emulation_mode(void) |
156 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
157 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to | 147 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to |
158 | perform. | 148 | perform. |
159 | Since:·5.1.0 | 149 | Since:·5.1.0 |
160 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 150 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
Offset 163, 25 lines modified | Offset 153, 17 lines modified | ||
163 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 153 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
164 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_event_source(void) | 154 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_event_source(void) |
165 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 155 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
166 | Returns·the·global·touch·input·event·source.·This·event·source·generates·_\x8t_\x8o_\x8u_\x8c_\x8h | 156 | Returns·the·global·touch·input·event·source.·This·event·source·generates·_\x8t_\x8o_\x8u_\x8c_\x8h |
167 | _\x8i_\x8n_\x8p_\x8u_\x8t_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s. | 157 | _\x8i_\x8n_\x8p_\x8u_\x8t_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s. |
168 | Since:·5.1.0 | 158 | Since:·5.1.0 |
169 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 159 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
170 | Examples: | ||
171 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
172 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | ||
173 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
174 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
175 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) | 161 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) |
176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
177 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This | 163 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This |
178 | event·source·generates·_\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8e_\x8d_\x8·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·that·are·based·on·touch·events. | 164 | event·source·generates·_\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8e_\x8d_\x8·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·that·are·based·on·touch·events. |
179 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 165 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
180 | Since:·5.1.0 | 166 | Since:·5.1.0 |
181 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 167 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
182 | ·····different·semantics·compared·to·mouse·input. | 168 | ·····different·semantics·compared·to·mouse·input. |
183 | Examples: | ||
184 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
185 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | ||
186 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
187 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 169 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 323, 19 lines modified | Offset 323, 14 lines modified | ||
323 | Code</a></p> | 323 | Code</a></p> |
324 | <p>Makes·a·copy·of·a·transformation.</p> | 324 | <p>Makes·a·copy·of·a·transformation.</p> |
325 | <p><em>Parameters:</em></p> | 325 | <p><em>Parameters:</em></p> |
326 | <ul> | 326 | <ul> |
327 | <li>dest·-·Source·transformation</li> | 327 | <li>dest·-·Source·transformation</li> |
328 | <li>src·-·Destination·transformation</li> | 328 | <li>src·-·Destination·transformation</li> |
329 | </ul> | 329 | </ul> |
330 | <p>Examples:</p> | ||
331 | <ul> | ||
332 | <li><a | ||
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L138">ex_shader.cpp</a></li> | ||
334 | </ul> | ||
335 | <h1·id="al_use_transform">al_use_transform</h1> | 330 | <h1·id="al_use_transform">al_use_transform</h1> |
336 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> | 331 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> |
337 | <p><a | 332 | <p><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source |
339 | Code</a></p> | 334 | Code</a></p> |
340 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on | 335 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on |
341 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every | 336 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every |
Offset 356, 41 lines modified | Offset 351, 25 lines modified | ||
356 | <ul> | 351 | <ul> |
357 | <li>trans·-·Transformation·to·use</li> | 352 | <li>trans·-·Transformation·to·use</li> |
358 | </ul> | 353 | </ul> |
359 | <p>See·also:·<a | 354 | <p>See·also:·<a |
360 | href="transformations.html#al_get_current_transform">al_get_current_transform</a>, | 355 | href="transformations.html#al_get_current_transform">al_get_current_transform</a>, |
361 | <a | 356 | <a |
362 | href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p> | 357 | href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p> |
363 | <p>Examples:</p> | ||
364 | <ul> | ||
365 | <li><a | ||
366 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L124">ex_audio_timer.c</a></li> | ||
367 | <li><a | ||
368 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> | ||
369 | <li><a | ||
370 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L234">ex_polygon.c</a></li> | ||
371 | </ul> | ||
372 | <h1·id="al_get_current_transform">al_get_current_transform</h1> | 358 | <h1·id="al_get_current_transform">al_get_current_transform</h1> |
373 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 359 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
374 | <p><a | 360 | <p><a |
375 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source | 361 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source |
376 | Code</a></p> | 362 | Code</a></p> |
377 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a | 363 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a |
378 | href="transformations.html#al_use_transform">al_use_transform</a>.·If | 364 | href="transformations.html#al_use_transform">al_use_transform</a>.·If |
379 | there·is·no·target·bitmap,·this·function·returns·NULL.</p> | 365 | there·is·no·target·bitmap,·this·function·returns·NULL.</p> |
380 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> | 366 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> |
381 | <p>See·also:·<a | 367 | <p>See·also:·<a |
382 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a></p> | 368 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a></p> |
383 | <p>Examples:</p> | ||
384 | <ul> | ||
385 | <li><a | ||
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L138">ex_shader.cpp</a></li> | ||
387 | <li><a | ||
388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L63">ex_color_gradient.c</a></li> | ||
389 | </ul> | ||
390 | <h1·id="al_use_projection_transform">al_use_projection_transform</h1> | 369 | <h1·id="al_use_projection_transform">al_use_projection_transform</h1> |
391 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_projection_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> | 370 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_projection_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> |
392 | <p><a | 371 | <p><a |
393 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L74">Source | 372 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L74">Source |
394 | Code</a></p> | 373 | Code</a></p> |
395 | <p>Sets·the·projection·transformation·to·be·used·for·the·drawing | 374 | <p>Sets·the·projection·transformation·to·be·used·for·the·drawing |
396 | operations·on·the·target·bitmap·(each·bitmap·maintains·its·own | 375 | operations·on·the·target·bitmap·(each·bitmap·maintains·its·own |
Offset 422, 39 lines modified | Offset 401, 25 lines modified | ||
422 | <p>Since:·5.1.9</p> | 401 | <p>Since:·5.1.9</p> |
423 | <p>See·also:·<a | 402 | <p>See·also:·<a |
424 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a>, | 403 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a>, |
425 | <a | 404 | <a |
426 | href="transformations.html#al_perspective_transform">al_perspective_transform</a>, | 405 | href="transformations.html#al_perspective_transform">al_perspective_transform</a>, |
427 | <a | 406 | <a |
428 | href="transformations.html#al_orthographic_transform">al_orthographic_transform</a></p> | 407 | href="transformations.html#al_orthographic_transform">al_orthographic_transform</a></p> |
429 | <p>Examples:</p> | ||
430 | <ul> | ||
431 | <li><a | ||
432 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection.c#L79">ex_projection.c</a></li> | ||
433 | <li><a | ||
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_depth_target.c#L40">ex_depth_target.c</a></li> | ||
435 | <li><a | ||
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L204">ex_camera.c</a></li> | ||
437 | </ul> | ||
438 | <h1 | 408 | <h1 |
439 | id="al_get_current_projection_transform">al_get_current_projection_transform</h1> | 409 | id="al_get_current_projection_transform">al_get_current_projection_transform</h1> |
440 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 410 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
441 | <p><a | 411 | <p><a |
442 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source | 412 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source |
443 | Code</a></p> | 413 | Code</a></p> |
444 | <p>If·there·is·no·target·bitmap,·this·function·returns·NULL.</p> | 414 | <p>If·there·is·no·target·bitmap,·this·function·returns·NULL.</p> |
445 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> | 415 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> |
446 | <p>Since:·5.1.9</p> | 416 | <p>Since:·5.1.9</p> |
447 | <p>See·also:·<a | 417 | <p>See·also:·<a |
448 | href="transformations.html#al_use_projection_transform">al_use_projection_transform</a></p> | 418 | href="transformations.html#al_use_projection_transform">al_use_projection_transform</a></p> |
449 | <p>Examples:</p> | ||
450 | <ul> | ||
451 | <li><a | ||
452 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L325">ex_camera.c</a></li> | ||
453 | </ul> | ||
454 | <h1 | 419 | <h1 |
455 | id="al_get_current_inverse_transform">al_get_current_inverse_transform</h1> | 420 | id="al_get_current_inverse_transform">al_get_current_inverse_transform</h1> |
456 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_inverse_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 421 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_inverse_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
457 | <p><a | 422 | <p><a |
458 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L128">Source | 423 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L128">Source |
459 | Code</a></p> | 424 | Code</a></p> |
460 | <p>Returns·the·inverse·of·the·current·transformation·of·the·target | 425 | <p>Returns·the·inverse·of·the·current·transformation·of·the·target |
Offset 555, 23 lines modified | Offset 520, 14 lines modified | ||
555 | </ul> | 520 | </ul> |
556 | <p>See·also:·<a | 521 | <p>See·also:·<a |
557 | href="transformations.html#al_translate_transform">al_translate_transform</a>, | 522 | href="transformations.html#al_translate_transform">al_translate_transform</a>, |
558 | <a | 523 | <a |
559 | href="transformations.html#al_rotate_transform">al_rotate_transform</a>, | 524 | href="transformations.html#al_rotate_transform">al_rotate_transform</a>, |
560 | <a | 525 | <a |
561 | href="transformations.html#al_scale_transform">al_scale_transform</a></p> | 526 | href="transformations.html#al_scale_transform">al_scale_transform</a></p> |
562 | <p>Examples:</p> | ||
563 | <ul> | ||
564 | <li><a | ||
565 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L122">ex_audio_timer.c</a></li> | ||
566 | <li><a | ||
567 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li> | ||
568 | <li><a | ||
569 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L231">ex_polygon.c</a></li> | ||
570 | </ul> | ||
571 | <h1·id="al_build_transform">al_build_transform</h1> | 527 | <h1·id="al_build_transform">al_build_transform</h1> |
572 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> | 528 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·x<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span></span> |
573 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div> | 529 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·sx<span·class="op">,</span>·<span·class="dt">float</span>·sy<span·class="op">,</span>·<span·class="dt">float</span>·theta<span·class="op">)</span></span></code></pre></div> |
574 | <p><a | 530 | <p><a |
575 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source | 531 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source |
576 | Code</a></p> | 532 | Code</a></p> |
577 | <p>Builds·a·transformation·given·some·parameters.·This·call·is | 533 | <p>Builds·a·transformation·given·some·parameters.·This·call·is |
Offset 594, 23 lines modified | Offset 550, 14 lines modified | ||
594 | href="transformations.html#al_translate_transform">al_translate_transform</a>, | 550 | href="transformations.html#al_translate_transform">al_translate_transform</a>, |
Max diff block lines reached; 18006/25620 bytes (70.28%) of diff not shown. |
Offset 143, 16 lines modified | Offset 143, 14 lines modified | ||
143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
144 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) | 144 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) |
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
146 | Makes·a·copy·of·a·transformation. | 146 | Makes·a·copy·of·a·transformation. |
147 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 147 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
148 | ····*·dest·-·Source·transformation | 148 | ····*·dest·-·Source·transformation |
149 | ····*·src·-·Destination·transformation | 149 | ····*·src·-·Destination·transformation |
150 | Examples: | ||
151 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
152 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
153 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) | 151 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) |
154 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
155 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target | 153 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target |
156 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation | 154 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation |
157 | after·this·call·will·be·transformed·using·this·transformation.·Call·this | 155 | after·this·call·will·be·transformed·using·this·transformation.·Call·this |
158 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. | 156 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. |
Offset 165, 28 lines modified | Offset 163, 21 lines modified | ||
165 | ···ALLEGRO_TRANSFORM·transform; | 163 | ···ALLEGRO_TRANSFORM·transform; |
166 | ···al_translate_transform(&transform,·5,·10); | 164 | ···al_translate_transform(&transform,·5,·10); |
167 | ···al_use_transform(&transform); | 165 | ···al_use_transform(&transform); |
168 | } | 166 | } |
169 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 167 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
170 | ····*·trans·-·Transformation·to·use | 168 | ····*·trans·-·Transformation·to·use |
171 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e_\x8s | 169 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e_\x8s |
172 | Examples: | ||
173 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
174 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
175 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | ||
176 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 170 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
177 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) | 171 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) |
178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
179 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by | 173 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by |
180 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m.·If·there·is·no·target·bitmap,·this·function·returns·NULL. | 174 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m.·If·there·is·no·target·bitmap,·this·function·returns·NULL. |
181 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. | 175 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. |
182 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 176 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
183 | Examples: | ||
184 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
185 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 177 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
187 | void·al_use_projection_transform(const·ALLEGRO_TRANSFORM·*trans) | 178 | void·al_use_projection_transform(const·ALLEGRO_TRANSFORM·*trans) |
188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
189 | Sets·the·projection·transformation·to·be·used·for·the·drawing·operations·on·the | 180 | Sets·the·projection·transformation·to·be·used·for·the·drawing·operations·on·the |
190 | target·bitmap·(each·bitmap·maintains·its·own·projection·transformation).·Every | 181 | target·bitmap·(each·bitmap·maintains·its·own·projection·transformation).·Every |
191 | drawing·operation·after·this·call·will·be·transformed·using·this | 182 | drawing·operation·after·this·call·will·be·transformed·using·this |
192 | transformation.·To·return·default·behavior,·call·this·function·with·an | 183 | transformation.·To·return·default·behavior,·call·this·function·with·an |
Offset 210, 27 lines modified | Offset 201, 21 lines modified | ||
210 | projection·transform·of·the·target·bitmap·was·temporarily·reset·to·default). | 201 | projection·transform·of·the·target·bitmap·was·temporarily·reset·to·default). |
211 | The·parameter·is·passed·by·reference·as·an·optimization·to·avoid·the·overhead | 202 | The·parameter·is·passed·by·reference·as·an·optimization·to·avoid·the·overhead |
212 | of·stack·copying.·The·reference·will·not·be·stored·in·the·Allegro·library·so·it | 203 | of·stack·copying.·The·reference·will·not·be·stored·in·the·Allegro·library·so·it |
213 | is·safe·to·pass·references·to·local·variables. | 204 | is·safe·to·pass·references·to·local·variables. |
214 | Since:·5.1.9 | 205 | Since:·5.1.9 |
215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, | 206 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, |
216 | _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 207 | _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
217 | Examples: | ||
218 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c | ||
219 | ····*·_\x8e_\x8x_\x8__\x8d_\x8e_\x8p_\x8t_\x8h_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
220 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
221 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 208 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
222 | const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void) | 209 | const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void) |
223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
224 | If·there·is·no·target·bitmap,·this·function·returns·NULL. | 211 | If·there·is·no·target·bitmap,·this·function·returns·NULL. |
225 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. | 212 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. |
226 | Since:·5.1.9 | 213 | Since:·5.1.9 |
227 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 214 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
228 | Examples: | ||
229 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
230 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nv\x8ve\x8er\x8rs\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 215 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nv\x8ve\x8er\x8rs\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
231 | const·ALLEGRO_TRANSFORM·*al_get_current_inverse_transform(void) | 216 | const·ALLEGRO_TRANSFORM·*al_get_current_inverse_transform(void) |
232 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 217 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
233 | Returns·the·inverse·of·the·current·transformation·of·the·target·bitmap.·If | 218 | Returns·the·inverse·of·the·current·transformation·of·the·target·bitmap.·If |
234 | there·is·no·target·bitmap,·this·function·returns·NULL. | 219 | there·is·no·target·bitmap,·this·function·returns·NULL. |
235 | This·is·similar·to·calling·al_invert_transform(al_get_current_transform())·but | 220 | This·is·similar·to·calling·al_invert_transform(al_get_current_transform())·but |
236 | the·result·of·this·function·is·cached. | 221 | the·result·of·this·function·is·cached. |
Offset 295, 18 lines modified | Offset 280, 14 lines modified | ||
295 | the·default. | 280 | the·default. |
296 | ALLEGRO_TRANSFORM·t; | 281 | ALLEGRO_TRANSFORM·t; |
297 | al_identity_transform(&t); | 282 | al_identity_transform(&t); |
298 | al_use_transform(&t); | 283 | al_use_transform(&t); |
299 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 284 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
300 | ····*·trans·-·Transformation·to·alter | 285 | ····*·trans·-·Transformation·to·alter |
301 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 286 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
302 | Examples: | ||
303 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
304 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
305 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | ||
306 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 287 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
307 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, | 288 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, |
308 | ···float·sx,·float·sy,·float·theta) | 289 | ···float·sx,·float·sy,·float·theta) |
309 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 290 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
310 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to | 291 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to |
311 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, | 292 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, |
312 | translate.·This·method·is·faster,·however,·than·actually·calling·those | 293 | translate.·This·method·is·faster,·however,·than·actually·calling·those |
Offset 317, 18 lines modified | Offset 298, 14 lines modified | ||
317 | ····*·sx,·sy·-·Scale | 298 | ····*·sx,·sy·-·Scale |
318 | ····*·theta·-·Rotation·angle·in·radians | 299 | ····*·theta·-·Rotation·angle·in·radians |
319 | ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a | 300 | ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a |
320 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, | 301 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, |
321 | ·····rotate,·translate. | 302 | ·····rotate,·translate. |
322 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, | 303 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, |
323 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 304 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
324 | Examples: | ||
325 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
326 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
327 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
328 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_c\x8ca\x8am\x8me\x8er\x8ra\x8a_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 305 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_c\x8ca\x8am\x8me\x8er\x8ra\x8a_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
329 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, | 306 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, |
330 | ···float·position_x,·float·position_y,·float·position_z, | 307 | ···float·position_x,·float·position_y,·float·position_z, |
331 | ···float·look_x,·float·look_y,·float·look_z, | 308 | ···float·look_x,·float·look_y,·float·look_z, |
332 | ···float·up_x,·float·up_y,·float·up_z) | 309 | ···float·up_x,·float·up_y,·float·up_z) |
333 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 310 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
334 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world | 311 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world |
Offset 357, 77 lines modified | Offset 334, 59 lines modified | ||
357 | al_build_camera_transform(&t, | 334 | al_build_camera_transform(&t, |
358 | ····1,·1,·1, | 335 | ····1,·1,·1, |
359 | ····5,·5,·5, | 336 | ····5,·5,·5, |
360 | ····1,·1,·0); | 337 | ····1,·1,·0); |
361 | Since·5.1.9 | 338 | Since·5.1.9 |
362 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d, | 339 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d, |
363 | _\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 340 | _\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x83_\x8d,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
364 | Examples: | ||
365 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
366 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sl\x8la\x8at\x8te\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 341 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sl\x8la\x8at\x8te\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
367 | void·al_translate_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y) | 342 | void·al_translate_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y) |
368 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 343 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
369 | Apply·a·translation·to·a·transformation. | 344 | Apply·a·translation·to·a·transformation. |
370 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 345 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
371 | ····*·trans·-·Transformation·to·alter | 346 | ····*·trans·-·Transformation·to·alter |
Max diff block lines reached; 8220/15601 bytes (52.69%) of diff not shown. |
Offset 473, 38 lines modified | Offset 473, 24 lines modified | ||
473 | <code>s</code>.·The·string·must·eventually·be·freed·with·<a | 473 | <code>s</code>.·The·string·must·eventually·be·freed·with·<a |
474 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> | 474 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> |
475 | <p>See·also:·<a | 475 | <p>See·also:·<a |
476 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a | 476 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a |
477 | href="utf8.html#al_ustr_newf">al_ustr_newf</a>,·<a | 477 | href="utf8.html#al_ustr_newf">al_ustr_newf</a>,·<a |
478 | href="utf8.html#al_ustr_dup">al_ustr_dup</a>,·<a | 478 | href="utf8.html#al_ustr_dup">al_ustr_dup</a>,·<a |
479 | href="utf8.html#al_ustr_new_from_utf16">al_ustr_new_from_utf16</a></p> | 479 | href="utf8.html#al_ustr_new_from_utf16">al_ustr_new_from_utf16</a></p> |
480 | <p>Examples:</p> | ||
481 | <ul> | ||
482 | <li><a | ||
483 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li> | ||
484 | <li><a | ||
485 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L54">ex_utf8.c</a></li> | ||
486 | <li><a | ||
487 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li> | ||
488 | </ul> | ||
489 | <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2> | 480 | <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2> |
490 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new_from_buffer<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> | 481 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new_from_buffer<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> |
491 | <p><a | 482 | <p><a |
492 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source | 483 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source |
493 | Code</a></p> | 484 | Code</a></p> |
494 | <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by | 485 | <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by |
495 | <code>s</code>·of·the·given·<code>size</code>·in·bytes.·The·string·must | 486 | <code>s</code>·of·the·given·<code>size</code>·in·bytes.·The·string·must |
496 | eventually·be·freed·with·<a | 487 | eventually·be·freed·with·<a |
497 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> | 488 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> |
498 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a></p> | 489 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a></p> |
499 | <p>Examples:</p> | ||
500 | <ul> | ||
501 | <li><a | ||
502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L845">ex_utf8.c</a></li> | ||
503 | </ul> | ||
504 | <h2·id="al_ustr_newf">al_ustr_newf</h2> | 490 | <h2·id="al_ustr_newf">al_ustr_newf</h2> |
505 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_newf<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>fmt<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> | 491 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_newf<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>fmt<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> |
506 | <p><a | 492 | <p><a |
507 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L78">Source | 493 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L78">Source |
508 | Code</a></p> | 494 | Code</a></p> |
509 | <p>Create·a·new·string·using·a·printf-style·format·string.</p> | 495 | <p>Create·a·new·string·using·a·printf-style·format·string.</p> |
510 | <p><em>Notes:</em></p> | 496 | <p><em>Notes:</em></p> |
Offset 517, 38 lines modified | Offset 503, 24 lines modified | ||
517 | code·point.·Therefore·it·is·only·usable·for·ASCII·characters·(value | 503 | code·point.·Therefore·it·is·only·usable·for·ASCII·characters·(value |
518 | <=·127)·or·if·you·really·mean·to·output·byte·values·from·128–255.·To | 504 | <=·127)·or·if·you·really·mean·to·output·byte·values·from·128–255.·To |
519 | insert·the·UTF-8·encoding·of·a·code·point,·encode·it·into·a·memory | 505 | insert·the·UTF-8·encoding·of·a·code·point,·encode·it·into·a·memory |
520 | buffer·using·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>·then | 506 | buffer·using·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>·then |
521 | use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer.</p> | 507 | use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer.</p> |
522 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a | 508 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a |
523 | href="utf8.html#al_ustr_appendf">al_ustr_appendf</a></p> | 509 | href="utf8.html#al_ustr_appendf">al_ustr_appendf</a></p> |
524 | <p>Examples:</p> | ||
525 | <ul> | ||
526 | <li><a | ||
527 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L1006">ex_utf8.c</a></li> | ||
528 | </ul> | ||
529 | <h2·id="al_ustr_free">al_ustr_free</h2> | 510 | <h2·id="al_ustr_free">al_ustr_free</h2> |
530 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_free<span·class="op">(</span>ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> | 511 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_free<span·class="op">(</span>ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> |
531 | <p><a | 512 | <p><a |
532 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L93">Source | 513 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L93">Source |
533 | Code</a></p> | 514 | Code</a></p> |
534 | <p>Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is | 515 | <p>Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is |
535 | NULL.</p> | 516 | NULL.</p> |
536 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a | 517 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a |
537 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a | 518 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a |
538 | href="utf8.html#al_ustr_newf">al_ustr_newf</a></p> | 519 | href="utf8.html#al_ustr_newf">al_ustr_newf</a></p> |
539 | <p>Examples:</p> | ||
540 | <ul> | ||
541 | <li><a | ||
542 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L761">nihgui.cpp</a></li> | ||
543 | <li><a | ||
544 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L61">ex_utf8.c</a></li> | ||
545 | <li><a | ||
546 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L77">ex_loading_thread.c</a></li> | ||
547 | </ul> | ||
548 | <h2·id="al_cstr">al_cstr</h2> | 520 | <h2·id="al_cstr">al_cstr</h2> |
549 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> | 521 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> |
550 | <p><a | 522 | <p><a |
551 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source | 523 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source |
552 | Code</a></p> | 524 | Code</a></p> |
553 | <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This | 525 | <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This |
554 | pointer·will·only·be·valid·while·the·<a | 526 | pointer·will·only·be·valid·while·the·<a |
Offset 566, 71 lines modified | Offset 538, 47 lines modified | ||
566 | <li><p>If·the·ALLEGRO_USTR·references·another·string,·the·returned·C | 538 | <li><p>If·the·ALLEGRO_USTR·references·another·string,·the·returned·C |
567 | string·will·point·into·the·referenced·string.·Again,·no·NUL·terminator | 539 | string·will·point·into·the·referenced·string.·Again,·no·NUL·terminator |
568 | will·be·added·to·the·referenced·string.</p></li> | 540 | will·be·added·to·the·referenced·string.</p></li> |
569 | </ul> | 541 | </ul> |
570 | <p>See·also:·<a | 542 | <p>See·also:·<a |
571 | href="utf8.html#al_ustr_to_buffer">al_ustr_to_buffer</a>,·<a | 543 | href="utf8.html#al_ustr_to_buffer">al_ustr_to_buffer</a>,·<a |
572 | href="utf8.html#al_cstr_dup">al_cstr_dup</a></p> | 544 | href="utf8.html#al_cstr_dup">al_cstr_dup</a></p> |
573 | <p>Examples:</p> | ||
574 | <ul> | ||
575 | <li><a | ||
576 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L895">nihgui.cpp</a></li> | ||
577 | <li><a | ||
578 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L57">ex_utf8.c</a></li> | ||
579 | <li><a | ||
580 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L76">ex_loading_thread.c</a></li> | ||
581 | </ul> | ||
582 | <h2·id="al_ustr_to_buffer">al_ustr_to_buffer</h2> | 545 | <h2·id="al_ustr_to_buffer">al_ustr_to_buffer</h2> |
583 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_to_buffer<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">*</span>buffer<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">)</span></span></code></pre></div> | 546 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_to_buffer<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">*</span>buffer<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">)</span></span></code></pre></div> |
584 | <p><a | 547 | <p><a |
585 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L110">Source | 548 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L110">Source |
586 | Code</a></p> | 549 | Code</a></p> |
587 | <p>Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the | 550 | <p>Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the |
588 | given·size·in·bytes.·The·result·will·always·be·NUL·terminated,·so·a | 551 | given·size·in·bytes.·The·result·will·always·be·NUL·terminated,·so·a |
589 | maximum·of·<code>size·-·1</code>·bytes·will·be·copied.</p> | 552 | maximum·of·<code>size·-·1</code>·bytes·will·be·copied.</p> |
590 | <p>See·also:·<a·href="utf8.html#al_cstr">al_cstr</a>,·<a | 553 | <p>See·also:·<a·href="utf8.html#al_cstr">al_cstr</a>,·<a |
591 | href="utf8.html#al_cstr_dup">al_cstr_dup</a></p> | 554 | href="utf8.html#al_cstr_dup">al_cstr_dup</a></p> |
592 | <p>Examples:</p> | ||
593 | <ul> | ||
594 | <li><a | ||
595 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L1179">ex_utf8.c</a></li> | ||
596 | </ul> | ||
597 | <h2·id="al_cstr_dup">al_cstr_dup</h2> | 555 | <h2·id="al_cstr_dup">al_cstr_dup</h2> |
598 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="op">*</span>al_cstr_dup<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> | 556 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="op">*</span>al_cstr_dup<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> |
599 | <p><a | 557 | <p><a |
600 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L126">Source | 558 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L126">Source |
601 | Code</a></p> | 559 | Code</a></p> |
602 | <p>Create·a·NUL·(<code>'\0'</code>)·terminated·copy·of·the·string.·Any | 560 | <p>Create·a·NUL·(<code>'\0'</code>)·terminated·copy·of·the·string.·Any |
603 | embedded·NUL·bytes·will·still·be·presented·in·the·returned·string.·The | 561 | embedded·NUL·bytes·will·still·be·presented·in·the·returned·string.·The |
604 | new·string·must·eventually·be·freed·with·<a | 562 | new·string·must·eventually·be·freed·with·<a |
605 | href="memory.html#al_free">al_free</a>.</p> | 563 | href="memory.html#al_free">al_free</a>.</p> |
606 | <p>If·an·error·occurs·NULL·is·returned.</p> | 564 | <p>If·an·error·occurs·NULL·is·returned.</p> |
607 | <p>See·also:·<a·href="utf8.html#al_cstr">al_cstr</a>,·<a | 565 | <p>See·also:·<a·href="utf8.html#al_cstr">al_cstr</a>,·<a |
608 | href="utf8.html#al_ustr_to_buffer">al_ustr_to_buffer</a>,·<a | 566 | href="utf8.html#al_ustr_to_buffer">al_ustr_to_buffer</a>,·<a |
609 | href="memory.html#al_free">al_free</a></p> | 567 | href="memory.html#al_free">al_free</a></p> |
610 | <p>Examples:</p> | ||
611 | <ul> | ||
612 | <li><a | ||
613 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L845">ex_utf8.c</a></li> | ||
614 | </ul> | ||
Max diff block lines reached; 37845/45624 bytes (82.95%) of diff not shown. |
Offset 210, 26 lines modified | Offset 210, 20 lines modified | ||
210 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* | 210 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* |
211 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) | 211 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) |
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must | 213 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must |
214 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 214 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
215 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p, | 215 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p, |
216 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 | 216 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 |
217 | Examples: | ||
218 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
219 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
220 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
221 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 217 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
222 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) | 218 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) |
223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
224 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the | 220 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the |
225 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 221 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
226 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w | 222 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w |
227 | Examples: | ||
228 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
229 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* | 223 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* |
230 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) | 224 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 225 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Create·a·new·string·using·a·printf-style·format·string. | 226 | Create·a·new·string·using·a·printf-style·format·string. |
233 | N\x8No\x8ot\x8te\x8es\x8s:\x8: | 227 | N\x8No\x8ot\x8te\x8es\x8s:\x8: |
234 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to | 228 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to |
235 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL | 229 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL |
Offset 237, 25 lines modified | Offset 231, 19 lines modified | ||
237 | byte·onwards·will·be·ignored. | 231 | byte·onwards·will·be·ignored. |
238 | The·“%c”·specifier·outputs·a·single·byte,·not·the·UTF-8·encoding·of·a·code | 232 | The·“%c”·specifier·outputs·a·single·byte,·not·the·UTF-8·encoding·of·a·code |
239 | point.·Therefore·it·is·only·usable·for·ASCII·characters·(value·<=·127)·or·if | 233 | point.·Therefore·it·is·only·usable·for·ASCII·characters·(value·<=·127)·or·if |
240 | you·really·mean·to·output·byte·values·from·128–255.·To·insert·the·UTF- | 234 | you·really·mean·to·output·byte·values·from·128–255.·To·insert·the·UTF- |
241 | 8·encoding·of·a·code·point,·encode·it·into·a·memory·buffer·using·_\x8a_\x8l_\x8__\x8u_\x8t_\x8f_\x88_\x8__\x8e_\x8n_\x8c_\x8o_\x8d_\x8e | 235 | 8·encoding·of·a·code·point,·encode·it·into·a·memory·buffer·using·_\x8a_\x8l_\x8__\x8u_\x8t_\x8f_\x88_\x8__\x8e_\x8n_\x8c_\x8o_\x8d_\x8e |
242 | then·use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer. | 236 | then·use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer. |
243 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8f | 237 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8f |
244 | Examples: | ||
245 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
246 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8* | 238 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8* |
247 | void·al_ustr_free(ALLEGRO_USTR·*us) | 239 | void·al_ustr_free(ALLEGRO_USTR·*us) |
248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 240 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
249 | Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL. | 241 | Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL. |
250 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f | 242 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f |
251 | Examples: | ||
252 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
253 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
254 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
255 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* | 243 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* |
256 | const·char·*al_cstr(const·ALLEGRO_USTR·*us) | 244 | const·char·*al_cstr(const·ALLEGRO_USTR·*us) |
257 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
258 | Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid | 246 | Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid |
259 | while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer | 247 | while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer |
260 | may·be·passed·to·functions·expecting·C-style·strings,·with·the·following | 248 | may·be·passed·to·functions·expecting·C-style·strings,·with·the·following |
261 | caveats: | 249 | caveats: |
Offset 265, 95 lines modified | Offset 253, 74 lines modified | ||
265 | ······terminated.·A·string·which·is·dynamically·allocated·will·always·be·NUL | 253 | ······terminated.·A·string·which·is·dynamically·allocated·will·always·be·NUL |
266 | ······terminated,·but·a·string·which·references·the·middle·of·another·string·or | 254 | ······terminated,·but·a·string·which·references·the·middle·of·another·string·or |
267 | ······region·of·memory·will·n\x8no\x8ot\x8t·be·NUL·terminated. | 255 | ······region·of·memory·will·n\x8no\x8ot\x8t·be·NUL·terminated. |
268 | ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will | 256 | ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will |
269 | ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added | 257 | ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added |
270 | ······to·the·referenced·string. | 258 | ······to·the·referenced·string. |
271 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p | 259 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p |
272 | Examples: | ||
273 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
274 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
275 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
276 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 260 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
277 | void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size) | 261 | void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size) |
278 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 262 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
279 | Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size | 263 | Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size |
280 | in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1 | 264 | in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1 |
281 | bytes·will·be·copied. | 265 | bytes·will·be·copied. |
282 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p | 266 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p |
283 | Examples: | ||
284 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
285 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* | 267 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* |
286 | char·*al_cstr_dup(const·ALLEGRO_USTR·*us) | 268 | char·*al_cstr_dup(const·ALLEGRO_USTR·*us) |
287 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 269 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
288 | Create·a·NUL·('\0')·terminated·copy·of·the·string.·Any·embedded·NUL·bytes·will | 270 | Create·a·NUL·('\0')·terminated·copy·of·the·string.·Any·embedded·NUL·bytes·will |
289 | still·be·presented·in·the·returned·string.·The·new·string·must·eventually·be | 271 | still·be·presented·in·the·returned·string.·The·new·string·must·eventually·be |
290 | freed·with·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e. | 272 | freed·with·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e. |
291 | If·an·error·occurs·NULL·is·returned. | 273 | If·an·error·occurs·NULL·is·returned. |
292 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e | 274 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e |
293 | Examples: | ||
294 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
295 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* | 275 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* |
296 | ALLEGRO_USTR·*al_ustr_dup(const·ALLEGRO_USTR·*us) | 276 | ALLEGRO_USTR·*al_ustr_dup(const·ALLEGRO_USTR·*us) |
297 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 277 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
298 | Return·a·duplicate·copy·of·a·string.·The·new·string·will·need·to·be·freed·with | 278 | Return·a·duplicate·copy·of·a·string.·The·new·string·will·need·to·be·freed·with |
299 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 279 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
300 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p_\x8__\x8s_\x8u_\x8b_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e | 280 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p_\x8__\x8s_\x8u_\x8b_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e |
301 | Examples: | ||
302 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
303 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p_\x8_s\x8su\x8ub\x8bs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* | 281 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p_\x8_s\x8su\x8ub\x8bs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* |
304 | ALLEGRO_USTR·*al_ustr_dup_substr(const·ALLEGRO_USTR·*us,·int·start_pos, | 282 | ALLEGRO_USTR·*al_ustr_dup_substr(const·ALLEGRO_USTR·*us,·int·start_pos, |
305 | ···int·end_pos) | 283 | ···int·end_pos) |
306 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 284 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
307 | Return·a·new·copy·of·a·string,·containing·its·contents·in·the·byte·interval | 285 | Return·a·new·copy·of·a·string,·containing·its·contents·in·the·byte·interval |
308 | [start_pos,·end_pos).·The·new·string·will·be·NUL·terminated·and·will·need·to·be | 286 | [start_pos,·end_pos).·The·new·string·will·be·NUL·terminated·and·will·need·to·be |
309 | freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 287 | freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
310 | If·necessary,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·byte·offsets·for·a·given·code | 288 | If·necessary,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·byte·offsets·for·a·given·code |
311 | point·that·you·are·interested·in. | 289 | point·that·you·are·interested·in. |
312 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e | 290 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e |
313 | Examples: | ||
314 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
315 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8re\x8ed\x8de\x8ef\x8fi\x8in\x8ne\x8ed\x8d·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 291 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8re\x8ed\x8de\x8ef\x8fi\x8in\x8ne\x8ed\x8d·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
316 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_e\x8em\x8mp\x8pt\x8ty\x8y_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8* | 292 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_e\x8em\x8mp\x8pt\x8ty\x8y_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8* |
317 | const·ALLEGRO_USTR·*al_ustr_empty_string(void) | 293 | const·ALLEGRO_USTR·*al_ustr_empty_string(void) |
318 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
319 | Return·a·pointer·to·a·static·empty·string.·The·string·is·read·only·and·must·not | 295 | Return·a·pointer·to·a·static·empty·string.·The·string·is·read·only·and·must·not |
320 | be·freed. | 296 | be·freed. |
321 | Examples: | ||
322 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
323 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·b\x8by\x8y·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ci\x8in\x8ng\x8g·o\x8ot\x8th\x8he\x8er\x8r·d\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8**\x8* | 297 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·b\x8by\x8y·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ci\x8in\x8ng\x8g·o\x8ot\x8th\x8he\x8er\x8r·d\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8**\x8* |
324 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* | 298 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* |
325 | const·ALLEGRO_USTR·*al_ref_cstr(ALLEGRO_USTR_INFO·*info,·const·char·*s) | 299 | const·ALLEGRO_USTR·*al_ref_cstr(ALLEGRO_USTR_INFO·*info,·const·char·*s) |
326 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 300 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
327 | Create·a·string·that·references·the·storage·of·a·C-style·string.·The | 301 | Create·a·string·that·references·the·storage·of·a·C-style·string.·The |
328 | information·about·the·string·(e.g. its·size)·is·stored·in·the·structure·pointed | 302 | information·about·the·string·(e.g. its·size)·is·stored·in·the·structure·pointed |
329 | to·by·the·info·parameter.·The·string·will·not·have·any·other·storage·allocated | 303 | to·by·the·info·parameter.·The·string·will·not·have·any·other·storage·allocated |
330 | of·its·own,·so·if·you·allocate·the·info·structure·on·the·stack·then·no·explicit | 304 | of·its·own,·so·if·you·allocate·the·info·structure·on·the·stack·then·no·explicit |
331 | “free”·operation·is·required. | 305 | “free”·operation·is·required. |
332 | The·string·is·valid·until·the·underlying·C·string·disappears. | 306 | The·string·is·valid·until·the·underlying·C·string·disappears. |
333 | Example: | 307 | Example: |
334 | ALLEGRO_USTR_INFO·info; | 308 | ALLEGRO_USTR_INFO·info; |
335 | ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string"); | 309 | ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string"); |
336 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r | 310 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r |
337 | Examples: | ||
338 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | ||
Max diff block lines reached; 17609/24996 bytes (70.45%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3428·2025-01-09·13:52:42.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3428·2025-01-09·13:52:42.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···1134 | 3 | -rw-r--r--···0········0········0···113408·2025-01-09·13:52:42.000000·data.tar.xz |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/ | 93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/ |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)·····3996·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/alplatf.h | 95 | -rw-r--r--···0·root·········(0)·root·········(0)·····3996·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/alplatf.h |
96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/ | 96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/ |
97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/ | 97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/ |
98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/ | 98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/ |
99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/ | 99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/ |
100 | -rw-r--r--···0·root·········(0)·root·········(0)·····160 | 100 | -rw-r--r--···0·root·········(0)·root·········(0)·····1606·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfig.cmake |
101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfigVersion.cmake | 101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfigVersion.cmake |
102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7642·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets-none.cmake | 102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7642·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets-none.cmake |
103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9526·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets.cmake | 103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9526·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets.cmake |
104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/ | 104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/ |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······315·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro-5.pc | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······315·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro-5.pc |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_color-5.pc | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_color-5.pc |
107 | -rw-r--r--···0·root·········(0)·root·········(0)······374·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_font-5.pc | 107 | -rw-r--r--···0·root·········(0)·root·········(0)······374·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_font-5.pc |
Offset 31, 11 lines modified | Offset 31, 11 lines modified | ||
31 | set(ALLEGRO_PKG_VERSION_PATCH·10) | 31 | set(ALLEGRO_PKG_VERSION_PATCH·10) |
32 | set(ALLEGRO_PKG_VERSION·5.2.10) | 32 | set(ALLEGRO_PKG_VERSION·5.2.10) |
33 | #·Architecture,·compiler·and·other·low·level·flags | 33 | #·Architecture,·compiler·and·other·low·level·flags |
34 | set(ALLEGRO_PKG_LIBRARY_ARCHITECTURE·"x86_64-linux-gnu") | 34 | set(ALLEGRO_PKG_LIBRARY_ARCHITECTURE·"x86_64-linux-gnu") |
35 | set(ALLEGRO_PKG_COMPILER·"GNU") | 35 | set(ALLEGRO_PKG_COMPILER·"GNU") |
36 | set(ALLEGRO_PKG_COMPILER_VERSION·"14.2.0") | 36 | set(ALLEGRO_PKG_COMPILER_VERSION·"14.2.0") |
37 | set(ALLEGRO_PKG_HOST_SYSTEM·"Linux-6.1 | 37 | set(ALLEGRO_PKG_HOST_SYSTEM·"Linux-6.1.0-37-amd64") |
38 | #·Targets | 38 | #·Targets |
39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") | 39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") |