Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·69d59a0374534355c57fdf3cb7eeb316·1399568·doc·optional·allegro5-doc_5.2.10.0+dfsg-1_all.deb |
2 | ·1ca042c5cff7c143735abdb2108502c5·19292·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_armhf.deb | 2 | ·1ca042c5cff7c143735abdb2108502c5·19292·libdevel·optional·liballegro-acodec5-dev_5.2.10.0+dfsg-1_armhf.deb |
3 | ·d75098adb08656ee37e875126b8ef6c5·63548·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb | 3 | ·d75098adb08656ee37e875126b8ef6c5·63548·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb |
4 | ·b3444b74f449b0d2d0968c6f98d9d8d1·38316·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_armhf.deb | 4 | ·b3444b74f449b0d2d0968c6f98d9d8d1·38316·libs·optional·liballegro-acodec5.2t64_5.2.10.0+dfsg-1_armhf.deb |
5 | ·942b5337e5a4567af50c6a3cffdf1c2a·22064·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_armhf.deb | 5 | ·942b5337e5a4567af50c6a3cffdf1c2a·22064·libdevel·optional·liballegro-audio5-dev_5.2.10.0+dfsg-1_armhf.deb |
6 | ·670da21d286751321cf7eb9838f57970·108676·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb | 6 | ·670da21d286751321cf7eb9838f57970·108676·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb |
7 | ·5345eb0eb80eb0b8a70b78b33eda65f7·56004·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_armhf.deb | 7 | ·5345eb0eb80eb0b8a70b78b33eda65f7·56004·libs·optional·liballegro-audio5.2t64_5.2.10.0+dfsg-1_armhf.deb |
8 | ·cdbbd2b7993ff22ef0677f5170a547c1·20344·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_armhf.deb | 8 | ·cdbbd2b7993ff22ef0677f5170a547c1·20344·libdevel·optional·liballegro-dialog5-dev_5.2.10.0+dfsg-1_armhf.deb |
Offset 17, 10 lines modified | Offset 17, 10 lines modified | ||
17 | ·2af83466bbf42fc03ef249acde1689e1·22472·libs·optional·liballegro-physfs5.2t64_5.2.10.0+dfsg-1_armhf.deb | 17 | ·2af83466bbf42fc03ef249acde1689e1·22472·libs·optional·liballegro-physfs5.2t64_5.2.10.0+dfsg-1_armhf.deb |
18 | ·7d5585a995f96bb28be36cd17836aba6·19392·libdevel·optional·liballegro-ttf5-dev_5.2.10.0+dfsg-1_armhf.deb | 18 | ·7d5585a995f96bb28be36cd17836aba6·19392·libdevel·optional·liballegro-ttf5-dev_5.2.10.0+dfsg-1_armhf.deb |
19 | ·6a9fd036e63bc5a5d77a276754bd1068·31568·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb | 19 | ·6a9fd036e63bc5a5d77a276754bd1068·31568·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb |
20 | ·8b4df2acdab20f5a9172b85396ef95fd·27184·libs·optional·liballegro-ttf5.2t64_5.2.10.0+dfsg-1_armhf.deb | 20 | ·8b4df2acdab20f5a9172b85396ef95fd·27184·libs·optional·liballegro-ttf5.2t64_5.2.10.0+dfsg-1_armhf.deb |
21 | ·1ea735e7afe76cd902769884361977d2·19672·libdevel·optional·liballegro-video5-dev_5.2.10.0+dfsg-1_armhf.deb | 21 | ·1ea735e7afe76cd902769884361977d2·19672·libdevel·optional·liballegro-video5-dev_5.2.10.0+dfsg-1_armhf.deb |
22 | ·c7b074f91451f7002bc4114ffe46cdda·39372·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb | 22 | ·c7b074f91451f7002bc4114ffe46cdda·39372·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb |
23 | ·6ac2873064ed7e1d96e2012beb5bfeef·32140·libs·optional·liballegro-video5.2t64_5.2.10.0+dfsg-1_armhf.deb | 23 | ·6ac2873064ed7e1d96e2012beb5bfeef·32140·libs·optional·liballegro-video5.2t64_5.2.10.0+dfsg-1_armhf.deb |
24 | · | 24 | ·3c1c3e5056a10367e0601fbdfe81aba4·116912·libdevel·optional·liballegro5-dev_5.2.10.0+dfsg-1_armhf.deb |
25 | ·e0927a72bfd89cc26f5e71d279642fcd·1233260·debug·optional·liballegro5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb | 25 | ·e0927a72bfd89cc26f5e71d279642fcd·1233260·debug·optional·liballegro5.2t64-dbgsym_5.2.10.0+dfsg-1_armhf.deb |
26 | ·5448e52038c36d3813ecca2e0be48367·376444·libs·optional·liballegro5.2t64_5.2.10.0+dfsg-1_armhf.deb | 26 | ·5448e52038c36d3813ecca2e0be48367·376444·libs·optional·liballegro5.2t64_5.2.10.0+dfsg-1_armhf.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary |
2 | -rw-r--r--···0········0········0····316 | 2 | -rw-r--r--···0········0········0····31644·2024-11-29·14:21:22.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··136 | 3 | -rw-r--r--···0········0········0··1367732·2024-11-29·14:21:22.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.0+dfsg-1 | 3 | Version:·2:5.2.10.0+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:·56 | 6 | Installed-Size:·5610 |
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 204, 59 lines modified | Offset 204, 59 lines modified | ||
204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/ | 204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/ |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····11782·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/acodec.html | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····11782·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)···234053·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/audio.html | 206 | -rw-r--r--···0·root·········(0)·root·········(0)···234053·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····66987·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/color.html | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····66987·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····37788·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/config.html | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····37788·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/config.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17712·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17712·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····8902 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····89026·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····81992·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····62 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····62299·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/file.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····56556·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fixed.html | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····56556·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)····9 | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····93281·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····42369·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fshook.html | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····42369·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····13488·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····13488·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····17055·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····17055·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···2243 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···224317·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····69780·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/haptic.html | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····69780·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····12034·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/image.html |
222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/ | 222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/ |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····35289·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/joystick.html | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····35289·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····24132·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····24132·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/main.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/main.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10382·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····2414 | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····24146·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····10394·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/misc.html | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····10394·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····15363·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/monitor.html | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····15363·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····4391 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····43910·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/mouse.html |
238 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 238 | -rw-r--r--···0·root·········(0)·root·········(0)····74835·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····27233·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····27233·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····38119·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/path.html | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····38119·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/path.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····11716·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····31625·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····31625·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/platform.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)···1 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)···136387·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····45920·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/shader.html | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····45920·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····15871·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/state.html | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····15871·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····72351·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/system.html | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····72351·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/system.html |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····354 | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····35476·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····12633·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/time.html | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····12633·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/time.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····26749·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/timer.html | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····26749·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····222 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····22271·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)····824 | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····82410·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)···1045 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)···104508·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····29995·2024-11-29·14:21:22.000000·./usr/share/doc/allegro5-doc/refman/video.html |
256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc-base/ | 256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/doc-base/ |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-11-29·14:18:22.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-11-29·14:18:22.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/ |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/man3/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/share/man/man3/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-11-29·14:21:22.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
Offset 350, 17 lines modified | Offset 350, 17 lines modified | ||
350 | Code</a></p> | 350 | Code</a></p> |
351 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 351 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
352 | <p>Examples:</p> | 352 | <p>Examples:</p> |
353 | <ul> | 353 | <ul> |
354 | <li><a | 354 | <li><a |
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | 355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> |
356 | <li><a | 356 | <li><a |
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ | 357 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L33">common.c</a></li> |
358 | <li><a | 358 | <li><a |
359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> |
360 | </ul> | 360 | </ul> |
361 | <h2·id="al_create_display">al_create_display</h2> | 361 | <h2·id="al_create_display">al_create_display</h2> |
362 | <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_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> | 362 | <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_DISPLAY·<span·class="op">*</span>al_create_display<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> |
363 | <p><a | 363 | <p><a |
364 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source | 364 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L38">Source |
365 | Code</a></p> | 365 | Code</a></p> |
366 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The | 366 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The |
Offset 580, 15 lines modified | Offset 580, 15 lines modified | ||
580 | <p>Examples:</p> | 580 | <p>Examples:</p> |
581 | <ul> | 581 | <ul> |
582 | <li><a | 582 | <li><a |
583 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> | 583 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> |
584 | <li><a | 584 | <li><a |
585 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li> | 585 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li> |
586 | <li><a | 586 | <li><a |
587 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 587 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L108">ex_font_justify.cpp</a></li> |
588 | </ul> | 588 | </ul> |
589 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> | 589 | <h2·id="al_get_new_display_option">al_get_new_display_option</h2> |
590 | <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> | 590 | <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> |
591 | <p><a | 591 | <p><a |
592 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source | 592 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L64">Source |
593 | Code</a></p> | 593 | Code</a></p> |
594 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a | 594 | <p>Retrieve·an·extra·display·setting·which·was·previously·set·with·<a |
Offset 910, 17 lines modified | Offset 910, 17 lines modified | ||
910 | href="events.html#allegro_event_display_expose">documentation·on | 910 | href="events.html#allegro_event_display_expose">documentation·on |
911 | events</a>·for·a·list·of·the·events·displays·will·generate.</p> | 911 | events</a>·for·a·list·of·the·events·displays·will·generate.</p> |
912 | <p>Examples:</p> | 912 | <p>Examples:</p> |
913 | <ul> | 913 | <ul> |
914 | <li><a | 914 | <li><a |
915 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li> | 915 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L141">ex_keyboard_events.c</a></li> |
916 | <li><a | 916 | <li><a |
917 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li> | ||
918 | <li><a | ||
919 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L67">ex_touch_input.c</a></li> | 917 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L67">ex_touch_input.c</a></li> |
918 | <li><a | ||
919 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L146">ex_opengl.c</a></li> | ||
920 | </ul> | 920 | </ul> |
921 | <h2·id="al_get_backbuffer">al_get_backbuffer</h2> | 921 | <h2·id="al_get_backbuffer">al_get_backbuffer</h2> |
922 | <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>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 922 | <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>ALLEGRO_BITMAP·<span·class="op">*</span>al_get_backbuffer<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
923 | <p><a | 923 | <p><a |
924 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L176">Source | 924 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L176">Source |
925 | Code</a></p> | 925 | Code</a></p> |
926 | <p>Return·a·special·bitmap·representing·the·back-buffer·of·the | 926 | <p>Return·a·special·bitmap·representing·the·back-buffer·of·the |
Offset 1037, 35 lines modified | Offset 1037, 35 lines modified | ||
1037 | <p>See·also:·<a | 1037 | <p>See·also:·<a |
1038 | href="display.html#al_get_display_height">al_get_display_height</a></p> | 1038 | href="display.html#al_get_display_height">al_get_display_height</a></p> |
1039 | <p>Examples:</p> | 1039 | <p>Examples:</p> |
1040 | <ul> | 1040 | <ul> |
1041 | <li><a | 1041 | <li><a |
1042 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L42">ex_font_justify.cpp</a></li> | 1042 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L42">ex_font_justify.cpp</a></li> |
1043 | <li><a | 1043 | <li><a |
1044 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1044 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L100">ex_window_maximized.c</a></li> |
1045 | <li><a | 1045 | <li><a |
1046 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1046 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li> |
1047 | </ul> | 1047 | </ul> |
1048 | <h2·id="al_get_display_height">al_get_display_height</h2> | 1048 | <h2·id="al_get_display_height">al_get_display_height</h2> |
1049 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_display_height<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 1049 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_display_height<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
1050 | <p><a | 1050 | <p><a |
1051 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L279">Source | 1051 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L279">Source |
1052 | Code</a></p> | 1052 | Code</a></p> |
1053 | <p>Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro | 1053 | <p>Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro |
1054 | 4.x.</p> | 1054 | 4.x.</p> |
1055 | <p>See·also:·<a | 1055 | <p>See·also:·<a |
1056 | href="display.html#al_get_display_width">al_get_display_width</a></p> | 1056 | href="display.html#al_get_display_width">al_get_display_width</a></p> |
1057 | <p>Examples:</p> | 1057 | <p>Examples:</p> |
1058 | <ul> | 1058 | <ul> |
1059 | <li><a | 1059 | <li><a |
1060 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_o | 1060 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L101">ex_window_maximized.c</a></li> |
1061 | <li><a | 1061 | <li><a |
1062 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li> | 1062 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_fs_resize.c#L102">ex_fs_resize.c</a></li> |
1063 | <li><a | 1063 | <li><a |
1064 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1064 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L108">ex_ogre3d.cpp</a></li> |
1065 | </ul> | 1065 | </ul> |
1066 | <h2·id="al_resize_display">al_resize_display</h2> | 1066 | <h2·id="al_resize_display">al_resize_display</h2> |
1067 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_resize_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·width<span·class="op">,</span>·<span·class="dt">int</span>·height<span·class="op">)</span></span></code></pre></div> | 1067 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_resize_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·width<span·class="op">,</span>·<span·class="dt">int</span>·height<span·class="op">)</span></span></code></pre></div> |
1068 | <p><a | 1068 | <p><a |
1069 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L234">Source | 1069 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L234">Source |
1070 | Code</a></p> | 1070 | Code</a></p> |
1071 | <p>Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This | 1071 | <p>Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This |
Offset 1121, 17 lines modified | Offset 1121, 17 lines modified | ||
1121 | <p>See·also:·<a | 1121 | <p>See·also:·<a |
1122 | href="display.html#al_set_window_position">al_set_window_position</a>, | 1122 | href="display.html#al_set_window_position">al_set_window_position</a>, |
1123 | <a | 1123 | <a |
1124 | href="display.html#al_get_window_borders">al_get_window_borders</a></p> | 1124 | href="display.html#al_get_window_borders">al_get_window_borders</a></p> |
1125 | <p>Examples:</p> | 1125 | <p>Examples:</p> |
1126 | <ul> | 1126 | <ul> |
1127 | <li><a | 1127 | <li><a |
1128 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L103">ex_windows.c</a></li> | ||
1129 | <li><a | ||
1130 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L149">ex_multisample.c</a></li> | 1128 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L149">ex_multisample.c</a></li> |
1129 | <li><a | ||
1130 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L103">ex_windows.c</a></li> | ||
1131 | </ul> | 1131 | </ul> |
1132 | <h2·id="al_set_window_position">al_set_window_position</h2> | 1132 | <h2·id="al_set_window_position">al_set_window_position</h2> |
1133 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_window_position<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> | 1133 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_window_position<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> |
1134 | <p><a | 1134 | <p><a |
1135 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L376">Source | 1135 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L376">Source |
1136 | Code</a></p> | 1136 | Code</a></p> |
1137 | <p>Sets·the·position·on·screen·of·a·non-fullscreen·display.</p> | 1137 | <p>Sets·the·position·on·screen·of·a·non-fullscreen·display.</p> |
Offset 1140, 17 lines modified | Offset 1140, 17 lines modified | ||
1140 | <a | 1140 | <a |
1141 | href="display.html#al_get_window_borders">al_get_window_borders</a></p> | 1141 | href="display.html#al_get_window_borders">al_get_window_borders</a></p> |
1142 | <p>Examples:</p> | 1142 | <p>Examples:</p> |
1143 | <ul> | 1143 | <ul> |
1144 | <li><a | 1144 | <li><a |
1145 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L76">ex_noframe.c</a></li> | 1145 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L76">ex_noframe.c</a></li> |
1146 | <li><a | 1146 | <li><a |
1147 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L148">ex_windows.c</a></li> | ||
1148 | <li><a | ||
1149 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L175">ex_multisample.c</a></li> | 1147 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L175">ex_multisample.c</a></li> |
1148 | <li><a | ||
1149 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L148">ex_windows.c</a></li> | ||
1150 | </ul> | 1150 | </ul> |
1151 | <h2·id="al_get_window_borders">al_get_window_borders</h2> | 1151 | <h2·id="al_get_window_borders">al_get_window_borders</h2> |
1152 | <div·class="sourceCode"·id="cb27"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb27-1"><a·href="#cb27-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_window_borders<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>left<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>top<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>right<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>bottom<span·class="op">)</span></span></code></pre></div> | 1152 | <div·class="sourceCode"·id="cb27"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb27-1"><a·href="#cb27-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_window_borders<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>left<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>top<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>right<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>bottom<span·class="op">)</span></span></code></pre></div> |
1153 | <p><a | 1153 | <p><a |
1154 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L408">Source | 1154 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L408">Source |
Max diff block lines reached; 1118/10198 bytes (10.96%) of diff not shown. |
Offset 130, 16 lines modified | Offset 130, 16 lines modified | ||
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·D\x8Di\x8is\x8sp\x8pl\x8la\x8ay\x8y·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
131 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y·*\x8**\x8**\x8**\x8**\x8* |
132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 132 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
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 | An·opaque·type·representing·an·open·display·or·window. | 134 | An·opaque·type·representing·an·open·display·or·window. |
135 | Examples: | 135 | Examples: |
136 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 136 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c |
137 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 138 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
138 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
139 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* | 139 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* |
140 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) | 140 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) |
141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
142 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of | 142 | Create·a·display,·or·window,·with·the·specified·dimensions.·The·parameters·of |
143 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default | 143 | the·display·are·determined·by·the·last·calls·to·al_set_new_display_*.·Default |
144 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will | 144 | parameters·are·used·if·none·are·set·explicitly.·Creating·a·new·display·will |
145 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. | 145 | automatically·make·it·the·active·one,·with·the·backbuffer·selected·for·drawing. |
Offset 270, 15 lines modified | Offset 270, 15 lines modified | ||
270 | ······Since:·5.2.9 | 270 | ······Since:·5.2.9 |
271 | 0·can·be·used·for·default·values. | 271 | 0·can·be·used·for·default·values. |
272 | 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, | 272 | 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, |
273 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n | 273 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n |
274 | Examples: | 274 | Examples: |
275 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 275 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
276 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | 276 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c |
277 | ····*·_\x8e_\x8x_\x8__\x8 | 277 | ····*·_\x8e_\x8x_\x8__\x8f_.o_.n_.t_.__.j_.u_.s_.t_.i_.f_.y_.._.c_.p_.p |
278 | *\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* | 278 | *\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* |
279 | int·al_get_new_display_option(int·option,·int·*importance) | 279 | int·al_get_new_display_option(int·option,·int·*importance) |
280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
281 | Retrieve·an·extra·display·setting·which·was·previously·set·with | 281 | Retrieve·an·extra·display·setting·which·was·previously·set·with |
282 | _\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. | 282 | _\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. |
283 | *\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* | 283 | *\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* |
284 | void·al_set_new_display_option(int·option,·int·value,·int·importance) | 284 | void·al_set_new_display_option(int·option,·int·value,·int·importance) |
Offset 462, 16 lines modified | Offset 462, 16 lines modified | ||
462 | *\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* | 462 | *\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* |
463 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) | 463 | ALLEGRO_EVENT_SOURCE·*al_get_display_event_source(ALLEGRO_DISPLAY·*display) |
464 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 464 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
465 | 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 | 465 | 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 |
466 | list·of·the·events·displays·will·generate. | 466 | list·of·the·events·displays·will·generate. |
467 | Examples: | 467 | Examples: |
468 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 468 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
469 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
470 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 469 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c |
470 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
471 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8ba\x8ac\x8ck\x8kb\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 471 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8ba\x8ac\x8ck\x8kb\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
472 | ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display) | 472 | ALLEGRO_BITMAP·*al_get_backbuffer(ALLEGRO_DISPLAY·*display) |
473 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 473 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
474 | Return·a·special·bitmap·representing·the·back-buffer·of·the·display. | 474 | Return·a·special·bitmap·representing·the·back-buffer·of·the·display. |
475 | Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as | 475 | Care·should·be·taken·when·using·the·backbuffer·bitmap·(and·its·sub-bitmaps)·as |
476 | the·source·bitmap·(e.g·as·the·bitmap·argument·to·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p).·Only | 476 | the·source·bitmap·(e.g·as·the·bitmap·argument·to·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p).·Only |
477 | untransformed·operations·are·hardware·accelerated.·These·consist·of | 477 | untransformed·operations·are·hardware·accelerated.·These·consist·of |
Offset 538, 25 lines modified | Offset 538, 25 lines modified | ||
538 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* | 538 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* |
539 | int·al_get_display_width(ALLEGRO_DISPLAY·*display) | 539 | int·al_get_display_width(ALLEGRO_DISPLAY·*display) |
540 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 540 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
541 | Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x. | 541 | Gets·the·width·of·the·display.·This·is·like·SCREEN_W·in·Allegro·4.x. |
542 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t | 542 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
543 | Examples: | 543 | Examples: |
544 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 544 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
545 | ····*·_\x8e_\x8x_\x8__\x8 | 545 | ····*·_\x8e_\x8x_\x8__\x8w_.i_.n_.d_.o_.w_.__.m_.a_.x_.i_.m_.i_.z_.e_.d_\x8._\x8c |
546 | ····*·_\x8e_\x8x_\x8__\x8 | 546 | ····*·_\x8e_\x8x_\x8__\x8f_.s_.__.r_.e_.s_.i_.z_.e_.._.c |
547 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* | 547 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* |
548 | int·al_get_display_height(ALLEGRO_DISPLAY·*display) | 548 | int·al_get_display_height(ALLEGRO_DISPLAY·*display) |
549 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 549 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
550 | Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro·4.x. | 550 | Gets·the·height·of·the·display.·This·is·like·SCREEN_H·in·Allegro·4.x. |
551 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8w_\x8i_\x8d_\x8t_\x8h | 551 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8w_\x8i_\x8d_\x8t_\x8h |
552 | Examples: | 552 | Examples: |
553 | ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
554 | ····*·_\x8e_\x8x_\x8__\x8f_\x8s_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
555 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | 553 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c |
554 | ····*·_\x8e_\x8x_\x8__\x8f_\x8s_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
555 | ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
556 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8si\x8iz\x8ze\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* | 556 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8si\x8iz\x8ze\x8e_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* |
557 | bool·al_resize_display(ALLEGRO_DISPLAY·*display,·int·width,·int·height) | 557 | bool·al_resize_display(ALLEGRO_DISPLAY·*display,·int·width,·int·height) |
558 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 558 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
559 | Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on | 559 | Resize·the·display.·Returns·true·on·success,·or·false·on·error.·This·works·on |
560 | both·fullscreen·and·windowed·displays,·regardless·of·the·ALLEGRO_RESIZABLE | 560 | both·fullscreen·and·windowed·displays,·regardless·of·the·ALLEGRO_RESIZABLE |
561 | flag. | 561 | flag. |
562 | Adjusts·the·clipping·rectangle·to·the·full·size·of·the·backbuffer. | 562 | Adjusts·the·clipping·rectangle·to·the·full·size·of·the·backbuffer. |
Offset 583, 25 lines modified | Offset 583, 25 lines modified | ||
583 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 583 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
584 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 584 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
585 | void·al_get_window_position(ALLEGRO_DISPLAY·*display,·int·*x,·int·*y) | 585 | void·al_get_window_position(ALLEGRO_DISPLAY·*display,·int·*x,·int·*y) |
586 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 586 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
587 | Gets·the·position·of·a·non-fullscreen·display. | 587 | Gets·the·position·of·a·non-fullscreen·display. |
588 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8b_\x8o_\x8r_\x8d_\x8e_\x8r_\x8s | 588 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8b_\x8o_\x8r_\x8d_\x8e_\x8r_\x8s |
589 | Examples: | 589 | Examples: |
590 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
591 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 590 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
591 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
592 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 592 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
593 | void·al_set_window_position(ALLEGRO_DISPLAY·*display,·int·x,·int·y) | 593 | void·al_set_window_position(ALLEGRO_DISPLAY·*display,·int·x,·int·y) |
594 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 594 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
595 | Sets·the·position·on·screen·of·a·non-fullscreen·display. | 595 | Sets·the·position·on·screen·of·a·non-fullscreen·display. |
596 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8b_\x8o_\x8r_\x8d_\x8e_\x8r_\x8s | 596 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8b_\x8o_\x8r_\x8d_\x8e_\x8r_\x8s |
597 | Examples: | 597 | Examples: |
598 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8f_\x8r_\x8a_\x8m_\x8e_\x8._\x8c | 598 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8f_\x8r_\x8a_\x8m_\x8e_\x8._\x8c |
599 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
600 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 599 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
600 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
601 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_b\x8bo\x8or\x8rd\x8de\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* | 601 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_b\x8bo\x8or\x8rd\x8de\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* |
602 | bool·al_get_window_borders(ALLEGRO_DISPLAY·*display,·int·*left,·int·*top,·int | 602 | bool·al_get_window_borders(ALLEGRO_DISPLAY·*display,·int·*left,·int·*top,·int |
603 | *right,·int·*bottom) | 603 | *right,·int·*bottom) |
604 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 604 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
605 | If·that·information·is·available·returns·TRUE·and·fills·in·the·size·of·the | 605 | If·that·information·is·available·returns·TRUE·and·fills·in·the·size·of·the |
606 | window·borders.·You·can·pass·NULL·for·borders·you·do·not·want·to·retrieve. | 606 | window·borders.·You·can·pass·NULL·for·borders·you·do·not·want·to·retrieve. |
607 | If·the·border·information·is·not·available·returns·FALSE. | 607 | If·the·border·information·is·not·available·returns·FALSE. |
Offset 823, 15 lines modified | Offset 823, 15 lines modified | ||
823 | the·operating·system·know·that·you·have·stopped·drawing·or·if·you·call·it·to | 823 | the·operating·system·know·that·you·have·stopped·drawing·or·if·you·call·it·to |
824 | late·the·application·likely·will·be·considered·misbehaving·and·get·terminated. | 824 | late·the·application·likely·will·be·considered·misbehaving·and·get·terminated. |
825 | Since:·5.1.0 | 825 | Since:·5.1.0 |
826 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G | 826 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G |
827 | Examples: | 827 | Examples: |
828 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 828 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c |
829 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c | 829 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c |
830 | ····*·_\x8e_\x8x_\x8__\x8 | 830 | ····*·_\x8e_\x8x_\x8__\x8v_.e_.r_.t_.e_.x_.__.b_.u_.f_.f_.e_.r_\x8._\x8c |
831 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ac\x8ck\x8kn\x8no\x8ow\x8wl\x8le\x8ed\x8dg\x8ge\x8e_\x8_d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·*\x8**\x8**\x8**\x8**\x8* | 831 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ac\x8ck\x8kn\x8no\x8ow\x8wl\x8le\x8ed\x8dg\x8ge\x8e_\x8_d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·*\x8**\x8**\x8**\x8**\x8* |
832 | void·al_acknowledge_drawing_resume(ALLEGRO_DISPLAY·*display) | 832 | void·al_acknowledge_drawing_resume(ALLEGRO_DISPLAY·*display) |
833 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 833 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
834 | Call·this·in·response·to·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·event. | 834 | Call·this·in·response·to·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·event. |
835 | Since:·5.1.1 | 835 | Since:·5.1.1 |
836 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G | 836 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G |
837 | Examples: | 837 | Examples: |
Offset 347, 19 lines modified | Offset 347, 19 lines modified | ||
347 | The·time·is·referenced·to·the·same·starting·point·as·<a | 347 | The·time·is·referenced·to·the·same·starting·point·as·<a |
348 | href="time.html#al_get_time">al_get_time</a>.</p> | 348 | href="time.html#al_get_time">al_get_time</a>.</p> |
349 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields | 349 | <p>Each·event·is·of·one·of·the·following·types,·with·the·usable·fields |
350 | given.</p> | 350 | given.</p> |
351 | <p>Examples:</p> | 351 | <p>Examples:</p> |
352 | <ul> | 352 | <ul> |
353 | <li><a | 353 | <li><a |
354 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
355 | <li><a | ||
354 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | 356 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> |
355 | <li><a | 357 | <li><a |
356 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 358 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
357 | <li><a | ||
358 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | ||
359 | </ul> | 359 | </ul> |
360 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> | 360 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> |
361 | <p>A·joystick·axis·value·changed.</p> | 361 | <p>A·joystick·axis·value·changed.</p> |
362 | <dl> | 362 | <dl> |
363 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> | 363 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> |
364 | <dd> | 364 | <dd> |
365 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the | 365 | The·joystick·which·generated·the·event.·This·is·not·the·same·as·the |
Offset 1078, 19 lines modified | Offset 1078, 19 lines modified | ||
1078 | order.</p> | 1078 | order.</p> |
1079 | <p>See·also:·<a | 1079 | <p>See·also:·<a |
1080 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a | 1080 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a |
1081 | href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> | 1081 | href="events.html#al_destroy_event_queue">al_destroy_event_queue</a></p> |
1082 | <p>Examples:</p> | 1082 | <p>Examples:</p> |
1083 | <ul> | 1083 | <ul> |
1084 | <li><a | 1084 | <li><a |
1085 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
1086 | <li><a | ||
1085 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> | 1087 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> |
1086 | <li><a | 1088 | <li><a |
1087 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 1089 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
1088 | <li><a | ||
1089 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | ||
1090 | </ul> | 1090 | </ul> |
1091 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 1091 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
1092 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE<span·class="op">;</span></span></code></pre></div> | 1092 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE<span·class="op">;</span></span></code></pre></div> |
1093 | <p><a | 1093 | <p><a |
1094 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source | 1094 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source |
1095 | Code</a></p> | 1095 | Code</a></p> |
1096 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, | 1096 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, |
Offset 1173, 19 lines modified | Offset 1173, 19 lines modified | ||
1173 | <p>See·also:·<a | 1173 | <p>See·also:·<a |
1174 | href="events.html#al_register_event_source">al_register_event_source</a>, | 1174 | href="events.html#al_register_event_source">al_register_event_source</a>, |
1175 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, | 1175 | <a·href="events.html#al_destroy_event_queue">al_destroy_event_queue</a>, |
1176 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 1176 | <a·href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
1177 | <p>Examples:</p> | 1177 | <p>Examples:</p> |
1178 | <ul> | 1178 | <ul> |
1179 | <li><a | 1179 | <li><a |
1180 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L66">common.c</a></li> | ||
1181 | <li><a | ||
1180 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li> | 1182 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li> |
1181 | <li><a | 1183 | <li><a |
1182 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> | 1184 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> |
1183 | <li><a | ||
1184 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L36">ex_timer_pause.c</a></li> | ||
1185 | </ul> | 1185 | </ul> |
1186 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> | 1186 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> |
1187 | <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> | 1187 | <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> |
1188 | <p><a | 1188 | <p><a |
1189 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source | 1189 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L120">Source |
1190 | Code</a></p> | 1190 | Code</a></p> |
1191 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently | 1191 | <p>Destroy·the·event·queue·specified.·All·event·sources·currently |
Offset 1195, 19 lines modified | Offset 1195, 19 lines modified | ||
1195 | 5.2.9)</p> | 1195 | 5.2.9)</p> |
1196 | <p>See·also:·<a | 1196 | <p>See·also:·<a |
1197 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a | 1197 | href="events.html#al_create_event_queue">al_create_event_queue</a>,·<a |
1198 | href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> | 1198 | href="events.html#allegro_event_queue">ALLEGRO_EVENT_QUEUE</a></p> |
1199 | <p>Examples:</p> | 1199 | <p>Examples:</p> |
1200 | <ul> | 1200 | <ul> |
1201 | <li><a | 1201 | <li><a |
1202 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L70">common.c</a></li> | ||
1203 | <li><a | ||
1202 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L66">ex_inject_events.c</a></li> | 1204 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L66">ex_inject_events.c</a></li> |
1203 | <li><a | 1205 | <li><a |
1204 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L68">ex_timer_pause.c</a></li> | 1206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L68">ex_timer_pause.c</a></li> |
1205 | <li><a | ||
1206 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L70">common.c</a></li> | ||
1207 | </ul> | 1207 | </ul> |
1208 | <h1·id="al_register_event_source">al_register_event_source</h1> | 1208 | <h1·id="al_register_event_source">al_register_event_source</h1> |
1209 | <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> | 1209 | <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> |
1210 | <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> | 1210 | <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> |
1211 | <p><a | 1211 | <p><a |
1212 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source | 1212 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L161">Source |
1213 | Code</a></p> | 1213 | Code</a></p> |
Offset 1217, 19 lines modified | Offset 1217, 19 lines modified | ||
1217 | more·than·once·does·nothing.</p> | 1217 | more·than·once·does·nothing.</p> |
1218 | <p>See·also:·<a | 1218 | <p>See·also:·<a |
1219 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, | 1219 | href="events.html#al_unregister_event_source">al_unregister_event_source</a>, |
1220 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> | 1220 | <a·href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a></p> |
1221 | <p>Examples:</p> | 1221 | <p>Examples:</p> |
1222 | <ul> | 1222 | <ul> |
1223 | <li><a | 1223 | <li><a |
1224 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L67">common.c</a></li> | ||
1225 | <li><a | ||
1224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L34">ex_inject_events.c</a></li> | 1226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L34">ex_inject_events.c</a></li> |
1225 | <li><a | 1227 | <li><a |
1226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | 1228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> |
1227 | <li><a | ||
1228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L39">ex_timer_pause.c</a></li> | ||
1229 | </ul> | 1229 | </ul> |
1230 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> | 1230 | <h1·id="al_unregister_event_source">al_unregister_event_source</h1> |
1231 | <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> | 1231 | <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> |
1232 | <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> | 1232 | <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> |
1233 | <p><a | 1233 | <p><a |
1234 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source | 1234 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L181">Source |
1235 | Code</a></p> | 1235 | Code</a></p> |
Offset 1289, 17 lines modified | Offset 1289, 17 lines modified | ||
1289 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a | 1289 | href="events.html#al_get_next_event">al_get_next_event</a>,·<a |
1290 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> | 1290 | href="events.html#al_peek_next_event">al_peek_next_event</a></p> |
1291 | <p>Examples:</p> | 1291 | <p>Examples:</p> |
1292 | <ul> | 1292 | <ul> |
1293 | <li><a | 1293 | <li><a |
1294 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L49">ex_inject_events.c</a></li> | 1294 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L49">ex_inject_events.c</a></li> |
1295 | <li><a | 1295 | <li><a |
1296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L151">ex_opengl.c</a></li> | ||
1297 | <li><a | ||
1298 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L70">ex_touch_input.c</a></li> | 1296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L70">ex_touch_input.c</a></li> |
1297 | <li><a | ||
1298 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L151">ex_opengl.c</a></li> | ||
1299 | </ul> | 1299 | </ul> |
1300 | <h1·id="al_get_next_event">al_get_next_event</h1> | 1300 | <h1·id="al_get_next_event">al_get_next_event</h1> |
1301 | <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> | 1301 | <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> |
1302 | <p><a | 1302 | <p><a |
1303 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source | 1303 | href="https://github.com/liballeg/allegro5/blob/master/src/events.c#L299">Source |
Max diff block lines reached; 1540/9066 bytes (16.99%) of diff not shown. |
Offset 134, 17 lines modified | Offset 134, 17 lines modified | ||
134 | ······When·the·event·was·generated. | 134 | ······When·the·event·was·generated. |
135 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The | 135 | By·examining·the·type·field·you·can·then·access·type-specific·fields.·The |
136 | any.source·field·tells·you·which·event·source·generated·that·particular·event. | 136 | any.source·field·tells·you·which·event·source·generated·that·particular·event. |
137 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is | 137 | The·any.timestamp·field·tells·you·when·the·event·was·generated.·The·time·is |
138 | referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e. | 138 | referenced·to·the·same·starting·point·as·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e. |
139 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. | 139 | Each·event·is·of·one·of·the·following·types,·with·the·usable·fields·given. |
140 | Examples: | 140 | Examples: |
141 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
141 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 142 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
142 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 143 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
143 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
144 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8* | 144 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_A\x8AX\x8XI\x8IS\x8S·*\x8**\x8**\x8**\x8**\x8* |
145 | A·joystick·axis·value·changed. | 145 | A·joystick·axis·value·changed. |
146 | ··joystick.id·(ALLEGRO_JOYSTICK·*) | 146 | ··joystick.id·(ALLEGRO_JOYSTICK·*) |
147 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event | 147 | ······The·joystick·which·generated·the·event.·This·is·not·the·same·as·the·event |
148 | ······source·joystick.source. | 148 | ······source·joystick.source. |
149 | ··joystick.stick·(int) | 149 | ··joystick.stick·(int) |
150 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into | 150 | ······The·stick·number,·counting·from·zero.·Axes·on·a·joystick·are·grouped·into |
Offset 537, 17 lines modified | Offset 537, 17 lines modified | ||
537 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 537 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
538 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 538 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
539 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 539 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
540 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 540 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
541 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 541 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
542 | 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_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e | 542 | 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_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e |
543 | Examples: | 543 | Examples: |
544 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
544 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 545 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
545 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 546 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
546 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
547 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_S\x8SO\x8OU\x8UR\x8RC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 547 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_S\x8SO\x8OU\x8UR\x8RC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
548 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 548 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
549 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 549 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
550 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 550 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
551 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 551 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
552 | pointer·from·an·ALLEGRO_DISPLAY·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. | 552 | pointer·from·an·ALLEGRO_DISPLAY·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. |
553 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. | 553 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. |
Offset 599, 41 lines modified | Offset 599, 41 lines modified | ||
599 | *\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* | 599 | *\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* |
600 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 600 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
601 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 601 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
602 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 602 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
603 | object·if·successful.·Returns·NULL·on·error. | 603 | object·if·successful.·Returns·NULL·on·error. |
604 | 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 | 604 | 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 |
605 | Examples: | 605 | Examples: |
606 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
606 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 607 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
607 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 608 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
608 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
609 | *\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* | 609 | *\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* |
610 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) | 610 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) |
611 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 611 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
612 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with | 612 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with |
613 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. | 613 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. |
614 | This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9) | 614 | This·function·does·nothing·if·queue·is·NULL.·(since·5.2.9) |
615 | 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 | 615 | 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 |
616 | Examples: | 616 | Examples: |
617 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
617 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 618 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
618 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 619 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
619 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
620 | *\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* | 620 | *\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* |
621 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 621 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
622 | ···ALLEGRO_EVENT_SOURCE·*source) | 622 | ···ALLEGRO_EVENT_SOURCE·*source) |
623 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 623 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
624 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may | 624 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may |
625 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying | 625 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying |
626 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does | 626 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does |
627 | nothing. | 627 | nothing. |
628 | 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 | 628 | 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 |
629 | Examples: | 629 | Examples: |
630 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
630 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 631 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
631 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 632 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
632 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
633 | *\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* | 633 | *\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* |
634 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 634 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
635 | ···ALLEGRO_EVENT_SOURCE·*source) | 635 | ···ALLEGRO_EVENT_SOURCE·*source) |
636 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 636 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
637 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not | 637 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not |
638 | actually·registered·with·the·event·queue,·nothing·happens. | 638 | actually·registered·with·the·event·queue,·nothing·happens. |
639 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they | 639 | If·the·queue·had·any·events·in·it·which·originated·from·the·event·source,·they |
Offset 668, 16 lines modified | Offset 668, 16 lines modified | ||
668 | *\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* | 668 | *\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* |
669 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) | 669 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) |
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 | Return·true·if·the·event·queue·specified·is·currently·empty. | 671 | Return·true·if·the·event·queue·specified·is·currently·empty. |
672 | 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 | 672 | 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 |
673 | Examples: | 673 | Examples: |
674 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 674 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
675 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
676 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 675 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c |
676 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
677 | *\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* | 677 | *\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* |
678 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) | 678 | bool·al_get_next_event(ALLEGRO_EVENT_QUEUE·*queue,·ALLEGRO_EVENT·*ret_event) |
679 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 679 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
680 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents | 680 | Take·the·next·event·out·of·the·event·queue·specified,·and·copy·the·contents |
681 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the | 681 | into·ret_event,·returning·true.·The·original·event·will·be·removed·from·the |
682 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event | 682 | queue.·If·the·event·queue·is·empty,·return·false·and·the·contents·of·ret_event |
683 | are·unspecified. | 683 | are·unspecified. |
Offset 712, 17 lines modified | Offset 712, 17 lines modified | ||
712 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 712 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
713 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 713 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
714 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 714 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
715 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 715 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
716 | 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, | 716 | 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, |
717 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 717 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t |
718 | Examples: | 718 | Examples: |
719 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
719 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 720 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
720 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 721 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
721 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
722 | *\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* | 722 | *\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* |
723 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, | 723 | bool·al_wait_for_event_timed(ALLEGRO_EVENT_QUEUE·*queue, |
724 | ···ALLEGRO_EVENT·*ret_event,·float·secs) | 724 | ···ALLEGRO_EVENT·*ret_event,·float·secs) |
725 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 725 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
726 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, | 726 | Wait·until·the·event·queue·specified·is·non-empty.·If·ret_event·is·not·NULL, |
727 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the | 727 | the·first·event·in·the·queue·will·be·copied·into·ret_event·and·removed·from·the |
728 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. | 728 | queue.·If·ret_event·is·NULL·the·first·event·is·left·at·the·head·of·the·queue. |
Offset 247, 17 lines modified | Offset 247, 17 lines modified | ||
247 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file | 247 | <p>An·opaque·object·representing·an·open·file.·This·could·be·a·real·file |
248 | on·disk·or·a·virtual·file.</p> | 248 | on·disk·or·a·virtual·file.</p> |
249 | <p>Examples:</p> | 249 | <p>Examples:</p> |
250 | <ul> | 250 | <ul> |
251 | <li><a | 251 | <li><a |
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | 252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> |
253 | <li><a | 253 | <li><a |
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | ||
255 | <li><a | ||
256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | 254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> |
255 | <li><a | ||
256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | ||
257 | </ul> | 257 | </ul> |
258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
259 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | 259 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> |
260 | <p><a | 260 | <p><a |
261 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source | 261 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L20">Source |
262 | Code</a></p> | 262 | Code</a></p> |
263 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, | 263 | <p>A·structure·containing·function·pointers·to·handle·a·type·of·“file”, |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | <p>Examples:</p> | 345 | <p>Examples:</p> |
346 | <ul> | 346 | <ul> |
347 | <li><a | 347 | <li><a |
348 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> | 348 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L27">ex_file.c</a></li> |
349 | <li><a | 349 | <li><a |
350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> | 350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> |
351 | <li><a | 351 | <li><a |
352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L146">ex_physfs.c</a></li> |
353 | </ul> | 353 | </ul> |
354 | <h1·id="al_fopen_interface">al_fopen_interface</h1> | 354 | <h1·id="al_fopen_interface">al_fopen_interface</h1> |
355 | <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> | 355 | <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> |
356 | <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> | 356 | <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> |
357 | <p><a | 357 | <p><a |
358 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source | 358 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L32">Source |
359 | Code</a></p> | 359 | Code</a></p> |
Offset 90, 16 lines modified | Offset 90, 16 lines modified | ||
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 90 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | 91 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
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 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk | 93 | An·opaque·object·representing·an·open·file.·This·could·be·a·real·file·on·disk |
94 | or·a·virtual·file. | 94 | or·a·virtual·file. |
95 | Examples: | 95 | Examples: |
96 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 96 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
97 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | ||
98 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 97 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
98 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | ||
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 99 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_FILE_INTERFACE | 100 | typedef·struct·ALLEGRO_FILE_INTERFACE |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or | 102 | A·structure·containing·function·pointers·to·handle·a·type·of·“file”,·real·or |
103 | virtual.·See·the·full·discussion·in·_\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. | 103 | virtual.·See·the·full·discussion·in·_\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. |
104 | The·fields·are: | 104 | The·fields·are: |
105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
Offset 156, 15 lines modified | Offset 156, 15 lines modified | ||
156 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by | 156 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by |
157 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. | 157 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. |
158 | Returns·a·file·handle·on·success,·or·NULL·on·error. | 158 | Returns·a·file·handle·on·success,·or·NULL·on·error. |
159 | 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. | 159 | 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. |
160 | Examples: | 160 | Examples: |
161 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 161 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
162 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | 162 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c |
163 | ····*·_\x8e_\x8x_\x8__\x8 | 163 | ····*·_\x8e_\x8x_\x8__\x8p_.h_.y_.s_.f_.s_\x8._\x8c |
164 | *\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* | 164 | *\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* |
165 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, | 165 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, |
166 | ···const·char·*path,·const·char·*mode) | 166 | ···const·char·*path,·const·char·*mode) |
167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
168 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with | 168 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with |
169 | _\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. | 169 | _\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. |
170 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n | 170 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n |
Offset 297, 18 lines modified | Offset 297, 18 lines modified | ||
297 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 297 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
298 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a | 298 | with·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>·and·a |
299 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a | 299 | font·in·Allegro’s·bitmap·font·format·will·be·created·from·it·with·<a |
300 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> | 300 | href="font.html#al_grab_font_from_bitmap">al_grab_font_from_bitmap</a>.</p> |
301 | <p>Examples:</p> | 301 | <p>Examples:</p> |
302 | <ul> | 302 | <ul> |
303 | <li><a | 303 | <li><a |
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | ||
305 | <li><a | ||
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | 304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> |
307 | <li><a | 305 | <li><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> | 308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> |
309 | </ul> | 309 | </ul> |
310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
311 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> | 311 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·ALLEGRO_GLYPH<span·class="op">;</span></span></code></pre></div> |
312 | <p><a | 312 | <p><a |
313 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source | 313 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L53">Source |
314 | Code</a></p> | 314 | Code</a></p> |
Offset 364, 18 lines modified | Offset 364, 18 lines modified | ||
364 | <p>See·also:·<a | 364 | <p>See·also:·<a |
365 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a | 365 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a |
366 | href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a | 366 | href="font.html#al_init_ttf_addon">al_init_ttf_addon</a>,·<a |
367 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 367 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
368 | <p>Examples:</p> | 368 | <p>Examples:</p> |
369 | <ul> | 369 | <ul> |
370 | <li><a | 370 | <li><a |
371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> | ||
372 | <li><a | ||
373 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> | 371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> |
374 | <li><a | 372 | <li><a |
373 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> | ||
374 | <li><a | ||
375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> | 375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> |
376 | </ul> | 376 | </ul> |
377 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> | 377 | <h2·id="al_is_font_addon_initialized">al_is_font_addon_initialized</h2> |
378 | <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_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 378 | <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_is_font_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
379 | <p><a | 379 | <p><a |
380 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source | 380 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L393">Source |
381 | Code</a></p> | 381 | Code</a></p> |
Offset 428, 19 lines modified | Offset 428, 19 lines modified | ||
428 | Code</a></p> | 428 | Code</a></p> |
429 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if | 429 | <p>Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if |
430 | passed·NULL.</p> | 430 | passed·NULL.</p> |
431 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> | 431 | <p>See·also:·<a·href="font.html#al_load_font">al_load_font</a></p> |
432 | <p>Examples:</p> | 432 | <p>Examples:</p> |
433 | <ul> | 433 | <ul> |
434 | <li><a | 434 | <li><a |
435 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L67">ex_disable_screensaver.c</a></li> | ||
436 | <li><a | ||
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> | 435 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> |
438 | <li><a | 436 | <li><a |
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L67">ex_disable_screensaver.c</a></li> | ||
438 | <li><a | ||
439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L47">ex_timer.c</a></li> |
440 | </ul> | 440 | </ul> |
441 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 441 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
442 | <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_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span> | 442 | <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_register_font_loader<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>extension<span·class="op">,</span></span> |
443 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FONT·<span·class="op">*(*</span>load_font<span·class="op">)(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">))</span></span></code></pre></div> | 443 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FONT·<span·class="op">*(*</span>load_font<span·class="op">)(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">,</span>·<span·class="dt">int</span>·size<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">))</span></span></code></pre></div> |
444 | <p><a | 444 | <p><a |
445 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source | 445 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L426">Source |
446 | Code</a></p> | 446 | Code</a></p> |
Offset 526, 18 lines modified | Offset 526, 18 lines modified | ||
526 | <p>See·also:·<a | 526 | <p>See·also:·<a |
527 | href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a | 527 | href="font.html#al_get_ustr_width">al_get_ustr_width</a>,·<a |
528 | href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a | 528 | href="font.html#al_get_font_line_height">al_get_font_line_height</a>,·<a |
529 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> | 529 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> |
530 | <p>Examples:</p> | 530 | <p>Examples:</p> |
531 | <ul> | 531 | <ul> |
532 | <li><a | 532 | <li><a |
533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L182">ex_display_options.c</a></li> | ||
534 | <li><a | ||
535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L224">ex_record_name.c</a></li> | 533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L224">ex_record_name.c</a></li> |
536 | <li><a | 534 | <li><a |
535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L182">ex_display_options.c</a></li> | ||
536 | <li><a | ||
537 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L59">ex_color_gradient.c</a></li> | 537 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L59">ex_color_gradient.c</a></li> |
538 | </ul> | 538 | </ul> |
539 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> | 539 | <h2·id="al_get_ustr_width">al_get_ustr_width</h2> |
540 | <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">int</span>·al_get_ustr_width<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·ALLEGRO_USTR·<span·class="dt">const</span>·<span·class="op">*</span>ustr<span·class="op">)</span></span></code></pre></div> | 540 | <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">int</span>·al_get_ustr_width<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·ALLEGRO_USTR·<span·class="dt">const</span>·<span·class="op">*</span>ustr<span·class="op">)</span></span></code></pre></div> |
541 | <p><a | 541 | <p><a |
542 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L269">Source | 542 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L269">Source |
543 | Code</a></p> | 543 | Code</a></p> |
Offset 774, 19 lines modified | Offset 774, 14 lines modified | ||
774 | be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 774 | be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
775 | application!·Pass·NULL·to·remove·a·fallback·font·again.</p> | 775 | application!·Pass·NULL·to·remove·a·fallback·font·again.</p> |
776 | <p>Since:·5.1.12</p> | 776 | <p>Since:·5.1.12</p> |
777 | <p>See·also:·<a | 777 | <p>See·also:·<a |
778 | href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a | 778 | href="font.html#al_get_fallback_font">al_get_fallback_font</a>,·<a |
779 | href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a | 779 | href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a |
780 | href="font.html#al_draw_text">al_draw_text</a></p> | 780 | href="font.html#al_draw_text">al_draw_text</a></p> |
781 | <p>Examples:</p> | ||
782 | <ul> | ||
783 | <li><a | ||
784 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L304">ex_ttf.c</a></li> | ||
785 | </ul> | ||
786 | <h2·id="al_get_fallback_font">al_get_fallback_font</h2> | 781 | <h2·id="al_get_fallback_font">al_get_fallback_font</h2> |
787 | <div·class="sourceCode"·id="cb28"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb28-1"><a·href="#cb28-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_get_fallback_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>font<span·class="op">)</span></span></code></pre></div> | 782 | <div·class="sourceCode"·id="cb28"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb28-1"><a·href="#cb28-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_get_fallback_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>font<span·class="op">)</span></span></code></pre></div> |
788 | <p><a | 783 | <p><a |
789 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L702">Source | 784 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L702">Source |
790 | Code</a></p> | 785 | Code</a></p> |
791 | <p>Retrieves·the·fallback·font·for·this·font·or·NULL.</p> | 786 | <p>Retrieves·the·fallback·font·for·this·font·or·NULL.</p> |
792 | <p>Since:·5.1.12</p> | 787 | <p>Since:·5.1.12</p> |
Offset 903, 19 lines modified | Offset 898, 14 lines modified | ||
903 | ·····························|···|·*····*| | 898 | ·····························|···|·*····*| |
904 | ·····························v···|··****·| | 899 | ·····························v···|··****·| |
905 | ·····························+---+-------+</code></pre> | 900 | ·····························+---+-------+</code></pre> |
906 | <p>Since:·5.1.12</p> | 901 | <p>Since:·5.1.12</p> |
907 | <p>See·also:·<a·href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a | 902 | <p>See·also:·<a·href="font.html#al_draw_glyph">al_draw_glyph</a>,·<a |
908 | href="font.html#al_get_glyph_width">al_get_glyph_width</a>,·<a | 903 | href="font.html#al_get_glyph_width">al_get_glyph_width</a>,·<a |
909 | href="font.html#al_get_glyph_advance">al_get_glyph_advance</a>.</p> | 904 | href="font.html#al_get_glyph_advance">al_get_glyph_advance</a>.</p> |
910 | <p>Examples:</p> | ||
911 | <ul> | ||
912 | <li><a | ||
913 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L81">ex_ttf.c</a></li> | ||
914 | </ul> | ||
915 | <h2·id="al_get_glyph_advance">al_get_glyph_advance</h2> | 905 | <h2·id="al_get_glyph_advance">al_get_glyph_advance</h2> |
916 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb33-1"><a·href="#cb33-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_glyph_advance<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">int</span>·codepoint1<span·class="op">,</span>·<span·class="dt">int</span>·codepoint2<span·class="op">)</span></span></code></pre></div> | 906 | <div·class="sourceCode"·id="cb33"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb33-1"><a·href="#cb33-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_glyph_advance<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">int</span>·codepoint1<span·class="op">,</span>·<span·class="dt">int</span>·codepoint2<span·class="op">)</span></span></code></pre></div> |
917 | <p><a | 907 | <p><a |
918 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L400">Source | 908 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L400">Source |
919 | Code</a></p> | 909 | Code</a></p> |
920 | <p>This·function·returns·by·how·much·the·x·position·should·be·advanced | 910 | <p>This·function·returns·by·how·much·the·x·position·should·be·advanced |
921 | for·left·to·right·text·drawing·when·the·glyph·that·corresponds·to | 911 | for·left·to·right·text·drawing·when·the·glyph·that·corresponds·to |
Offset 977, 21 lines modified | Offset 967, 14 lines modified | ||
977 | ·····/······\···| | 967 | ·····/······\···| |
978 | ····/········\···\_············· | 968 | ····/········\···\_············· |
Max diff block lines reached; 10828/19134 bytes (56.59%) of diff not shown. |
Offset 104, 16 lines modified | Offset 104, 16 lines modified | ||
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
105 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with | 105 | A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it·with |
106 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by | 106 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t·which·supports·loading·all·kinds·of·TrueType·fonts·supported·by |
107 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it | 107 | the·FreeType·library.·If·you·instead·pass·the·filename·of·a·bitmap·file,·it |
108 | will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format | 108 | will·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·and·a·font·in·Allegro’s·bitmap·font·format |
109 | will·be·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p. | 109 | will·be·created·from·it·with·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p. |
110 | Examples: | 110 | Examples: |
111 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
112 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 111 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
112 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
113 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | 113 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c |
114 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8* | 114 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GL\x8LY\x8YP\x8PH\x8H·*\x8**\x8**\x8**\x8**\x8* |
115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | A·structure·containing·the·properties·of·a·character·in·a·font. | 117 | A·structure·containing·the·properties·of·a·character·in·a·font. |
118 | typedef·struct·ALLEGRO_GLYPH·{ | 118 | typedef·struct·ALLEGRO_GLYPH·{ |
119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
Offset 151, 16 lines modified | Offset 151, 16 lines modified | ||
151 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n. | 151 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n. |
152 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has | 152 | Returns·true·on·success,·false·on·failure.·On·the·5.0·branch,·this·function·has |
153 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code | 153 | no·return·value.·You·may·wish·to·avoid·checking·the·return·value·if·your·code |
154 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never | 154 | needs·to·be·compatible·with·Allegro·5.0.·Currently,·the·function·will·never |
155 | return·false. | 155 | return·false. |
156 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 156 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8t_\x8f_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
157 | Examples: | 157 | Examples: |
158 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
159 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 158 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
159 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
160 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | 160 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c |
161 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 161 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
162 | bool·al_is_font_addon_initialized(void) | 162 | bool·al_is_font_addon_initialized(void) |
163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
164 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 164 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
165 | Since:·5.2.6 | 165 | Since:·5.2.6 |
166 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 166 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
Offset 186, 17 lines modified | Offset 186, 17 lines modified | ||
186 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c | 186 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c |
187 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 187 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
188 | void·al_destroy_font(ALLEGRO_FONT·*f) | 188 | void·al_destroy_font(ALLEGRO_FONT·*f) |
189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
190 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. | 190 | Frees·the·memory·being·used·by·a·font·structure.·Does·nothing·if·passed·NULL. |
191 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t | 191 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8f_\x8o_\x8n_\x8t |
192 | Examples: | 192 | Examples: |
193 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
194 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 193 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
194 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
195 | ····*·_\x8e_\x8x_\x8__\x8 | 195 | ····*·_\x8e_\x8x_\x8__\x8t_.i_.m_.e_.r_\x8._\x8c |
196 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8lo\x8oa\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 196 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8lo\x8oa\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
197 | bool·al_register_font_loader(char·const·*extension, | 197 | bool·al_register_font_loader(char·const·*extension, |
198 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 198 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
200 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this | 200 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of·this |
201 | format. | 201 | format. |
202 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be | 202 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be |
Offset 246, 16 lines modified | Offset 246, 16 lines modified | ||
246 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 246 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
247 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8te\x8ex\x8xt\x8t_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* | 247 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8te\x8ex\x8xt\x8t_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* |
248 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | 248 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) |
249 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 249 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
250 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 250 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
251 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s | 251 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s |
252 | Examples: | 252 | Examples: |
253 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c | ||
254 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | 253 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c |
254 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c | ||
255 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | 255 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c |
256 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_u\x8us\x8st\x8tr\x8r_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* | 256 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_u\x8us\x8st\x8tr\x8r_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* |
257 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | 257 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) |
258 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 258 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
259 | Like·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h·but·expects·an·ALLEGRO_USTR. | 259 | Like·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h·but·expects·an·ALLEGRO_USTR. |
260 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s | 260 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s |
261 | Examples: | 261 | Examples: |
Offset 386, 16 lines modified | Offset 386, 14 lines modified | ||
386 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | 386 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) |
387 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 387 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
388 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present.·Can·be | 388 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present.·Can·be |
389 | chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the·application! | 389 | chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the·application! |
390 | Pass·NULL·to·remove·a·fallback·font·again. | 390 | Pass·NULL·to·remove·a·fallback·font·again. |
391 | Since:·5.1.12 | 391 | Since:·5.1.12 |
392 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8e_\x8x_\x8t | 392 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8e_\x8x_\x8t |
393 | Examples: | ||
394 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
395 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fa\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 393 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fa\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
396 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | 394 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) |
397 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 395 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
398 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 396 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
399 | Since:·5.1.12 | 397 | Since:·5.1.12 |
400 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8f_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k_\x8__\x8f_\x8o_\x8n_\x8t | 398 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8f_\x8a_\x8l_\x8l_\x8b_\x8a_\x8c_\x8k_\x8__\x8f_\x8o_\x8n_\x8t |
401 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pe\x8er\x8r·g\x8gl\x8ly\x8yp\x8ph\x8h·t\x8te\x8ex\x8xt\x8t·h\x8ha\x8an\x8nd\x8dl\x8li\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 399 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pe\x8er\x8r·g\x8gl\x8ly\x8yp\x8ph\x8h·t\x8te\x8ex\x8xt\x8t·h\x8ha\x8an\x8nd\x8dl\x8li\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 479, 16 lines modified | Offset 477, 14 lines modified | ||
479 | ····+---+--------+···········|···|·*****·| | 477 | ····+---+--------+···········|···|·*****·| |
480 | ·····························|···|······*| | 478 | ·····························|···|······*| |
481 | ·····························|···|·*····*| | 479 | ·····························|···|·*····*| |
482 | ·····························v···|··****·| | 480 | ·····························v···|··****·| |
483 | ·····························+---+-------+ | 481 | ·····························+---+-------+ |
484 | Since:·5.1.12 | 482 | Since:·5.1.12 |
485 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8a_\x8d_\x8v_\x8a_\x8n_\x8c_\x8e. | 483 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8a_\x8d_\x8v_\x8a_\x8n_\x8c_\x8e. |
486 | Examples: | ||
487 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
488 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_g\x8gl\x8ly\x8yp\x8ph\x8h_\x8_a\x8ad\x8dv\x8va\x8an\x8nc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 484 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_g\x8gl\x8ly\x8yp\x8ph\x8h_\x8_a\x8ad\x8dv\x8va\x8an\x8nc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
489 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) | 485 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) |
490 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 486 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
491 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for·left·to | 487 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for·left·to |
492 | right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1·has·been | 488 | right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1·has·been |
493 | drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the·next·to·be | 489 | drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the·next·to·be |
494 | drawn.·This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph | 490 | drawn.·This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph |
Offset 540, 17 lines modified | Offset 536, 14 lines modified | ||
540 | ·······/··\·····| | 536 | ·······/··\·····| |
541 | ······/____\····| | 537 | ······/____\····| |
542 | ·····/······\···| | 538 | ·····/······\···| |
543 | ····/········\···\_ | 539 | ····/········\···\_ |
544 | ····--------------- | 540 | ····--------------- |
545 | Since:·5.1.12 | 541 | Since:·5.1.12 |
546 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s. | 542 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8g_\x8l_\x8y_\x8p_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s. |
547 | Examples: | ||
548 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8._\x8c | ||
549 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
550 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mu\x8ul\x8lt\x8ti\x8il\x8li\x8in\x8ne\x8e·t\x8te\x8ex\x8xt\x8t·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 543 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mu\x8ul\x8lt\x8ti\x8il\x8li\x8in\x8ne\x8e·t\x8te\x8ex\x8xt\x8t·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
551 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_m\x8mu\x8ul\x8lt\x8ti\x8il\x8li\x8in\x8ne\x8e_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* | 544 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_m\x8mu\x8ul\x8lt\x8ti\x8il\x8li\x8in\x8ne\x8e_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* |
552 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | 545 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, |
553 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 546 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
554 | ·····int·flags,·const·char·*text) | 547 | ·····int·flags,·const·char·*text) |
555 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 548 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
556 | Like·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8e_\x8x_\x8t,·but·this·function·supports·drawing·multiple·lines·of·text. | 549 | Like·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8e_\x8x_\x8t,·but·this·function·supports·drawing·multiple·lines·of·text. |
Offset 577, 17 lines modified | Offset 570, 14 lines modified | ||
577 | The·flags·ALLEGRO_ALIGN_LEFT,·ALLEGRO_ALIGN_CENTRE,·ALLEGRO_ALIGN_RIGHT·and | 570 | The·flags·ALLEGRO_ALIGN_LEFT,·ALLEGRO_ALIGN_CENTRE,·ALLEGRO_ALIGN_RIGHT·and |
578 | ALLEGRO_ALIGN_INTEGER·will·be·honoured·by·this·function. | 571 | ALLEGRO_ALIGN_INTEGER·will·be·honoured·by·this·function. |
Max diff block lines reached; 5885/13601 bytes (43.27%) of diff not shown. |
Offset 499, 15 lines modified | Offset 499, 15 lines modified | ||
499 | <p>Examples:</p> | 499 | <p>Examples:</p> |
500 | <ul> | 500 | <ul> |
501 | <li><a | 501 | <li><a |
502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | 502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> |
503 | <li><a | 503 | <li><a |
504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> | 504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> |
505 | <li><a | 505 | <li><a |
506 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 506 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L80">ex_font_justify.cpp</a></li> |
507 | </ul> | 507 | </ul> |
508 | <h2·id="al_map_rgba">al_map_rgba</h2> | 508 | <h2·id="al_map_rgba">al_map_rgba</h2> |
509 | <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> | 509 | <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> |
510 | <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> | 510 | <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> |
511 | <p><a | 511 | <p><a |
512 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source | 512 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L553">Source |
513 | Code</a></p> | 513 | Code</a></p> |
Offset 719, 15 lines modified | Offset 719, 15 lines modified | ||
719 | <p>Examples:</p> | 719 | <p>Examples:</p> |
720 | <ul> | 720 | <ul> |
721 | <li><a | 721 | <li><a |
722 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> | 722 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> |
723 | <li><a | 723 | <li><a |
724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> | 724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> |
725 | <li><a | 725 | <li><a |
726 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 726 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color2.c#L38">ex_color2.c</a></li> |
727 | </ul> | 727 | </ul> |
728 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 728 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> |
729 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> | 729 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> |
730 | <p><a | 730 | <p><a |
731 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source | 731 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source |
732 | Code</a></p> | 732 | Code</a></p> |
733 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit | 733 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit |
Offset 845, 15 lines modified | Offset 845, 15 lines modified | ||
845 | <p>Examples:</p> | 845 | <p>Examples:</p> |
846 | <ul> | 846 | <ul> |
847 | <li><a | 847 | <li><a |
848 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> | 848 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> |
849 | <li><a | 849 | <li><a |
850 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L80">ex_drawpixels.c</a></li> | 850 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L80">ex_drawpixels.c</a></li> |
851 | <li><a | 851 | <li><a |
852 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 852 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_pixelformat.cpp#L23">ex_pixelformat.cpp</a></li> |
853 | </ul> | 853 | </ul> |
854 | <h2·id="al_get_pixel_size">al_get_pixel_size</h2> | 854 | <h2·id="al_get_pixel_size">al_get_pixel_size</h2> |
855 | <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">int</span>·al_get_pixel_size<span·class="op">(</span><span·class="dt">int</span>·format<span·class="op">)</span></span></code></pre></div> | 855 | <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">int</span>·al_get_pixel_size<span·class="op">(</span><span·class="dt">int</span>·format<span·class="op">)</span></span></code></pre></div> |
856 | <p><a | 856 | <p><a |
857 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L398">Source | 857 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L398">Source |
858 | Code</a></p> | 858 | Code</a></p> |
859 | <p>Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. | 859 | <p>Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. |
Offset 1095, 15 lines modified | Offset 1095, 15 lines modified | ||
1095 | <p>Examples:</p> | 1095 | <p>Examples:</p> |
1096 | <ul> | 1096 | <ul> |
1097 | <li><a | 1097 | <li><a |
1098 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L12">ex_convert.c</a></li> | 1098 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L12">ex_convert.c</a></li> |
1099 | <li><a | 1099 | <li><a |
1100 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L11">ex_nodisplay.c</a></li> | 1100 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L11">ex_nodisplay.c</a></li> |
1101 | <li><a | 1101 | <li><a |
1102 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1102 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L37">ex_blend_bench.c</a></li> |
1103 | </ul> | 1103 | </ul> |
1104 | <h2·id="al_create_bitmap">al_create_bitmap</h2> | 1104 | <h2·id="al_create_bitmap">al_create_bitmap</h2> |
1105 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_create_bitmap<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> | 1105 | <div·class="sourceCode"·id="cb31"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb31-1"><a·href="#cb31-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_BITMAP·<span·class="op">*</span>al_create_bitmap<span·class="op">(</span><span·class="dt">int</span>·w<span·class="op">,</span>·<span·class="dt">int</span>·h<span·class="op">)</span></span></code></pre></div> |
1106 | <p><a | 1106 | <p><a |
1107 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L188">Source | 1107 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L188">Source |
1108 | Code</a></p> | 1108 | Code</a></p> |
1109 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the | 1109 | <p>Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the |
Offset 1231, 15 lines modified | Offset 1231, 15 lines modified | ||
1231 | <p>Examples:</p> | 1231 | <p>Examples:</p> |
1232 | <ul> | 1232 | <ul> |
1233 | <li><a | 1233 | <li><a |
1234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L266">ex_subbitmap.c</a></li> | 1234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L266">ex_subbitmap.c</a></li> |
1235 | <li><a | 1235 | <li><a |
1236 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font.c#L20">ex_font.c</a></li> | 1236 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font.c#L20">ex_font.c</a></li> |
1237 | <li><a | 1237 | <li><a |
1238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L365">ex_blend2.cpp</a></li> |
1239 | </ul> | 1239 | </ul> |
1240 | <h2·id="al_convert_bitmap">al_convert_bitmap</h2> | 1240 | <h2·id="al_convert_bitmap">al_convert_bitmap</h2> |
1241 | <div·class="sourceCode"·id="cb34"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb34-1"><a·href="#cb34-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_convert_bitmap<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 1241 | <div·class="sourceCode"·id="cb34"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb34-1"><a·href="#cb34-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_convert_bitmap<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
1242 | <p><a | 1242 | <p><a |
1243 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_type.c#L154">Source | 1243 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap_type.c#L154">Source |
1244 | Code</a></p> | 1244 | Code</a></p> |
1245 | <p>Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The | 1245 | <p>Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The |
Offset 1588, 17 lines modified | Offset 1588, 17 lines modified | ||
1588 | API</a>:</em>·This·is·an·experimental·feature.</p> | 1588 | API</a>:</em>·This·is·an·experimental·feature.</p> |
1589 | </blockquote> | 1589 | </blockquote> |
1590 | <p>See·also:·<a | 1590 | <p>See·also:·<a |
1591 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> | 1591 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> |
1592 | <p>Examples:</p> | 1592 | <p>Examples:</p> |
1593 | <ul> | 1593 | <ul> |
1594 | <li><a | 1594 | <li><a |
1595 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L152">ex_prim_wrap.c</a></li> | ||
1596 | <li><a | ||
1597 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | 1595 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> |
1596 | <li><a | ||
1597 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L152">ex_prim_wrap.c</a></li> | ||
1598 | </ul> | 1598 | </ul> |
1599 | <h2·id="al_get_new_bitmap_wrap">al_get_new_bitmap_wrap</h2> | 1599 | <h2·id="al_get_new_bitmap_wrap">al_get_new_bitmap_wrap</h2> |
1600 | <p><a·href="">Source·Code</a></p> | 1600 | <p><a·href="">Source·Code</a></p> |
1601 | <p>Returns·the·value·currently·set·with·<a | 1601 | <p>Returns·the·value·currently·set·with·<a |
1602 | href="graphics.html#al_set_new_bitmap_wrap">al_set_new_bitmap_wrap</a> | 1602 | href="graphics.html#al_set_new_bitmap_wrap">al_set_new_bitmap_wrap</a> |
1603 | on·the·current·thread.</p> | 1603 | on·the·current·thread.</p> |
1604 | <p>Since:·5.2.8</p> | 1604 | <p>Since:·5.2.8</p> |
Offset 1625, 17 lines modified | Offset 1625, 17 lines modified | ||
1625 | to·the·edges·that·they·go·past.</p></li> | 1625 | to·the·edges·that·they·go·past.</p></li> |
1626 | <li><p>ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored | 1626 | <li><p>ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored |
1627 | across·the·edges·that·they·go·past.</p></li> | 1627 | across·the·edges·that·they·go·past.</p></li> |
1628 | </ul> | 1628 | </ul> |
1629 | <p>Examples:</p> | 1629 | <p>Examples:</p> |
1630 | <ul> | 1630 | <ul> |
1631 | <li><a | 1631 | <li><a |
1632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L131">ex_prim_wrap.c</a></li> | ||
1633 | <li><a | ||
1634 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> | 1632 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L690">ex_prim.c</a></li> |
1633 | <li><a | ||
1634 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L131">ex_prim_wrap.c</a></li> | ||
1635 | </ul> | 1635 | </ul> |
1636 | <h1·id="bitmap-properties">Bitmap·properties</h1> | 1636 | <h1·id="bitmap-properties">Bitmap·properties</h1> |
1637 | <h2·id="al_get_bitmap_flags">al_get_bitmap_flags</h2> | 1637 | <h2·id="al_get_bitmap_flags">al_get_bitmap_flags</h2> |
1638 | <div·class="sourceCode"·id="cb50"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb50-1"><a·href="#cb50-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_bitmap_flags<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 1638 | <div·class="sourceCode"·id="cb50"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb50-1"><a·href="#cb50-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_bitmap_flags<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
1639 | <p><a | 1639 | <p><a |
1640 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L330">Source | 1640 | href="https://github.com/liballeg/allegro5/blob/master/src/bitmap.c#L330">Source |
1641 | Code</a></p> | 1641 | Code</a></p> |
Offset 1735, 17 lines modified | Offset 1735, 17 lines modified | ||
1735 | href="graphics.html#al_put_pixel">al_put_pixel</a>,·<a | 1735 | href="graphics.html#al_put_pixel">al_put_pixel</a>,·<a |
1736 | href="graphics.html#al_lock_bitmap">al_lock_bitmap</a></p> | 1736 | href="graphics.html#al_lock_bitmap">al_lock_bitmap</a></p> |
1737 | <p>Examples:</p> | 1737 | <p>Examples:</p> |
1738 | <ul> | 1738 | <ul> |
1739 | <li><a | 1739 | <li><a |
1740 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L54">ex_blend_test.c</a></li> | 1740 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L54">ex_blend_test.c</a></li> |
1741 | <li><a | 1741 | <li><a |
Max diff block lines reached; 6075/14173 bytes (42.86%) of diff not shown. |
Offset 201, 15 lines modified | Offset 201, 15 lines modified | ||
201 | 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 | 201 | 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 |
202 | alpha. | 202 | alpha. |
203 | This·function·can·be·called·before·Allegro·is·initialized. | 203 | This·function·can·be·called·before·Allegro·is·initialized. |
204 | 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 | 204 | 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 |
205 | Examples: | 205 | Examples: |
206 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 206 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
207 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 207 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
208 | ····*·_\x8e_\x8x_\x8__\x8 | 208 | ····*·_\x8e_\x8x_\x8__\x8f_.o_.n_.t_.__.j_.u_.s_.t_.i_.f_.y_.._.c_.p_.p |
209 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 209 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
210 | ALLEGRO_COLOR·al_map_rgba( | 210 | ALLEGRO_COLOR·al_map_rgba( |
211 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 211 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
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 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 213 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. |
214 | This·function·can·be·called·before·Allegro·is·initialized. | 214 | This·function·can·be·called·before·Allegro·is·initialized. |
215 | 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 | 215 | 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 |
Offset 336, 15 lines modified | Offset 336, 15 lines modified | ||
336 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is | 336 | ······size·of·a·single·pixel,·but·for·blocked·pixel·formats·this·value·is |
337 | ······different. | 337 | ······different. |
338 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, | 338 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, |
339 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T | 339 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T |
340 | Examples: | 340 | Examples: |
341 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 341 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c |
342 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8a_\x8l_\x8p_\x8h_\x8a_\x8._\x8c | 342 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8a_\x8l_\x8p_\x8h_\x8a_\x8._\x8c |
343 | ····*·_\x8e_\x8x_\x8__\x8 | 343 | ····*·_\x8e_\x8x_\x8__\x8c_.o_.l_.o_.r_.2_\x8._\x8c |
344 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8IX\x8XE\x8EL\x8L_\x8_F\x8FO\x8OR\x8RM\x8MA\x8AT\x8T·*\x8**\x8**\x8**\x8**\x8* | 344 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8IX\x8XE\x8EL\x8L_\x8_F\x8FO\x8OR\x8RM\x8MA\x8AT\x8T·*\x8**\x8**\x8**\x8**\x8* |
345 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 345 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
346 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 346 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
347 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a | 347 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a |
348 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for | 348 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for |
349 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 349 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
350 | ·····N\x8No\x8ot\x8te\x8e:\x8: | 350 | ·····N\x8No\x8ot\x8te\x8e:\x8: |
Offset 443, 15 lines modified | Offset 443, 15 lines modified | ||
443 | ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes, | 443 | ······compression·algorithm.·Each·4x4·pixel·block·is·encoded·in·128·bytes, |
444 | ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha | 444 | ······resulting·in·4x·compression·ratio.·This·format·supports·smooth·alpha |
445 | ······transitions.·Since·5.1.9. | 445 | ······transitions.·Since·5.1.9. |
446 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t | 446 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t |
447 | Examples: | 447 | Examples: |
448 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 448 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
449 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | 449 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c |
450 | ····*·_\x8e_\x8x_\x8__\x8 | 450 | ····*·_\x8e_\x8x_\x8__\x8p_.i_.x_.e_.l_.f_.o_.r_.m_.a_.t_.._.c_.p_.p |
451 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8* | 451 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8* |
452 | int·al_get_pixel_size(int·format) | 452 | int·al_get_pixel_size(int·format) |
453 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 453 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
454 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For | 454 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies.·For |
455 | blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0. | 455 | blocked·pixel·formats·(e.g. compressed·formats),·this·returns·0. |
456 | 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__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8__\x8b_\x8i_\x8t_\x8s | 456 | 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__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8__\x8b_\x8i_\x8t_\x8s |
457 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_f\x8fo\x8or\x8rm\x8ma\x8at\x8t_\x8_b\x8bi\x8it\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* | 457 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pi\x8ix\x8xe\x8el\x8l_\x8_f\x8fo\x8or\x8rm\x8ma\x8at\x8t_\x8_b\x8bi\x8it\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* |
Offset 586, 15 lines modified | Offset 586, 15 lines modified | ||
586 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* | 586 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* |
587 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 587 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
588 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 588 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
589 | Abstract·type·representing·a·bitmap·(2D·image). | 589 | Abstract·type·representing·a·bitmap·(2D·image). |
590 | Examples: | 590 | Examples: |
591 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 591 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
592 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | 592 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
593 | ····*·_\x8e_\x8x_\x8__\x8 | 593 | ····*·_\x8e_\x8x_\x8__\x8b_.l_.e_.n_.d_.__.b_.e_.n_.c_.h_\x8._\x8c |
594 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* | 594 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* |
595 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) | 595 | ALLEGRO_BITMAP·*al_create_bitmap(int·w,·int·h) |
596 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 596 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
597 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. | 597 | Creates·a·new·bitmap·using·the·bitmap·format·and·flags·for·the·current·thread. |
598 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory | 598 | Blitting·between·bitmaps·of·differing·formats,·or·blitting·between·memory |
599 | bitmaps·and·display·bitmaps·may·be·slow. | 599 | bitmaps·and·display·bitmaps·may·be·slow. |
600 | Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the | 600 | Unless·you·set·the·ALLEGRO_MEMORY_BITMAP·flag,·the·bitmap·is·created·for·the |
Offset 675, 15 lines modified | Offset 675, 15 lines modified | ||
675 | the·new·bitmap·is·a·memory·bitmap,·its·projection·bitmap·is·reset·to·be | 675 | the·new·bitmap·is·a·memory·bitmap,·its·projection·bitmap·is·reset·to·be |
676 | orthographic. | 676 | orthographic. |
677 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s, | 677 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8r_\x8m_\x8a_\x8t,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s, |
678 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 678 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
679 | Examples: | 679 | Examples: |
680 | ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 680 | ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c |
681 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8._\x8c | 681 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8._\x8c |
682 | ····*·_\x8e_\x8x_\x8__\x8 | 682 | ····*·_\x8e_\x8x_\x8__\x8b_.l_.e_.n_.d_.2_.._.c_.p_.p |
683 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8on\x8nv\x8ve\x8er\x8rt\x8t_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* | 683 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8on\x8nv\x8ve\x8er\x8rt\x8t_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* |
684 | void·al_convert_bitmap(ALLEGRO_BITMAP·*bitmap) | 684 | void·al_convert_bitmap(ALLEGRO_BITMAP·*bitmap) |
685 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 685 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
686 | Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The·bitmap·will·be | 686 | Converts·the·bitmap·to·the·current·bitmap·flags·and·format.·The·bitmap·will·be |
687 | as·if·it·was·created·anew·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·but·retain·its·contents.·All·of | 687 | as·if·it·was·created·anew·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·but·retain·its·contents.·All·of |
688 | this·bitmap’s·sub-bitmaps·are·also·converted.·If·the·new·bitmap·type·is·memory, | 688 | this·bitmap’s·sub-bitmaps·are·also·converted.·If·the·new·bitmap·type·is·memory, |
689 | then·the·bitmap’s·projection·bitmap·is·reset·to·be·orthographic. | 689 | then·the·bitmap’s·projection·bitmap·is·reset·to·be·orthographic. |
Offset 895, 16 lines modified | Offset 895, 16 lines modified | ||
895 | ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping | 895 | ·····addon·which·(for·backwards·compatibility)·alters·the·wrapping |
896 | ·····setting.·To·minimize·this·issue,·use·a·wrapping·setting·that’s·not | 896 | ·····setting.·To·minimize·this·issue,·use·a·wrapping·setting·that’s·not |
897 | ·····ALLEGRO_BITMAP_WRAP_DEFAULT. | 897 | ·····ALLEGRO_BITMAP_WRAP_DEFAULT. |
898 | Since:·5.2.8 | 898 | Since:·5.2.8 |
899 | ·····_\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. | 899 | ·····_\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. |
900 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P | 900 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P |
901 | Examples: | 901 | Examples: |
902 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
903 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 902 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
903 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
904 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_w\x8wr\x8ra\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* | 904 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_w\x8wr\x8ra\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* |
905 | Source·Code | 905 | Source·Code |
906 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current | 906 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current |
907 | thread. | 907 | thread. |
908 | Since:·5.2.8 | 908 | Since:·5.2.8 |
909 | ·····_\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. | 909 | ·····_\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. |
910 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P | 910 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P |
Offset 919, 16 lines modified | Offset 919, 16 lines modified | ||
919 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the | 919 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the |
920 | ······opposite·edge·that·they·go·past. | 920 | ······opposite·edge·that·they·go·past. |
921 | ····*·ALLEGRO_BITMAP_WRAP_CLAMP·-·The·texture·coordinates·get·clamped·to·the | 921 | ····*·ALLEGRO_BITMAP_WRAP_CLAMP·-·The·texture·coordinates·get·clamped·to·the |
922 | ······edges·that·they·go·past. | 922 | ······edges·that·they·go·past. |
923 | ····*·ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored·across | 923 | ····*·ALLEGRO_BITMAP_WRAP_MIRROR·-·The·texture·coordinates·get·mirrored·across |
924 | ······the·edges·that·they·go·past. | 924 | ······the·edges·that·they·go·past. |
925 | Examples: | 925 | Examples: |
926 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
927 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 926 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
927 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
928 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·p\x8pr\x8ro\x8op\x8pe\x8er\x8rt\x8ti\x8ie\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 928 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·p\x8pr\x8ro\x8op\x8pe\x8er\x8rt\x8ti\x8ie\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
929 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* | 929 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* |
930 | int·al_get_bitmap_flags(ALLEGRO_BITMAP·*bitmap) | 930 | int·al_get_bitmap_flags(ALLEGRO_BITMAP·*bitmap) |
931 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 931 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
932 | Return·the·flags·used·to·create·the·bitmap. | 932 | Return·the·flags·used·to·create·the·bitmap. |
933 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | 933 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s |
934 | Examples: | 934 | Examples: |
Offset 979, 16 lines modified | Offset 979, 16 lines modified | ||
979 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 979 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
980 | Get·a·pixel’s·color·value·from·the·specified·bitmap.·This·operation·is·slow·on | 980 | Get·a·pixel’s·color·value·from·the·specified·bitmap.·This·operation·is·slow·on |
981 | non-memory·bitmaps.·Consider·locking·the·bitmap·if·you·are·going·to·use·this | 981 | non-memory·bitmaps.·Consider·locking·the·bitmap·if·you·are·going·to·use·this |
982 | function·multiple·times·on·the·same·bitmap. | 982 | function·multiple·times·on·the·same·bitmap. |
983 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 983 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·_\x8a_\x8l_\x8__\x8p_\x8u_\x8t_\x8__\x8p_\x8i_\x8x_\x8e_\x8l,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
984 | Examples: | 984 | Examples: |
985 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 985 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
986 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | ||
987 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | 986 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c |
987 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | ||
988 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_l\x8lo\x8oc\x8ck\x8ke\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 988 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p_\x8_l\x8lo\x8oc\x8ck\x8ke\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 4251/12015 bytes (35.38%) of diff not shown. |
Offset 207, 23 lines modified | Offset 207, 14 lines modified | ||
207 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to | 207 | installed·libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to |
208 | be·universally·available.</p> | 208 | be·universally·available.</p> |
209 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS | 209 | <p>The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS |
210 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. | 210 | file·contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats. |
211 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a | 211 | Note·that·when·loading·a·DDS·file,·the·created·bitmap·will·always·be·a |
212 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the | 212 | video·bitmap·and·will·have·the·pixel·format·matching·the·format·in·the |
213 | file.</p> | 213 | file.</p> |
214 | <p>Examples:</p> | ||
215 | <ul> | ||
216 | <li><a | ||
217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L29">ex_convert.c</a></li> | ||
218 | <li><a | ||
219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> | ||
220 | <li><a | ||
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> | ||
222 | </ul> | ||
223 | <h1 | 214 | <h1 |
224 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 215 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> |
225 | <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><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 216 | <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><span·class="dt">bool</span>·al_is_image_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
226 | <p><a | 217 | <p><a |
227 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source | 218 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source |
228 | Code</a></p> | 219 | Code</a></p> |
229 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 220 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
Offset 64, 18 lines modified | Offset 64, 14 lines modified | ||
64 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed | 64 | Other·formats·may·be·available·depending·on·the·operating·system·and·installed |
65 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally | 65 | libraries,·but·are·not·guaranteed·and·should·not·be·assumed·to·be·universally |
66 | available. | 66 | available. |
67 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file | 67 | The·DDS·format·is·only·supported·to·load·from,·and·only·if·the·DDS·file |
68 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when | 68 | contains·textures·compressed·in·the·DXT1,·DXT3·and·DXT5·formats.·Note·that·when |
69 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will | 69 | loading·a·DDS·file,·the·created·bitmap·will·always·be·a·video·bitmap·and·will |
70 | have·the·pixel·format·matching·the·format·in·the·file. | 70 | have·the·pixel·format·matching·the·format·in·the·file. |
71 | Examples: | ||
72 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
73 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
74 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | bool·al_is_image_addon_initialized(void) | 72 | bool·al_is_image_addon_initialized(void) |
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 74 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
79 | Since:·5.2.6 | 75 | Since:·5.2.6 |
80 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
81 | void·al_shutdown_image_addon(void) | 77 | void·al_shutdown_image_addon(void) |
Offset 196, 19 lines modified | Offset 196, 14 lines modified | ||
196 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file | 196 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file |
197 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read | 197 | size·is·fixed·and·cannot·be·expanded.·The·file·is·always·read |
198 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation | 198 | from/written·to·in·binary·mode,·which·means·that·no·newline·translation |
199 | is·performed.</p> | 199 | is·performed.</p> |
200 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. | 200 | <p>It·should·be·closed·with·<a·href="file.html#al_fclose">al_fclose</a>. |
201 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if | 201 | After·the·file·is·closed,·you·are·responsible·for·freeing·the·memory·(if |
202 | needed).</p> | 202 | needed).</p> |
203 | <p>Examples:</p> | ||
204 | <ul> | ||
205 | <li><a | ||
206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> | ||
207 | </ul> | ||
208 | <h1 | 203 | <h1 |
209 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 204 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
210 | <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><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 205 | <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><span·class="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
211 | <p><a | 206 | <p><a |
212 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source | 207 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source |
213 | Code</a></p> | 208 | Code</a></p> |
214 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 209 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
Offset 57, 15 lines modified | Offset 57, 13 lines modified | ||
57 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. | 57 | upon·the·memory·directly,·so·it·must·not·be·freed·while·the·file·remains·open. |
58 | The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). | 58 | The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). |
59 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is | 59 | Regardless·of·the·mode,·the·file·always·opens·at·position·0.·The·file·size·is |
60 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary | 60 | fixed·and·cannot·be·expanded.·The·file·is·always·read·from/written·to·in·binary |
61 | mode,·which·means·that·no·newline·translation·is·performed. | 61 | mode,·which·means·that·no·newline·translation·is·performed. |
62 | It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are | 62 | It·should·be·closed·with·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e.·After·the·file·is·closed,·you·are |
63 | responsible·for·freeing·the·memory·(if·needed). | 63 | responsible·for·freeing·the·memory·(if·needed). |
64 | Examples: | ||
65 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
66 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | uint32_t·al_get_allegro_memfile_version(void) | 65 | uint32_t·al_get_allegro_memfile_version(void) |
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 67 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
70 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 68 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
71 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC | 69 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 232, 15 lines modified | Offset 232, 15 lines modified | ||
232 | <p>Examples:</p> | 232 | <p>Examples:</p> |
233 | <ul> | 233 | <ul> |
234 | <li><a | 234 | <li><a |
235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> | 235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> |
236 | <li><a | 236 | <li><a |
237 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L166">ex_drag_and_drop.c</a></li> | 237 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L166">ex_drag_and_drop.c</a></li> |
238 | <li><a | 238 | <li><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L214">ex_vertex_buffer.c</a></li> |
240 | </ul> | 240 | </ul> |
241 | <h1·id="al_realloc">al_realloc</h1> | 241 | <h1·id="al_realloc">al_realloc</h1> |
242 | <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="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 242 | <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="pp">#define·al_realloc</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
243 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_realloc_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> | 243 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_realloc_with_context</span><span·class="op">((</span><span·class="pp">p</span><span·class="op">),</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">),</span><span·class="pp">·__LINE__</span><span·class="op">,</span><span·class="pp">·__FILE__</span><span·class="op">,</span><span·class="pp">·__func__</span><span·class="op">))</span></span></code></pre></div> |
244 | <p><a | 244 | <p><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source | 245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L52">Source |
246 | Code</a></p> | 246 | Code</a></p> |
Offset 77, 15 lines modified | Offset 77, 15 lines modified | ||
77 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a | 77 | from·the·same·DLL.·In·the·few·places·where·an·Allegro·function·returns·a |
78 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. | 78 | pointer·that·must·be·freed,·you·must·use·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e·for·portability·to·Windows. |
79 | This·is·a·macro. | 79 | This·is·a·macro. |
80 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 80 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
81 | Examples: | 81 | Examples: |
82 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c | 82 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c |
83 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | 83 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c |
84 | ····*·_\x8e_\x8x_\x8__\x8 | 84 | ····*·_\x8e_\x8x_\x8__\x8v_.e_.r_.t_.e_.x_.__.b_.u_.f_.f_.e_.r_\x8._\x8c |
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ea\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | #define·al_realloc(p,·n)·\ | 86 | #define·al_realloc(p,·n)·\ |
87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
89 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 89 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
90 | overridden. | 90 | overridden. |
91 | This·is·a·macro. | 91 | This·is·a·macro. |
Offset 293, 17 lines modified | Offset 293, 17 lines modified | ||
293 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, | 293 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, |
294 | nothing·happens·and·true·is·returned.</p> | 294 | nothing·happens·and·true·is·returned.</p> |
295 | <p>Examples:</p> | 295 | <p>Examples:</p> |
296 | <ul> | 296 | <ul> |
297 | <li><a | 297 | <li><a |
298 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> | 298 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> |
299 | <li><a | 299 | <li><a |
300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> | ||
301 | <li><a | ||
302 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> | 300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> |
301 | <li><a | ||
302 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> | ||
303 | </ul> | 303 | </ul> |
304 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> | 304 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> |
305 | <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> | 305 | <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> |
306 | <p><a | 306 | <p><a |
307 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source | 307 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L40">Source |
308 | Code</a></p> | 308 | Code</a></p> |
309 | <p>Returns·true·if·<a | 309 | <p>Returns·true·if·<a |
Offset 471, 15 lines modified | Offset 471, 15 lines modified | ||
471 | <p>Examples:</p> | 471 | <p>Examples:</p> |
472 | <ul> | 472 | <ul> |
473 | <li><a | 473 | <li><a |
474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li> | 474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li> |
475 | <li><a | 475 | <li><a |
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li> | 476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li> |
477 | <li><a | 477 | <li><a |
478 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 478 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L191">ex_timer.c</a></li> |
479 | </ul> | 479 | </ul> |
480 | <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1> | 480 | <h1·id="al_set_mouse_wheel_precision">al_set_mouse_wheel_precision</h1> |
481 | <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">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div> | 481 | <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">void</span>·al_set_mouse_wheel_precision<span·class="op">(</span><span·class="dt">int</span>·precision<span·class="op">)</span></span></code></pre></div> |
482 | <p><a | 482 | <p><a |
483 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L325">Source | 483 | href="https://github.com/liballeg/allegro5/blob/master/src/mousenu.c#L325">Source |
484 | Code</a></p> | 484 | Code</a></p> |
485 | <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This | 485 | <p>Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This |
Offset 108, 16 lines modified | Offset 108, 16 lines modified | ||
108 | bool·al_install_mouse(void) | 108 | bool·al_install_mouse(void) |
109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
110 | Install·a·mouse·driver. | 110 | Install·a·mouse·driver. |
111 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens | 111 | Returns·true·if·successful.·If·a·driver·was·already·installed,·nothing·happens |
112 | and·true·is·returned. | 112 | and·true·is·returned. |
113 | Examples: | 113 | Examples: |
114 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 114 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
115 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
116 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 115 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
116 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
117 | *\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* | 117 | *\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* |
118 | bool·al_is_mouse_installed(void) | 118 | bool·al_is_mouse_installed(void) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
120 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. | 120 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. |
121 | *\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* | 121 | *\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* |
122 | void·al_uninstall_mouse(void) | 122 | void·al_uninstall_mouse(void) |
123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 216, 15 lines modified | Offset 216, 15 lines modified | ||
216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
217 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event | 217 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event |
218 | source. | 218 | source. |
219 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. | 219 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. |
220 | Examples: | 220 | Examples: |
221 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 221 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
222 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | 222 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c |
223 | ····*·_\x8e_\x8x_\x8__\x8 | 223 | ····*·_\x8e_\x8x_\x8__\x8t_.i_.m_.e_.r_\x8._\x8c |
224 | *\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* | 224 | *\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* |
225 | void·al_set_mouse_wheel_precision(int·precision) | 225 | void·al_set_mouse_wheel_precision(int·precision) |
226 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 226 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
227 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision | 227 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision |
228 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It | 228 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It |
229 | 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 | 229 | 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 |
230 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those | 230 | simple·way·if·you·alter·the·precision·often,·so·it·is·suggested·to·reset·those |
Offset 267, 32 lines modified | Offset 267, 20 lines modified | ||
267 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> | 267 | <div·class="sourceCode"·id="cb1"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb1-1"><a·href="#cb1-1"·aria-hidden="true"·tabindex="-1"></a>·<span·class="pp">#include·</span><span·class="im"><allegro5/allegro_native_dialog.h></span></span></code></pre></div> |
268 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> | 268 | <h1·id="allegro_filechooser">ALLEGRO_FILECHOOSER</h1> |
269 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div> | 269 | <div·class="sourceCode"·id="cb2"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb2-1"><a·href="#cb2-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER<span·class="op">;</span></span></code></pre></div> |
270 | <p><a | 270 | <p><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source | 271 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L38">Source |
272 | Code</a></p> | 272 | Code</a></p> |
273 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 273 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
274 | <p>Examples:</p> | ||
275 | <ul> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L31">ex_native_filechooser.c</a></li> | ||
278 | </ul> | ||
279 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 274 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
280 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div> | 275 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG<span·class="op">;</span></span></code></pre></div> |
281 | <p><a | 276 | <p><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source | 277 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source |
283 | Code</a></p> | 278 | Code</a></p> |
284 | <p>Opaque·handle·to·a·text·log·window.</p> | 279 | <p>Opaque·handle·to·a·text·log·window.</p> |
285 | <p>Examples:</p> | ||
286 | <ul> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> | ||
289 | <li><a | ||
290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L36">ex_native_filechooser.c</a></li> | ||
291 | </ul> | ||
292 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 280 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
293 | <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_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 281 | <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_init_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
294 | <p><a | 282 | <p><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source | 283 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source |
296 | Code</a></p> | 284 | Code</a></p> |
297 | <p>Initialise·the·native·dialog·addon.</p> | 285 | <p>Initialise·the·native·dialog·addon.</p> |
298 | <p>Returns·true·on·success,·false·on·error.</p> | 286 | <p>Returns·true·on·success,·false·on·error.</p> |
Offset 304, 23 lines modified | Offset 292, 14 lines modified | ||
304 | is·<a | 292 | is·<a |
305 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, | 293 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, |
306 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to | 294 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to |
307 | initialise.</p> | 295 | initialise.</p> |
308 | </blockquote> | 296 | </blockquote> |
309 | <p>See·also:·<a | 297 | <p>See·also:·<a |
310 | href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> | 298 | href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> |
311 | <p>Examples:</p> | ||
312 | <ul> | ||
313 | <li><a | ||
314 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L39">common.c</a></li> | ||
315 | <li><a | ||
316 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> | ||
317 | <li><a | ||
318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> | ||
319 | </ul> | ||
320 | <h1 | 299 | <h1 |
321 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> | 300 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> |
322 | <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_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 301 | <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_native_dialog_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
323 | <p><a | 302 | <p><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source | 303 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source |
325 | Code</a></p> | 304 | Code</a></p> |
326 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 305 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
Offset 427, 19 lines modified | Offset 406, 14 lines modified | ||
427 | and·<a | 406 | and·<a |
428 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. | 407 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. |
429 | When·you·are·done,·call·<a | 408 | When·you·are·done,·call·<a |
430 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> | 409 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> |
431 | on·it.</p> | 410 | on·it.</p> |
432 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns | 411 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns |
433 | NULL.</p> | 412 | NULL.</p> |
434 | <p>Examples:</p> | ||
435 | <ul> | ||
436 | <li><a | ||
437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L105">ex_native_filechooser.c</a></li> | ||
438 | </ul> | ||
439 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 413 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
440 | <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_show_native_file_dialog<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> | 414 | <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_show_native_file_dialog<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> |
441 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> | 415 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> |
442 | <p><a | 416 | <p><a |
443 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source | 417 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source |
444 | Code</a></p> | 418 | Code</a></p> |
445 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given | 419 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given |
Offset 453, 32 lines modified | Offset 427, 22 lines modified | ||
453 | <p><em>Note:</em>·On·Android,·<a | 427 | <p><em>Note:</em>·On·Android,·<a |
454 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a> | 428 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a> |
455 | and·<a | 429 | and·<a |
456 | href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a> | 430 | href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a> |
457 | need·to·be·handled·before·this·function·returns.·This·means·that·you | 431 | need·to·be·handled·before·this·function·returns.·This·means·that·you |
458 | must·call·it·from·a·different·thread.</p> | 432 | must·call·it·from·a·different·thread.</p> |
459 | </blockquote> | 433 | </blockquote> |
460 | <p>Examples:</p> | ||
461 | <ul> | ||
462 | <li><a | ||
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L59">ex_native_filechooser.c</a></li> | ||
464 | </ul> | ||
465 | <h1 | 434 | <h1 |
466 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 435 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
467 | <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_native_file_dialog_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> | 436 | <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_native_file_dialog_count<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> |
468 | <p><a | 437 | <p><a |
469 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source | 438 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source |
470 | Code</a></p> | 439 | Code</a></p> |
471 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was | 440 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was |
472 | cancelled.</p> | 441 | cancelled.</p> |
473 | <p>Examples:</p> | ||
474 | <ul> | ||
475 | <li><a | ||
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L148">ex_native_filechooser.c</a></li> | ||
477 | </ul> | ||
478 | <h1 | 442 | <h1 |
479 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 443 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
480 | <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>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span> | 444 | <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>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_native_file_dialog_path<span·class="op">(</span></span> |
481 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div> | 445 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">,</span>·<span·class="dt">size_t</span>·i<span·class="op">)</span></span></code></pre></div> |
482 | <p><a | 446 | <p><a |
483 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source | 447 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source |
484 | Code</a></p> | 448 | Code</a></p> |
Offset 488, 31 lines modified | Offset 452, 21 lines modified | ||
488 | <code>-1</code>.</p> | 452 | <code>-1</code>.</p> |
489 | <blockquote> | 453 | <blockquote> |
490 | <p><em>Note:</em>·On·Android,·this·function·returns·a·content:// | 454 | <p><em>Note:</em>·On·Android,·this·function·returns·a·content:// |
491 | Universal·Resource·Identifier·instead·of·a·file·path·due·to·the | 455 | Universal·Resource·Identifier·instead·of·a·file·path·due·to·the |
492 | constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a | 456 | constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a |
493 | href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p> | 457 | href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p> |
494 | </blockquote> | 458 | </blockquote> |
495 | <p>Examples:</p> | ||
496 | <ul> | ||
497 | <li><a | ||
498 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L155">ex_native_filechooser.c</a></li> | ||
499 | </ul> | ||
500 | <h1 | 459 | <h1 |
501 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> | 460 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> |
502 | <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_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> | 461 | <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_native_file_dialog<span·class="op">(</span>ALLEGRO_FILECHOOSER·<span·class="op">*</span>dialog<span·class="op">)</span></span></code></pre></div> |
503 | <p><a | 462 | <p><a |
504 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source | 463 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source |
Max diff block lines reached; 29553/37767 bytes (78.25%) of diff not shown. |
Offset 90, 39 lines modified | Offset 90, 30 lines modified | ||
90 | These·functions·are·declared·in·the·following·header·file.·Link·with | 90 | These·functions·are·declared·in·the·following·header·file.·Link·with |
91 | allegro_dialog. | 91 | allegro_dialog. |
92 | ·#include·<allegro5/allegro_native_dialog.h> | 92 | ·#include·<allegro5/allegro_native_dialog.h> |
93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8EC\x8CH\x8HO\x8OO\x8OS\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
94 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | 94 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
96 | Opaque·handle·to·a·native·file·dialog. | 96 | Opaque·handle·to·a·native·file·dialog. |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TE\x8EX\x8XT\x8TL\x8LO\x8OG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 98 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
102 | Opaque·handle·to·a·text·log·window. | 100 | Opaque·handle·to·a·text·log·window. |
103 | Examples: | ||
104 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
105 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | bool·al_init_native_dialog_addon(void) | 102 | bool·al_init_native_dialog_addon(void) |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Initialise·the·native·dialog·addon. | 104 | Initialise·the·native·dialog·addon. |
110 | Returns·true·on·success,·false·on·error. | 105 | Returns·true·on·success,·false·on·error. |
111 | Since:·5.0.9,·5.1.0 | 106 | Since:·5.0.9,·5.1.0 |
112 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called | 107 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called |
113 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future | 108 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
114 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 109 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
115 | ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error | 110 | ·····_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8__\x8b_\x8o_\x8x,·which·may·be·useful·to·show·an·error |
116 | ·····message·if·Allegro·fails·to·initialise. | 111 | ·····message·if·Allegro·fails·to·initialise. |
117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 112 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
118 | Examples: | ||
119 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
120 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | ||
121 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | bool·al_is_native_dialog_addon_initialized(void) | 114 | bool·al_is_native_dialog_addon_initialized(void) |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 116 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
126 | false. | 117 | false. |
127 | Since:·5.2.6 | 118 | Since:·5.2.6 |
128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 189, 55 lines modified | Offset 180, 45 lines modified | ||
189 | ······If·supported,·allow·selecting·multiple·files. | 180 | ······If·supported,·allow·selecting·multiple·files. |
190 | Returns: | 181 | Returns: |
191 | A·handle·to·the·dialog·which·you·can·pass·to·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·to | 182 | A·handle·to·the·dialog·which·you·can·pass·to·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·to |
192 | display·it,·and·from·which·you·then·can·query·the·results·using | 183 | display·it,·and·from·which·you·then·can·query·the·results·using |
193 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8p_\x8a_\x8t_\x8h.·When·you | 184 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8p_\x8a_\x8t_\x8h.·When·you |
194 | are·done,·call·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·on·it. | 185 | are·done,·call·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g·on·it. |
195 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. | 186 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. |
196 | Examples: | ||
197 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
198 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 187 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
199 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 188 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
200 | ···ALLEGRO_FILECHOOSER·*dialog) | 189 | ···ALLEGRO_FILECHOOSER·*dialog) |
201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 190 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
202 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is | 191 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
203 | treated·as·the·parent·if·possible. | 192 | treated·as·the·parent·if·possible. |
204 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 193 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to |
205 | spawn·a·thread·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and·call·it·from·inside·that·thread. | 194 | spawn·a·thread·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and·call·it·from·inside·that·thread. |
206 | Returns·true·on·success,·false·on·failure. | 195 | Returns·true·on·success,·false·on·failure. |
207 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·and | 196 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8H_\x8A_\x8L_\x8T_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·and |
208 | ·····_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·need·to·be·handled·before·this | 197 | ·····_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8R_\x8E_\x8S_\x8U_\x8M_\x8E_\x8__\x8D_\x8R_\x8A_\x8W_\x8I_\x8N_\x8G·need·to·be·handled·before·this |
209 | ·····function·returns.·This·means·that·you·must·call·it·from·a·different | 198 | ·····function·returns.·This·means·that·you·must·call·it·from·a·different |
210 | ·····thread. | 199 | ·····thread. |
211 | Examples: | ||
212 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
213 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 200 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
214 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 201 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
215 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
216 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 203 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
217 | Examples: | ||
218 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
219 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
220 | const·char·*al_get_native_file_dialog_path( | 205 | const·char·*al_get_native_file_dialog_path( |
221 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 206 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 | 208 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 |
224 | to·the·return·value·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·-1. | 209 | to·the·return·value·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8c_\x8o_\x8u_\x8n_\x8t·-1. |
225 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal | 210 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal |
226 | ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of | 211 | ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of |
227 | ·····Scoped·Storage.·Selected·files·may·be·accessed·using | 212 | ·····Scoped·Storage.·Selected·files·may·be·accessed·using |
228 | ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d. | 213 | ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d. |
229 | Examples: | ||
230 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
231 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 214 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_f\x8fi\x8il\x8le\x8e_\x8_d\x8di\x8ia\x8al\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
232 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 215 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
233 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
234 | Frees·up·all·resources·used·by·the·file·dialog. | 217 | Frees·up·all·resources·used·by·the·file·dialog. |
235 | Examples: | ||
236 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
237 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e_\x8_b\x8bo\x8ox\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 218 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8ho\x8ow\x8w_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e_\x8_b\x8bo\x8ox\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
238 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 219 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
239 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 220 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
240 | ···char·const·*buttons,·int·flags) | 221 | ···char·const·*buttons,·int·flags) |
241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
242 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error | 223 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
243 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, | 224 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, |
Offset 280, 18 lines modified | Offset 261, 14 lines modified | ||
280 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" | 261 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" |
281 | ··"is·your·response·to·the·query·which·you·have·" | 262 | ··"is·your·response·to·the·query·which·you·have·" |
282 | ··"generated·by·the·action·you·took·to·open·this·" | 263 | ··"generated·by·the·action·you·took·to·open·this·" |
283 | ··"message·box.", | 264 | ··"message·box.", |
284 | ··NULL, | 265 | ··NULL, |
285 | ··ALLEGRO_MESSAGEBOX_YES_NO | 266 | ··ALLEGRO_MESSAGEBOX_YES_NO |
286 | ); | 267 | ); |
287 | Examples: | ||
288 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
289 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
290 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
291 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 268 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
292 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | 269 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 270 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
294 | Opens·a·window·to·which·you·can·append·log·messages·with | 271 | Opens·a·window·to·which·you·can·append·log·messages·with |
295 | _\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g.·This·can·be·useful·for·debugging·if·you·don’t·want | 272 | _\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g.·This·can·be·useful·for·debugging·if·you·don’t·want |
296 | to·depend·on·a·console·being·available. | 273 | to·depend·on·a·console·being·available. |
297 | Use·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g·to·close·the·window·again. | 274 | Use·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g·to·close·the·window·again. |
Offset 302, 53 lines modified | Offset 279, 40 lines modified | ||
302 | ······_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. | 279 | ······_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. |
303 | ··ALLEGRO_TEXTLOG_MONOSPACE | 280 | ··ALLEGRO_TEXTLOG_MONOSPACE |
304 | ······Use·a·monospace·font·to·display·the·text. | 281 | ······Use·a·monospace·font·to·display·the·text. |
305 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows | 282 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows |
306 | are·not·implemented·on·the·platform. | 283 | are·not·implemented·on·the·platform. |
307 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat. | 284 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat. |
308 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g | 285 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g,·_\x8a_\x8l_\x8__\x8c_\x8l_\x8o_\x8s_\x8e_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8l_\x8o_\x8g |
309 | Examples: | ||
310 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
311 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
312 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 286 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_n\x8na\x8at\x8ti\x8iv\x8ve\x8e_\x8_t\x8te\x8ex\x8xt\x8t_\x8_l\x8lo\x8og\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
313 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | 287 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) |
Max diff block lines reached; 15170/23047 bytes (65.82%) of diff not shown. |
Offset 224, 19 lines modified | Offset 224, 14 lines modified | ||
224 | <blockquote> | 224 | <blockquote> |
225 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and | 225 | <p><em>Note:</em>·PhysFS·does·not·support·the·text-mode·reading·and |
226 | writing,·which·means·that·Windows-style·newlines·will·not·be | 226 | writing,·which·means·that·Windows-style·newlines·will·not·be |
227 | preserved.</p> | 227 | preserved.</p> |
228 | </blockquote> | 228 | </blockquote> |
229 | <p>See·also:·<a | 229 | <p>See·also:·<a |
230 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 230 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
231 | <p>Examples:</p> | ||
232 | <ul> | ||
233 | <li><a | ||
234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> | ||
235 | </ul> | ||
236 | <h1 | 231 | <h1 |
237 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 232 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
238 | <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><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 233 | <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><span·class="dt">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
239 | <p><a | 234 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source | 235 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source |
241 | Code</a></p> | 236 | Code</a></p> |
242 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 237 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
Offset 70, 15 lines modified | Offset 70, 13 lines modified | ||
70 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. | 70 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. |
71 | ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from | 71 | ·····N\x8No\x8ot\x8te\x8e:\x8:·due·to·an·oversight,·this·function·differs·from |
72 | ·····_\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·and·_\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·which | 72 | ·····_\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·and·_\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·which |
73 | ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. | 73 | ·····only·alter·the·current·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. |
74 | ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing, | 74 | ·····N\x8No\x8ot\x8te\x8e:\x8:·PhysFS·does·not·support·the·text-mode·reading·and·writing, |
75 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. | 75 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. |
76 | 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. | 76 | 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. |
77 | Examples: | ||
78 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | ||
79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | uint32_t·al_get_allegro_physfs_version(void) | 78 | uint32_t·al_get_allegro_physfs_version(void) |
81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
82 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 80 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
83 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 81 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
84 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC | 82 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 343, 23 lines modified | Offset 343, 14 lines modified | ||
343 | <p><a | 343 | <p><a |
344 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source | 344 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L48">Source |
345 | Code</a></p> | 345 | Code</a></p> |
346 | <p>Initializes·the·primitives·addon.</p> | 346 | <p>Initializes·the·primitives·addon.</p> |
347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
348 | <p>See·also:·<a | 348 | <p>See·also:·<a |
349 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 349 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
350 | <p>Examples:</p> | ||
351 | <ul> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L55">ex_touch_input.c</a></li> | ||
354 | <li><a | ||
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> | ||
356 | <li><a | ||
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> | ||
358 | </ul> | ||
359 | <h2 | 350 | <h2 |
360 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 351 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> |
361 | <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_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 352 | <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_is_primitives_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
362 | <p><a | 353 | <p><a |
363 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source | 354 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source |
364 | Code</a></p> | 355 | Code</a></p> |
365 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 356 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
Offset 483, 23 lines modified | Offset 474, 14 lines modified | ||
483 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 474 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
484 | <li>color·-·Color·of·the·line</li> | 475 | <li>color·-·Color·of·the·line</li> |
485 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw | 476 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw |
486 | hairline·lines</li> | 477 | hairline·lines</li> |
487 | </ul> | 478 | </ul> |
488 | <p>See·also:·<a | 479 | <p>See·also:·<a |
489 | href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> | 480 | href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> |
490 | <p>Examples:</p> | ||
491 | <ul> | ||
492 | <li><a | ||
493 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L85">ex_font_justify.cpp</a></li> | ||
494 | <li><a | ||
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> | ||
496 | <li><a | ||
497 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> | ||
498 | </ul> | ||
499 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 481 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
500 | <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_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 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">void</span>·al_draw_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
501 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div> | 483 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div> |
502 | <p><a | 484 | <p><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source | 485 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source |
504 | Code</a></p> | 486 | Code</a></p> |
505 | <p>Draws·an·outlined·triangle.</p> | 487 | <p>Draws·an·outlined·triangle.</p> |
Offset 510, 38 lines modified | Offset 492, 28 lines modified | ||
510 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 492 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
511 | draw·hairline·lines</li> | 493 | draw·hairline·lines</li> |
512 | </ul> | 494 | </ul> |
513 | <p>See·also:·<a | 495 | <p>See·also:·<a |
514 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, | 496 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, |
515 | <a | 497 | <a |
516 | href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> | 498 | href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> |
517 | <p>Examples:</p> | ||
518 | <ul> | ||
519 | <li><a | ||
520 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> | ||
521 | </ul> | ||
522 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 499 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
523 | <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_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 500 | <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_draw_filled_triangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
524 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> | 501 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·x3<span·class="op">,</span>·<span·class="dt">float</span>·y3<span·class="op">,</span>·ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> |
525 | <p><a | 502 | <p><a |
526 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source | 503 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source |
527 | Code</a></p> | 504 | Code</a></p> |
528 | <p>Draws·a·filled·triangle.</p> | 505 | <p>Draws·a·filled·triangle.</p> |
529 | <p><em>Parameters:</em></p> | 506 | <p><em>Parameters:</em></p> |
530 | <ul> | 507 | <ul> |
531 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 508 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
532 | <li>color·-·Color·of·the·triangle</li> | 509 | <li>color·-·Color·of·the·triangle</li> |
533 | </ul> | 510 | </ul> |
534 | <p>See·also:·<a | 511 | <p>See·also:·<a |
535 | href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> | 512 | href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> |
536 | <p>Examples:</p> | ||
537 | <ul> | ||
538 | <li><a | ||
539 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> | ||
540 | </ul> | ||
541 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 513 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
542 | <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_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 514 | <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_draw_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
543 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div> | 515 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·thickness<span·class="op">)</span></span></code></pre></div> |
544 | <p><a | 516 | <p><a |
545 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source | 517 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source |
546 | Code</a></p> | 518 | Code</a></p> |
547 | <p>Draws·an·outlined·rectangle.</p> | 519 | <p>Draws·an·outlined·rectangle.</p> |
Offset 553, 23 lines modified | Offset 525, 14 lines modified | ||
553 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 525 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
554 | draw·hairline·lines</li> | 526 | draw·hairline·lines</li> |
555 | </ul> | 527 | </ul> |
556 | <p>See·also:·<a | 528 | <p>See·also:·<a |
557 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, | 529 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, |
558 | <a | 530 | <a |
559 | href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> | 531 | href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> |
560 | <p>Examples:</p> | ||
561 | <ul> | ||
562 | <li><a | ||
563 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L24">ex_mouse.c</a></li> | ||
564 | <li><a | ||
565 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L83">ex_font_justify.cpp</a></li> | ||
566 | <li><a | ||
567 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_subbitmap.c#L206">ex_subbitmap.c</a></li> | ||
568 | </ul> | ||
569 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> | 532 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> |
570 | <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_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | 533 | <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_draw_filled_rectangle<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> |
571 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> | 534 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_COLOR·color<span·class="op">)</span></span></code></pre></div> |
572 | <p><a | 535 | <p><a |
573 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source | 536 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source |
574 | Code</a></p> | 537 | Code</a></p> |
575 | <p>Draws·a·filled·rectangle.</p> | 538 | <p>Draws·a·filled·rectangle.</p> |
Offset 578, 23 lines modified | Offset 541, 14 lines modified | ||
578 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the | 541 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the |
579 | rectangle</li> | 542 | rectangle</li> |
580 | <li>color·-·Color·of·the·rectangle</li> | 543 | <li>color·-·Color·of·the·rectangle</li> |
581 | </ul> | 544 | </ul> |
582 | <p>See·also:·<a | 545 | <p>See·also:·<a |
583 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a | 546 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a |
584 | href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> | 547 | href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> |
585 | <p>Examples:</p> | ||
586 | <ul> | ||
587 | <li><a | ||
588 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L23">ex_mouse.c</a></li> | ||
589 | <li><a | ||
590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer.c#L91">ex_timer.c</a></li> | ||
591 | <li><a | ||
592 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L103">ex_window_maximized.c</a></li> | ||
593 | </ul> | ||
Max diff block lines reached; 52905/60937 bytes (86.82%) of diff not shown. |
Offset 123, 18 lines modified | Offset 123, 14 lines modified | ||
123 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 123 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
124 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
125 | bool·al_init_primitives_addon(void) | 125 | bool·al_init_primitives_addon(void) |
126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
127 | Initializes·the·primitives·addon. | 127 | Initializes·the·primitives·addon. |
128 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. | 128 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·True·on·success,·false·on·failure. |
129 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 129 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
130 | Examples: | ||
131 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
132 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
133 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
134 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
135 | bool·al_is_primitives_addon_initialized(void) | 131 | bool·al_is_primitives_addon_initialized(void) |
136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 133 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
138 | Since:·5.2.6 | 134 | Since:·5.2.6 |
139 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 135 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8s_\x8h_\x8u_\x8t_\x8d_\x8o_\x8w_\x8n_\x8__\x8p_\x8r_\x8i_\x8m_\x8i_\x8t_\x8i_\x8v_\x8e_\x8s_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
140 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 136 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
Offset 229, 97 lines modified | Offset 225, 73 lines modified | ||
229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 225 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
230 | Draws·a·line·segment·between·two·points. | 226 | Draws·a·line·segment·between·two·points. |
231 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 227 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
232 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 228 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
233 | ····*·color·-·Color·of·the·line | 229 | ····*·color·-·Color·of·the·line |
234 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 230 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines |
235 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e | 231 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e |
236 | Examples: | ||
237 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
238 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
239 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | ||
240 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 232 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
241 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 233 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
242 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 234 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
244 | Draws·an·outlined·triangle. | 236 | Draws·an·outlined·triangle. |
245 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 237 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
246 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 238 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
247 | ····*·color·-·Color·of·the·triangle | 239 | ····*·color·-·Color·of·the·triangle |
248 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 240 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
249 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e | 241 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e |
250 | Examples: | ||
251 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
252 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 242 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_t\x8tr\x8ri\x8ia\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
253 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 243 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
254 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 244 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
256 | Draws·a·filled·triangle. | 246 | Draws·a·filled·triangle. |
257 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 247 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
258 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 248 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
259 | ····*·color·-·Color·of·the·triangle | 249 | ····*·color·-·Color·of·the·triangle |
260 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e | 250 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e |
261 | Examples: | ||
262 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
263 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 251 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
264 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 252 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
265 | ···ALLEGRO_COLOR·color,·float·thickness) | 253 | ···ALLEGRO_COLOR·color,·float·thickness) |
266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 254 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
267 | Draws·an·outlined·rectangle. | 255 | Draws·an·outlined·rectangle. |
268 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 256 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
269 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 257 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
270 | ····*·color·-·Color·of·the·rectangle | 258 | ····*·color·-·Color·of·the·rectangle |
271 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 259 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
272 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e | 260 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
273 | Examples: | ||
274 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
275 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
276 | ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
277 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 261 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
278 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 262 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
279 | ···ALLEGRO_COLOR·color) | 263 | ···ALLEGRO_COLOR·color) |
280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 264 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
281 | Draws·a·filled·rectangle. | 265 | Draws·a·filled·rectangle. |
282 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 266 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
283 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 267 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
284 | ····*·color·-·Color·of·the·rectangle | 268 | ····*·color·-·Color·of·the·rectangle |
285 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e | 269 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
286 | Examples: | ||
287 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
288 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
289 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | ||
290 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 270 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
291 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 271 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
292 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 272 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 273 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
294 | Draws·an·outlined·rounded·rectangle. | 274 | Draws·an·outlined·rounded·rectangle. |
295 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 275 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
296 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 276 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
297 | ····*·color·-·Color·of·the·rectangle | 277 | ····*·color·-·Color·of·the·rectangle |
298 | ····*·rx,·ry·-·The·radii·of·the·round | 278 | ····*·rx,·ry·-·The·radii·of·the·round |
299 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 279 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
300 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e | 280 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
301 | Examples: | ||
302 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
303 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
304 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
305 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 281 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_f\x8fi\x8il\x8ll\x8le\x8ed\x8d_\x8_r\x8ro\x8ou\x8un\x8nd\x8de\x8ed\x8d_\x8_r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
306 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 282 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
307 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 283 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
308 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 284 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
309 | Draws·an·filled·rounded·rectangle. | 285 | Draws·an·filled·rounded·rectangle. |
310 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 286 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
311 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 287 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
312 | ····*·color·-·Color·of·the·rectangle | 288 | ····*·color·-·Color·of·the·rectangle |
313 | ····*·rx,·ry·-·The·radii·of·the·round | 289 | ····*·rx,·ry·-·The·radii·of·the·round |
314 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e | 290 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8r_\x8o_\x8u_\x8n_\x8d_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8f_\x8i_\x8l_\x8l_\x8e_\x8d_\x8__\x8r_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e |
315 | Examples: | ||
316 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
317 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
318 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
319 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8e_\x8_a\x8ar\x8rc\x8c·*\x8**\x8**\x8**\x8**\x8* | 291 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8lc\x8cu\x8ul\x8la\x8at\x8te\x8e_\x8_a\x8ar\x8rc\x8c·*\x8**\x8**\x8**\x8**\x8* |
320 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | 292 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, |
321 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | 293 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
322 | ···int·num_points) | 294 | ···int·num_points) |
323 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 295 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
324 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly | 296 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly |
325 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes | 297 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes |
Offset 371, 16 lines modified | Offset 343, 14 lines modified | ||
371 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in | 343 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in |
372 | ······radians | 344 | ······radians |
373 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number | 345 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number |
374 | ······to·switch·direction) | 346 | ······to·switch·direction) |
375 | ····*·thickness·-·Thickness·of·the·arc | 347 | ····*·thickness·-·Thickness·of·the·arc |
376 | ····*·num_points·-·The·number·of·points·to·calculate | 348 | ····*·num_points·-·The·number·of·points·to·calculate |
377 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8a_\x8r_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8s_\x8p_\x8l_\x8i_\x8n_\x8e,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8r_\x8i_\x8b_\x8b_\x8o_\x8n | 349 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8a_\x8r_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8s_\x8p_\x8l_\x8i_\x8n_\x8e,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8c_\x8u_\x8l_\x8a_\x8t_\x8e_\x8__\x8r_\x8i_\x8b_\x8b_\x8o_\x8n |
378 | Examples: | ||
379 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | ||
380 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_p\x8pi\x8ie\x8es\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 350 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_p\x8pi\x8ie\x8es\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 28787/36121 bytes (79.70%) of diff not shown. |
Offset 235, 15 lines modified | Offset 235, 15 lines modified | ||
235 | <p>Examples:</p> | 235 | <p>Examples:</p> |
236 | <ul> | 236 | <ul> |
237 | <li><a | 237 | <li><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | 238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> |
239 | <li><a | 239 | <li><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | 240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> |
241 | <li><a | 241 | <li><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L33">ex_native_filechooser.c</a></li> |
243 | </ul> | 243 | </ul> |
244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
245 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> | 245 | <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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span></code></pre></div> |
246 | <p><a | 246 | <p><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source | 247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L31">Source |
248 | Code</a></p> | 248 | Code</a></p> |
249 | <p>An·opaque·structure·representing·a·mutex.</p> | 249 | <p>An·opaque·structure·representing·a·mutex.</p> |
Offset 281, 15 lines modified | Offset 281, 15 lines modified | ||
281 | <p>Examples:</p> | 281 | <p>Examples:</p> |
282 | <ul> | 282 | <ul> |
283 | <li><a | 283 | <li><a |
284 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> | 284 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> |
285 | <li><a | 285 | <li><a |
286 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> | 286 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> |
287 | <li><a | 287 | <li><a |
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L110">ex_native_filechooser.c</a></li> |
289 | </ul> | 289 | </ul> |
290 | <h1 | 290 | <h1 |
291 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> | 291 | id="al_create_thread_with_stacksize">al_create_thread_with_stacksize</h1> |
292 | <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> | 292 | <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> |
293 | <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> | 293 | <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> |
294 | <p><a | 294 | <p><a |
295 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source | 295 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L131">Source |
Offset 321, 15 lines modified | Offset 321, 15 lines modified | ||
321 | <p>Examples:</p> | 321 | <p>Examples:</p> |
322 | <ul> | 322 | <ul> |
323 | <li><a | 323 | <li><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> | 324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> |
325 | <li><a | 325 | <li><a |
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li> | 326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li> |
327 | <li><a | 327 | <li><a |
328 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 328 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L112">ex_native_filechooser.c</a></li> |
329 | </ul> | 329 | </ul> |
330 | <h1·id="al_join_thread">al_join_thread</h1> | 330 | <h1·id="al_join_thread">al_join_thread</h1> |
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_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> | 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_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> |
332 | <p><a | 332 | <p><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L194">Source |
334 | Code</a></p> | 334 | Code</a></p> |
335 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a | 335 | <p>Wait·for·the·thread·to·finish·executing.·This·implicitly·calls·<a |
Offset 77, 15 lines modified | Offset 77, 15 lines modified | ||
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TH\x8HR\x8RE\x8EA\x8AD\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | 78 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | An·opaque·structure·representing·a·thread. | 80 | An·opaque·structure·representing·a·thread. |
81 | Examples: | 81 | Examples: |
82 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | 82 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c |
83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
84 | ····*·_\x8e_\x8x_\x8__\x8 | 84 | ····*·_\x8e_\x8x_\x8__\x8n_.a_.t_.i_.v_.e_.__.f_.i_.l_.e_.c_.h_.o_.o_.s_.e_.r_\x8._\x8c |
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MU\x8UT\x8TE\x8EX\x8X·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | An·opaque·structure·representing·a·mutex. | 88 | An·opaque·structure·representing·a·mutex. |
89 | Examples: | 89 | Examples: |
90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
91 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | 91 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c |
Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
103 | own·thread·handle·and·the·value·arg. | 103 | own·thread·handle·and·the·value·arg. |
104 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there | 104 | Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL·if·there |
105 | was·an·error. | 105 | was·an·error. |
106 | 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. | 106 | 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. |
107 | Examples: | 107 | Examples: |
108 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | 108 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c |
109 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 109 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
110 | ····*·_\x8e_\x8x_\x8__\x8 | 110 | ····*·_\x8e_\x8x_\x8__\x8n_.a_.t_.i_.v_.e_.__.f_.i_.l_.e_.c_.h_.o_.o_.s_.e_.r_\x8._\x8c |
111 | *\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* | 111 | *\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* |
112 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( | 112 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( |
113 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t | 113 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t |
114 | stacksize) | 114 | stacksize) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing | 116 | Spawn·a·new·thread·with·the·give·stacksize·in·bytes·which·begins·executing |
117 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. | 117 | proc.·The·new·thread·is·passed·its·own·thread·handle·and·the·value·arg. |
Offset 127, 15 lines modified | Offset 127, 15 lines modified | ||
127 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling | 127 | When·a·thread·is·created,·it·is·initially·in·a·suspended·state.·Calling |
128 | _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution. | 128 | _\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·will·start·its·actual·execution. |
129 | Starting·a·thread·which·has·already·been·started·does·nothing. | 129 | Starting·a·thread·which·has·already·been·started·does·nothing. |
130 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 130 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
131 | Examples: | 131 | Examples: |
132 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | 132 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c |
133 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 133 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
134 | ····*·_\x8e_\x8x_\x8__\x8 | 134 | ····*·_\x8e_\x8x_\x8__\x8n_.a_.t_.i_.v_.e_.__.f_.i_.l_.e_.c_.h_.o_.o_.s_.e_.r_\x8._\x8c |
135 | *\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* | 135 | *\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* |
136 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) | 136 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls | 138 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls |
139 | _\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. | 139 | _\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. |
140 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be | 140 | If·ret_value·is·non-NULL,·the·value·returned·by·the·thread·function·will·be |
141 | stored·at·the·location·pointed·to·by·ret_value. | 141 | stored·at·the·location·pointed·to·by·ret_value. |
Offset 328, 17 lines modified | Offset 328, 17 lines modified | ||
328 | called·successfully.</p> | 328 | called·successfully.</p> |
329 | <p>Since:·5.1.0</p> | 329 | <p>Since:·5.1.0</p> |
330 | <p>Examples:</p> | 330 | <p>Examples:</p> |
331 | <ul> | 331 | <ul> |
332 | <li><a | 332 | <li><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> | 333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> |
334 | <li><a | 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/ex_prim_shader.c#L154">ex_prim_shader.c</a></li> | 335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L154">ex_prim_shader.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> | 338 | </ul> |
339 | <h1·id="al_get_touch_input_state">al_get_touch_input_state</h1> | 339 | <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> | 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> |
341 | <p><a | 341 | <p><a |
342 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source | 342 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L93">Source |
343 | Code</a></p> | 343 | Code</a></p> |
344 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied | 344 | <p>Gets·the·current·touch·input·state.·The·touch·information·is·copied |
Offset 399, 17 lines modified | Offset 399, 17 lines modified | ||
399 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a | 399 | 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> | 400 | href="events.html#al_register_event_source">al_register_event_source</a></p> |
401 | <p>Examples:</p> | 401 | <p>Examples:</p> |
402 | <ul> | 402 | <ul> |
403 | <li><a | 403 | <li><a |
404 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> | 404 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> |
405 | <li><a | 405 | <li><a |
406 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L129">ex_android.c</a></li> | ||
407 | <li><a | ||
408 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L387">ex_polygon.c</a></li> | 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> | 409 | </ul> |
410 | <h1 | 410 | <h1 |
411 | id="al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</h1> | 411 | 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> | 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> |
413 | <p><a | 413 | <p><a |
414 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source | 414 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L140">Source |
415 | Code</a></p> | 415 | Code</a></p> |
Offset 427, 17 lines modified | Offset 427, 17 lines modified | ||
427 | different·semantics·compared·to·mouse·input.</p> | 427 | different·semantics·compared·to·mouse·input.</p> |
428 | </blockquote> | 428 | </blockquote> |
429 | <p>Examples:</p> | 429 | <p>Examples:</p> |
430 | <ul> | 430 | <ul> |
431 | <li><a | 431 | <li><a |
432 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> | 432 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> |
433 | <li><a | 433 | <li><a |
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L975">ex_haiku.c</a></li> | ||
435 | <li><a | ||
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L156">ex_prim_shader.c</a></li> | 434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L156">ex_prim_shader.c</a></li> |
435 | <li><a | ||
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L388">ex_polygon.c</a></li> | ||
437 | </ul> | 437 | </ul> |
438 | <p·class="timestamp"> | 438 | <p·class="timestamp"> |
439 | Allegro·version·5.2.10 | 439 | Allegro·version·5.2.10 |
440 | ·-·Last·updated:·2024-11-29·14:21:22·UTC | 440 | ·-·Last·updated:·2024-11-29·14:21:22·UTC |
441 | </p> | 441 | </p> |
442 | </div> | 442 | </div> |
443 | </body> | 443 | </body> |
Offset 129, 16 lines modified | Offset 129, 16 lines modified | ||
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* | 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* |
130 | bool·al_is_touch_input_installed(void) | 130 | bool·al_is_touch_input_installed(void) |
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\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. | 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. |
133 | Since:·5.1.0 | 133 | Since:·5.1.0 |
134 | Examples: | 134 | Examples: |
135 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 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 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 136 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\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* | 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* |
139 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) | 139 | void·al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE·*ret_state) |
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 140 | _\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 | 141 | 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. | 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. |
143 | Since:·5.1.0 | 143 | 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* | 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* |
Offset 165, 23 lines modified | Offset 165, 23 lines modified | ||
165 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 165 | _\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 | 166 | 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. | 167 | _\x8i_\x8n_\x8p_\x8u_\x8t_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s. |
168 | Since:·5.1.0 | 168 | 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 | 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 |
170 | Examples: | 170 | Examples: |
171 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 171 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c |
172 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
173 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\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* | 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* |
175 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) | 175 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_mouse_emulation_event_source(void) |
176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
177 | Returns·the·global·touch·input·event·source·for·emulated·mouse·events.·This | 177 | 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. | 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. |
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 | 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 |
180 | Since:·5.1.0 | 180 | 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 | 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 |
182 | ·····different·semantics·compared·to·mouse·input. | 182 | ·····different·semantics·compared·to·mouse·input. |
183 | Examples: | 183 | Examples: |
184 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 184 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c |
185 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
186 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 185 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c |
186 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | ||
187 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC | 187 | Allegro·version·5.2.10·-·Last·updated:·2024-11-29·14:21:22·UTC |
Offset 319, 15 lines modified | Offset 319, 15 lines modified | ||
319 | <p>Examples:</p> | 319 | <p>Examples:</p> |
320 | <ul> | 320 | <ul> |
321 | <li><a | 321 | <li><a |
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> | 322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> |
323 | <li><a | 323 | <li><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> | 324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> |
325 | <li><a | 325 | <li><a |
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L226">ex_polygon.c</a></li> |
327 | </ul> | 327 | </ul> |
328 | <h1·id="al_copy_transform">al_copy_transform</h1> | 328 | <h1·id="al_copy_transform">al_copy_transform</h1> |
329 | <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_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> | 329 | <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_copy_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>dest<span·class="op">,</span>·<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>src<span·class="op">)</span></span></code></pre></div> |
330 | <p><a | 330 | <p><a |
331 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source | 331 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L30">Source |
332 | Code</a></p> | 332 | Code</a></p> |
333 | <p>Makes·a·copy·of·a·transformation.</p> | 333 | <p>Makes·a·copy·of·a·transformation.</p> |
Offset 372, 15 lines modified | Offset 372, 15 lines modified | ||
372 | <p>Examples:</p> | 372 | <p>Examples:</p> |
373 | <ul> | 373 | <ul> |
374 | <li><a | 374 | <li><a |
375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> | 375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> |
376 | <li><a | 376 | <li><a |
377 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li> | 377 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li> |
378 | <li><a | 378 | <li><a |
379 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 379 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L234">ex_polygon.c</a></li> |
380 | </ul> | 380 | </ul> |
381 | <h1·id="al_get_current_transform">al_get_current_transform</h1> | 381 | <h1·id="al_get_current_transform">al_get_current_transform</h1> |
382 | <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> | 382 | <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> |
383 | <p><a | 383 | <p><a |
384 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source | 384 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L104">Source |
385 | Code</a></p> | 385 | Code</a></p> |
386 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a | 386 | <p>Returns·the·transformation·of·the·current·target·bitmap,·as·set·by·<a |
Offset 571, 15 lines modified | Offset 571, 15 lines modified | ||
571 | <p>Examples:</p> | 571 | <p>Examples:</p> |
572 | <ul> | 572 | <ul> |
573 | <li><a | 573 | <li><a |
574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li> | 574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L139">ex_shader.cpp</a></li> |
575 | <li><a | 575 | <li><a |
576 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L117">ex_shader_target.c</a></li> | 576 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L117">ex_shader_target.c</a></li> |
577 | <li><a | 577 | <li><a |
578 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 578 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L231">ex_polygon.c</a></li> |
579 | </ul> | 579 | </ul> |
580 | <h1·id="al_build_transform">al_build_transform</h1> | 580 | <h1·id="al_build_transform">al_build_transform</h1> |
581 | <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> | 581 | <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> |
582 | <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> | 582 | <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> |
583 | <p><a | 583 | <p><a |
584 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source | 584 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L173">Source |
585 | Code</a></p> | 585 | Code</a></p> |
Offset 608, 17 lines modified | Offset 608, 17 lines modified | ||
608 | <a | 608 | <a |
609 | href="transformations.html#al_compose_transform">al_compose_transform</a></p> | 609 | href="transformations.html#al_compose_transform">al_compose_transform</a></p> |
610 | <p>Examples:</p> | 610 | <p>Examples:</p> |
611 | <ul> | 611 | <ul> |
612 | <li><a | 612 | <li><a |
613 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li> | 613 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L82">ex_threads.c</a></li> |
614 | <li><a | 614 | <li><a |
615 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li> | ||
616 | <li><a | ||
617 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li> | 615 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L91">ex_prim.c</a></li> |
616 | <li><a | ||
617 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L173">ex_color_gradient.c</a></li> | ||
618 | </ul> | 618 | </ul> |
619 | <h1·id="al_build_camera_transform">al_build_camera_transform</h1> | 619 | <h1·id="al_build_camera_transform">al_build_camera_transform</h1> |
620 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span> | 620 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_build_camera_transform<span·class="op">(</span>ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span></span> |
621 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span> | 621 | <span·id="cb22-2"><a·href="#cb22-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·position_x<span·class="op">,</span>·<span·class="dt">float</span>·position_y<span·class="op">,</span>·<span·class="dt">float</span>·position_z<span·class="op">,</span></span> |
622 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span> | 622 | <span·id="cb22-3"><a·href="#cb22-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·look_x<span·class="op">,</span>·<span·class="dt">float</span>·look_y<span·class="op">,</span>·<span·class="dt">float</span>·look_z<span·class="op">,</span></span> |
623 | <span·id="cb22-4"><a·href="#cb22-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·up_x<span·class="op">,</span>·<span·class="dt">float</span>·up_y<span·class="op">,</span>·<span·class="dt">float</span>·up_z<span·class="op">)</span></span></code></pre></div> | 623 | <span·id="cb22-4"><a·href="#cb22-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·up_x<span·class="op">,</span>·<span·class="dt">float</span>·up_y<span·class="op">,</span>·<span·class="dt">float</span>·up_z<span·class="op">)</span></span></code></pre></div> |
624 | <p><a | 624 | <p><a |
Offset 739, 17 lines modified | Offset 739, 17 lines modified | ||
739 | <a | 739 | <a |
740 | href="transformations.html#al_build_transform">al_build_transform</a></p> | 740 | href="transformations.html#al_build_transform">al_build_transform</a></p> |
741 | <p>Examples:</p> | 741 | <p>Examples:</p> |
742 | <ul> | 742 | <ul> |
743 | <li><a | 743 | <li><a |
744 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L118">ex_shader_target.c</a></li> | 744 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L118">ex_shader_target.c</a></li> |
745 | <li><a | 745 | <li><a |
746 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L123">ex_audio_timer.c</a></li> | ||
747 | <li><a | ||
748 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L233">ex_polygon.c</a></li> | 746 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_polygon.c#L233">ex_polygon.c</a></li> |
747 | <li><a | ||
748 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L123">ex_audio_timer.c</a></li> | ||
749 | </ul> | 749 | </ul> |
750 | <h1·id="al_transform_coordinates">al_transform_coordinates</h1> | 750 | <h1·id="al_transform_coordinates">al_transform_coordinates</h1> |
751 | <div·class="sourceCode"·id="cb29"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb29-1"><a·href="#cb29-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_transform_coordinates<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>x<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>y<span·class="op">)</span></span></code></pre></div> | 751 | <div·class="sourceCode"·id="cb29"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb29-1"><a·href="#cb29-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_transform_coordinates<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>x<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>y<span·class="op">)</span></span></code></pre></div> |
752 | <p><a | 752 | <p><a |
753 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L417">Source | 753 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L417">Source |
754 | Code</a></p> | 754 | Code</a></p> |
755 | <p>Transform·a·pair·of·coordinates.</p> | 755 | <p>Transform·a·pair·of·coordinates.</p> |
Offset 139, 15 lines modified | Offset 139, 15 lines modified | ||
139 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right | 139 | small·subsection·of·this·matrix,·namely·the·top·left·2x2·matrix,·and·the·right |
140 | most·2x1·matrix,·for·a·total·of·6·values. | 140 | most·2x1·matrix,·for·a·total·of·6·values. |
141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
142 | ····*·m·-·A·4x4·float·matrix | 142 | ····*·m·-·A·4x4·float·matrix |
143 | Examples: | 143 | Examples: |
144 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | 144 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p |
145 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | 145 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c |
146 | ····*·_\x8e_\x8x_\x8__\x8 | 146 | ····*·_\x8e_\x8x_\x8__\x8p_.o_.l_.y_.g_.o_.n_\x8._\x8c |
147 | *\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* | 147 | *\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* |
148 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) | 148 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) |
149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
150 | Makes·a·copy·of·a·transformation. | 150 | Makes·a·copy·of·a·transformation. |
151 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 151 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
152 | ····*·dest·-·Source·transformation | 152 | ····*·dest·-·Source·transformation |
153 | ····*·src·-·Destination·transformation | 153 | ····*·src·-·Destination·transformation |
Offset 172, 15 lines modified | Offset 172, 15 lines modified | ||
172 | } | 172 | } |
173 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 173 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
174 | ····*·trans·-·Transformation·to·use | 174 | ····*·trans·-·Transformation·to·use |
175 | 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 | 175 | 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 |
176 | Examples: | 176 | Examples: |
177 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | 177 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p |
178 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | 178 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c |
179 | ····*·_\x8e_\x8x_\x8__\x8 | 179 | ····*·_\x8e_\x8x_\x8__\x8p_.o_.l_.y_.g_.o_.n_\x8._\x8c |
180 | *\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* | 180 | *\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* |
181 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) | 181 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) |
182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
183 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by | 183 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by |
184 | _\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. | 184 | _\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. |
185 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. | 185 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. |
186 | 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 | 186 | 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 |
Offset 302, 15 lines modified | Offset 302, 15 lines modified | ||
302 | al_use_transform(&t); | 302 | al_use_transform(&t); |
303 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 303 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
304 | ····*·trans·-·Transformation·to·alter | 304 | ····*·trans·-·Transformation·to·alter |
305 | 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 | 305 | 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 |
306 | Examples: | 306 | Examples: |
307 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | 307 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p |
308 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | 308 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c |
309 | ····*·_\x8e_\x8x_\x8__\x8 | 309 | ····*·_\x8e_\x8x_\x8__\x8p_.o_.l_.y_.g_.o_.n_\x8._\x8c |
310 | *\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* | 310 | *\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* |
311 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, | 311 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, |
312 | ···float·sx,·float·sy,·float·theta) | 312 | ···float·sx,·float·sy,·float·theta) |
313 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 313 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
314 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to | 314 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to |
315 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, | 315 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, |
316 | translate.·This·method·is·faster,·however,·than·actually·calling·those | 316 | translate.·This·method·is·faster,·however,·than·actually·calling·those |
Offset 323, 16 lines modified | Offset 323, 16 lines modified | ||
323 | ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a | 323 | ·····N\x8No\x8ot\x8te\x8e:·this·function·was·previously·documented·to·be·equivalent·to·a |
324 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, | 324 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, |
325 | ·····rotate,·translate. | 325 | ·····rotate,·translate. |
326 | 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, | 326 | 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, |
327 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 327 | _\x8a_\x8l_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
328 | Examples: | 328 | Examples: |
329 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | 329 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c |
330 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
331 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 330 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
331 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
332 | *\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* | 332 | *\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* |
333 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, | 333 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, |
334 | ···float·position_x,·float·position_y,·float·position_z, | 334 | ···float·position_x,·float·position_y,·float·position_z, |
335 | ···float·look_x,·float·look_y,·float·look_z, | 335 | ···float·look_x,·float·look_y,·float·look_z, |
336 | ···float·up_x,·float·up_y,·float·up_z) | 336 | ···float·up_x,·float·up_y,·float·up_z) |
337 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 337 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
338 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world | 338 | Builds·a·transformation·which·can·be·used·to·transform·3D·coordinates·in·world |
Offset 397, 16 lines modified | Offset 397, 16 lines modified | ||
397 | Apply·a·scale·to·a·transformation. | 397 | Apply·a·scale·to·a·transformation. |
398 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 398 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
399 | ····*·trans·-·Transformation·to·alter | 399 | ····*·trans·-·Transformation·to·alter |
400 | ····*·sx,·sy·-·Scale | 400 | ····*·sx,·sy·-·Scale |
401 | 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__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 401 | 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__\x8b_\x8u_\x8i_\x8l_\x8d_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
402 | Examples: | 402 | Examples: |
403 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | 403 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c |
404 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
405 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c | 404 | ····*·_\x8e_\x8x_\x8__\x8p_\x8o_\x8l_\x8y_\x8g_\x8o_\x8n_\x8._\x8c |
405 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
406 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m_\x8_c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 406 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m_\x8_c\x8co\x8oo\x8or\x8rd\x8di\x8in\x8na\x8at\x8te\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
407 | void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float | 407 | void·al_transform_coordinates(const·ALLEGRO_TRANSFORM·*trans,·float·*x,·float |
408 | *y) | 408 | *y) |
409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
410 | Transform·a·pair·of·coordinates. | 410 | Transform·a·pair·of·coordinates. |
411 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 411 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
412 | ····*·trans·-·Transformation·to·use | 412 | ····*·trans·-·Transformation·to·use |
Offset 498, 15 lines modified | Offset 498, 15 lines modified | ||
498 | <p>Examples:</p> | 498 | <p>Examples:</p> |
499 | <ul> | 499 | <ul> |
500 | <li><a | 500 | <li><a |
501 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li> | 501 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li> |
502 | <li><a | 502 | <li><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li> | 503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li> |
504 | <li><a | 504 | <li><a |
505 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 505 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L63">ex_ttf.c</a></li> |
506 | </ul> | 506 | </ul> |
507 | <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2> | 507 | <h2·id="al_ustr_new_from_buffer">al_ustr_new_from_buffer</h2> |
508 | <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> | 508 | <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> |
509 | <p><a | 509 | <p><a |
510 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source | 510 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L70">Source |
511 | Code</a></p> | 511 | Code</a></p> |
512 | <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by | 512 | <p>Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by |
Offset 698, 17 lines modified | Offset 698, 17 lines modified | ||
698 | <p>See·also:·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a | 698 | <p>See·also:·<a·href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a |
699 | href="utf8.html#al_ref_ustr">al_ref_ustr</a></p> | 699 | href="utf8.html#al_ref_ustr">al_ref_ustr</a></p> |
700 | <p>Examples:</p> | 700 | <p>Examples:</p> |
701 | <ul> | 701 | <ul> |
702 | <li><a | 702 | <li><a |
703 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L58">ex_blend.c</a></li> | 703 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L58">ex_blend.c</a></li> |
704 | <li><a | 704 | <li><a |
705 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L76">ex_utf8.c</a></li> | ||
706 | <li><a | ||
707 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L117">ex_ttf.c</a></li> | 705 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L117">ex_ttf.c</a></li> |
706 | <li><a | ||
707 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L76">ex_utf8.c</a></li> | ||
708 | </ul> | 708 | </ul> |
709 | <h2·id="al_ref_buffer">al_ref_buffer</h2> | 709 | <h2·id="al_ref_buffer">al_ref_buffer</h2> |
710 | <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">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_buffer<span·class="op">(</span>ALLEGRO_USTR_INFO·<span·class="op">*</span>info<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> | 710 | <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">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_buffer<span·class="op">(</span>ALLEGRO_USTR_INFO·<span·class="op">*</span>info<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> |
711 | <p><a | 711 | <p><a |
712 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L173">Source | 712 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L173">Source |
713 | Code</a></p> | 713 | Code</a></p> |
714 | <p>Create·a·string·that·references·the·storage·of·an·underlying·buffer. | 714 | <p>Create·a·string·that·references·the·storage·of·an·underlying·buffer. |
Offset 749, 15 lines modified | Offset 749, 15 lines modified | ||
749 | <p>Examples:</p> | 749 | <p>Examples:</p> |
750 | <ul> | 750 | <ul> |
751 | <li><a | 751 | <li><a |
752 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L47">nihgui.cpp</a></li> | 752 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L47">nihgui.cpp</a></li> |
753 | <li><a | 753 | <li><a |
754 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li> | 754 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li> |
755 | <li><a | 755 | <li><a |
756 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 756 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L116">ex_ttf.c</a></li> |
757 | </ul> | 757 | </ul> |
758 | <h2·id="al_ref_info">al_ref_info</h2> | 758 | <h2·id="al_ref_info">al_ref_info</h2> |
759 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_info<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div> | 759 | <div·class="sourceCode"·id="cb19"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb19-1"><a·href="#cb19-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>al_ref_info<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div> |
760 | <p><a | 760 | <p><a |
761 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L197">Source | 761 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L197">Source |
762 | Code</a></p> | 762 | Code</a></p> |
763 | <p>Create·a·read-only·string·that·references·the·storage·of·another·<a | 763 | <p>Create·a·read-only·string·that·references·the·storage·of·another·<a |
Offset 795, 17 lines modified | Offset 795, 17 lines modified | ||
795 | <p>See·also:·<a·href="utf8.html#al_ustr_size">al_ustr_size</a>,·<a | 795 | <p>See·also:·<a·href="utf8.html#al_ustr_size">al_ustr_size</a>,·<a |
796 | href="utf8.html#al_ustr_offset">al_ustr_offset</a></p> | 796 | href="utf8.html#al_ustr_offset">al_ustr_offset</a></p> |
797 | <p>Examples:</p> | 797 | <p>Examples:</p> |
798 | <ul> | 798 | <ul> |
799 | <li><a | 799 | <li><a |
800 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L59">ex_blend.c</a></li> | 800 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L59">ex_blend.c</a></li> |
801 | <li><a | 801 | <li><a |
802 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L621">ex_utf8.c</a></li> | ||
803 | <li><a | ||
804 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L78">ex_ttf.c</a></li> | 802 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L78">ex_ttf.c</a></li> |
803 | <li><a | ||
804 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L621">ex_utf8.c</a></li> | ||
805 | </ul> | 805 | </ul> |
806 | <h2·id="al_ustr_offset">al_ustr_offset</h2> | 806 | <h2·id="al_ustr_offset">al_ustr_offset</h2> |
807 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_ustr_offset<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·index<span·class="op">)</span></span></code></pre></div> | 807 | <div·class="sourceCode"·id="cb22"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb22-1"><a·href="#cb22-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_ustr_offset<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·index<span·class="op">)</span></span></code></pre></div> |
808 | <p><a | 808 | <p><a |
809 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L226">Source | 809 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L226">Source |
810 | Code</a></p> | 810 | Code</a></p> |
811 | <p>Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code | 811 | <p>Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code |
Offset 817, 17 lines modified | Offset 817, 17 lines modified | ||
817 | end·of·the·string.</p> | 817 | end·of·the·string.</p> |
818 | <p>See·also:·<a·href="utf8.html#al_ustr_length">al_ustr_length</a></p> | 818 | <p>See·also:·<a·href="utf8.html#al_ustr_length">al_ustr_length</a></p> |
819 | <p>Examples:</p> | 819 | <p>Examples:</p> |
820 | <ul> | 820 | <ul> |
821 | <li><a | 821 | <li><a |
822 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li> | 822 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L62">ex_blend.c</a></li> |
823 | <li><a | 823 | <li><a |
824 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L632">ex_utf8.c</a></li> | ||
825 | <li><a | ||
826 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L47">ex_ttf.c</a></li> | 824 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L47">ex_ttf.c</a></li> |
825 | <li><a | ||
826 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L632">ex_utf8.c</a></li> | ||
827 | </ul> | 827 | </ul> |
828 | <h2·id="al_ustr_next">al_ustr_next</h2> | 828 | <h2·id="al_ustr_next">al_ustr_next</h2> |
829 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_ustr_next<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>pos<span·class="op">)</span></span></code></pre></div> | 829 | <div·class="sourceCode"·id="cb23"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb23-1"><a·href="#cb23-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_ustr_next<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>pos<span·class="op">)</span></span></code></pre></div> |
830 | <p><a | 830 | <p><a |
831 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L244">Source | 831 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L244">Source |
832 | Code</a></p> | 832 | Code</a></p> |
833 | <p>Find·the·byte·offset·of·the·next·code·point·in·string,·beginning·at | 833 | <p>Find·the·byte·offset·of·the·next·code·point·in·string,·beginning·at |
Offset 886, 17 lines modified | Offset 886, 17 lines modified | ||
886 | of·bounds·(e.g. past·the·end·of·the·string),·return·-1.·On·an·error, | 886 | of·bounds·(e.g. past·the·end·of·the·string),·return·-1.·On·an·error, |
887 | such·as·an·invalid·byte·sequence,·return·-2.</p> | 887 | such·as·an·invalid·byte·sequence,·return·-2.</p> |
888 | <p>See·also:·<a·href="utf8.html#al_ustr_get_next">al_ustr_get_next</a>, | 888 | <p>See·also:·<a·href="utf8.html#al_ustr_get_next">al_ustr_get_next</a>, |
889 | <a·href="utf8.html#al_ustr_prev_get">al_ustr_prev_get</a></p> | 889 | <a·href="utf8.html#al_ustr_prev_get">al_ustr_prev_get</a></p> |
890 | <p>Examples:</p> | 890 | <p>Examples:</p> |
891 | <ul> | 891 | <ul> |
892 | <li><a | 892 | <li><a |
893 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L437">ex_utf8.c</a></li> | ||
894 | <li><a | ||
895 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L47">ex_ttf.c</a></li> | 893 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L47">ex_ttf.c</a></li> |
894 | <li><a | ||
895 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L437">ex_utf8.c</a></li> | ||
896 | </ul> | 896 | </ul> |
897 | <h2·id="al_ustr_get_next">al_ustr_get_next</h2> | 897 | <h2·id="al_ustr_get_next">al_ustr_get_next</h2> |
898 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int32_t</span>·al_ustr_get_next<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>pos<span·class="op">)</span></span></code></pre></div> | 898 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int32_t</span>·al_ustr_get_next<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>pos<span·class="op">)</span></span></code></pre></div> |
899 | <p><a | 899 | <p><a |
900 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L375">Source | 900 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L375">Source |
901 | Code</a></p> | 901 | Code</a></p> |
902 | <p>Find·the·code·point·in·<code>us</code>·beginning·at·byte·offset | 902 | <p>Find·the·code·point·in·<code>us</code>·beginning·at·byte·offset |
Offset 221, 15 lines modified | Offset 221, 15 lines modified | ||
221 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must | 221 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must |
222 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 222 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
223 | 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, | 223 | 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, |
224 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 | 224 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8u_\x8t_\x8f_\x81_\x86 |
225 | Examples: | 225 | Examples: |
226 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | 226 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
227 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | 227 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c |
228 | ····*·_\x8e_\x8x_\x8__\x8 | 228 | ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c |
229 | *\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* | 229 | *\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* |
230 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) | 230 | ALLEGRO_USTR·*al_ustr_new_from_buffer(const·char·*s,·size_t·size) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the | 232 | Create·a·new·string·containing·a·copy·of·the·buffer·pointed·to·by·s·of·the |
233 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 233 | given·size·in·bytes.·The·string·must·eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
234 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w | 234 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w |
235 | Examples: | 235 | Examples: |
Offset 340, 16 lines modified | Offset 340, 16 lines modified | ||
340 | The·string·is·valid·until·the·underlying·C·string·disappears. | 340 | The·string·is·valid·until·the·underlying·C·string·disappears. |
341 | Example: | 341 | Example: |
342 | ALLEGRO_USTR_INFO·info; | 342 | ALLEGRO_USTR_INFO·info; |
343 | ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string"); | 343 | ALLEGRO_USTR·*us·=·al_ref_cstr(&info,·"my·string"); |
344 | 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 | 344 | 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 |
345 | Examples: | 345 | Examples: |
346 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 346 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c |
347 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
348 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 347 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
348 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
349 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 349 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
350 | const·ALLEGRO_USTR·*al_ref_buffer(ALLEGRO_USTR_INFO·*info,·const·char·*s, | 350 | const·ALLEGRO_USTR·*al_ref_buffer(ALLEGRO_USTR_INFO·*info,·const·char·*s, |
351 | size_t·size) | 351 | size_t·size) |
352 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 352 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
353 | Create·a·string·that·references·the·storage·of·an·underlying·buffer.·The·size | 353 | Create·a·string·that·references·the·storage·of·an·underlying·buffer.·The·size |
354 | of·the·buffer·is·given·in·bytes.·You·can·use·it·to·reference·only·part·of·a | 354 | of·the·buffer·is·given·in·bytes.·You·can·use·it·to·reference·only·part·of·a |
355 | string·or·an·arbitrary·region·of·memory. | 355 | string·or·an·arbitrary·region·of·memory. |
Offset 372, 15 lines modified | Offset 372, 15 lines modified | ||
372 | The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed. | 372 | The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed. |
373 | If·you·need·a·range·of·code-points·instead·of·bytes,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find | 373 | If·you·need·a·range·of·code-points·instead·of·bytes,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find |
374 | the·byte·offsets. | 374 | the·byte·offsets. |
375 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r | 375 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r |
376 | Examples: | 376 | Examples: |
377 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | 377 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
378 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 378 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c |
379 | ····*·_\x8e_\x8x_\x8__\x8 | 379 | ····*·_\x8e_\x8x_\x8__\x8t_.t_.f_\x8._\x8c |
380 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8* | 380 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8ef\x8f_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8* |
381 | const·ALLEGRO_USTR·*al_ref_info(const·ALLEGRO_USTR_INFO·*info) | 381 | const·ALLEGRO_USTR·*al_ref_info(const·ALLEGRO_USTR_INFO·*info) |
382 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 382 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
383 | Create·a·read-only·string·that·references·the·storage·of·another·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R | 383 | Create·a·read-only·string·that·references·the·storage·of·another·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R |
384 | string·that·has·already·been·stored·in·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R_\x8__\x8I_\x8N_\x8F_\x8O·structure. | 384 | string·that·has·already·been·stored·in·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R_\x8__\x8I_\x8N_\x8F_\x8O·structure. |
385 | The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed. | 385 | The·string·is·valid·until·the·underlying·string·is·modified·or·destroyed. |
386 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r | 386 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r |
Offset 398, 30 lines modified | Offset 398, 30 lines modified | ||
398 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* | 398 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8* |
399 | size_t·al_ustr_length(const·ALLEGRO_USTR·*us) | 399 | size_t·al_ustr_length(const·ALLEGRO_USTR·*us) |
400 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 400 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
401 | Return·the·number·of·code·points·in·the·string. | 401 | Return·the·number·of·code·points·in·the·string. |
402 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8s_\x8i_\x8z_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t | 402 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8s_\x8i_\x8z_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t |
403 | Examples: | 403 | Examples: |
404 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 404 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c |
405 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
406 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 405 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
406 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
407 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·*\x8**\x8**\x8**\x8**\x8* | 407 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·*\x8**\x8**\x8**\x8**\x8* |
408 | int·al_ustr_offset(const·ALLEGRO_USTR·*us,·int·index) | 408 | int·al_ustr_offset(const·ALLEGRO_USTR·*us,·int·index) |
409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
410 | Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code·point·at·the | 410 | Return·the·byte·offset·(from·the·start·of·the·string)·of·the·code·point·at·the |
411 | specified·index·in·the·string.·A·zero·index·parameter·will·return·the·first | 411 | specified·index·in·the·string.·A·zero·index·parameter·will·return·the·first |
412 | character·of·the·string.·If·index·is·negative,·it·counts·backward·from·the·end | 412 | character·of·the·string.·If·index·is·negative,·it·counts·backward·from·the·end |
413 | of·the·string,·so·an·index·of·-1·will·return·an·offset·to·the·last·code·point. | 413 | of·the·string,·so·an·index·of·-1·will·return·an·offset·to·the·last·code·point. |
414 | If·the·index·is·past·the·end·of·the·string,·returns·the·offset·of·the·end·of | 414 | If·the·index·is·past·the·end·of·the·string,·returns·the·offset·of·the·end·of |
415 | the·string. | 415 | the·string. |
416 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h | 416 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h |
417 | Examples: | 417 | Examples: |
418 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 418 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c |
419 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
420 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 419 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
420 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
421 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* | 421 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* |
422 | bool·al_ustr_next(const·ALLEGRO_USTR·*us,·int·*pos) | 422 | bool·al_ustr_next(const·ALLEGRO_USTR·*us,·int·*pos) |
423 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 423 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
424 | Find·the·byte·offset·of·the·next·code·point·in·string,·beginning·at·*pos.·*pos | 424 | Find·the·byte·offset·of·the·next·code·point·in·string,·beginning·at·*pos.·*pos |
425 | does·not·have·to·be·at·the·beginning·of·a·code·point. | 425 | does·not·have·to·be·at·the·beginning·of·a·code·point. |
426 | Returns·true·on·success,·and·the·value·pointed·to·by·pos·will·be·updated·to·the | 426 | Returns·true·on·success,·and·the·value·pointed·to·by·pos·will·be·updated·to·the |
427 | found·offset.·Otherwise·returns·false·if·*pos·was·already·at·the·end·of·the | 427 | found·offset.·Otherwise·returns·false·if·*pos·was·already·at·the·end·of·the |
Offset 455, 16 lines modified | Offset 455, 16 lines modified | ||
455 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 455 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
456 | Return·the·code·point·in·ub·beginning·at·byte·offset·pos. | 456 | Return·the·code·point·in·ub·beginning·at·byte·offset·pos. |
457 | On·success·returns·the·code·point·value.·If·pos·was·out·of·bounds·(e.g. past | 457 | On·success·returns·the·code·point·value.·If·pos·was·out·of·bounds·(e.g. past |
458 | the·end·of·the·string),·return·-1.·On·an·error,·such·as·an·invalid·byte | 458 | the·end·of·the·string),·return·-1.·On·an·error,·such·as·an·invalid·byte |
459 | sequence,·return·-2. | 459 | sequence,·return·-2. |
460 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8p_\x8r_\x8e_\x8v_\x8__\x8g_\x8e_\x8t | 460 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8p_\x8r_\x8e_\x8v_\x8__\x8g_\x8e_\x8t |
461 | Examples: | 461 | Examples: |
462 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
463 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 462 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
463 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
464 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* | 464 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* |
465 | int32_t·al_ustr_get_next(const·ALLEGRO_USTR·*us,·int·*pos) | 465 | int32_t·al_ustr_get_next(const·ALLEGRO_USTR·*us,·int·*pos) |
466 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 466 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
467 | Find·the·code·point·in·us·beginning·at·byte·offset·*pos,·then·advance·to·the | 467 | Find·the·code·point·in·us·beginning·at·byte·offset·*pos,·then·advance·to·the |
468 | next·code·point. | 468 | next·code·point. |
469 | On·success·return·the·code·point·value.·If·pos·was·out·of·bounds·(e.g. past·the | 469 | On·success·return·the·code·point·value.·If·pos·was·out·of·bounds·(e.g. past·the |
470 | end·of·the·string),·return·-1.·On·an·error,·such·as·an·invalid·byte·sequence, | 470 | end·of·the·string),·return·-1.·On·an·error,·such·as·an·invalid·byte·sequence, |
Offset 290, 19 lines modified | Offset 290, 14 lines modified | ||
290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
291 | <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_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 291 | <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_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
292 | <p><a | 292 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L275">Source |
294 | Code</a></p> | 294 | Code</a></p> |
295 | <p>Initializes·the·video·addon.</p> | 295 | <p>Initializes·the·video·addon.</p> |
296 | <p>Since:·5.1.12</p> | 296 | <p>Since:·5.1.12</p> |
297 | <p>Examples:</p> | ||
298 | <ul> | ||
299 | <li><a | ||
300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> | ||
301 | </ul> | ||
302 | <h1 | 297 | <h1 |
303 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 298 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> |
304 | <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_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 299 | <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_video_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
305 | <p><a | 300 | <p><a |
306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source | 301 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source |
307 | Code</a></p> | 302 | Code</a></p> |
308 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 303 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
Offset 328, 19 lines modified | Offset 323, 14 lines modified | ||
328 | <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>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | 323 | <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>ALLEGRO_VIDEO·<span·class="op">*</span>al_open_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> |
329 | <p><a | 324 | <p><a |
330 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source | 325 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source |
331 | Code</a></p> | 326 | Code</a></p> |
332 | <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the | 327 | <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the |
333 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> | 328 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> |
334 | <p>Since:·5.1.0</p> | 329 | <p>Since:·5.1.0</p> |
335 | <p>Examples:</p> | ||
336 | <ul> | ||
337 | <li><a | ||
338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> | ||
339 | </ul> | ||
340 | <h1·id="al_identify_video">al_identify_video</h1> | 330 | <h1·id="al_identify_video">al_identify_video</h1> |
341 | <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">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | 331 | <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">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> |
342 | <p><a | 332 | <p><a |
343 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source |
344 | Code</a></p> | 334 | Code</a></p> |
345 | <p>This·works·exactly·as·<a | 335 | <p>This·works·exactly·as·<a |
346 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you | 336 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you |
Offset 372, 31 lines modified | Offset 362, 21 lines modified | ||
372 | <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_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 362 | <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_close_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
373 | <p><a | 363 | <p><a |
374 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source | 364 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source |
375 | Code</a></p> | 365 | Code</a></p> |
376 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer | 366 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer |
377 | is·invalid·after·the·function·returns.</p> | 367 | is·invalid·after·the·function·returns.</p> |
378 | <p>Since:·5.1.0</p> | 368 | <p>Since:·5.1.0</p> |
379 | <p>Examples:</p> | ||
380 | <ul> | ||
381 | <li><a | ||
382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L180">ex_video.c</a></li> | ||
383 | </ul> | ||
384 | <h1·id="al_start_video">al_start_video</h1> | 369 | <h1·id="al_start_video">al_start_video</h1> |
385 | <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_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div> | 370 | <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_start_video<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_MIXER·<span·class="op">*</span>mixer<span·class="op">)</span></span></code></pre></div> |
386 | <p><a | 371 | <p><a |
387 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source | 372 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source |
388 | Code</a></p> | 373 | Code</a></p> |
389 | <p>Starts·playing·the·video·from·the·beginning.</p> | 374 | <p>Starts·playing·the·video·from·the·beginning.</p> |
390 | <p>Since:·5.1.0</p> | 375 | <p>Since:·5.1.0</p> |
391 | <p>Examples:</p> | ||
392 | <ul> | ||
393 | <li><a | ||
394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L162">ex_video.c</a></li> | ||
395 | </ul> | ||
396 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> | 376 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> |
397 | <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_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div> | 377 | <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_start_video_with_voice<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·ALLEGRO_VOICE·<span·class="op">*</span>voice<span·class="op">)</span></span></code></pre></div> |
398 | <p><a | 378 | <p><a |
399 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source | 379 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source |
400 | Code</a></p> | 380 | Code</a></p> |
401 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio | 381 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio |
402 | is·routed·to·the·provided·voice.</p> | 382 | is·routed·to·the·provided·voice.</p> |
Offset 406, 100 lines modified | Offset 386, 65 lines modified | ||
406 | <p><a | 386 | <p><a |
407 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source | 387 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source |
408 | Code</a></p> | 388 | Code</a></p> |
409 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described | 389 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described |
410 | under·<a | 390 | under·<a |
411 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 391 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
412 | <p>Since:·5.1.0</p> | 392 | <p>Since:·5.1.0</p> |
413 | <p>Examples:</p> | ||
414 | <ul> | ||
415 | <li><a | ||
416 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L157">ex_video.c</a></li> | ||
417 | </ul> | ||
418 | <h1·id="al_set_video_playing">al_set_video_playing</h1> | 393 | <h1·id="al_set_video_playing">al_set_video_playing</h1> |
419 | <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_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<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">void</span>·al_set_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">,</span>·<span·class="dt">bool</span>·play<span·class="op">)</span></span></code></pre></div> |
420 | <p><a | 395 | <p><a |
421 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source | 396 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source |
422 | Code</a></p> | 397 | Code</a></p> |
423 | <p>Paused·or·resumes·playback.</p> | 398 | <p>Paused·or·resumes·playback.</p> |
424 | <p>Since:·5.1.12</p> | 399 | <p>Since:·5.1.12</p> |
425 | <p>Examples:</p> | ||
426 | <ul> | ||
427 | <li><a | ||
428 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L177">ex_video.c</a></li> | ||
429 | </ul> | ||
430 | <h1·id="al_is_video_playing">al_is_video_playing</h1> | 400 | <h1·id="al_is_video_playing">al_is_video_playing</h1> |
431 | <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_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 401 | <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_is_video_playing<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
432 | <p><a | 402 | <p><a |
433 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source | 403 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source |
434 | Code</a></p> | 404 | Code</a></p> |
435 | <p>Returns·true·if·the·video·is·currently·playing.</p> | 405 | <p>Returns·true·if·the·video·is·currently·playing.</p> |
436 | <p>Since:·5.1.12</p> | 406 | <p>Since:·5.1.12</p> |
437 | <p>Examples:</p> | ||
438 | <ul> | ||
439 | <li><a | ||
440 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L74">ex_video.c</a></li> | ||
441 | </ul> | ||
442 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> | 407 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> |
443 | <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">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 408 | <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">double</span>·al_get_video_audio_rate<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
444 | <p><a | 409 | <p><a |
445 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source | 410 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source |
446 | Code</a></p> | 411 | Code</a></p> |
447 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> | 412 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> |
448 | <p>Since:·5.1.0</p> | 413 | <p>Since:·5.1.0</p> |
449 | <p>Examples:</p> | ||
450 | <ul> | ||
451 | <li><a | ||
452 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L72">ex_video.c</a></li> | ||
453 | </ul> | ||
454 | <h1·id="al_get_video_fps">al_get_video_fps</h1> | 414 | <h1·id="al_get_video_fps">al_get_video_fps</h1> |
455 | <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">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> | 415 | <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">double</span>·al_get_video_fps<span·class="op">(</span>ALLEGRO_VIDEO·<span·class="op">*</span>video<span·class="op">)</span></span></code></pre></div> |
456 | <p><a | 416 | <p><a |
457 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source | 417 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source |
458 | Code</a></p> | 418 | Code</a></p> |
459 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will | 419 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will |
460 | not·be·an·integer·value.</p> | 420 | not·be·an·integer·value.</p> |
Max diff block lines reached; 5730/13966 bytes (41.03%) of diff not shown. |
Offset 109, 16 lines modified | Offset 109, 14 lines modified | ||
109 | ······in·sync. | 109 | ······in·sync. |
110 | Since:·5.1.11 | 110 | Since:·5.1.11 |
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | bool·al_init_video_addon(void) | 112 | bool·al_init_video_addon(void) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Initializes·the·video·addon. | 114 | Initializes·the·video·addon. |
115 | Since:·5.1.12 | 115 | Since:·5.1.12 |
116 | Examples: | ||
117 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n_\x8_i\x8in\x8ni\x8it\x8ti\x8ia\x8al\x8li\x8iz\x8ze\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | bool·al_is_video_addon_initialized(void) | 117 | bool·al_is_video_addon_initialized(void) |
120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 119 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
122 | Since:·5.2.6 | 120 | Since:·5.2.6 |
123 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | void·al_shutdown_video_addon(void) | 122 | void·al_shutdown_video_addon(void) |
Offset 134, 16 lines modified | Offset 132, 14 lines modified | ||
134 | Since:·5.1.12 | 132 | Since:·5.1.12 |
135 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 134 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so | 136 | Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so |
139 | you·can·query·e.g. the·size·or·audio·rate. | 137 | you·can·query·e.g. the·size·or·audio·rate. |
140 | Since:·5.1.0 | 138 | Since:·5.1.0 |
141 | Examples: | ||
142 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 139 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8id\x8de\x8en\x8nt\x8ti\x8if\x8fy\x8y_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
144 | char·const·*al_identify_video(char·const·*filename) | 140 | char·const·*al_identify_video(char·const·*filename) |
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
146 | This·works·exactly·as·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f·but·you·specify·the·filename·of·the | 142 | This·works·exactly·as·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f·but·you·specify·the·filename·of·the |
147 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, | 143 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, |
148 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. | 144 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. |
149 | Since:·5.2.8 | 145 | Since:·5.2.8 |
Offset 161, 85 lines modified | Offset 157, 67 lines modified | ||
161 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o | 157 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8v_\x8i_\x8d_\x8e_\x8o |
162 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 158 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8os\x8se\x8e_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
163 | void·al_close_video(ALLEGRO_VIDEO·*video) | 159 | void·al_close_video(ALLEGRO_VIDEO·*video) |
164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 160 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
165 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is | 161 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is |
166 | invalid·after·the·function·returns. | 162 | invalid·after·the·function·returns. |
167 | Since:·5.1.0 | 163 | Since:·5.1.0 |
168 | Examples: | ||
169 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
170 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 164 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
171 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 165 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 166 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
173 | Starts·playing·the·video·from·the·beginning. | 167 | Starts·playing·the·video·from·the·beginning. |
174 | Since:·5.1.0 | 168 | Since:·5.1.0 |
175 | Examples: | ||
176 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
177 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_w\x8wi\x8it\x8th\x8h_\x8_v\x8vo\x8oi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 169 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_w\x8wi\x8it\x8th\x8h_\x8_v\x8vo\x8oi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
178 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 170 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 171 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
180 | Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice. | 172 | Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice. |
181 | Since:·5.1.0 | 173 | Since:·5.1.0 |
182 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 174 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
183 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 175 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
184 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
185 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under | 177 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under |
186 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. | 178 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
187 | Since:·5.1.0 | 179 | Since:·5.1.0 |
188 | Examples: | ||
189 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
190 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 180 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
191 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | 181 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
193 | Paused·or·resumes·playback. | 183 | Paused·or·resumes·playback. |
194 | Since:·5.1.12 | 184 | Since:·5.1.12 |
195 | Examples: | ||
196 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
197 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 185 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_p\x8pl\x8la\x8ay\x8yi\x8in\x8ng\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
198 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | 186 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
200 | Returns·true·if·the·video·is·currently·playing. | 188 | Returns·true·if·the·video·is·currently·playing. |
201 | Since:·5.1.12 | 189 | Since:·5.1.12 |
202 | Examples: | ||
203 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 190 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
205 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | 191 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
207 | Returns·the·audio·rate·of·the·video,·in·Hz. | 193 | Returns·the·audio·rate·of·the·video,·in·Hz. |
208 | Since:·5.1.0 | 194 | Since:·5.1.0 |
209 | Examples: | ||
210 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
211 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fp\x8ps\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fp\x8ps\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
212 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | 196 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
214 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an | 198 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an |
215 | integer·value. | 199 | integer·value. |
216 | Since:·5.1.0 | 200 | Since:·5.1.0 |
217 | Examples: | ||
218 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
219 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 201 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_w\x8wi\x8id\x8dt\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
220 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | 202 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
221 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 203 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
222 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 204 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
223 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of | 205 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of |
224 | the·frame·bitmap. | 206 | the·frame·bitmap. |
225 | Since:·5.1.12 | 207 | Since:·5.1.12 |
226 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e | 208 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e |
227 | Examples: | ||
228 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
229 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 209 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_s\x8sc\x8ca\x8al\x8le\x8ed\x8d_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
230 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | 210 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 211 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 212 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
233 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height | 213 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height |
234 | of·the·frame·bitmap. | 214 | of·the·frame·bitmap. |
235 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e | 215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e |
236 | Since:·5.1.12 | 216 | Since:·5.1.12 |
237 | Examples: | ||
238 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
239 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fr\x8ra\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 217 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_f\x8fr\x8ra\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
240 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | 218 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) |
241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
242 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not | 220 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not |
243 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to | 221 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to |
244 | al_get_video_frame. | 222 | al_get_video_frame. |
245 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video | 223 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video |
Offset 249, 27 lines modified | Offset 227, 21 lines modified | ||
249 | float·sw·=·al_get_bitmap_width(frame); | 227 | float·sw·=·al_get_bitmap_width(frame); |
250 | float·sh·=·al_get_bitmap_height(frame); | 228 | float·sh·=·al_get_bitmap_height(frame); |
251 | float·dw·=·scale·*·al_get_video_scaled_width(video); | 229 | float·dw·=·scale·*·al_get_video_scaled_width(video); |
252 | float·dh·=·scale·*·al_get_video_scaled_height(video); | 230 | float·dh·=·scale·*·al_get_video_scaled_height(video); |
253 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); | 231 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); |
254 | Since:·5.1.0 | 232 | Since:·5.1.0 |
255 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t | 233 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8w_\x8i_\x8d_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8d_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
Max diff block lines reached; 808/7240 bytes (11.16%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-11-29·14:21:22.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3428·2024-11-29·14:21:22.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3428·2024-11-29·14:21:22.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···11329 | 3 | -rw-r--r--···0········0········0···113292·2024-11-29·14:21:22.000000·data.tar.xz |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/ | 93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/ |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/platform/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/platform/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)·····4001·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/platform/alplatf.h | 95 | -rw-r--r--···0·root·········(0)·root·········(0)·····4001·2024-11-29·14:21:22.000000·./usr/include/arm-linux-gnueabihf/allegro5/platform/alplatf.h |
96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/ | 96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/ |
97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/ | 97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/ |
98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/ | 98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/ |
99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/ | 99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/ |
100 | -rw-r--r--···0·root·········(0)·root·········(0)·····161 | 100 | -rw-r--r--···0·root·········(0)·root·········(0)·····1617·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroConfig.cmake |
101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroConfigVersion.cmake | 101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroConfigVersion.cmake |
102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7720·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroTargets-none.cmake | 102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7720·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroTargets-none.cmake |
103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9628·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroTargets.cmake | 103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9628·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/cmake/allegro/AllegroTargets.cmake |
104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/ | 104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/ |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······321·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/allegro-5.pc | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······321·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/allegro-5.pc |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/allegro_color-5.pc | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······381·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/allegro_color-5.pc |
107 | -rw-r--r--···0·root·········(0)·root·········(0)······377·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/pkgconfig/allegro_font-5.pc | 107 | -rw-r--r--···0·root·········(0)·root·········(0)······377·2024-11-29·14:21:22.000000·./usr/lib/arm-linux-gnueabihf/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·"arm-linux-gnueabihf") | 34 | set(ALLEGRO_PKG_LIBRARY_ARCHITECTURE·"arm-linux-gnueabihf") |
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.0-28-arm | 37 | set(ALLEGRO_PKG_HOST_SYSTEM·"Linux-6.1.0-28-armmp-lpae") |
38 | #·Targets | 38 | #·Targets |
39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") | 39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") |