Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·985314f35db5c9edb01f63831196ff68·1386416·doc·optional·allegro5-doc_5.2.10.1+dfsg-1_all.deb |
2 | ·0d0f0e36c802263571c8a4a4d37986e6·19388·libdevel·optional·liballegro-acodec5-dev_5.2.10.1+dfsg-1_amd64.deb | 2 | ·0d0f0e36c802263571c8a4a4d37986e6·19388·libdevel·optional·liballegro-acodec5-dev_5.2.10.1+dfsg-1_amd64.deb |
3 | ·ac890799c72bac11e19927eb7db8358d·62612·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 3 | ·ac890799c72bac11e19927eb7db8358d·62612·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
4 | ·18062cc015e32f13d4f5d0152c2cc95a·38428·libs·optional·liballegro-acodec5.2t64_5.2.10.1+dfsg-1_amd64.deb | 4 | ·18062cc015e32f13d4f5d0152c2cc95a·38428·libs·optional·liballegro-acodec5.2t64_5.2.10.1+dfsg-1_amd64.deb |
5 | ·88c48ff68fbc70f244e6289381910e53·22164·libdevel·optional·liballegro-audio5-dev_5.2.10.1+dfsg-1_amd64.deb | 5 | ·88c48ff68fbc70f244e6289381910e53·22164·libdevel·optional·liballegro-audio5-dev_5.2.10.1+dfsg-1_amd64.deb |
6 | ·ed8c9f8c56fbeb54d73b7a96c7bd0e56·110708·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 6 | ·ed8c9f8c56fbeb54d73b7a96c7bd0e56·110708·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
7 | ·253671a7a4fafdc85a7f33101818868f·62120·libs·optional·liballegro-audio5.2t64_5.2.10.1+dfsg-1_amd64.deb | 7 | ·253671a7a4fafdc85a7f33101818868f·62120·libs·optional·liballegro-audio5.2t64_5.2.10.1+dfsg-1_amd64.deb |
8 | ·1392e795640f5aea611fc0be61a01f49·20432·libdevel·optional·liballegro-dialog5-dev_5.2.10.1+dfsg-1_amd64.deb | 8 | ·1392e795640f5aea611fc0be61a01f49·20432·libdevel·optional·liballegro-dialog5-dev_5.2.10.1+dfsg-1_amd64.deb |
Offset 17, 10 lines modified | Offset 17, 10 lines modified | ||
17 | ·b6a19a9cd2fb23255bcf22da0eedf648·23616·libs·optional·liballegro-physfs5.2t64_5.2.10.1+dfsg-1_amd64.deb | 17 | ·b6a19a9cd2fb23255bcf22da0eedf648·23616·libs·optional·liballegro-physfs5.2t64_5.2.10.1+dfsg-1_amd64.deb |
18 | ·da9f68d4e67494231657f1fe069ad829·19488·libdevel·optional·liballegro-ttf5-dev_5.2.10.1+dfsg-1_amd64.deb | 18 | ·da9f68d4e67494231657f1fe069ad829·19488·libdevel·optional·liballegro-ttf5-dev_5.2.10.1+dfsg-1_amd64.deb |
19 | ·ce8076d786ecc5c8204fdd2f8c0011ff·32400·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 19 | ·ce8076d786ecc5c8204fdd2f8c0011ff·32400·debug·optional·liballegro-ttf5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
20 | ·6ff25a2d5d0d69ad0beb1a4bdfba67c6·29072·libs·optional·liballegro-ttf5.2t64_5.2.10.1+dfsg-1_amd64.deb | 20 | ·6ff25a2d5d0d69ad0beb1a4bdfba67c6·29072·libs·optional·liballegro-ttf5.2t64_5.2.10.1+dfsg-1_amd64.deb |
21 | ·69c5613595a2d5ef9e3f8db6ae2395b6·19768·libdevel·optional·liballegro-video5-dev_5.2.10.1+dfsg-1_amd64.deb | 21 | ·69c5613595a2d5ef9e3f8db6ae2395b6·19768·libdevel·optional·liballegro-video5-dev_5.2.10.1+dfsg-1_amd64.deb |
22 | ·129ab9eb6f2d25c4762196da1c702c5f·40228·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 22 | ·129ab9eb6f2d25c4762196da1c702c5f·40228·debug·optional·liballegro-video5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
23 | ·881b85b60144a92f86782fb27cad0e35·32980·libs·optional·liballegro-video5.2t64_5.2.10.1+dfsg-1_amd64.deb | 23 | ·881b85b60144a92f86782fb27cad0e35·32980·libs·optional·liballegro-video5.2t64_5.2.10.1+dfsg-1_amd64.deb |
24 | · | 24 | ·b0c5b3ff8dc22b838432f9acf724e1f4·117032·libdevel·optional·liballegro5-dev_5.2.10.1+dfsg-1_amd64.deb |
25 | ·711b376d804e675c6b243fcb3bec054a·1318472·debug·optional·liballegro5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb | 25 | ·711b376d804e675c6b243fcb3bec054a·1318472·debug·optional·liballegro5.2t64-dbgsym_5.2.10.1+dfsg-1_amd64.deb |
26 | ·99fdcd50d008ba20b826dd5acf9349ec·439044·libs·optional·liballegro5.2t64_5.2.10.1+dfsg-1_amd64.deb | 26 | ·99fdcd50d008ba20b826dd5acf9349ec·439044·libs·optional·liballegro5.2t64_5.2.10.1+dfsg-1_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary |
2 | -rw-r--r--···0········0········0····316 | 2 | -rw-r--r--···0········0········0····31692·2025-01-09·13:52:42.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··13 | 3 | -rw-r--r--···0········0········0··1354532·2025-01-09·13:52:42.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·allegro5-doc | 1 | Package:·allegro5-doc |
2 | Source:·allegro5 | 2 | Source:·allegro5 |
3 | Version:·2:5.2.10.1+dfsg-1 | 3 | Version:·2:5.2.10.1+dfsg-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> | 5 | Maintainer:·Debian·Games·Team·<pkg-games-devel@lists.alioth.debian.org> |
6 | Installed-Size:·5 | 6 | Installed-Size:·5627 |
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 198, 410 lines modified | Offset 198, 410 lines modified | ||
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c |
199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6511·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6511·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-12-29·03:52:10.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/ | 204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/ |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····11 | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····11782·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/acodec.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 206 | -rw-r--r--···0·root·········(0)·root·········(0)···234053·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····66987·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····37 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····37698·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/config.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17 | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17712·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····88933·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····81982·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····6 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····62218·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/file.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····56 | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····56466·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fixed.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 215 | -rw-r--r--···0·root·········(0)·root·········(0)····95359·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····42 | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····42279·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fshook.html |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····13 | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····13398·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····16965·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···2 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···224288·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····69 | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····69690·2025-01-09·13:52:42.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)····12423·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/image.html |
222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/ | 222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/ |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6773·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)···110785·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····35199·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····24042·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/main.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9013·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/main.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10431·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memfile.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····24052·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/memory.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····10304·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/misc.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 236 | -rw-r--r--···0·root·········(0)·root·········(0)····15273·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····43 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····43823·2025-01-09·13:52:42.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)····80257·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····27233·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····27233·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····381 | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····38119·2025-01-09·13:52:42.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)····11854·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····31 | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····31625·2025-01-09·13:52:42.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)···145966·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····72292·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····45 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····45920·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/shader.html |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····15871·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····7 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····72351·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/system.html |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····35452·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····12633·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/time.html |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····26749·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/timer.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····22267·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····82433·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)··· | 254 | -rw-r--r--···0·root·········(0)·root·········(0)···104512·2025-01-09·13:52:42.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)····31892·2025-01-09·13:52:42.000000·./usr/share/doc/allegro5-doc/refman/video.html |
256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc-base/ | 256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/doc-base/ |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2025-01-01·19:45:12.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2025-01-01·19:45:12.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/ |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/man3/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/share/man/man3/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······397·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······237·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······548·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
263 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 263 | -rw-r--r--···0·root·········(0)·root·········(0)······534·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_PAN_NONE.3alleg5.gz |
264 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 264 | -rw-r--r--···0·root·········(0)·root·········(0)······299·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER.3alleg5.gz |
265 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 265 | -rw-r--r--···0·root·········(0)·root·········(0)······459·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.gz |
266 | -rw-r--r--···0·root·········(0)·root·········(0)·····11 | 266 | -rw-r--r--···0·root·········(0)·root·········(0)·····1108·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_AUDIO_STREAM.3alleg5.gz |
267 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 267 | -rw-r--r--···0·root·········(0)·root·········(0)······230·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_BITMAP.3alleg5.gz |
268 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 268 | -rw-r--r--···0·root·········(0)·root·········(0)······444·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_BITMAP_WRAP.3alleg5.gz |
269 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 269 | -rw-r--r--···0·root·········(0)·root·········(0)······223·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz |
270 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 270 | -rw-r--r--···0·root·········(0)·root·········(0)······220·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz |
271 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 271 | -rw-r--r--···0·root·········(0)·root·········(0)······273·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz |
272 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 272 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz |
273 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 273 | -rw-r--r--···0·root·········(0)·root·········(0)······229·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz |
274 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 274 | -rw-r--r--···0·root·········(0)·root·········(0)······220·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz |
275 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 275 | -rw-r--r--···0·root·········(0)·root·········(0)······288·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz |
276 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 276 | -rw-r--r--···0·root·········(0)·root·········(0)······286·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_CONFIG_SECTION.3alleg5.gz |
277 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 277 | -rw-r--r--···0·root·········(0)·root·········(0)······232·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz |
278 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······452·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz |
279 | -rw-r--r--···0·root·········(0)·root·········(0)·····51 | 279 | -rw-r--r--···0·root·········(0)·root·········(0)·····5105·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz |
280 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 280 | -rw-r--r--···0·root·········(0)·root·········(0)······347·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz |
281 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······382·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz |
282 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 282 | -rw-r--r--···0·root·········(0)·root·········(0)······278·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz |
283 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 283 | -rw-r--r--···0·root·········(0)·root·········(0)······282·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE_IS_USER.3alleg5.gz |
284 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 284 | -rw-r--r--···0·root·········(0)·root·········(0)······252·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FILE.3alleg5.gz |
285 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 285 | -rw-r--r--···0·root·········(0)·root·········(0)······230·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FILECHOOSER.3alleg5.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)······7 | 286 | -rw-r--r--···0·root·········(0)·root·········(0)······762·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FILE_INTERFACE.3alleg5.gz |
287 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FILE_MODE.3alleg5.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 288 | -rw-r--r--···0·root·········(0)·root·········(0)······391·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FONT.3alleg5.gz |
289 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 289 | -rw-r--r--···0·root·········(0)·root·········(0)······403·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FOR_EACH_FS_ENTRY_RESULT.3alleg5.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 290 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FS_ENTRY.3alleg5.gz |
291 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 291 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_FS_INTERFACE.3alleg5.gz |
292 | -rw-r--r--···0·root·········(0)·root·········(0)······6 | 292 | -rw-r--r--···0·root·········(0)·root·········(0)······668·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_GET_EVENT_TYPE.3alleg5.gz |
293 | -rw-r--r--···0·root·········(0)·root·········(0)······78 | 293 | -rw-r--r--···0·root·········(0)·root·········(0)······780·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_GLYPH.3alleg5.gz |
294 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 294 | -rw-r--r--···0·root·········(0)·root·········(0)······409·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_HAPTIC.3alleg5.gz |
295 | -rw-r--r--···0·root·········(0)·root·········(0)······8 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)······808·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_CONSTANTS.3alleg5.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)·····31 | 296 | -rw-r--r--···0·root·········(0)·root·········(0)·····3137·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT.3alleg5.gz |
297 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)······438·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT_ID.3alleg5.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 298 | -rw-r--r--···0·root·········(0)·root·········(0)······347·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_INDEX_BUFFER.3alleg5.gz |
299 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)······327·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_JOYFLAGS.3alleg5.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 300 | -rw-r--r--···0·root·········(0)·root·········(0)······259·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK.3alleg5.gz |
301 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)······400·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK_STATE.3alleg5.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······437·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_KEYBOARD_STATE.3alleg5.gz |
303 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 303 | -rw-r--r--···0·root·········(0)·root·········(0)······417·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_LINE_CAP.3alleg5.gz |
304 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 304 | -rw-r--r--···0·root·········(0)·root·········(0)······391·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_LINE_JOIN.3alleg5.gz |
305 | -rw-r--r--···0·root·········(0)·root·········(0)······7 | 305 | -rw-r--r--···0·root·········(0)·root·········(0)······787·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_LOCKED_REGION.3alleg5.gz |
306 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 306 | -rw-r--r--···0·root·········(0)·root·········(0)······355·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MEMORY_INTERFACE.3alleg5.gz |
307 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 307 | -rw-r--r--···0·root·········(0)·root·········(0)······273·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MENU.3alleg5.gz |
308 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 308 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MENU_INFO.3alleg5.gz |
309 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 309 | -rw-r--r--···0·root·········(0)·root·········(0)······486·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MIXER.3alleg5.gz |
310 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 310 | -rw-r--r--···0·root·········(0)·root·········(0)······289·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MIXER_QUALITY.3alleg5.gz |
311 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 311 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MONITOR_INFO.3alleg5.gz |
312 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 312 | -rw-r--r--···0·root·········(0)·root·········(0)······433·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MOUSE_EMULATION_MODE.3alleg5.gz |
313 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 313 | -rw-r--r--···0·root·········(0)·root·········(0)······439·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MOUSE_STATE.3alleg5.gz |
314 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 314 | -rw-r--r--···0·root·········(0)·root·········(0)······217·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MSECS_TO_SECS.3alleg5.gz |
315 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 315 | -rw-r--r--···0·root·········(0)·root·········(0)······223·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_MUTEX.3alleg5.gz |
316 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 316 | -rw-r--r--···0·root·········(0)·root·········(0)······287·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE.3alleg5.gz |
317 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 317 | -rw-r--r--···0·root·········(0)·root·········(0)······263·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PI.3alleg5.gz |
318 | -rw-r--r--···0·root·········(0)·root·········(0)·····21 | 318 | -rw-r--r--···0·root·········(0)·root·········(0)·····2146·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PIXEL_FORMAT.3alleg5.gz |
319 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 319 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PLAYMODE.3alleg5.gz |
320 | -rw-r--r--···0·root·········(0)·root·········(0)·····11 | 320 | -rw-r--r--···0·root·········(0)·root·········(0)·····1127·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PRIM_ATTR.3alleg5.gz |
321 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 321 | -rw-r--r--···0·root·········(0)·root·········(0)······556·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PRIM_BUFFER_FLAGS.3alleg5.gz |
322 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 322 | -rw-r--r--···0·root·········(0)·root·········(0)······347·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PRIM_QUALITY.3alleg5.gz |
323 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 323 | -rw-r--r--···0·root·········(0)·root·········(0)······891·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PRIM_STORAGE.3alleg5.gz |
324 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 324 | -rw-r--r--···0·root·········(0)·root·········(0)······472·2025-01-09·13:52:42.000000·./usr/share/man/man3/ALLEGRO_PRIM_TYPE.3alleg5.gz |
Max diff block lines reached; 188249/221443 bytes (85.01%) of diff not shown. |
Offset 209, 14 lines modified | Offset 209, 23 lines modified | ||
209 | href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be | 209 | href="audio.html#al_load_sample_f">al_load_sample_f</a>·and·must·be |
210 | streamed·with·<a | 210 | streamed·with·<a |
211 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a | 211 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>·or·<a |
212 | href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> | 212 | href="audio.html#al_load_audio_stream_f">al_load_audio_stream_f</a>.</p></li> |
213 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> | 213 | <li><p>.voc·file·streaming·is·unimplemented.</p></li> |
214 | </ul> | 214 | </ul> |
215 | <p>Return·true·on·success.</p> | 215 | <p>Return·true·on·success.</p> |
216 | <p>Examples:</p> | ||
217 | <ul> | ||
218 | <li><a | ||
219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L51">ex_stream_file.c</a></li> | ||
220 | <li><a | ||
221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> | ||
222 | <li><a | ||
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> | ||
224 | </ul> | ||
216 | <h1 | 225 | <h1 |
217 | id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> | 226 | id="al_is_acodec_addon_initialized">al_is_acodec_addon_initialized</h1> |
218 | <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_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 227 | <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_acodec_addon_initialized<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
219 | <p><a | 228 | <p><a |
220 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source | 229 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L99">Source |
221 | Code</a></p> | 230 | Code</a></p> |
222 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 231 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
Offset 64, 14 lines modified | Offset 64, 18 lines modified | ||
64 | ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in | 64 | ····*·Module·files·(.it,·.mod,·.s3m,·.xm)·are·often·composed·with·streaming·in |
65 | ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length | 65 | ······mind,·and·sometimes·cannot·be·easily·rendered·into·a·finite·length |
66 | ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/ | 66 | ······sample.·Therefore·they·cannot·be·loaded·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e/ |
67 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or | 67 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8f·and·must·be·streamed·with·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·or |
68 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f. | 68 | ······_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f. |
69 | ····*·.voc·file·streaming·is·unimplemented. | 69 | ····*·.voc·file·streaming·is·unimplemented. |
70 | Return·true·on·success. | 70 | Return·true·on·success. |
71 | Examples: | ||
72 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
73 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
74 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | ||
71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\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* | 75 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\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* |
72 | bool·al_is_acodec_addon_initialized(void) | 76 | bool·al_is_acodec_addon_initialized(void) |
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
75 | Since:·5.2.6 | 79 | Since:·5.2.6 |
76 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 80 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
77 | uint32_t·al_get_allegro_acodec_version(void) | 81 | uint32_t·al_get_allegro_acodec_version(void) |
Offset 564, 14 lines modified | Offset 564, 19 lines modified | ||
564 | Code</a></p> | 564 | Code</a></p> |
565 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a | 565 | <p>An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·<a |
566 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to | 566 | href="audio.html#al_play_sample">al_play_sample</a>.·It·can·be·used·to |
567 | later·stop·the·sample·with·<a | 567 | later·stop·the·sample·with·<a |
568 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying | 568 | href="audio.html#al_stop_sample">al_stop_sample</a>.·The·underlying |
569 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a | 569 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·<a |
570 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> | 570 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> |
571 | <p>Examples:</p> | ||
572 | <ul> | ||
573 | <li><a | ||
574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> | ||
575 | </ul> | ||
571 | <h2·id="al_install_audio">al_install_audio</h2> | 576 | <h2·id="al_install_audio">al_install_audio</h2> |
572 | <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_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 577 | <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_install_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
573 | <p><a | 578 | <p><a |
574 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source | 579 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L422">Source |
575 | Code</a></p> | 580 | Code</a></p> |
576 | <p>Install·the·audio·subsystem.</p> | 581 | <p>Install·the·audio·subsystem.</p> |
577 | <p>Returns·true·on·success,·false·on·failure.</p> | 582 | <p>Returns·true·on·success,·false·on·failure.</p> |
Offset 582, 22 lines modified | Offset 587, 40 lines modified | ||
582 | this.</p> | 587 | this.</p> |
583 | </blockquote> | 588 | </blockquote> |
584 | <p>See·also:·<a | 589 | <p>See·also:·<a |
585 | href="audio.html#al_reserve_samples">al_reserve_samples</a>,·<a | 590 | href="audio.html#al_reserve_samples">al_reserve_samples</a>,·<a |
586 | href="audio.html#al_uninstall_audio">al_uninstall_audio</a>,·<a | 591 | href="audio.html#al_uninstall_audio">al_uninstall_audio</a>,·<a |
587 | href="audio.html#al_is_audio_installed">al_is_audio_installed</a>,·<a | 592 | href="audio.html#al_is_audio_installed">al_is_audio_installed</a>,·<a |
588 | href="acodec.html#al_init_acodec_addon">al_init_acodec_addon</a></p> | 593 | href="acodec.html#al_init_acodec_addon">al_init_acodec_addon</a></p> |
594 | <p>Examples:</p> | ||
595 | <ul> | ||
596 | <li><a | ||
597 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> | ||
598 | <li><a | ||
599 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L95">ex_saw.c</a></li> | ||
600 | <li><a | ||
601 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> | ||
602 | </ul> | ||
589 | <h2·id="al_uninstall_audio">al_uninstall_audio</h2> | 603 | <h2·id="al_uninstall_audio">al_uninstall_audio</h2> |
590 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 604 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_audio<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
591 | <p><a | 605 | <p><a |
592 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source | 606 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L441">Source |
593 | Code</a></p> | 607 | Code</a></p> |
594 | <p>Uninstalls·the·audio·subsystem.</p> | 608 | <p>Uninstalls·the·audio·subsystem.</p> |
595 | <p>See·also:·<a | 609 | <p>See·also:·<a |
596 | href="audio.html#al_install_audio">al_install_audio</a></p> | 610 | href="audio.html#al_install_audio">al_install_audio</a></p> |
611 | <p>Examples:</p> | ||
612 | <ul> | ||
613 | <li><a | ||
614 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L123">ex_saw.c</a></li> | ||
615 | <li><a | ||
616 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> | ||
617 | <li><a | ||
618 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> | ||
619 | </ul> | ||
597 | <h2·id="al_is_audio_installed">al_is_audio_installed</h2> | 620 | <h2·id="al_is_audio_installed">al_is_audio_installed</h2> |
598 | <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_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 621 | <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_audio_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
599 | <p><a | 622 | <p><a |
600 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source | 623 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/audio.c#L456">Source |
601 | Code</a></p> | 624 | Code</a></p> |
602 | <p>Returns·true·if·<a | 625 | <p>Returns·true·if·<a |
603 | href="audio.html#al_install_audio">al_install_audio</a>·was·called | 626 | href="audio.html#al_install_audio">al_install_audio</a>·was·called |
Offset 624, 14 lines modified | Offset 647, 23 lines modified | ||
624 | ······································sample·instance·N</code></pre> | 647 | ······································sample·instance·N</code></pre> |
625 | <p>Returns·true·on·success,·false·on·error.·<a | 648 | <p>Returns·true·on·success,·false·on·error.·<a |
626 | href="audio.html#al_install_audio">al_install_audio</a>·must·have·been | 649 | href="audio.html#al_install_audio">al_install_audio</a>·must·have·been |
627 | called·first.</p> | 650 | called·first.</p> |
628 | <p>See·also:·<a | 651 | <p>See·also:·<a |
629 | href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a | 652 | href="audio.html#al_set_default_mixer">al_set_default_mixer</a>,·<a |
630 | href="audio.html#al_play_sample">al_play_sample</a></p> | 653 | href="audio.html#al_play_sample">al_play_sample</a></p> |
654 | <p>Examples:</p> | ||
655 | <ul> | ||
656 | <li><a | ||
657 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L98">ex_saw.c</a></li> | ||
658 | <li><a | ||
659 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> | ||
660 | <li><a | ||
661 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> | ||
662 | </ul> | ||
631 | <h2·id="al_play_sample">al_play_sample</h2> | 663 | <h2·id="al_play_sample">al_play_sample</h2> |
632 | <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_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span> | 664 | <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_play_sample<span·class="op">(</span>ALLEGRO_SAMPLE·<span·class="op">*</span>spl<span·class="op">,</span>·<span·class="dt">float</span>·gain<span·class="op">,</span>·<span·class="dt">float</span>·pan<span·class="op">,</span>·<span·class="dt">float</span>·speed<span·class="op">,</span></span> |
633 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_PLAYMODE·loop<span·class="op">,</span>·ALLEGRO_SAMPLE_ID·<span·class="op">*</span>ret_id<span·class="op">)</span></span></code></pre></div> | 665 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_PLAYMODE·loop<span·class="op">,</span>·ALLEGRO_SAMPLE_ID·<span·class="op">*</span>ret_id<span·class="op">)</span></span></code></pre></div> |
634 | <p><a | 666 | <p><a |
635 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source | 667 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L342">Source |
636 | Code</a></p> | 668 | Code</a></p> |
637 | <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a | 669 | <p>Plays·a·sample·on·one·of·the·sample·instances·created·by·<a |
Offset 657, 31 lines modified | Offset 689, 54 lines modified | ||
657 | <p>See·also:·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a | 689 | <p>See·also:·<a·href="audio.html#al_load_sample">al_load_sample</a>,·<a |
658 | href="audio.html#allegro_playmode">ALLEGRO_PLAYMODE</a>,·<a | 690 | href="audio.html#allegro_playmode">ALLEGRO_PLAYMODE</a>,·<a |
659 | href="audio.html#allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</a>,·<a | 691 | href="audio.html#allegro_audio_pan_none">ALLEGRO_AUDIO_PAN_NONE</a>,·<a |
660 | href="audio.html#allegro_sample_id">ALLEGRO_SAMPLE_ID</a>,·<a | 692 | href="audio.html#allegro_sample_id">ALLEGRO_SAMPLE_ID</a>,·<a |
661 | href="audio.html#al_stop_sample">al_stop_sample</a>,·<a | 693 | href="audio.html#al_stop_sample">al_stop_sample</a>,·<a |
662 | href="audio.html#al_stop_samples">al_stop_samples</a>,·<a | 694 | href="audio.html#al_stop_samples">al_stop_samples</a>,·<a |
663 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> | 695 | href="audio.html#al_lock_sample_id">al_lock_sample_id</a>.</p> |
696 | <p>Examples:</p> | ||
697 | <ul> | ||
698 | <li><a | ||
699 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> | ||
700 | <li><a | ||
701 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> | ||
702 | <li><a | ||
703 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> | ||
704 | </ul> | ||
664 | <h2·id="al_stop_sample">al_stop_sample</h2> | 705 | <h2·id="al_stop_sample">al_stop_sample</h2> |
665 | <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_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span></code></pre></div> | 706 | <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_stop_sample<span·class="op">(</span>ALLEGRO_SAMPLE_ID·<span·class="op">*</span>spl_id<span·class="op">)</span></span></code></pre></div> |
666 | <p><a | 707 | <p><a |
667 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source | 708 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L401">Source |
668 | Code</a></p> | 709 | Code</a></p> |
669 | <p>Stop·the·sample·started·by·<a | 710 | <p>Stop·the·sample·started·by·<a |
670 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 711 | href="audio.html#al_play_sample">al_play_sample</a>.</p> |
671 | <p>See·also:·<a | 712 | <p>See·also:·<a |
672 | href="audio.html#al_stop_samples">al_stop_samples</a></p> | 713 | href="audio.html#al_stop_samples">al_stop_samples</a></p> |
714 | <p>Examples:</p> | ||
715 | <ul> | ||
716 | <li><a | ||
717 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> | ||
718 | <li><a | ||
719 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> | ||
720 | <li><a | ||
721 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> | ||
722 | </ul> | ||
673 | <h2·id="al_stop_samples">al_stop_samples</h2> | 723 | <h2·id="al_stop_samples">al_stop_samples</h2> |
674 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 724 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_samples<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
675 | <p><a | 725 | <p><a |
676 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source | 726 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L451">Source |
677 | Code</a></p> | 727 | Code</a></p> |
678 | <p>Stop·all·samples·started·by·<a | 728 | <p>Stop·all·samples·started·by·<a |
679 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 729 | href="audio.html#al_play_sample">al_play_sample</a>.</p> |
680 | <p>See·also:·<a·href="audio.html#al_stop_sample">al_stop_sample</a></p> | 730 | <p>See·also:·<a·href="audio.html#al_stop_sample">al_stop_sample</a></p> |
Max diff block lines reached; 115523/123344 bytes (93.66%) of diff not shown. |
Offset 232, 28 lines modified | Offset 232, 38 lines modified | ||
232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. | 232 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once. |
233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* | 233 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SA\x8AM\x8MP\x8PL\x8LE\x8E_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8* |
234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | 234 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
236 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It | 236 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·It |
237 | can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying | 237 | can·be·used·to·later·stop·the·sample·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e.·The·underlying |
238 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. | 238 | ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. |
239 | Examples: | ||
240 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
239 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* | 241 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
240 | bool·al_install_audio(void) | 242 | bool·al_install_audio(void) |
241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
242 | Install·the·audio·subsystem. | 244 | Install·the·audio·subsystem. |
243 | Returns·true·on·success,·false·on·failure. | 245 | Returns·true·on·success,·false·on·failure. |
244 | ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and | 246 | ·····Note:·most·users·will·call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s·and |
245 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this. | 247 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·after·this. |
246 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d, | 248 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d, |
247 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 249 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
250 | Examples: | ||
251 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | ||
252 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
253 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
248 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* | 254 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_a\x8au\x8ud\x8di\x8io\x8o·*\x8**\x8**\x8**\x8**\x8* |
249 | void·al_uninstall_audio(void) | 255 | void·al_uninstall_audio(void) |
250 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 256 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
251 | Uninstalls·the·audio·subsystem. | 257 | Uninstalls·the·audio·subsystem. |
252 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o | 258 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o |
259 | Examples: | ||
260 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
261 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
262 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
253 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* | 263 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8* |
254 | bool·al_is_audio_installed(void) | 264 | bool·al_is_audio_installed(void) |
255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
256 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned | 266 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·was·called·previously·and·returned |
257 | successfully. | 267 | successfully. |
258 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* | 268 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
259 | bool·al_reserve_samples(int·reserve_samples) | 269 | bool·al_reserve_samples(int·reserve_samples) |
Offset 270, 14 lines modified | Offset 280, 18 lines modified | ||
270 | ····································/·sample·instance·2 | 280 | ····································/·sample·instance·2 |
271 | default·voice·<--·default·mixer·<---·········. | 281 | default·voice·<--·default·mixer·<---·········. |
272 | ····································\········. | 282 | ····································\········. |
273 | ······································sample·instance·N | 283 | ······································sample·instance·N |
274 | Returns·true·on·success,·false·on·error.·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·must·have·been·called | 284 | Returns·true·on·success,·false·on·error.·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8a_\x8u_\x8d_\x8i_\x8o·must·have·been·called |
275 | first. | 285 | first. |
276 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e | 286 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e |
287 | Examples: | ||
288 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
289 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
290 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | ||
277 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 291 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
278 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | 292 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, |
279 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 293 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
281 | Plays·a·sample·on·one·of·the·sample·instances·created·by·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s. | 295 | Plays·a·sample·on·one·of·the·sample·instances·created·by·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s. |
282 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the | 296 | Returns·true·on·success,·false·on·failure.·Playback·may·fail·because·all·the |
283 | reserved·sample·instances·are·currently·used. | 297 | reserved·sample·instances·are·currently·used. |
Offset 290, 24 lines modified | Offset 304, 34 lines modified | ||
290 | ······ALLEGRO_PLAYMODE_BIDIR | 304 | ······ALLEGRO_PLAYMODE_BIDIR |
291 | ····*·ret_id·-·if·non-NULL·the·variable·which·this·points·to·will·be·assigned | 305 | ····*·ret_id·-·if·non-NULL·the·variable·which·this·points·to·will·be·assigned |
292 | ······an·id·representing·the·sample·being·played.·If·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·returns | 306 | ······an·id·representing·the·sample·being·played.·If·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·returns |
293 | ······false,·then·the·contents·of·ret_id·are·invalid·and·must·not·be·used·as | 307 | ······false,·then·the·contents·of·ret_id·are·invalid·and·must·not·be·used·as |
294 | ······argument·to·other·functions. | 308 | ······argument·to·other·functions. |
295 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8L_\x8A_\x8Y_\x8M_\x8O_\x8D_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8P_\x8A_\x8N_\x8__\x8N_\x8O_\x8N_\x8E, | 309 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8L_\x8A_\x8Y_\x8M_\x8O_\x8D_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8P_\x8A_\x8N_\x8__\x8N_\x8O_\x8N_\x8E, |
296 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. | 310 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d. |
311 | Examples: | ||
312 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
313 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | ||
314 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c | ||
297 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 315 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
298 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | 316 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) |
299 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 317 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
300 | Stop·the·sample·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e. | 318 | Stop·the·sample·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e. |
301 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s | 319 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s |
320 | Examples: | ||
321 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | ||
322 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | ||
323 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c | ||
302 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* | 324 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
303 | void·al_stop_samples(void) | 325 | void·al_stop_samples(void) |
304 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 326 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
305 | Stop·all·samples·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e. | 327 | Stop·all·samples·started·by·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e. |
306 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e | 328 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e |
329 | Examples: | ||
330 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
307 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* | 331 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* |
308 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 332 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
309 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 333 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
310 | Locks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·returning·the·underlying·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E. | 334 | Locks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·returning·the·underlying·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E. |
311 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as | 335 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such·as |
312 | volume,·pan,·etc)·while·the·sound·is·playing. | 336 | volume,·pan,·etc)·while·the·sound·is·playing. |
313 | This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no | 337 | This·function·will·return·NULL·if·the·sound·corresponding·to·the·id·is·no |
Offset 315, 24 lines modified | Offset 339, 28 lines modified | ||
315 | While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to | 339 | While·locked,·ALLEGRO_SAMPLE_ID·will·be·unavailable·to·additional·calls·to |
316 | _\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·even·if·the·sound·stops·while·locked.·To·put·the | 340 | _\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·even·if·the·sound·stops·while·locked.·To·put·the |
317 | ALLEGRO_SAMPLE_ID·back·into·the·pool·for·reuse,·make·sure·to·call | 341 | ALLEGRO_SAMPLE_ID·back·into·the·pool·for·reuse,·make·sure·to·call |
318 | al_unlock_sample_id·when·you’re·done·with·the·instance. | 342 | al_unlock_sample_id·when·you’re·done·with·the·instance. |
319 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d | 343 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d |
320 | Since:·5.2.3 | 344 | Since:·5.2.3 |
321 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. | 345 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. |
346 | Examples: | ||
347 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
322 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* | 348 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nl\x8lo\x8oc\x8ck\x8k_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8* |
323 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 349 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
324 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 350 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
325 | Unlocks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·allowing·future·calls·to·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·to·reuse | 351 | Unlocks·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D,·allowing·future·calls·to·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e·to·reuse |
326 | it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E | 352 | it·if·possible.·Note·that·after·the·id·is·unlocked,·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8N_\x8S_\x8T_\x8A_\x8N_\x8C_\x8E |
327 | that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a | 353 | that·was·previously·returned·by·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d·will·possibly·be·playing·a |
328 | different·sound,·so·you·should·only·use·it·after·locking·the·id·again. | 354 | different·sound,·so·you·should·only·use·it·after·locking·the·id·again. |
329 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d | 355 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8d |
330 | Since:·5.2.3 | 356 | Since:·5.2.3 |
331 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. | 357 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. |
358 | Examples: | ||
359 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
332 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_s\x8st\x8tr\x8re\x8ea\x8am\x8m·*\x8**\x8**\x8**\x8**\x8* | 360 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pl\x8la\x8ay\x8y_\x8_a\x8au\x8ud\x8di\x8io\x8o_\x8_s\x8st\x8tr\x8re\x8ea\x8am\x8m·*\x8**\x8**\x8**\x8**\x8* |
333 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | 361 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) |
334 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 362 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
335 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed.·This·API | 363 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed.·This·API |
336 | can·only·play·one·audio·stream·at·a·time.·This·requires·a·default·mixer·to·be | 364 | can·only·play·one·audio·stream·at·a·time.·This·requires·a·default·mixer·to·be |
337 | set,·which·is·typically·done·via·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·but·can·also·be·done·via | 365 | set,·which·is·typically·done·via·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s,·but·can·also·be·done·via |
338 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r. | 366 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8m_\x8i_\x8x_\x8e_\x8r. |
Offset 341, 14 lines modified | Offset 369, 16 lines modified | ||
341 | down. | 369 | down. |
342 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·allegro_audio·library·does·not·support·any·audio·file | 370 | ·····N\x8No\x8ot\x8te\x8e:\x8:·the·allegro_audio·library·does·not·support·any·audio·file |
343 | ·····formats·by·default.·You·must·use·the·allegro_acodec·addon,·or | 371 | ·····formats·by·default.·You·must·use·the·allegro_acodec·addon,·or |
344 | ·····register·your·own·format·handler. | 372 | ·····register·your·own·format·handler. |
345 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m | 373 | See·also:·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m |
Max diff block lines reached; 75900/83925 bytes (90.44%) of diff not shown. |
Offset 272, 23 lines modified | Offset 272, 33 lines modified | ||
272 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source | 272 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L480">Source |
273 | Code</a></p> | 273 | Code</a></p> |
274 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 274 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
276 | <p>See·also:·<a | 276 | <p>See·also:·<a |
277 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a | 277 | href="color.html#al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</a>,·<a |
278 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 278 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
279 | <p>Examples:</p> | ||
280 | <ul> | ||
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | ||
283 | </ul> | ||
279 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</h1> | 284 | <h1·id="al_color_cmyk_to_rgb">al_color_cmyk_to_rgb</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="dt">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> | 285 | <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">void</span>·al_color_cmyk_to_rgb<span·class="op">(</span><span·class="dt">float</span>·cyan<span·class="op">,</span>·<span·class="dt">float</span>·magenta<span·class="op">,</span>·<span·class="dt">float</span>·yellow<span·class="op">,</span></span> |
281 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> | 286 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>····<span·class="dt">float</span>·key<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> |
282 | <p><a | 287 | <p><a |
283 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source | 288 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L446">Source |
284 | Code</a></p> | 289 | Code</a></p> |
285 | <p>Convert·CMYK·values·to·RGB·values.</p> | 290 | <p>Convert·CMYK·values·to·RGB·values.</p> |
286 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a | 291 | <p>See·also:·<a·href="color.html#al_color_cmyk">al_color_cmyk</a>,·<a |
287 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> | 292 | href="color.html#al_color_rgb_to_cmyk">al_color_rgb_to_cmyk</a></p> |
293 | <p>Examples:</p> | ||
294 | <ul> | ||
295 | <li><a | ||
296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | ||
297 | </ul> | ||
288 | <h1·id="al_color_hsl">al_color_hsl</h1> | 298 | <h1·id="al_color_hsl">al_color_hsl</h1> |
289 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div> | 299 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsl<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·l<span·class="op">)</span></span></code></pre></div> |
290 | <p><a | 300 | <p><a |
291 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source | 301 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L436">Source |
292 | Code</a></p> | 302 | Code</a></p> |
293 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 303 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
294 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 304 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
Offset 297, 14 lines modified | Offset 307, 23 lines modified | ||
297 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 307 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
298 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 308 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
299 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 309 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
300 | </ul> | 310 | </ul> |
301 | <p>See·also:·<a | 311 | <p>See·also:·<a |
302 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a | 312 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a>,·<a |
303 | href="color.html#al_color_hsv">al_color_hsv</a></p> | 313 | href="color.html#al_color_hsv">al_color_hsv</a></p> |
314 | <p>Examples:</p> | ||
315 | <ul> | ||
316 | <li><a | ||
317 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> | ||
318 | <li><a | ||
319 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> | ||
320 | <li><a | ||
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | ||
322 | </ul> | ||
304 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</h1> | 323 | <h1·id="al_color_hsl_to_rgb">al_color_hsl_to_rgb</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">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span> | 324 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_color_hsl_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·lightness<span·class="op">,</span></span> |
306 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> | 325 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> |
307 | <p><a | 326 | <p><a |
308 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source | 327 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L367">Source |
309 | Code</a></p> | 328 | Code</a></p> |
310 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> | 329 | <p>Convert·values·in·HSL·color·model·to·RGB·color·model.</p> |
Offset 315, 14 lines modified | Offset 334, 21 lines modified | ||
315 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> | 334 | <li>lightness·-·Color·lightness·in·the·range·0..1</li> |
316 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 335 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
317 | </ul> | 336 | </ul> |
318 | <p>See·also:·<a | 337 | <p>See·also:·<a |
319 | href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a | 338 | href="color.html#al_color_rgb_to_hsl">al_color_rgb_to_hsl</a>,·<a |
320 | href="color.html#al_color_hsl">al_color_hsl</a>,·<a | 339 | href="color.html#al_color_hsl">al_color_hsl</a>,·<a |
321 | href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p> | 340 | href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a></p> |
341 | <p>Examples:</p> | ||
342 | <ul> | ||
343 | <li><a | ||
344 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> | ||
345 | <li><a | ||
346 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | ||
347 | </ul> | ||
322 | <h1·id="al_color_hsv">al_color_hsv</h1> | 348 | <h1·id="al_color_hsv">al_color_hsv</h1> |
323 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span></code></pre></div> | 349 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_hsv<span·class="op">(</span><span·class="dt">float</span>·h<span·class="op">,</span>·<span·class="dt">float</span>·s<span·class="op">,</span>·<span·class="dt">float</span>·v<span·class="op">)</span></span></code></pre></div> |
324 | <p><a | 350 | <p><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source | 351 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L339">Source |
326 | Code</a></p> | 352 | Code</a></p> |
327 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> | 353 | <p>Return·an·<a·href="graphics.html#allegro_color">ALLEGRO_COLOR</a> |
328 | structure·from·HSV·(hue,·saturation,·value)·values.</p> | 354 | structure·from·HSV·(hue,·saturation,·value)·values.</p> |
Offset 331, 14 lines modified | Offset 357, 23 lines modified | ||
331 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 357 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
332 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> | 358 | <li>saturation·-·Color·saturation·in·the·range·0..1</li> |
333 | <li>value·-·Color·value·in·the·range·0..1</li> | 359 | <li>value·-·Color·value·in·the·range·0..1</li> |
334 | </ul> | 360 | </ul> |
335 | <p>See·also:·<a | 361 | <p>See·also:·<a |
336 | href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a | 362 | href="color.html#al_color_hsv_to_rgb">al_color_hsv_to_rgb</a>,·<a |
337 | href="color.html#al_color_hsl">al_color_hsl</a></p> | 363 | href="color.html#al_color_hsl">al_color_hsl</a></p> |
364 | <p>Examples:</p> | ||
365 | <ul> | ||
366 | <li><a | ||
367 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L250">ex_font_multiline.cpp</a></li> | ||
368 | <li><a | ||
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | ||
370 | <li><a | ||
371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> | ||
372 | </ul> | ||
338 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> | 373 | <h1·id="al_color_hsv_to_rgb">al_color_hsv_to_rgb</h1> |
339 | <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_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span> | 374 | <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_color_hsv_to_rgb<span·class="op">(</span><span·class="dt">float</span>·hue<span·class="op">,</span>·<span·class="dt">float</span>·saturation<span·class="op">,</span>·<span·class="dt">float</span>·value<span·class="op">,</span></span> |
340 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> | 375 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·<span·class="op">*</span>red<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>green<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>blue<span·class="op">)</span></span></code></pre></div> |
341 | <p><a | 376 | <p><a |
342 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source | 377 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L266">Source |
343 | Code</a></p> | 378 | Code</a></p> |
344 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> | 379 | <p>Convert·values·in·HSV·color·model·to·RGB·color·model.</p> |
Offset 349, 14 lines modified | Offset 384, 19 lines modified | ||
349 | <li>value·-·Color·value·in·the·range·0..1</li> | 384 | <li>value·-·Color·value·in·the·range·0..1</li> |
350 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> | 385 | <li>red,·green,·blue·-·returned·RGB·values·in·the·range·0..1</li> |
351 | </ul> | 386 | </ul> |
352 | <p>See·also:·<a | 387 | <p>See·also:·<a |
353 | href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a | 388 | href="color.html#al_color_rgb_to_hsv">al_color_rgb_to_hsv</a>,·<a |
354 | href="color.html#al_color_hsv">al_color_hsv</a>,·<a | 389 | href="color.html#al_color_hsv">al_color_hsv</a>,·<a |
355 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> | 390 | href="color.html#al_color_hsl_to_rgb">al_color_hsl_to_rgb</a></p> |
391 | <p>Examples:</p> | ||
392 | <ul> | ||
393 | <li><a | ||
394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | ||
395 | </ul> | ||
356 | <h1·id="al_color_html">al_color_html</h1> | 396 | <h1·id="al_color_html">al_color_html</h1> |
357 | <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_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span></code></pre></div> | 397 | <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_COLOR·al_color_html<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">)</span></span></code></pre></div> |
358 | <p><a | 398 | <p><a |
359 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source | 399 | href="https://github.com/liballeg/allegro5/blob/master/addons/color/color.c#L568">Source |
360 | Code</a></p> | 400 | Code</a></p> |
361 | <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The | 401 | <p>Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The |
362 | accepted·format·is·the·same·as·<a | 402 | accepted·format·is·the·same·as·<a |
Offset 404, 25 lines modified | Offset 444, 39 lines modified | ||
404 | </ul> | 444 | </ul> |
405 | <p>Example:</p> | 445 | <p>Example:</p> |
406 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·html<span·class="op">[</span><span·class="dv">8</span><span·class="op">];</span></span> | 446 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·html<span·class="op">[</span><span·class="dv">8</span><span·class="op">];</span></span> |
Max diff block lines reached; 26602/35681 bytes (74.56%) of diff not shown. |
Offset 103, 60 lines modified | Offset 103, 77 lines modified | ||
103 | output·of·the·monitor·will·be·less·than·half). | 103 | output·of·the·monitor·will·be·less·than·half). |
104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 104 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | 105 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
107 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow, | 107 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·CMYK·values·(cyan,·magenta,·yellow, |
108 | black). | 108 | black). |
109 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k | 109 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
110 | Examples: | ||
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 112 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_c\x8cm\x8my\x8yk\x8k_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
111 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | 113 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
112 | ····float·key,·float·*red,·float·*green,·float·*blue) | 114 | ····float·key,·float·*red,·float·*green,·float·*blue) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Convert·CMYK·values·to·RGB·values. | 116 | Convert·CMYK·values·to·RGB·values. |
115 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k | 117 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8c_\x8m_\x8y_\x8k |
118 | Examples: | ||
119 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
116 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 120 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
117 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 121 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values. | 123 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSL·(hue,·saturation,·lightness)·values. |
120 | Parameters: | 124 | Parameters: |
121 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 125 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
122 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 126 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
123 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 127 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
124 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v | 128 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v |
129 | Examples: | ||
130 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
131 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c | ||
132 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | ||
125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sl\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
126 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | 134 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
127 | ···float·*red,·float·*green,·float·*blue) | 135 | ···float·*red,·float·*green,·float·*blue) |
128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
129 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 137 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
130 | Parameters: | 138 | Parameters: |
131 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 139 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
132 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 140 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
133 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 141 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
134 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 142 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
135 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b | 143 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
144 | Examples: | ||
145 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
146 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | ||
136 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* | 147 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* |
137 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 148 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
139 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values. | 150 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·structure·from·HSV·(hue,·saturation,·value)·values. |
140 | Parameters: | 151 | Parameters: |
141 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 152 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
142 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 153 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
143 | ····*·value·-·Color·value·in·the·range·0..1 | 154 | ····*·value·-·Color·value·in·the·range·0..1 |
144 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l | 155 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l |
156 | Examples: | ||
157 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
158 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
159 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
145 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8hs\x8sv\x8v_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
146 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | 161 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
147 | ···float·*red,·float·*green,·float·*blue) | 162 | ···float·*red,·float·*green,·float·*blue) |
148 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
149 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 164 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
150 | Parameters: | 165 | Parameters: |
151 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 166 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
152 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 167 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
153 | ····*·value·-·Color·value·in·the·range·0..1 | 168 | ····*·value·-·Color·value·in·the·range·0..1 |
154 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 169 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
155 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b | 170 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8v,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
171 | Examples: | ||
172 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
156 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 173 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
157 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 174 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
158 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
159 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted | 176 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·accepted |
160 | format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b. | 177 | format·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b. |
161 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could | 178 | Returns·the·interpreted·color,·or·al_map_rgba(0,·0,·0,·0)·if·the·string·could |
162 | not·be·parsed. | 179 | not·be·parsed. |
Offset 185, 20 lines modified | Offset 202, 26 lines modified | ||
185 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result | 202 | ····*·string·-·A·pointer·to·a·buffer·of·at·least·8·bytes,·into·which·the·result |
186 | ······will·be·written·(including·the·NUL·terminator). | 203 | ······will·be·written·(including·the·NUL·terminator). |
187 | Example: | 204 | Example: |
188 | char·html[8]; | 205 | char·html[8]; |
189 | al_color_rgb_to_html(1,·0,·0,·html); | 206 | al_color_rgb_to_html(1,·0,·0,·html); |
190 | Now·html·will·contain·“#ff0000”. | 207 | Now·html·will·contain·“#ff0000”. |
191 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b | 208 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
209 | Examples: | ||
210 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
192 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 211 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
193 | ALLEGRO_COLOR·al_color_name(char·const·*name) | 212 | ALLEGRO_COLOR·al_color_name(char·const·*name) |
194 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
195 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·with·the·given·name.·If·the·color·is·not·found·then | 214 | Return·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R·with·the·given·name.·If·the·color·is·not·found·then |
196 | black·is·returned. | 215 | black·is·returned. |
197 | See·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8n_\x8a_\x8m_\x8e_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b·for·the·list·of·names. | 216 | See·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8n_\x8a_\x8m_\x8e_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b·for·the·list·of·names. |
217 | Examples: | ||
218 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | ||
219 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
220 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c | ||
198 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 221 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_n\x8na\x8am\x8me\x8e_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
199 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | 222 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) |
200 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
201 | Parameters: | 224 | Parameters: |
202 | ····*·name·-·The·(lowercase)·name·of·the·color. | 225 | ····*·name·-·The·(lowercase)·name·of·the·color. |
203 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the | 226 | ····*·r,·g,·b·-·If·one·of·the·recognized·color·names·below·is·passed,·the |
204 | ······corresponding·RGB·values·in·the·range·0..1·are·written. | 227 | ······corresponding·RGB·values·in·the·range·0..1·are·written. |
Offset 243, 34 lines modified | Offset 266, 44 lines modified | ||
243 | C·=·1·-·R | 266 | C·=·1·-·R |
244 | M·=·1·-·G | 267 | M·=·1·-·G |
245 | Y·=·1·-·B | 268 | Y·=·1·-·B |
246 | K·=·0 | 269 | K·=·0 |
247 | This·function·will·instead·find·the·representation·with·the·maximal·value·for·K | 270 | This·function·will·instead·find·the·representation·with·the·maximal·value·for·K |
248 | and·minimal·color·components. | 271 | and·minimal·color·components. |
249 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b | 272 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8c_\x8m_\x8y_\x8k_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b |
273 | Examples: | ||
274 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
250 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 275 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sl\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
251 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, | 276 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, |
252 | ···float·*hue,·float·*saturation,·float·*lightness) | 277 | ···float·*hue,·float·*saturation,·float·*lightness) |
253 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 278 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
254 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue·in | 279 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue·in |
255 | degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. | 280 | degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. |
256 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l | 281 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8s_\x8l |
282 | Examples: | ||
283 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
284 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | ||
257 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* | 285 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_r\x8rg\x8gb\x8b_\x8_t\x8to\x8o_\x8_h\x8hs\x8sv\x8v·*\x8**\x8**\x8**\x8**\x8**\x8* |
258 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, | 286 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, |
259 | ···float·*hue,·float·*saturation,·float·*value) | 287 | ···float·*hue,·float·*saturation,·float·*value) |
Max diff block lines reached; 11297/18251 bytes (61.90%) of diff not shown. |
Offset 258, 36 lines modified | Offset 258, 55 lines modified | ||
258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> | 258 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>al_destroy_config<span·class="op">(</span>cfg<span·class="op">);</span></span></code></pre></div> |
259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> | 259 | <h1·id="allegro_config">ALLEGRO_CONFIG</h1> |
260 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div> | 260 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG·ALLEGRO_CONFIG<span·class="op">;</span></span></code></pre></div> |
261 | <p><a | 261 | <p><a |
262 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source | 262 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L12">Source |
263 | Code</a></p> | 263 | Code</a></p> |
264 | <p>An·abstract·configuration·structure.</p> | 264 | <p>An·abstract·configuration·structure.</p> |
265 | <p>Examples:</p> | ||
266 | <ul> | ||
267 | <li><a | ||
268 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> | ||
269 | <li><a | ||
270 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> | ||
271 | <li><a | ||
272 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> | ||
273 | </ul> | ||
265 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 274 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> |
266 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div> | 275 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span></code></pre></div> |
267 | <p><a | 276 | <p><a |
268 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source | 277 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L16">Source |
269 | Code</a></p> | 278 | Code</a></p> |
270 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a | 279 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a |
271 | configuration·structure.</p> | 280 | configuration·structure.</p> |
272 | <p>See·also:·<a | 281 | <p>See·also:·<a |
273 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, | 282 | href="config.html#al_get_first_config_section">al_get_first_config_section</a>, |
274 | <a | 283 | <a |
275 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> | 284 | href="config.html#al_get_next_config_section">al_get_next_config_section</a></p> |
285 | <p>Examples:</p> | ||
286 | <ul> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> | ||
289 | </ul> | ||
276 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 290 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> |
277 | <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_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div> | 291 | <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_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY<span·class="op">;</span></span></code></pre></div> |
278 | <p><a | 292 | <p><a |
279 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/config.h#L20">Source |
280 | Code</a></p> | 294 | Code</a></p> |
281 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a | 295 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a |
282 | configuration·section.</p> | 296 | configuration·section.</p> |
283 | <p>See·also:·<a | 297 | <p>See·also:·<a |
284 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, | 298 | href="config.html#al_get_first_config_entry">al_get_first_config_entry</a>, |
285 | <a | 299 | <a |
286 | href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> | 300 | href="config.html#al_get_next_config_entry">al_get_next_config_entry</a></p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L29">ex_config.c</a></li> | ||
305 | </ul> | ||
287 | <h1·id="al_create_config">al_create_config</h1> | 306 | <h1·id="al_create_config">al_create_config</h1> |
288 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 307 | <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_CONFIG·<span·class="op">*</span>al_create_config<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
289 | <p><a | 308 | <p><a |
290 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source | 309 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L37">Source |
291 | Code</a></p> | 310 | Code</a></p> |
292 | <p>Create·an·empty·configuration·structure.</p> | 311 | <p>Create·an·empty·configuration·structure.</p> |
293 | <p>See·also:·<a | 312 | <p>See·also:·<a |
Offset 313, 17 lines modified | Offset 332, 17 lines modified | ||
313 | href="config.html#al_create_config">al_create_config</a>,·<a | 332 | href="config.html#al_create_config">al_create_config</a>,·<a |
314 | href="config.html#al_load_config_file">al_load_config_file</a></p> | 333 | href="config.html#al_load_config_file">al_load_config_file</a></p> |
315 | <p>Examples:</p> | 334 | <p>Examples:</p> |
316 | <ul> | 335 | <ul> |
317 | <li><a | 336 | <li><a |
318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li> | 337 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L112">ex_config.c</a></li> |
319 | <li><a | 338 | <li><a |
320 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li> | ||
321 | <li><a | ||
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L122">ex_vsync.c</a></li> | 339 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L122">ex_vsync.c</a></li> |
340 | <li><a | ||
341 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L273">ex_stream_seek.c</a></li> | ||
323 | </ul> | 342 | </ul> |
324 | <h1·id="al_load_config_file">al_load_config_file</h1> | 343 | <h1·id="al_load_config_file">al_load_config_file</h1> |
325 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> | 344 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>filename<span·class="op">)</span></span></code></pre></div> |
326 | <p><a | 345 | <p><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source | 346 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L311">Source |
328 | Code</a></p> | 347 | Code</a></p> |
329 | <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The | 348 | <p>Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The |
Offset 333, 17 lines modified | Offset 352, 17 lines modified | ||
333 | href="config.html#al_load_config_file_f">al_load_config_file_f</a>,·<a | 352 | href="config.html#al_load_config_file_f">al_load_config_file_f</a>,·<a |
334 | href="config.html#al_save_config_file">al_save_config_file</a></p> | 353 | href="config.html#al_save_config_file">al_save_config_file</a></p> |
335 | <p>Examples:</p> | 354 | <p>Examples:</p> |
336 | <ul> | 355 | <ul> |
337 | <li><a | 356 | <li><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li> | 357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L39">ex_config.c</a></li> |
339 | <li><a | 358 | <li><a |
340 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li> | ||
341 | <li><a | ||
342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L102">ex_vsync.c</a></li> | 359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L102">ex_vsync.c</a></li> |
360 | <li><a | ||
361 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L254">ex_stream_seek.c</a></li> | ||
343 | </ul> | 362 | </ul> |
344 | <h1·id="al_load_config_file_f">al_load_config_file_f</h1> | 363 | <h1·id="al_load_config_file_f">al_load_config_file_f</h1> |
345 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div> | 364 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_CONFIG·<span·class="op">*</span>al_load_config_file_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>file<span·class="op">)</span></span></code></pre></div> |
346 | <p><a | 365 | <p><a |
347 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source | 366 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L328">Source |
348 | Code</a></p> | 367 | Code</a></p> |
349 | <p>Read·a·configuration·file·from·an·already·open·file.</p> | 368 | <p>Read·a·configuration·file·from·an·already·open·file.</p> |
Offset 429, 17 lines modified | Offset 448, 17 lines modified | ||
429 | <p>See·also:·<a | 448 | <p>See·also:·<a |
430 | href="config.html#al_set_config_value">al_set_config_value</a></p> | 449 | href="config.html#al_set_config_value">al_set_config_value</a></p> |
431 | <p>Examples:</p> | 450 | <p>Examples:</p> |
432 | <ul> | 451 | <ul> |
433 | <li><a | 452 | <li><a |
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li> | 453 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L44">ex_config.c</a></li> |
435 | <li><a | 454 | <li><a |
436 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li> | ||
437 | <li><a | ||
438 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L18">ex_vsync.c</a></li> | 455 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L18">ex_vsync.c</a></li> |
456 | <li><a | ||
457 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L256">ex_stream_seek.c</a></li> | ||
439 | </ul> | 458 | </ul> |
440 | <h1·id="al_set_config_value">al_set_config_value</h1> | 459 | <h1·id="al_set_config_value">al_set_config_value</h1> |
441 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span> | 460 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_config_value<span·class="op">(</span>ALLEGRO_CONFIG·<span·class="op">*</span>config<span·class="op">,</span></span> |
442 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div> | 461 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>section<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>key<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>value<span·class="op">)</span></span></code></pre></div> |
443 | <p><a | 462 | <p><a |
444 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source | 463 | href="https://github.com/liballeg/allegro5/blob/master/src/config.c#L164">Source |
445 | Code</a></p> | 464 | Code</a></p> |
Offset 454, 15 lines modified | Offset 473, 15 lines modified | ||
454 | <p>See·also:·<a | 473 | <p>See·also:·<a |
455 | href="config.html#al_get_config_value">al_get_config_value</a></p> | 474 | href="config.html#al_get_config_value">al_get_config_value</a></p> |
456 | <p>Examples:</p> | 475 | <p>Examples:</p> |
457 | <ul> | 476 | <ul> |
458 | <li><a | 477 | <li><a |
459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L54">ex_config.c</a></li> | 478 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L54">ex_config.c</a></li> |
460 | <li><a | 479 | <li><a |
461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 480 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize2.c#L35">ex_resize2.c</a></li> |
462 | <li><a | 481 | <li><a |
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L22">ex_vsync.c</a></li> | 482 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L22">ex_vsync.c</a></li> |
464 | </ul> | 483 | </ul> |
Max diff block lines reached; 1148/9201 bytes (12.48%) of diff not shown. |
Offset 103, 26 lines modified | Offset 103, 34 lines modified | ||
103 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 | 103 | printf("%s\n",·al_get_config_value(cfg,·"weapon·1",·"damage"));·/*·Prints:·503 |
104 | */ | 104 | */ |
105 | al_destroy_config(cfg); | 105 | al_destroy_config(cfg); |
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* | 106 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | 107 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | An·abstract·configuration·structure. | 109 | An·abstract·configuration·structure. |
110 | Examples: | ||
111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
112 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | ||
113 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
110 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8* | 114 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_S\x8SE\x8EC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8**\x8* |
111 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 115 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
113 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration | 117 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration |
114 | structure. | 118 | structure. |
115 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n | 119 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n |
120 | Examples: | ||
121 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
116 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8NF\x8FI\x8IG\x8G_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* |
117 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 123 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 125 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
120 | section. | 126 | section. |
121 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | 127 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8e_\x8n_\x8t_\x8r_\x8y |
128 | Examples: | ||
129 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | ||
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* | 130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | ALLEGRO_CONFIG·*al_create_config(void) | 131 | ALLEGRO_CONFIG·*al_create_config(void) |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Create·an·empty·configuration·structure. | 133 | Create·an·empty·configuration·structure. |
126 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g | 134 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g |
127 | Examples: | 135 | Examples: |
128 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 136 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
Offset 132, 26 lines modified | Offset 140, 26 lines modified | ||
132 | void·al_destroy_config(ALLEGRO_CONFIG·*config) | 140 | void·al_destroy_config(ALLEGRO_CONFIG·*config) |
133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
134 | Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed | 142 | Free·the·resources·used·by·a·configuration·structure.·Does·nothing·if·passed |
135 | NULL. | 143 | NULL. |
136 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 144 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
137 | Examples: | 145 | Examples: |
138 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 146 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
139 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
140 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 147 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
148 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 149 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
142 | ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename) | 150 | ALLEGRO_CONFIG·*al_load_config_file(const·char·*filename) |
143 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 151 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
144 | Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration | 152 | Read·a·configuration·file·from·disk.·Returns·NULL·on·error.·The·configuration |
145 | structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g. | 153 | structure·should·be·destroyed·with·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g. |
146 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 154 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
147 | Examples: | 155 | Examples: |
148 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 156 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
149 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
150 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 157 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
158 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
151 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* | 159 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8e_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* |
152 | ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file) | 160 | ALLEGRO_CONFIG·*al_load_config_file_f(ALLEGRO_FILE·*file) |
153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 161 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
154 | Read·a·configuration·file·from·an·already·open·file. | 162 | Read·a·configuration·file·from·an·already·open·file. |
155 | Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with | 163 | Returns·NULL·on·error.·The·configuration·structure·should·be·destroyed·with |
156 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards. | 164 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g.·The·file·remains·open·afterwards. |
157 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e | 165 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e |
Offset 201, 31 lines modified | Offset 209, 31 lines modified | ||
201 | Gets·a·pointer·to·an·internal·character·buffer·that·will·only·remain·valid·as | 209 | Gets·a·pointer·to·an·internal·character·buffer·that·will·only·remain·valid·as |
202 | long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you | 210 | long·as·the·ALLEGRO_CONFIG·structure·is·not·destroyed.·Copy·the·value·if·you |
203 | need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL | 211 | need·a·copy.·The·section·can·be·NULL·or·“”·for·the·global·section.·Returns·NULL |
204 | if·the·section·or·key·do·not·exist. | 212 | if·the·section·or·key·do·not·exist. |
205 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e | 213 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e |
206 | Examples: | 214 | Examples: |
207 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 215 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
208 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
209 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 216 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
217 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | ||
210 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 218 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
211 | void·al_set_config_value(ALLEGRO_CONFIG·*config, | 219 | void·al_set_config_value(ALLEGRO_CONFIG·*config, |
212 | ···const·char·*section,·const·char·*key,·const·char·*value) | 220 | ···const·char·*section,·const·char·*key,·const·char·*value) |
213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 221 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
214 | Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist, | 222 | Set·a·value·in·a·section·of·a·configuration.·If·the·section·doesn’t·yet·exist, |
215 | it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be | 223 | it·will·be·created.·If·a·value·already·existed·for·the·given·key,·it·will·be |
216 | overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section. | 224 | overwritten.·The·section·can·be·NULL·or·“”·for·the·global·section. |
217 | For·consistency·with·the·on-disk·format·of·config·files,·any·leading·and | 225 | For·consistency·with·the·on-disk·format·of·config·files,·any·leading·and |
218 | trailing·whitespace·will·be·stripped·from·the·value.·If·you·have·significant | 226 | trailing·whitespace·will·be·stripped·from·the·value.·If·you·have·significant |
219 | whitespace·you·wish·to·preserve,·you·should·add·your·own·quote·characters·and | 227 | whitespace·you·wish·to·preserve,·you·should·add·your·own·quote·characters·and |
220 | remove·them·when·reading·the·values·back·in. | 228 | remove·them·when·reading·the·values·back·in. |
221 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e | 229 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e |
222 | Examples: | 230 | Examples: |
223 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 231 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
224 | ····*·_\x8e_\x8x_\x8__\x8 | 232 | ····*·_\x8e_\x8x_\x8__\x8r_.e_.s_.i_.z_.e_.2_\x8._\x8c |
225 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 233 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
226 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_k\x8ke\x8ey\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 234 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_k\x8ke\x8ey\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
227 | bool·al_remove_config_key(ALLEGRO_CONFIG·*config,·char·const·*section, | 235 | bool·al_remove_config_key(ALLEGRO_CONFIG·*config,·char·const·*section, |
228 | ···char·const·*key) | 236 | ···char·const·*key) |
229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 237 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
230 | Remove·a·key·and·its·associated·value·in·a·section·of·a·configuration. | 238 | Remove·a·key·and·its·associated·value·in·a·section·of·a·configuration. |
231 | Returns·true·if·the·entry·was·removed,·or·false·if·the·entry·did·not·exist. | 239 | Returns·true·if·the·entry·was·removed,·or·false·if·the·entry·did·not·exist. |
Offset 285, 8 lines modified | Offset 293, 7 lines modified | ||
285 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8me\x8er\x8rg\x8ge\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_i\x8in\x8nt\x8to\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 293 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8me\x8er\x8rg\x8ge\x8e_\x8_c\x8co\x8on\x8nf\x8fi\x8ig\x8g_\x8_i\x8in\x8nt\x8to\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
286 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) | 294 | void·al_merge_config_into(ALLEGRO_CONFIG·*master,·const·ALLEGRO_CONFIG·*add) |
287 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 295 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
288 | Merge·one·configuration·structure·into·another.·Values·in·configuration·‘add’ | 296 | Merge·one·configuration·structure·into·another.·Values·in·configuration·‘add’ |
289 | override·those·in·‘master’.·‘master’·is·modified.·Comments·from·‘add’·are·not | 297 | override·those·in·‘master’.·‘master’·is·modified.·Comments·from·‘add’·are·not |
290 | retained. | 298 | retained. |
291 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8e_\x8r_\x8g_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g | 299 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8e_\x8r_\x8g_\x8e_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g |
292 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 201, 14 lines modified | Offset 201, 19 lines modified | ||
201 | <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>LPDIRECT3DDEVICE9·al_get_d3d_device<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 201 | <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>LPDIRECT3DDEVICE9·al_get_d3d_device<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
202 | <p><a | 202 | <p><a |
203 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2570">Source | 203 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2570">Source |
204 | Code</a></p> | 204 | Code</a></p> |
205 | <p>Returns·the·Direct3D·device·of·the·display.·The·return·value·is | 205 | <p>Returns·the·Direct3D·device·of·the·display.·The·return·value·is |
206 | undefined·if·the·display·was·not·created·with·the·Direct3D·flag.</p> | 206 | undefined·if·the·display·was·not·created·with·the·Direct3D·flag.</p> |
207 | <p><em>Returns:</em>·A·pointer·to·the·Direct3D·device.</p> | 207 | <p><em>Returns:</em>·A·pointer·to·the·Direct3D·device.</p> |
208 | <p>Examples:</p> | ||
209 | <ul> | ||
210 | <li><a | ||
211 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L44">ex_d3d.cpp</a></li> | ||
212 | </ul> | ||
208 | <h1·id="al_get_d3d_system_texture">al_get_d3d_system_texture</h1> | 213 | <h1·id="al_get_d3d_system_texture">al_get_d3d_system_texture</h1> |
209 | <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>LPDIRECT3DTEXTURE9·al_get_d3d_system_texture<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> | 214 | <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>LPDIRECT3DTEXTURE9·al_get_d3d_system_texture<span·class="op">(</span>ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">)</span></span></code></pre></div> |
210 | <p><a | 215 | <p><a |
211 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2578">Source | 216 | href="https://github.com/liballeg/allegro5/blob/master/src/win/d3d_disp.cpp#L2578">Source |
212 | Code</a></p> | 217 | Code</a></p> |
213 | <p>Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags). | 218 | <p>Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags). |
214 | This·texture·is·used·for·the·render-to-texture·feature·set.</p> | 219 | This·texture·is·used·for·the·render-to-texture·feature·set.</p> |
Offset 57, 14 lines modified | Offset 57, 16 lines modified | ||
57 | ·#include·<allegro5/allegro_direct3d.h> | 57 | ·#include·<allegro5/allegro_direct3d.h> |
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_d\x8de\x8ev\x8vi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_d\x8de\x8ev\x8vi\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | LPDIRECT3DDEVICE9·al_get_d3d_device(ALLEGRO_DISPLAY·*display) | 59 | LPDIRECT3DDEVICE9·al_get_d3d_device(ALLEGRO_DISPLAY·*display) |
60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
61 | Returns·the·Direct3D·device·of·the·display.·The·return·value·is·undefined·if | 61 | Returns·the·Direct3D·device·of·the·display.·The·return·value·is·undefined·if |
62 | the·display·was·not·created·with·the·Direct3D·flag. | 62 | the·display·was·not·created·with·the·Direct3D·flag. |
63 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·device. | 63 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·device. |
64 | Examples: | ||
65 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 66 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
65 | LPDIRECT3DTEXTURE9·al_get_d3d_system_texture(ALLEGRO_BITMAP·*bitmap) | 67 | LPDIRECT3DTEXTURE9·al_get_d3d_system_texture(ALLEGRO_BITMAP·*bitmap) |
66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
67 | Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags).·This | 69 | Returns·the·system·texture·(stored·with·the·D3DPOOL_SYSTEMMEM·flags).·This |
68 | texture·is·used·for·the·render-to-texture·feature·set. | 70 | texture·is·used·for·the·render-to-texture·feature·set. |
69 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·system·texture. | 71 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·Direct3D·system·texture. |
70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 72 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8d3\x83d\x8d_\x8_v\x8vi\x8id\x8de\x8eo\x8o_\x8_t\x8te\x8ex\x8xt\x8tu\x8ur\x8re\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 345, 14 lines modified | Offset 345, 23 lines modified | ||
345 | <h1·id="display-creation">Display·creation</h1> | 345 | <h1·id="display-creation">Display·creation</h1> |
346 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> | 346 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> |
347 | <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_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div> | 347 | <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_DISPLAY·ALLEGRO_DISPLAY<span·class="op">;</span></span></code></pre></div> |
348 | <p><a | 348 | <p><a |
349 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source | 349 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source |
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> | ||
353 | <ul> | ||
354 | <li><a | ||
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | ||
356 | <li><a | ||
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L24">ex_d3d.cpp</a></li> | ||
358 | <li><a | ||
359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L12">ex_keyboard_focus.c</a></li> | ||
360 | </ul> | ||
352 | <h2·id="al_create_display">al_create_display</h2> | 361 | <h2·id="al_create_display">al_create_display</h2> |
353 | <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> |
354 | <p><a | 363 | <p><a |
355 | 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 |
356 | Code</a></p> | 365 | Code</a></p> |
357 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The | 366 | <p>Create·a·display,·or·window,·with·the·specified·dimensions.·The |
358 | parameters·of·the·display·are·determined·by·the·last·calls·to | 367 | parameters·of·the·display·are·determined·by·the·last·calls·to |
Offset 375, 19 lines modified | Offset 384, 19 lines modified | ||
375 | <a | 384 | <a |
376 | href="display.html#al_set_new_window_title">al_set_new_window_title</a> | 385 | href="display.html#al_set_new_window_title">al_set_new_window_title</a> |
377 | <a | 386 | <a |
378 | href="display.html#al_set_window_position">al_set_window_position</a></p> | 387 | href="display.html#al_set_window_position">al_set_window_position</a></p> |
379 | <p>Examples:</p> | 388 | <p>Examples:</p> |
380 | <ul> | 389 | <ul> |
381 | <li><a | 390 | <li><a |
382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L177">ex_audio_props.cpp</a></li> | ||
383 | <li><a | ||
384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li> | 391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L37">ex_d3d.cpp</a></li> |
385 | <li><a | 392 | <li><a |
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li> | 393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L43">ex_keyboard_focus.c</a></li> |
394 | <li><a | ||
395 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L48">ex_mouse_focus.c</a></li> | ||
387 | </ul> | 396 | </ul> |
388 | <h2·id="al_destroy_display">al_destroy_display</h2> | 397 | <h2·id="al_destroy_display">al_destroy_display</h2> |
389 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 398 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_display<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
390 | <p><a | 399 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source | 400 | href="https://github.com/liballeg/allegro5/blob/master/src/display.c#L142">Source |
392 | Code</a></p> | 401 | Code</a></p> |
393 | <p>Destroy·a·display.</p> | 402 | <p>Destroy·a·display.</p> |
Offset 400, 17 lines modified | Offset 409, 17 lines modified | ||
400 | <p>See·also:·<a | 409 | <p>See·also:·<a |
401 | href="graphics.html#al_set_target_bitmap">al_set_target_bitmap</a></p> | 410 | href="graphics.html#al_set_target_bitmap">al_set_target_bitmap</a></p> |
402 | <p>Examples:</p> | 411 | <p>Examples:</p> |
403 | <ul> | 412 | <ul> |
404 | <li><a | 413 | <li><a |
405 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L115">ex_d3d.cpp</a></li> | 414 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L115">ex_d3d.cpp</a></li> |
406 | <li><a | 415 | <li><a |
407 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L171">ex_blend_bench.c</a></li> | ||
408 | <li><a | ||
409 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L51">ex_mouse_focus.c</a></li> | 416 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L51">ex_mouse_focus.c</a></li> |
417 | <li><a | ||
418 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L173">ex_opengl.c</a></li> | ||
410 | </ul> | 419 | </ul> |
411 | <h2·id="al_get_new_display_flags">al_get_new_display_flags</h2> | 420 | <h2·id="al_get_new_display_flags">al_get_new_display_flags</h2> |
412 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_flags<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 421 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_flags<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
413 | <p><a | 422 | <p><a |
414 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L253">Source | 423 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L253">Source |
415 | Code</a></p> | 424 | Code</a></p> |
416 | <p>Get·the·display·flags·to·be·used·when·creating·new·displays·on·the | 425 | <p>Get·the·display·flags·to·be·used·when·creating·new·displays·on·the |
Offset 564, 14 lines modified | Offset 573, 23 lines modified | ||
564 | </dl> | 573 | </dl> |
565 | <p>0·can·be·used·for·default·values.</p> | 574 | <p>0·can·be·used·for·default·values.</p> |
566 | <p>See·also:·<a | 575 | <p>See·also:·<a |
567 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>, | 576 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>, |
568 | <a·href="display.html#al_get_display_option">al_get_display_option</a>, | 577 | <a·href="display.html#al_get_display_option">al_get_display_option</a>, |
569 | <a | 578 | <a |
570 | href="display.html#al_set_display_option">al_set_display_option</a></p> | 579 | href="display.html#al_set_display_option">al_set_display_option</a></p> |
580 | <p>Examples:</p> | ||
581 | <ul> | ||
582 | <li><a | ||
583 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L35">ex_d3d.cpp</a></li> | ||
584 | <li><a | ||
585 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L138">ex_opengl.c</a></li> | ||
586 | <li><a | ||
587 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L55">ex_opengl_pixel_shader.c</a></li> | ||
588 | </ul> | ||
571 | <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> |
572 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_option<span·class="op">(</span><span·class="dt">int</span>·option<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">*</span>importance<span·class="op">)</span></span></code></pre></div> | 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> |
573 | <p><a | 591 | <p><a |
574 | 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 |
575 | Code</a></p> | 593 | Code</a></p> |
576 | <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 |
577 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>.</p> | 595 | href="display.html#al_set_new_display_option">al_set_new_display_option</a>.</p> |
Offset 775, 15 lines modified | Offset 793, 15 lines modified | ||
775 | <p>Examples:</p> | 793 | <p>Examples:</p> |
776 | <ul> | 794 | <ul> |
777 | <li><a | 795 | <li><a |
778 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li> | 796 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L36">ex_d3d.cpp</a></li> |
779 | <li><a | 797 | <li><a |
780 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L216">ex_glext.c</a></li> | 798 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_glext.c#L216">ex_glext.c</a></li> |
781 | <li><a | 799 | <li><a |
782 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 800 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_expose.c#L29">ex_expose.c</a></li> |
783 | </ul> | 801 | </ul> |
784 | <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2> | 802 | <h2·id="al_reset_new_display_options">al_reset_new_display_options</h2> |
785 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 803 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_reset_new_display_options<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
786 | <p><a | 804 | <p><a |
787 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source | 805 | href="https://github.com/liballeg/allegro5/blob/master/src/display_settings.c#L104">Source |
788 | Code</a></p> | 806 | Code</a></p> |
789 | <p>This·undoes·any·previous·call·to·<a | 807 | <p>This·undoes·any·previous·call·to·<a |
Offset 806, 14 lines modified | Offset 824, 19 lines modified | ||
806 | <p>Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created | 824 | <p>Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created |
807 | windows·(non-fullscreen)·will·be·on·screen,·for·displays·created·by·the | 825 | windows·(non-fullscreen)·will·be·on·screen,·for·displays·created·by·the |
808 | calling·thread.·Negative·values·are·allowed·on·some·multihead | 826 | calling·thread.·Negative·values·are·allowed·on·some·multihead |
809 | systems.</p> | 827 | systems.</p> |
810 | <p>To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX).</p> | 828 | <p>To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX).</p> |
811 | <p>See·also:·<a | 829 | <p>See·also:·<a |
812 | href="display.html#al_get_new_window_position">al_get_new_window_position</a></p> | 830 | href="display.html#al_get_new_window_position">al_get_new_window_position</a></p> |
831 | <p>Examples:</p> | ||
832 | <ul> | ||
833 | <li><a | ||
834 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L61">ex_windows.c</a></li> | ||
835 | </ul> | ||
813 | <h2 | 836 | <h2 |
814 | id="al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</h2> | 837 | id="al_get_new_display_refresh_rate">al_get_new_display_refresh_rate</h2> |
815 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_refresh_rate<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 838 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_new_display_refresh_rate<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
816 | <p><a | 839 | <p><a |
817 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L279">Source | 840 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L279">Source |
818 | Code</a></p> | 841 | Code</a></p> |
819 | <p>Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays | 842 | <p>Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays |
Offset 832, 14 lines modified | Offset 855, 19 lines modified | ||
832 | list·of·modes·with·refresh·rates·can·be·found·with·<a | 855 | list·of·modes·with·refresh·rates·can·be·found·with·<a |
Max diff block lines reached; 23615/31416 bytes (75.17%) of diff not shown. |
Offset 128, 14 lines modified | Offset 128, 18 lines modified | ||
128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that | 128 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that |
129 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. | 129 | displays·will·also·inform·you·about·important·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·via·their·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s. |
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: | ||
136 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
137 | ····*·_\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 | ||
135 | *\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* |
136 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) | 140 | ALLEGRO_DISPLAY·*al_create_display(int·w,·int·h) |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | 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 |
139 | 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 |
140 | 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 |
141 | 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 143, 32 lines modified | Offset 147, 32 lines modified | ||
143 | Each·display·that·uses·OpenGL·as·a·backend·has·a·distinct·OpenGL·rendering | 147 | Each·display·that·uses·OpenGL·as·a·backend·has·a·distinct·OpenGL·rendering |
144 | context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about | 148 | context·associated·with·it.·See·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p·for·the·discussion·about |
145 | rendering·contexts. | 149 | rendering·contexts. |
146 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, | 150 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, |
147 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r, | 151 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r, |
148 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n | 152 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n |
149 | Examples: | 153 | Examples: |
150 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
151 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 154 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
152 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 155 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
156 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
153 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* | 157 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y·*\x8**\x8**\x8**\x8**\x8* |
154 | void·al_destroy_display(ALLEGRO_DISPLAY·*display) | 158 | void·al_destroy_display(ALLEGRO_DISPLAY·*display) |
155 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 159 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
156 | Destroy·a·display. | 160 | Destroy·a·display. |
157 | If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it | 161 | If·the·target·bitmap·of·the·calling·thread·is·tied·to·the·display,·then·it |
158 | implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is | 162 | implies·a·call·to·“al_set_target_bitmap(NULL);”·before·the·display·is |
159 | destroyed. | 163 | destroyed. |
160 | That·special·case·notwithstanding,·you·should·make·sure·no·threads·are | 164 | That·special·case·notwithstanding,·you·should·make·sure·no·threads·are |
161 | currently·targeting·a·bitmap·which·is·tied·to·the·display·before·you·destroy | 165 | currently·targeting·a·bitmap·which·is·tied·to·the·display·before·you·destroy |
162 | it. | 166 | it. |
163 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 167 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
164 | Examples: | 168 | Examples: |
165 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 169 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
166 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
167 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 170 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
171 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
168 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* | 172 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* |
169 | int·al_get_new_display_flags(void) | 173 | int·al_get_new_display_flags(void) |
170 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 174 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
171 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the·calling | 175 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the·calling |
172 | thread. | 176 | thread. |
173 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g | 177 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g |
174 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* | 178 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_f\x8fl\x8la\x8ag\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8* |
Offset 263, 14 lines modified | Offset 267, 18 lines modified | ||
263 | ······the·display. | 267 | ······the·display. |
264 | ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently | 268 | ···········_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently |
265 | ···········only·works·for·the·X11·backend. | 269 | ···········only·works·for·the·X11·backend. |
266 | ······Since:·5.2.9 | 270 | ······Since:·5.2.9 |
267 | 0·can·be·used·for·default·values. | 271 | 0·can·be·used·for·default·values. |
268 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n, | 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, |
269 | _\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: | ||
275 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
276 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
277 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
270 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 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* |
271 | int·al_get_new_display_option(int·option,·int·*importance) | 279 | int·al_get_new_display_option(int·option,·int·*importance) |
272 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
273 | Retrieve·an·extra·display·setting·which·was·previously·set·with | 281 | Retrieve·an·extra·display·setting·which·was·previously·set·with |
274 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n. | 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. |
275 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 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* |
276 | 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 388, 15 lines modified | Offset 396, 15 lines modified | ||
388 | ······Specify·the·shader·platform·to·use·for·the·default·shader.·See | 396 | ······Specify·the·shader·platform·to·use·for·the·default·shader.·See |
389 | ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO. | 397 | ······_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M.·The·default·is·ALLEGRO_SHADER_AUTO. |
390 | ······Since:·5.2.8 | 398 | ······Since:·5.2.8 |
391 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n | 399 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n |
392 | Examples: | 400 | Examples: |
393 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 401 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
394 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c | 402 | ····*·_\x8e_\x8x_\x8__\x8g_\x8l_\x8e_\x8x_\x8t_\x8._\x8c |
395 | ····*·_\x8e_\x8x_\x8__\x8 | 403 | ····*·_\x8e_\x8x_\x8__\x8e_.x_.p_.o_.s_.e_\x8._\x8c |
396 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* | 404 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_o\x8op\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* |
397 | void·al_reset_new_display_options(void) | 405 | void·al_reset_new_display_options(void) |
398 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 406 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
399 | This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling | 407 | This·undoes·any·previous·call·to·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n·on·the·calling |
400 | thread. | 408 | thread. |
401 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 409 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_p\x8po\x8os\x8si\x8it\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
402 | void·al_get_new_window_position(int·*x,·int·*y) | 410 | void·al_get_new_window_position(int·*x,·int·*y) |
Offset 408, 14 lines modified | Offset 416, 16 lines modified | ||
408 | void·al_set_new_window_position(int·x,·int·y) | 416 | void·al_set_new_window_position(int·x,·int·y) |
409 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 417 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
410 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created·windows·(non- | 418 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created·windows·(non- |
411 | fullscreen)·will·be·on·screen,·for·displays·created·by·the·calling·thread. | 419 | fullscreen)·will·be·on·screen,·for·displays·created·by·the·calling·thread. |
412 | Negative·values·are·allowed·on·some·multihead·systems. | 420 | Negative·values·are·allowed·on·some·multihead·systems. |
413 | To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX). | 421 | To·reset·to·the·default·behaviour,·pass·(INT_MAX,·INT_MAX). |
414 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n | 422 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n |
423 | Examples: | ||
424 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
415 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* | 425 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* |
416 | int·al_get_new_display_refresh_rate(void) | 426 | int·al_get_new_display_refresh_rate(void) |
417 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 427 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
418 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on·the | 428 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on·the |
419 | calling·thread. | 429 | calling·thread. |
420 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 430 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
421 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* | 431 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8* |
Offset 423, 14 lines modified | Offset 433, 16 lines modified | ||
423 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 433 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
424 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling·thread. | 434 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling·thread. |
425 | If·the·refresh·rate·is·not·available,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·fail.·A·list·of | 435 | If·the·refresh·rate·is·not·available,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y·will·fail.·A·list·of |
426 | modes·with·refresh·rates·can·be·found·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and | 436 | modes·with·refresh·rates·can·be·found·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and |
427 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e. | 437 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e. |
428 | The·default·setting·is·zero·(don’t·care). | 438 | The·default·setting·is·zero·(don’t·care). |
429 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 439 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
440 | Examples: | ||
441 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | ||
430 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 442 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_a\x8ad\x8da\x8ap\x8pt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
431 | int·al_get_new_display_adapter(void) | 443 | int·al_get_new_display_adapter(void) |
432 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 444 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
433 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling | 445 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the·calling |
434 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns | 446 | thread,·if·previously·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r.·Otherwise·returns |
435 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. | 447 | ALLEGRO_DEFAULT_DISPLAY_ADAPTER. |
436 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r | 448 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r |
Offset 438, 24 lines modified | Offset 450, 28 lines modified | ||
438 | void·al_set_new_display_adapter(int·adapter) | 450 | void·al_set_new_display_adapter(int·adapter) |
439 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 451 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
440 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The | 452 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread.·The |
441 | adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be | 453 | adapter·has·a·monitor·attached·to·it.·Information·about·the·monitor·can·be |
Max diff block lines reached; 15449/23704 bytes (65.17%) of diff not shown. |
Offset 344, 14 lines modified | Offset 344, 23 lines modified | ||
344 | type-specific·fields.·The·<code>any.source</code>·field·tells·you·which | 344 | type-specific·fields.·The·<code>any.source</code>·field·tells·you·which |
345 | event·source·generated·that·particular·event.·The | 345 | event·source·generated·that·particular·event.·The |
346 | <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated. | 346 | <code>any.timestamp</code>·field·tells·you·when·the·event·was·generated. |
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> | ||
352 | <ul> | ||
353 | <li><a | ||
354 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | ||
355 | <li><a | ||
356 | 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> | ||
351 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> | 360 | <h2·id="allegro_event_joystick_axis">ALLEGRO_EVENT_JOYSTICK_AXIS</h2> |
352 | <p>A·joystick·axis·value·changed.</p> | 361 | <p>A·joystick·axis·value·changed.</p> |
353 | <dl> | 362 | <dl> |
354 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> | 363 | <dt>joystick.id·(ALLEGRO_JOYSTICK·*)</dt> |
355 | <dd> | 364 | <dd> |
356 | 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 |
357 | event·source·<code>joystick.source</code>. | 366 | event·source·<code>joystick.source</code>. |
Offset 1049, 40 lines modified | Offset 1058, 63 lines modified | ||
1049 | Please·see·the·documentation·for·<a | 1058 | Please·see·the·documentation·for·<a |
1050 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for | 1059 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>·for |
1051 | the·rules·you·should·follow·when·assigning·identifiers.</p> | 1060 | the·rules·you·should·follow·when·assigning·identifiers.</p> |
1052 | <p>See·also:·<a | 1061 | <p>See·also:·<a |
1053 | href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a | 1062 | href="events.html#al_emit_user_event">al_emit_user_event</a>,·<a |
1054 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a | 1063 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a |
1055 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> | 1064 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> |
1065 | <p>Examples:</p> | ||
1066 | <ul> | ||
1067 | <li><a | ||
1068 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> | ||
1069 | </ul> | ||
1056 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> | 1070 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> |
1057 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE<span·class="op">;</span></span></code></pre></div> | 1071 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE<span·class="op">;</span></span></code></pre></div> |
1058 | <p><a | 1072 | <p><a |
1059 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source | 1073 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source |
1060 | Code</a></p> | 1074 | Code</a></p> |
1061 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources | 1075 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources |
1062 | that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they | 1076 | that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they |
1063 | are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out) | 1077 | are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out) |
1064 | order.</p> | 1078 | order.</p> |
1065 | <p>See·also:·<a | 1079 | <p>See·also:·<a |
1066 | 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 |
1067 | 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> | ||
1083 | <ul> | ||
1084 | <li><a | ||
1085 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> | ||
1086 | <li><a | ||
1087 | 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> | ||
1068 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 1091 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
1069 | <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> |
1070 | <p><a | 1093 | <p><a |
1071 | 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 |
1072 | Code</a></p> | 1095 | Code</a></p> |
1073 | <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, |
1074 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 1097 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
1075 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a | 1098 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a |
1076 | href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> | 1099 | href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> |
1077 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom | 1100 | <p>You·may·create·your·own·“user”·event·sources·that·emit·custom |
1078 | events.</p> | 1101 | events.</p> |
1079 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a | 1102 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
1080 | href="events.html#al_init_user_event_source">al_init_user_event_source</a>, | 1103 | href="events.html#al_init_user_event_source">al_init_user_event_source</a>, |
1081 | <a·href="events.html#al_emit_user_event">al_emit_user_event</a></p> | 1104 | <a·href="events.html#al_emit_user_event">al_emit_user_event</a></p> |
1105 | <p>Examples:</p> | ||
1106 | <ul> | ||
1107 | <li><a | ||
1108 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | ||
1109 | <li><a | ||
1110 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> | ||
1111 | <li><a | ||
1112 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> | ||
1113 | </ul> | ||
1082 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> | 1114 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> |
1083 | <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="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE<span·class="op">;</span></span></code></pre></div> | 1115 | <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="kw">typedef</span>·<span·class="dt">unsigned</span>·<span·class="dt">int</span>·ALLEGRO_EVENT_TYPE<span·class="op">;</span></span></code></pre></div> |
1084 | <p><a | 1116 | <p><a |
1085 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source | 1117 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source |
1086 | Code</a></p> | 1118 | Code</a></p> |
1087 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> | 1119 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> |
1088 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a | 1120 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
Offset 1092, 15 lines modified | Offset 1124, 20 lines modified | ||
1092 | <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="pp">#define·ALLEGRO_GET_EVENT_TYPE</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span><span·class="pp">···AL_ID</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span></span></code></pre></div> | 1124 | <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="pp">#define·ALLEGRO_GET_EVENT_TYPE</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span><span·class="pp">···AL_ID</span><span·class="op">(</span><span·class="pp">a</span><span·class="op">,</span><span·class="pp">·b</span><span·class="op">,</span><span·class="pp">·c</span><span·class="op">,</span><span·class="pp">·d</span><span·class="op">)</span></span></code></pre></div> |
1093 | <p><a | 1125 | <p><a |
1094 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source | 1126 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source |
1095 | Code</a></p> | 1127 | Code</a></p> |
1096 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually, | 1128 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually, |
1097 | but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes, | 1129 | but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes, |
1098 | for·example:</p> | 1130 | for·example:</p> |
1131 | <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>Examples<span·class="op">:</span></span> | ||
1132 | <span·id="cb9-2"><a·href="#cb9-2"·aria-hidden="true"·tabindex="-1"></a></span> | ||
1133 | <span·id="cb9-3"><a·href="#cb9-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">*</span>·<span·class="op">[</span>ex_user_events<span·class="op">.</span>c<span·class="op">](</span>https<span·class="op">:</span><span·class="co">//github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L10)</span></span> | ||
1134 | <span·id="cb9-4"><a·href="#cb9-4"·aria-hidden="true"·tabindex="-1"></a><span·class="op">*</span>·<span·class="op">[</span>ex_native_filechooser<span·class="op">.</span>c<span·class="op">](</span>https<span·class="op">:</span><span·class="co">//github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L24)</span></span> | ||
1135 | <span·id="cb9-5"><a·href="#cb9-5"·aria-hidden="true"·tabindex="-1"></a></span> | ||
1099 | < | 1136 | <span·id="cb9-6"><a·href="#cb9-6"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#</span><span·class="er">defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E')</span></span></code></pre></div> |
1100 | <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use | 1137 | <p>IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use |
1101 | anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p> | 1138 | anything·lower·than·<code>ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0)</code>.</p> |
1102 | <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any | 1139 | <p>You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any |
1103 | 3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not | 1140 | 3rd·party·code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not |
1104 | creative.</p> | 1141 | creative.</p> |
1105 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like | 1142 | <p>If·you·need·multiple·identifiers,·you·could·define·them·like |
1106 | this:</p> | 1143 | this:</p> |
Offset 1136, 17 lines modified | Offset 1173, 17 lines modified | ||
1136 | <p>See·also:·<a | 1173 | <p>See·also:·<a |
1137 | 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>, |
1138 | <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>, |
1139 | <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> |
1140 | <p>Examples:</p> | 1177 | <p>Examples:</p> |
1141 | <ul> | 1178 | <ul> |
1142 | <li><a | 1179 | <li><a |
1143 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1180 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L33">ex_inject_events.c</a></li> |
1144 | <li><a | 1181 | <li><a |
1145 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 1182 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L213">ex_enet_server.c</a></li> |
1146 | <li><a | 1183 | <li><a |
1147 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L36">ex_timer_pause.c</a></li> | 1184 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L36">ex_timer_pause.c</a></li> |
1148 | </ul> | 1185 | </ul> |
1149 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> | 1186 | <h1·id="al_destroy_event_queue">al_destroy_event_queue</h1> |
1150 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_destroy_event_queue<span·class="op">(</span>ALLEGRO_EVENT_QUEUE·<span·class="op">*</span>queue<span·class="op">)</span></span></code></pre></div> | 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> |
1151 | <p><a | 1188 | <p><a |
1152 | 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 |
Offset 1158, 19 lines modified | Offset 1195, 19 lines modified | ||
Max diff block lines reached; 7561/16979 bytes (44.53%) of diff not shown. |
Offset 133, 14 lines modified | Offset 133, 18 lines modified | ||
133 | ··any.timestamp·(double) | 133 | ··any.timestamp·(double) |
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: | ||
141 | ····*·_\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__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
140 | *\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* |
141 | A·joystick·axis·value·changed. | 145 | A·joystick·axis·value·changed. |
142 | ··joystick.id·(ALLEGRO_JOYSTICK·*) | 146 | ··joystick.id·(ALLEGRO_JOYSTICK·*) |
143 | ······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 |
144 | ······source·joystick.source. | 148 | ······source·joystick.source. |
145 | ··joystick.stick·(int) | 149 | ··joystick.stick·(int) |
146 | ······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 523, 39 lines modified | Offset 527, 56 lines modified | ||
523 | my_event.user.data2·=·&some_var; | 527 | my_event.user.data2·=·&some_var; |
524 | al_emit_user_event(&my_event_source,·&my_event,·NULL); | 528 | al_emit_user_event(&my_event_source,·&my_event,·NULL); |
525 | Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the | 529 | Event·type·identifiers·for·user·events·are·assigned·by·the·user.·Please·see·the |
526 | documentation·for·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·for·the·rules·you·should·follow·when | 530 | documentation·for·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·for·the·rules·you·should·follow·when |
527 | assigning·identifiers. | 531 | assigning·identifiers. |
528 | See·also:·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 532 | See·also:·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
533 | Examples: | ||
534 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
529 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_Q\x8QU\x8UE\x8EU\x8UE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 535 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_Q\x8QU\x8UE\x8EU\x8UE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
530 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 536 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
531 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 537 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
532 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 538 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
533 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 539 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
534 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 540 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
535 | 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 | 541 | 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 | Examples: | ||
543 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
544 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
545 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
536 | *\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* | 546 | *\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* |
537 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 547 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
538 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 548 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
539 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 549 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
540 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 550 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
541 | 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. | 551 | 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. |
542 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. | 552 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. |
543 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 553 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8e_\x8m_\x8i_\x8t_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t |
554 | Examples: | ||
555 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
556 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
557 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
544 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 558 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
545 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | 559 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
546 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 560 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
547 | An·integer·used·to·distinguish·between·different·types·of·events. | 561 | An·integer·used·to·distinguish·between·different·types·of·events. |
548 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R | 562 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8G_\x8E_\x8T_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E_\x8__\x8I_\x8S_\x8__\x8U_\x8S_\x8E_\x8R |
549 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GE\x8ET\x8T_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 563 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_G\x8GE\x8ET\x8T_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
550 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | 564 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
551 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 565 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
552 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not | 566 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not |
553 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: | 567 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: |
568 | Examples: | ||
569 | *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ | ||
570 | ex_user_events.c#L10) | ||
571 | *·[ex_native_filechooser.c](https://github.com/liballeg/allegro5/blob/master/ | ||
572 | examples/ex_native_filechooser.c#L24) | ||
554 | #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') | 573 | #defin··MY_EVENT_TYPE···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') |
555 | IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything | 574 | IDs·less·than·1024·are·reserved·for·Allegro·or·its·addons.·Don’t·use·anything |
556 | lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0). | 575 | lower·than·ALLEGRO_GET_EVENT_TYPE(0,·0,·4,·0). |
557 | You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party | 576 | You·should·try·to·make·your·IDs·unique·so·they·don’t·clash·with·any·3rd·party |
558 | code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative. | 577 | code·you·may·be·using.·Be·creative.·Numbering·from·1024·is·not·creative. |
559 | If·you·need·multiple·identifiers,·you·could·define·them·like·this: | 578 | If·you·need·multiple·identifiers,·you·could·define·them·like·this: |
560 | #defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') | 579 | #defin··BASE_EVENT···ALLEGRO_GET_EVENT_TYPE('M','I','N','E') |
Offset 578, 40 lines modified | Offset 599, 40 lines modified | ||
578 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
579 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 600 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
580 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 601 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
581 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 602 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
582 | object·if·successful.·Returns·NULL·on·error. | 603 | object·if·successful.·Returns·NULL·on·error. |
583 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E | 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 |
584 | Examples: | 605 | Examples: |
585 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
586 | ····*·_\x8e_\x8x_\x8__\x8 | 606 | ····*·_\x8e_\x8x_\x8__\x8i_.n_.j_.e_.c_.t_.__.e_.v_.e_.n_.t_.s_\x8._\x8c |
607 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
587 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 608 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
588 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
589 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) | 610 | void·al_destroy_event_queue(ALLEGRO_EVENT_QUEUE·*queue) |
590 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 611 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
591 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with | 612 | Destroy·the·event·queue·specified.·All·event·sources·currently·registered·with |
592 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. | 613 | the·queue·will·be·automatically·unregistered·before·the·queue·is·destroyed. |
593 | 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) |
594 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8q_\x8u_\x8e_\x8u_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8Q_\x8U_\x8E_\x8U_\x8E | 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 |
595 | Examples: | 616 | Examples: |
617 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
596 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
597 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
598 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 618 | ····*·_\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 | ||
599 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
600 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 621 | void·al_register_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
601 | ···ALLEGRO_EVENT_SOURCE·*source) | 622 | ···ALLEGRO_EVENT_SOURCE·*source) |
602 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 623 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
603 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may | 624 | Register·the·event·source·with·the·event·queue·specified.·An·event·source·may |
604 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying | 625 | be·registered·with·any·number·of·event·queues·simultaneously,·or·none.·Trying |
605 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does | 626 | to·register·an·event·source·with·the·same·event·queue·more·than·once·does |
606 | nothing. | 627 | nothing. |
607 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E | 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 |
608 | Examples: | 629 | Examples: |
609 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | ||
610 | ····*·_\x8e_\x8x_\x8__\x8 | 630 | ····*·_\x8e_\x8x_\x8__\x8i_.n_.j_.e_.c_.t_.__.e_.v_.e_.n_.t_.s_\x8._\x8c |
631 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
611 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 632 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
612 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nr\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
613 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, | 634 | void·al_unregister_event_source(ALLEGRO_EVENT_QUEUE·*queue, |
614 | ···ALLEGRO_EVENT_SOURCE·*source) | 635 | ···ALLEGRO_EVENT_SOURCE·*source) |
615 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 636 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
616 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not | 637 | Unregister·an·event·source·with·an·event·queue.·If·the·event·source·is·not |
617 | actually·registered·with·the·event·queue,·nothing·happens. | 638 | actually·registered·with·the·event·queue,·nothing·happens. |
Offset 647, 28 lines modified | Offset 668, 28 lines modified | ||
647 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e_\x8_e\x8em\x8mp\x8pt\x8ty\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
648 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) | 669 | bool·al_is_event_queue_empty(ALLEGRO_EVENT_QUEUE·*queue) |
649 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 670 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
650 | Return·true·if·the·event·queue·specified·is·currently·empty. | 671 | Return·true·if·the·event·queue·specified·is·currently·empty. |
651 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8e_\x8k_\x8__\x8n_\x8e_\x8x_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t | 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 |
652 | Examples: | 673 | Examples: |
Max diff block lines reached; 3303/11493 bytes (28.74%) of diff not shown. |
Offset 242, 14 lines modified | Offset 242, 23 lines modified | ||
242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> | 242 | <h1·id="allegro_file">ALLEGRO_FILE</h1> |
243 | <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_FILE·ALLEGRO_FILE<span·class="op">;</span></span></code></pre></div> | 243 | <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_FILE·ALLEGRO_FILE<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/file.h#L15">Source | 245 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L15">Source |
246 | Code</a></p> | 246 | Code</a></p> |
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> | ||
250 | <ul> | ||
251 | <li><a | ||
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | ||
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> | ||
257 | </ul> | ||
249 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
250 | <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> |
251 | <p><a | 260 | <p><a |
252 | 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 |
253 | Code</a></p> | 262 | Code</a></p> |
254 | <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”, |
255 | real·or·virtual.·See·the·full·discussion·in·<a | 264 | real·or·virtual.·See·the·full·discussion·in·<a |
Offset 276, 25 lines modified | Offset 285, 39 lines modified | ||
276 | file·handle.·If·fi_open·returns·NULL·then·<a | 285 | file·handle.·If·fi_open·returns·NULL·then·<a |
277 | href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p> | 286 | href="file.html#al_fopen">al_fopen</a>·will·also·return·NULL.</p> |
278 | <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but | 287 | <p>The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but |
279 | Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a> | 288 | Allegro·will·free·the·<a·href="file.html#allegro_file">ALLEGRO_FILE</a> |
280 | handle.</p> | 289 | handle.</p> |
281 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16 | 290 | <p>If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16 |
282 | char·long·buffer·will·be·used.</p> | 291 | char·long·buffer·will·be·used.</p> |
292 | <p>Examples:</p> | ||
293 | <ul> | ||
294 | <li><a | ||
295 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> | ||
296 | </ul> | ||
283 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> | 297 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> |
284 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> | 298 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> |
285 | <p><a | 299 | <p><a |
286 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source | 300 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/file.h#L40">Source |
287 | Code</a></p> | 301 | Code</a></p> |
288 | <ul> | 302 | <ul> |
289 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> | 303 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> |
290 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> | 304 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> |
291 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> | 305 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> |
292 | </ul> | 306 | </ul> |
293 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> | 307 | <p>See·also:·<a·href="file.html#al_fseek">al_fseek</a></p> |
308 | <p>Examples:</p> | ||
309 | <ul> | ||
310 | <li><a | ||
311 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L60">ex_file.c</a></li> | ||
312 | <li><a | ||
313 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L50">ex_memfile.c</a></li> | ||
314 | <li><a | ||
315 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L59">ex_file_slice.c</a></li> | ||
316 | </ul> | ||
294 | <h1·id="al_fopen">al_fopen</h1> | 317 | <h1·id="al_fopen">al_fopen</h1> |
295 | <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_FILE·<span·class="op">*</span>al_fopen<span·class="op">(</span><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> | 318 | <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_FILE·<span·class="op">*</span>al_fopen<span·class="op">(</span><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> |
296 | <p><a | 319 | <p><a |
297 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L24">Source | 320 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L24">Source |
298 | Code</a></p> | 321 | Code</a></p> |
299 | <p>Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode. | 322 | <p>Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode. |
300 | The·current·file·interface·is·used·to·open·the·file.</p> | 323 | The·current·file·interface·is·used·to·open·the·file.</p> |
Offset 320, 17 lines modified | Offset 343, 17 lines modified | ||
320 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>, | 343 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>, |
321 | <a·href="file.html#al_fclose">al_fclose</a>.</p> | 344 | <a·href="file.html#al_fclose">al_fclose</a>.</p> |
322 | <p>Examples:</p> | 345 | <p>Examples:</p> |
323 | <ul> | 346 | <ul> |
324 | <li><a | 347 | <li><a |
325 | 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> |
326 | <li><a | 349 | <li><a |
327 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L313">ex_synth.cpp</a></li> | ||
328 | <li><a | ||
329 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> | 350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L29">ex_file_slice.c</a></li> |
351 | <li><a | ||
352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_bitmap_file.c#L80">ex_bitmap_file.c</a></li> | ||
330 | </ul> | 353 | </ul> |
331 | <h1·id="al_fopen_interface">al_fopen_interface</h1> | 354 | <h1·id="al_fopen_interface">al_fopen_interface</h1> |
332 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_fopen_interface<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FILE_INTERFACE·<span·class="op">*</span>drv<span·class="op">,</span></span> | 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> |
333 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>path<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | 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> |
334 | <p><a | 357 | <p><a |
335 | 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 |
336 | Code</a></p> | 359 | Code</a></p> |
Offset 391, 17 lines modified | Offset 414, 17 lines modified | ||
391 | <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate | 414 | <p>Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate |
392 | the·error.</p> | 415 | the·error.</p> |
393 | <p>Examples:</p> | 416 | <p>Examples:</p> |
394 | <ul> | 417 | <ul> |
395 | <li><a | 418 | <li><a |
396 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li> | 419 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L130">ex_file.c</a></li> |
397 | <li><a | 420 | <li><a |
398 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L506">ex_synth.cpp</a></li> | ||
399 | <li><a | ||
400 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li> | 421 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L104">ex_memfile.c</a></li> |
422 | <li><a | ||
423 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L77">ex_file_slice.c</a></li> | ||
401 | </ul> | 424 | </ul> |
402 | <h1·id="al_fread">al_fread</h1> | 425 | <h1·id="al_fread">al_fread</h1> |
403 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> | 426 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">size_t</span>·al_fread<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> |
404 | <p><a | 427 | <p><a |
405 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source | 428 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L101">Source |
406 | Code</a></p> | 429 | Code</a></p> |
407 | <p>Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given | 430 | <p>Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given |
Offset 441, 19 lines modified | Offset 464, 19 lines modified | ||
441 | href="file.html#al_fwrite16be">al_fwrite16be</a>,·<a | 464 | href="file.html#al_fwrite16be">al_fwrite16be</a>,·<a |
442 | href="file.html#al_fwrite16le">al_fwrite16le</a>,·<a | 465 | href="file.html#al_fwrite16le">al_fwrite16le</a>,·<a |
443 | href="file.html#al_fwrite32be">al_fwrite32be</a>,·<a | 466 | href="file.html#al_fwrite32be">al_fwrite32be</a>,·<a |
444 | href="file.html#al_fwrite32le">al_fwrite32le</a></p> | 467 | href="file.html#al_fwrite32le">al_fwrite32le</a></p> |
445 | <p>Examples:</p> | 468 | <p>Examples:</p> |
446 | <ul> | 469 | <ul> |
447 | <li><a | 470 | <li><a |
448 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L165">ex_synth.cpp</a></li> | ||
449 | <li><a | ||
450 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L44">ex_memfile.c</a></li> | 471 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L44">ex_memfile.c</a></li> |
451 | <li><a | 472 | <li><a |
452 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L20">ex_file_slice.c</a></li> | 473 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file_slice.c#L20">ex_file_slice.c</a></li> |
474 | <li><a | ||
475 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L165">ex_synth.cpp</a></li> | ||
453 | </ul> | 476 | </ul> |
454 | <h1·id="al_fflush">al_fflush</h1> | 477 | <h1·id="al_fflush">al_fflush</h1> |
455 | <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">bool</span>·al_fflush<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> | 478 | <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">bool</span>·al_fflush<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> |
456 | <p><a | 479 | <p><a |
457 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L138">Source | 480 | href="https://github.com/liballeg/allegro5/blob/master/src/file.c#L138">Source |
458 | Code</a></p> | 481 | Code</a></p> |
459 | <p>Flush·any·pending·writes·to·the·given·file.</p> | 482 | <p>Flush·any·pending·writes·to·the·given·file.</p> |
Offset 890, 14 lines modified | Offset 913, 19 lines modified | ||
890 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·table | 913 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·table |
Max diff block lines reached; 1358/9325 bytes (14.56%) of diff not shown. |
Offset 88, 14 lines modified | Offset 88, 18 lines modified | ||
88 | These·functions·are·declared·in·the·main·Allegro·header·file: | 88 | These·functions·are·declared·in·the·main·Allegro·header·file: |
89 | ·#include·<allegro5/allegro.h> | 89 | ·#include·<allegro5/allegro.h> |
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: | ||
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 | ||
95 | *\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* |
96 | typedef·struct·ALLEGRO_FILE_INTERFACE | 100 | typedef·struct·ALLEGRO_FILE_INTERFACE |
97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
98 | 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 |
99 | 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. |
100 | The·fields·are: | 104 | The·fields·are: |
101 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
Offset 116, 21 lines modified | Offset 120, 27 lines modified | ||
116 | with·the·file.·The·other·functions·can·access·that·data·by·calling | 120 | with·the·file.·The·other·functions·can·access·that·data·by·calling |
117 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a·on·the·file·handle.·If·fi_open·returns·NULL·then·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n | 121 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a·on·the·file·handle.·If·fi_open·returns·NULL·then·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n |
118 | will·also·return·NULL. | 122 | will·also·return·NULL. |
119 | The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will | 123 | The·fi_fclose·function·must·clean·up·and·free·the·userdata,·but·Allegro·will |
120 | free·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E·handle. | 124 | free·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E·handle. |
121 | If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long | 125 | If·fi_fungetc·is·NULL,·then·Allegro’s·default·implementation·of·a·16·char·long |
122 | buffer·will·be·used. | 126 | buffer·will·be·used. |
127 | Examples: | ||
128 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | ||
123 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SE\x8EE\x8EK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* | 129 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SE\x8EE\x8EK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | typedef·enum·ALLEGRO_SEEK | 130 | typedef·enum·ALLEGRO_SEEK |
125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
126 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file | 132 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file |
127 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position | 133 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position |
128 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file | 134 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file |
129 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k | 135 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k |
136 | Examples: | ||
137 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
138 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
139 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | ||
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 140 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
131 | ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode) | 141 | ALLEGRO_FILE·*al_fopen(const·char·*path,·const·char·*mode) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.·The·current | 143 | Creates·and·opens·a·file·(real·or·virtual)·given·the·path·and·mode.·The·current |
134 | file·interface·is·used·to·open·the·file. | 144 | file·interface·is·used·to·open·the·file. |
135 | Parameters: | 145 | Parameters: |
136 | ····*·path·-·path·to·the·file·to·open | 146 | ····*·path·-·path·to·the·file·to·open |
Offset 145, 16 lines modified | Offset 155, 16 lines modified | ||
145 | Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary | 155 | Newline·translations·can·be·useful·for·text·files·but·is·disastrous·for·binary |
146 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by | 156 | files.·To·avoid·this·behaviour·you·need·to·open·file·streams·in·binary·mode·by |
147 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. | 157 | using·a·mode·argument·containing·a·“b”,·e.g. “rb”,·“wb”. |
148 | Returns·a·file·handle·on·success,·or·NULL·on·error. | 158 | Returns·a·file·handle·on·success,·or·NULL·on·error. |
149 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8c_\x8l_\x8o_\x8s_\x8e. | 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. |
150 | Examples: | 160 | Examples: |
151 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 161 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
152 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | ||
153 | ····*·_\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__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | ||
154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fo\x8op\x8pe\x8en\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
155 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, | 165 | ALLEGRO_FILE·*al_fopen_interface(const·ALLEGRO_FILE_INTERFACE·*drv, |
156 | ···const·char·*path,·const·char·*mode) | 166 | ···const·char·*path,·const·char·*mode) |
157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
158 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with | 168 | Opens·a·file·using·the·specified·interface,·instead·of·the·interface·set·with |
159 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e. | 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. |
160 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n | 170 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n |
Offset 195, 16 lines modified | Offset 205, 16 lines modified | ||
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 205 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fc\x8cl\x8lo\x8os\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | bool·al_fclose(ALLEGRO_FILE·*f) | 206 | bool·al_fclose(ALLEGRO_FILE·*f) |
197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
198 | Close·the·given·file,·writing·any·buffered·output·data·(if·any). | 208 | Close·the·given·file,·writing·any·buffered·output·data·(if·any). |
199 | Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error. | 209 | Returns·true·on·success,·false·on·failure.·errno·is·set·to·indicate·the·error. |
200 | Examples: | 210 | Examples: |
201 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 211 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
202 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | ||
203 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 212 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
213 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | ||
204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 214 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
205 | size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size) | 215 | size_t·al_fread(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size) |
206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
207 | Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file. | 217 | Read·‘size’·bytes·into·the·buffer·pointed·to·by·‘ptr’,·from·the·given·file. |
208 | Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of- | 218 | Returns·the·number·of·bytes·actually·read.·If·an·error·occurs,·or·the·end-of- |
209 | file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero). | 219 | file·is·reached,·the·return·value·is·a·short·byte·count·(or·zero). |
210 | al_fread()·does·not·distinguish·between·EOF·and·other·errors.·Use·_\x8a_\x8l_\x8__\x8f_\x8e_\x8o_\x8f·and | 220 | al_fread()·does·not·distinguish·between·EOF·and·other·errors.·Use·_\x8a_\x8l_\x8__\x8f_\x8e_\x8o_\x8f·and |
Offset 219, 17 lines modified | Offset 229, 17 lines modified | ||
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | Write·‘size’·bytes·from·the·buffer·pointed·to·by·‘ptr’·into·the·given·file. | 230 | Write·‘size’·bytes·from·the·buffer·pointed·to·by·‘ptr’·into·the·given·file. |
221 | Returns·the·number·of·bytes·actually·written.·If·an·error·occurs,·the·return | 231 | Returns·the·number·of·bytes·actually·written.·If·an·error·occurs,·the·return |
222 | value·is·a·short·byte·count·(or·zero). | 232 | value·is·a·short·byte·count·(or·zero). |
223 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8b_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8b_\x8e, | 233 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8c,·_\x8a_\x8l_\x8__\x8f_\x8p_\x8u_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8b_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x81_\x86_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8b_\x8e, |
224 | _\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8l_\x8e | 234 | _\x8a_\x8l_\x8__\x8f_\x8w_\x8r_\x8i_\x8t_\x8e_\x83_\x82_\x8l_\x8e |
225 | Examples: | 235 | Examples: |
226 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | ||
227 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 236 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
228 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c | 237 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e_\x8._\x8c |
238 | ····*·_\x8e_\x8x_\x8__\x8s_\x8y_\x8n_\x8t_\x8h_\x8._\x8c_\x8p_\x8p | ||
229 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ff\x8fl\x8lu\x8us\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 239 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ff\x8fl\x8lu\x8us\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
230 | bool·al_fflush(ALLEGRO_FILE·*f) | 240 | bool·al_fflush(ALLEGRO_FILE·*f) |
231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
232 | Flush·any·pending·writes·to·the·given·file. | 242 | Flush·any·pending·writes·to·the·given·file. |
233 | Returns·true·on·success,·false·otherwise.·errno·is·set·to·indicate·the·error. | 243 | Returns·true·on·success,·false·otherwise.·errno·is·set·to·indicate·the·error. |
234 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o | 244 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o |
235 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ft\x8te\x8el\x8ll\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 245 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8ft\x8te\x8el\x8ll\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 502, 14 lines modified | Offset 512, 16 lines modified | ||
502 | will·handle·the·following·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·calls·for·the·current·thread. | 512 | will·handle·the·following·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·calls·for·the·current·thread. |
503 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 513 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
504 | void·al_set_new_file_interface(const·ALLEGRO_FILE_INTERFACE·*file_interface) | 514 | void·al_set_new_file_interface(const·ALLEGRO_FILE_INTERFACE·*file_interface) |
505 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 515 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
506 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·for·the·calling·thread.·This·will·change | 516 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·for·the·calling·thread.·This·will·change |
507 | the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 517 | the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
508 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. | 518 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e. |
519 | Examples: | ||
520 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | ||
509 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8st\x8ta\x8an\x8nd\x8da\x8ar\x8rd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 521 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8st\x8ta\x8an\x8nd\x8da\x8ar\x8rd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
510 | void·al_set_standard_file_interface(void) | 522 | void·al_set_standard_file_interface(void) |
511 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 523 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
512 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·to·the·default,·for·the·calling·thread. | 524 | Set·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·table·to·the·default,·for·the·calling·thread. |
513 | This·will·change·the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 525 | This·will·change·the·handler·for·later·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
514 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 526 | 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 |
515 | Examples: | 527 | Examples: |
Offset 532, 8 lines modified | Offset 544, 7 lines modified | ||
532 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_u\x8us\x8se\x8er\x8rd\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8* | 544 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_u\x8us\x8se\x8er\x8rd\x8da\x8at\x8ta\x8a·*\x8**\x8**\x8**\x8**\x8* |
533 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) | 545 | void·*al_get_file_userdata(ALLEGRO_FILE·*f) |
534 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 546 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
535 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. | 547 | Returns·a·pointer·to·the·custom·userdata·that·is·attached·to·the·file·handle. |
536 | This·is·intended·to·be·used·by·functions·that·extend·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. | 548 | This·is·intended·to·be·used·by·functions·that·extend·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E. |
537 | Examples: | 549 | Examples: |
538 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | 550 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c |
539 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
Max diff block lines reached; -1/7108 bytes (-0.01%) of diff not shown. |
Offset 665, 14 lines modified | Offset 665, 11 lines modified | ||
665 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a>al_fixed·al_fixhypot<span·class="op">(</span>al_fixed·x<span·class="op">,</span>·al_fixed·y<span·class="op">)</span></span></code></pre></div> | 665 | <div·class="sourceCode"·id="cb42"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb42-1"><a·href="#cb42-1"·aria-hidden="true"·tabindex="-1"></a>al_fixed·al_fixhypot<span·class="op">(</span>al_fixed·x<span·class="op">,</span>·al_fixed·y<span·class="op">)</span></span></code></pre></div> |
666 | <p><a | 666 | <p><a |
667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source | 667 | href="https://github.com/liballeg/allegro5/blob/master/src/math.c#L321">Source |
668 | Code</a></p> | 668 | Code</a></p> |
669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of | 669 | <p>Fixed·point·hypotenuse·(returns·the·square·root·of |
670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the | 670 | <code>x*x·+·y*y</code>).·This·should·be·better·than·calculating·the |
671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> | 671 | formula·yourself·manually,·since·the·error·is·much·smaller.</p> |
672 | <p·class="timestamp"> | ||
673 | Allegro·version·5.2.10 | ||
674 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
675 | </p> | ||
676 | </div> | 672 | </div> |
677 | </body> | 673 | </body> |
678 | </html> | 674 | </html> |
Offset 435, 8 lines modified | Offset 435, 7 lines modified | ||
435 | errno·is·set·to·EDOM·and·the·function·returns·zero. | 435 | errno·is·set·to·EDOM·and·the·function·returns·zero. |
436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* | 436 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xh\x8hy\x8yp\x8po\x8ot\x8t·*\x8**\x8**\x8**\x8**\x8* |
437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) | 437 | al_fixed·al_fixhypot(al_fixed·x,·al_fixed·y) |
438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 438 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be | 439 | Fixed·point·hypotenuse·(returns·the·square·root·of·x*x·+·y*y).·This·should·be |
440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much | 440 | better·than·calculating·the·formula·yourself·manually,·since·the·error·is·much |
441 | smaller. | 441 | smaller. |
442 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 294, 14 lines modified | Offset 294, 23 lines modified | ||
294 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it | 294 | <p>A·handle·identifying·any·kind·of·font.·Usually·you·will·create·it |
295 | with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports | 295 | with·<a·href="font.html#al_load_font">al_load_font</a>·which·supports |
296 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 296 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
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> | ||
302 | <ul> | ||
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> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L13">ex_timedwait.c</a></li> | ||
309 | </ul> | ||
301 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
302 | <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> |
303 | <p><a | 312 | <p><a |
304 | 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 |
305 | Code</a></p> | 314 | Code</a></p> |
306 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> | 315 | <p>A·structure·containing·the·properties·of·a·character·in·a·font.</p> |
307 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span> | 316 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_GLYPH·<span·class="op">{</span></span> |
Offset 328, 14 lines modified | Offset 337, 19 lines modified | ||
328 | to·the·next·character·in·a·string·and·includes·kerning.</p> | 337 | to·the·next·character·in·a·string·and·includes·kerning.</p> |
329 | <p>Since:·5.2.1</p> | 338 | <p>Since:·5.2.1</p> |
330 | <blockquote> | 339 | <blockquote> |
331 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 340 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
332 | API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> | 341 | API</a>:</em>·This·API·is·new·and·subject·to·refinement.</p> |
333 | </blockquote> | 342 | </blockquote> |
334 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> | 343 | <p>See·also:·<a·href="font.html#al_get_glyph">al_get_glyph</a></p> |
344 | <p>Examples:</p> | ||
345 | <ul> | ||
346 | <li><a | ||
347 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> | ||
348 | </ul> | ||
335 | <h2·id="al_init_font_addon">al_init_font_addon</h2> | 349 | <h2·id="al_init_font_addon">al_init_font_addon</h2> |
336 | <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_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 350 | <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_init_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
337 | <p><a | 351 | <p><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source | 352 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L367">Source |
339 | Code</a></p> | 353 | Code</a></p> |
340 | <p>Initialise·the·font·addon.</p> | 354 | <p>Initialise·the·font·addon.</p> |
341 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 355 | <p>Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
Offset 347, 14 lines modified | Offset 361, 23 lines modified | ||
347 | function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return | 361 | function·has·no·return·value.·You·may·wish·to·avoid·checking·the·return |
348 | value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently, | 362 | value·if·your·code·needs·to·be·compatible·with·Allegro·5.0.·Currently, |
349 | the·function·will·never·return·false.</p> | 363 | the·function·will·never·return·false.</p> |
350 | <p>See·also:·<a | 364 | <p>See·also:·<a |
351 | 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 |
352 | 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 |
353 | 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> | ||
369 | <ul> | ||
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> | ||
374 | <li><a | ||
375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L30">ex_timedwait.c</a></li> | ||
376 | </ul> | ||
354 | <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> |
355 | <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> |
356 | <p><a | 379 | <p><a |
357 | 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 |
358 | Code</a></p> | 381 | Code</a></p> |
359 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns | 382 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns |
360 | false.</p> | 383 | false.</p> |
Offset 385, 22 lines modified | Offset 408, 40 lines modified | ||
385 | href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the | 408 | href="graphics.html#al_set_new_bitmap_flags">bitmap·flags</a>·at·the |
386 | time·the·font·is·loaded.</p> | 409 | time·the·font·is·loaded.</p> |
387 | <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a | 410 | <p>See·also:·<a·href="font.html#al_destroy_font">al_destroy_font</a>,·<a |
388 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a | 411 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a |
389 | href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a | 412 | href="font.html#al_register_font_loader">al_register_font_loader</a>,·<a |
390 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>, | 413 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a>, |
391 | <a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p> | 414 | <a·href="font.html#al_load_ttf_font">al_load_ttf_font</a></p> |
415 | <p>Examples:</p> | ||
416 | <ul> | ||
417 | <li><a | ||
418 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> | ||
419 | <li><a | ||
420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> | ||
421 | <li><a | ||
422 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> | ||
423 | </ul> | ||
392 | <h2·id="al_destroy_font">al_destroy_font</h2> | 424 | <h2·id="al_destroy_font">al_destroy_font</h2> |
393 | <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_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> | 425 | <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_destroy_font<span·class="op">(</span>ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> |
394 | <p><a | 426 | <p><a |
395 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source | 427 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/text.c#L357">Source |
396 | Code</a></p> | 428 | Code</a></p> |
397 | <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 |
398 | passed·NULL.</p> | 430 | passed·NULL.</p> |
399 | <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> | ||
433 | <ul> | ||
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> | ||
438 | <li><a | ||
439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> | ||
440 | </ul> | ||
400 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 441 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
401 | <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> |
402 | <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> |
403 | <p><a | 444 | <p><a |
404 | 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 |
405 | Code</a></p> | 446 | Code</a></p> |
406 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files | 447 | <p>Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files |
Offset 434, 53 lines modified | Offset 475, 86 lines modified | ||
434 | ···············|········| | 475 | ···············|········| |
435 | ···············descent··| | 476 | ···············descent··| |
436 | ···············|········| | 477 | ···············|········| |
437 | -------------------------</code></pre> | 478 | -------------------------</code></pre> |
438 | <p>See·also:·<a | 479 | <p>See·also:·<a |
439 | href="font.html#al_get_text_width">al_get_text_width</a>,·<a | 480 | href="font.html#al_get_text_width">al_get_text_width</a>,·<a |
440 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> | 481 | href="font.html#al_get_text_dimensions">al_get_text_dimensions</a></p> |
482 | <p>Examples:</p> | ||
483 | <ul> | ||
484 | <li><a | ||
485 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L78">ex_font_justify.cpp</a></li> | ||
486 | <li><a | ||
487 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L66">ex_membmp.c</a></li> | ||
488 | <li><a | ||
489 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L54">ex_mouse_warp.c</a></li> | ||
490 | </ul> | ||
441 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> | 491 | <h2·id="al_get_font_ascent">al_get_font_ascent</h2> |
442 | <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">int</span>·al_get_font_ascent<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> | 492 | <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">int</span>·al_get_font_ascent<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_FONT·<span·class="op">*</span>f<span·class="op">)</span></span></code></pre></div> |
Max diff block lines reached; 33922/42137 bytes (80.50%) of diff not shown. |
Offset 103, 14 lines modified | Offset 103, 18 lines modified | ||
103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
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: | ||
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 | ||
113 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
110 | *\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* |
111 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
113 | A·structure·containing·the·properties·of·a·character·in·a·font. | 117 | A·structure·containing·the·properties·of·a·character·in·a·font. |
114 | typedef·struct·ALLEGRO_GLYPH·{ | 118 | typedef·struct·ALLEGRO_GLYPH·{ |
115 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
116 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap | 120 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap |
Offset 131, 27 lines modified | Offset 135, 33 lines modified | ||
131 | Glyphs·are·tightly·packed·onto·the·bitmap,·so·you·need·to·add·offset_x·and | 135 | Glyphs·are·tightly·packed·onto·the·bitmap,·so·you·need·to·add·offset_x·and |
132 | offset_y·to·your·draw·position·for·the·text·to·look·right. | 136 | offset_y·to·your·draw·position·for·the·text·to·look·right. |
133 | advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the | 137 | advance·is·the·number·of·pixels·to·add·to·your·x·position·to·advance·to·the |
134 | next·character·in·a·string·and·includes·kerning. | 138 | next·character·in·a·string·and·includes·kerning. |
135 | Since:·5.2.1 | 139 | Since:·5.2.1 |
136 | ·····_\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·API·is·new·and·subject·to·refinement. | 140 | ·····_\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·API·is·new·and·subject·to·refinement. |
137 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h | 141 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h |
142 | Examples: | ||
143 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
138 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 144 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
139 | bool·al_init_font_addon(void) | 145 | bool·al_init_font_addon(void) |
140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
141 | Initialise·the·font·addon. | 147 | Initialise·the·font·addon. |
142 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise | 148 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to·initialise |
143 | allegro_image·separately·(unless·you·are·using·another·library·to·load·images). | 149 | allegro_image·separately·(unless·you·are·using·another·library·to·load·images). |
144 | Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call | 150 | Similarly,·if·you·wish·to·load·truetype-fonts,·do·not·forget·to·also·call |
145 | _\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. |
146 | 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 |
147 | 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 |
148 | 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 |
149 | return·false. | 155 | return·false. |
150 | 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: | ||
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 | ||
160 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
151 | *\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* |
152 | bool·al_is_font_addon_initialized(void) | 162 | bool·al_is_font_addon_initialized(void) |
153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
154 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 164 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
155 | Since:·5.2.6 | 165 | Since:·5.2.6 |
156 | 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 |
157 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 167 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8sh\x8hu\x8ut\x8td\x8do\x8ow\x8wn\x8n_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
Offset 166, 19 lines modified | Offset 176, 27 lines modified | ||
166 | Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the | 176 | Loads·a·font·from·disk.·This·will·use·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·if·you·pass·the |
167 | name·of·a·known·bitmap·format,·or·else·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t. | 177 | name·of·a·known·bitmap·format,·or·else·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t. |
168 | The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and | 178 | The·flags·parameter·is·passed·through·to·either·of·those·functions.·Bitmap·and |
169 | TTF·fonts·are·also·affected·by·the·current·_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8·_\x8f_\x8l_\x8a_\x8g_\x8s·at·the·time·the·font·is | 179 | TTF·fonts·are·also·affected·by·the·current·_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8·_\x8f_\x8l_\x8a_\x8g_\x8s·at·the·time·the·font·is |
170 | loaded. | 180 | loaded. |
171 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8o_\x8a_\x8d_\x8e_\x8r, | 181 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8f_\x8o_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8o_\x8a_\x8d_\x8e_\x8r, |
172 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t | 182 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8t_\x8f_\x8__\x8f_\x8o_\x8n_\x8t |
183 | Examples: | ||
184 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
185 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c | ||
186 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c | ||
173 | *\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* |
174 | void·al_destroy_font(ALLEGRO_FONT·*f) | 188 | void·al_destroy_font(ALLEGRO_FONT·*f) |
175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
176 | 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. |
177 | 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: | ||
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 | ||
195 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | ||
178 | *\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* |
179 | bool·al_register_font_loader(char·const·*extension, | 197 | bool·al_register_font_loader(char·const·*extension, |
180 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 198 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
181 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
182 | 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 |
183 | format. | 201 | format. |
184 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be | 202 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be |
Offset 204, 34 lines modified | Offset 222, 48 lines modified | ||
204 | /········\·····|········height | 222 | /········\·····|········height |
205 | ----------------········| | 223 | ----------------········| |
206 | ···············|········| | 224 | ···············|········| |
207 | ···············descent··| | 225 | ···············descent··| |
208 | ···············|········| | 226 | ···············|········| |
209 | ------------------------- | 227 | ------------------------- |
210 | 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__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s | 228 | 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__\x8t_\x8e_\x8x_\x8t_\x8__\x8d_\x8i_\x8m_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s |
229 | Examples: | ||
230 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | ||
231 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c | ||
232 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | ||
211 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8as\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 233 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_a\x8as\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
212 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | 234 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
214 | Returns·the·ascent·of·the·specified·font. | 236 | Returns·the·ascent·of·the·specified·font. |
215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8d_\x8e_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t | 237 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8d_\x8e_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
238 | Examples: | ||
239 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
216 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_d\x8de\x8es\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 240 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_d\x8de\x8es\x8sc\x8ce\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
217 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | 241 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) |
218 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 242 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
219 | Returns·the·descent·of·the·specified·font. | 243 | Returns·the·descent·of·the·specified·font. |
220 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t | 244 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8s_\x8c_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8l_\x8i_\x8n_\x8e_\x8__\x8h_\x8e_\x8i_\x8g_\x8h_\x8t |
245 | Examples: | ||
246 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | ||
221 | *\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* |
222 | 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) |
223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 249 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
224 | 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. |
225 | 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: | ||
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 | ||
255 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
226 | *\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* |
227 | 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) |
228 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 258 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
229 | 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. |
230 | 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: | ||
262 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
231 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* | 263 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_t\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8* |
232 | void·al_draw_text(const·ALLEGRO_FONT·*font, | 264 | void·al_draw_text(const·ALLEGRO_FONT·*font, |
233 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | 265 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, |
234 | ···char·const·*text) | 266 | ···char·const·*text) |
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 267 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Max diff block lines reached; 18591/26398 bytes (70.43%) of diff not shown. |
Offset 250, 14 lines modified | Offset 250, 21 lines modified | ||
250 | <p><a | 250 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source | 251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L37">Source |
252 | Code</a></p> | 252 | Code</a></p> |
253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory | 253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory |
254 | (check·with·<a | 254 | (check·with·<a |
255 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There | 255 | href="fshook.html#al_get_fs_entry_mode">al_get_fs_entry_mode</a>).·There |
256 | are·no·user·accessible·member·variables.</p> | 256 | are·no·user·accessible·member·variables.</p> |
257 | <p>Examples:</p> | ||
258 | <ul> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> | ||
261 | <li><a | ||
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> | ||
263 | </ul> | ||
257 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 264 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> |
258 | <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">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> | 265 | <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">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> |
259 | <p><a | 266 | <p><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source | 267 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L46">Source |
261 | Code</a></p> | 268 | Code</a></p> |
262 | <p>Filesystem·modes/types</p> | 269 | <p>Filesystem·modes/types</p> |
263 | <ul> | 270 | <ul> |
Offset 79, 14 lines modified | Offset 79, 17 lines modified | ||
79 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or | 79 | filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a·.zip·archive·(or |
80 | whatever·else·you·or·an·addon·makes·it·do). | 80 | whatever·else·you·or·an·addon·makes·it·do). |
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | 82 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; |
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with | 84 | Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory·(check·with |
85 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables. | 85 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8__\x8m_\x8o_\x8d_\x8e).·There·are·no·user·accessible·member·variables. |
86 | Examples: | ||
87 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | ||
88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | ||
86 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 89 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FI\x8IL\x8LE\x8E_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
87 | typedef·enum·ALLEGRO_FILE_MODE | 90 | typedef·enum·ALLEGRO_FILE_MODE |
88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
89 | Filesystem·modes/types | 92 | Filesystem·modes/types |
90 | ····*·ALLEGRO_FILEMODE_READ·-·Readable | 93 | ····*·ALLEGRO_FILEMODE_READ·-·Readable |
91 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable | 94 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable |
92 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable | 95 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable |
Offset 197, 14 lines modified | Offset 197, 21 lines modified | ||
197 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> | 197 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·refresh_rate<span·class="op">;</span>···<span·class="co">//·The·refresh·rate·of·the·mode</span></span> |
198 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div> | 198 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_DISPLAY_MODE<span·class="op">;</span></span></code></pre></div> |
199 | <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p> | 199 | <p>The·<code>refresh_rate</code>·may·be·zero·if·unknown.</p> |
200 | <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a | 200 | <p>For·an·explanation·of·what·<code>format</code>·means,·see·<a |
201 | href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p> | 201 | href="graphics.html#allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</a>.</p> |
202 | <p>See·also:·<a | 202 | <p>See·also:·<a |
203 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> | 203 | href="fullscreen_mode.html#al_get_display_mode">al_get_display_mode</a></p> |
204 | <p>Examples:</p> | ||
205 | <ul> | ||
206 | <li><a | ||
207 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L33">ex_monitorinfo.c</a></li> | ||
208 | <li><a | ||
209 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L100">ex_display_options.c</a></li> | ||
210 | </ul> | ||
204 | <h1·id="al_get_display_mode">al_get_display_mode</h1> | 211 | <h1·id="al_get_display_mode">al_get_display_mode</h1> |
205 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> | 212 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>al_get_display_mode<span·class="op">(</span><span·class="dt">int</span>·index<span·class="op">,</span>·ALLEGRO_DISPLAY_MODE·<span·class="op">*</span>mode<span·class="op">)</span></span></code></pre></div> |
206 | <p><a | 213 | <p><a |
207 | href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source | 214 | href="https://github.com/liballeg/allegro5/blob/master/src/fullscreen_mode.c#L32">Source |
208 | Code</a></p> | 215 | Code</a></p> |
209 | <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed | 216 | <p>Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed |
210 | between·a·call·of·<a | 217 | between·a·call·of·<a |
Offset 244, 14 lines modified | Offset 251, 11 lines modified | ||
244 | <p>Examples:</p> | 251 | <p>Examples:</p> |
245 | <ul> | 252 | <ul> |
246 | <li><a | 253 | <li><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L32">ex_monitorinfo.c</a></li> | 254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L32">ex_monitorinfo.c</a></li> |
248 | <li><a | 255 | <li><a |
249 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L93">ex_display_options.c</a></li> | 256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_options.c#L93">ex_display_options.c</a></li> |
250 | </ul> | 257 | </ul> |
251 | <p·class="timestamp"> | ||
252 | Allegro·version·5.2.10 | ||
253 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
254 | </p> | ||
255 | </div> | 258 | </div> |
256 | </body> | 259 | </body> |
257 | </html> | 260 | </html> |
Offset 58, 14 lines modified | Offset 58, 17 lines modified | ||
58 | ···int·height;·········//·Screen·height | 58 | ···int·height;·········//·Screen·height |
59 | ···int·format;·········//·The·pixel·format·of·the·mode | 59 | ···int·format;·········//·The·pixel·format·of·the·mode |
60 | ···int·refresh_rate;···//·The·refresh·rate·of·the·mode | 60 | ···int·refresh_rate;···//·The·refresh·rate·of·the·mode |
61 | }·ALLEGRO_DISPLAY_MODE; | 61 | }·ALLEGRO_DISPLAY_MODE; |
62 | The·refresh_rate·may·be·zero·if·unknown. | 62 | The·refresh_rate·may·be·zero·if·unknown. |
63 | For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T. | 63 | For·an·explanation·of·what·format·means,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T. |
64 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e | 64 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e |
65 | Examples: | ||
66 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
67 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c | ||
65 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 68 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_d\x8di\x8is\x8sp\x8pl\x8la\x8ay\x8y_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
66 | ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE | 69 | ALLEGRO_DISPLAY_MODE·*al_get_display_mode(int·index,·ALLEGRO_DISPLAY_MODE |
67 | *mode) | 70 | *mode) |
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a | 72 | Retrieves·a·fullscreen·mode.·Display·parameters·should·not·be·changed·between·a |
70 | call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between | 73 | call·of·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s·and·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e.·index·must·be·between |
71 | 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an | 74 | 0·and·the·number·returned·from·al_get_num_display_modes-1.·mode·must·be·an |
Offset 83, 8 lines modified | Offset 86, 7 lines modified | ||
83 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·find·the | 86 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e,·and·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·find·the |
84 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will | 87 | number·of·modes·that·match.·Settings·the·new·display·parameters·to·zero·will |
85 | give·a·list·of·all·modes·for·the·default·driver. | 88 | give·a·list·of·all·modes·for·the·default·driver. |
86 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e | 89 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e |
87 | Examples: | 90 | Examples: |
88 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 91 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c |
89 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c | 92 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8c |
90 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 342, 14 lines modified | Offset 342, 11 lines modified | ||
342 | <p>Note·that·when·you·define·that·macro,·the·version·check·performed·by | 342 | <p>Note·that·when·you·define·that·macro,·the·version·check·performed·by |
343 | <a·href="system.html#al_install_system">al_install_system</a>·and·<a | 343 | <a·href="system.html#al_install_system">al_install_system</a>·and·<a |
344 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See | 344 | href="system.html#al_init">al_init</a>·becomes·more·scrict.·See |
345 | documentation·of·those·functions·for·details.</p> | 345 | documentation·of·those·functions·for·details.</p> |
346 | <h1·id="not-the-end">Not·the·end</h1> | 346 | <h1·id="not-the-end">Not·the·end</h1> |
347 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> | 347 | <p>There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet.</p> |
348 | <p>Enjoy!</p> | 348 | <p>Enjoy!</p> |
349 | <p·class="timestamp"> | ||
350 | Allegro·version·5.2.10 | ||
351 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
352 | </p> | ||
353 | </div> | 349 | </div> |
354 | </body> | 350 | </body> |
355 | </html> | 351 | </html> |
Offset 191, 8 lines modified | Offset 191, 7 lines modified | ||
191 | including·Allegro’s·headers. | 191 | including·Allegro’s·headers. |
192 | Note·that·when·you·define·that·macro,·the·version·check·performed·by | 192 | Note·that·when·you·define·that·macro,·the·version·check·performed·by |
193 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·and·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·becomes·more·scrict.·See·documentation·of·those | 193 | _\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·and·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·becomes·more·scrict.·See·documentation·of·those |
194 | functions·for·details. | 194 | functions·for·details. |
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ot\x8t·t\x8th\x8he\x8e·e\x8en\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·N\x8No\x8ot\x8t·t\x8th\x8he\x8e·e\x8en\x8nd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet. | 196 | There’s·a·heap·of·stuff·we·haven’t·even·mentioned·yet. |
197 | Enjoy! | 197 | Enjoy! |
198 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 449, 14 lines modified | Offset 449, 23 lines modified | ||
449 | <p><a | 449 | <p><a |
450 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source | 450 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source |
451 | Code</a></p> | 451 | Code</a></p> |
452 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 452 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
453 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a | 453 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a |
454 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate | 454 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate |
455 | from·and·to·various·color·representations.</p> | 455 | from·and·to·various·color·representations.</p> |
456 | <p>Examples:</p> | ||
457 | <ul> | ||
458 | <li><a | ||
459 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L15">ex_keyboard_focus.c</a></li> | ||
460 | <li><a | ||
461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L13">ex_nodisplay.c</a></li> | ||
462 | <li><a | ||
463 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L16">ex_mouse_focus.c</a></li> | ||
464 | </ul> | ||
456 | <h2·id="al_map_rgb">al_map_rgb</h2> | 465 | <h2·id="al_map_rgb">al_map_rgb</h2> |
457 | <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_COLOR·al_map_rgb<span·class="op">(</span></span> | 466 | <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_COLOR·al_map_rgb<span·class="op">(</span></span> |
458 | <span·id="cb3-2"><a·href="#cb3-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></code></pre></div> | 467 | <span·id="cb3-2"><a·href="#cb3-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></code></pre></div> |
459 | <p><a | 468 | <p><a |
460 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source | 469 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L575">Source |
461 | Code</a></p> | 470 | Code</a></p> |
462 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a | 471 | <p>Convert·r,·g,·b·(ranging·from·0-255)·into·an·<a |
Offset 467, 17 lines modified | Offset 476, 17 lines modified | ||
467 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a | 476 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a>,·<a |
468 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 477 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
469 | <p>Examples:</p> | 478 | <p>Examples:</p> |
470 | <ul> | 479 | <ul> |
471 | <li><a | 480 | <li><a |
472 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> | 481 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L33">ex_enet_server.c</a></li> |
473 | <li><a | 482 | <li><a |
474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L97">ex_audio_props.cpp</a></li> | ||
475 | <li><a | ||
476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li> | 483 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L49">ex_keyboard_focus.c</a></li> |
484 | <li><a | ||
485 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L37">ex_nodisplay.c</a></li> | ||
477 | </ul> | 486 | </ul> |
478 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> | 487 | <h2·id="al_map_rgb_f">al_map_rgb_f</h2> |
479 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> | 488 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgb_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">)</span></span></code></pre></div> |
480 | <p><a | 489 | <p><a |
481 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source | 490 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L610">Source |
482 | Code</a></p> | 491 | Code</a></p> |
483 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a | 492 | <p>Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·<a |
Offset 488, 17 lines modified | Offset 497, 17 lines modified | ||
488 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a | 497 | href="graphics.html#al_map_rgb">al_map_rgb</a>,·<a |
489 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> | 498 | href="graphics.html#al_map_rgba_f">al_map_rgba_f</a></p> |
490 | <p>Examples:</p> | 499 | <p>Examples:</p> |
491 | <ul> | 500 | <ul> |
492 | <li><a | 501 | <li><a |
493 | 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> |
494 | <li><a | 503 | <li><a |
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L128">ex_keyboard_events.c</a></li> |
496 | <li><a | 505 | <li><a |
497 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 506 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L93">ex_drawpixels.c</a></li> |
498 | </ul> | 507 | </ul> |
499 | <h2·id="al_map_rgba">al_map_rgba</h2> | 508 | <h2·id="al_map_rgba">al_map_rgba</h2> |
500 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_map_rgba<span·class="op">(</span></span> | 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> |
501 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 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> |
502 | <p><a | 511 | <p><a |
503 | 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 |
504 | Code</a></p> | 513 | Code</a></p> |
Offset 509, 17 lines modified | Offset 518, 17 lines modified | ||
509 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a | 518 | href="graphics.html#al_premul_rgba">al_premul_rgba</a>,·<a |
510 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 519 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
511 | <p>Examples:</p> | 520 | <p>Examples:</p> |
512 | <ul> | 521 | <ul> |
513 | <li><a | 522 | <li><a |
514 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li> | 523 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L41">ex_nodisplay.c</a></li> |
515 | <li><a | 524 | <li><a |
516 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L59">ex_cpu.c</a></li> | ||
517 | <li><a | ||
518 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li> | 525 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drawpixels.c#L47">ex_drawpixels.c</a></li> |
526 | <li><a | ||
527 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li> | ||
519 | </ul> | 528 | </ul> |
520 | <h2·id="al_premul_rgba">al_premul_rgba</h2> | 529 | <h2·id="al_premul_rgba">al_premul_rgba</h2> |
521 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> | 530 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba<span·class="op">(</span></span> |
522 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> | 531 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">unsigned</span>·<span·class="dt">char</span>·r<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·g<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·b<span·class="op">,</span>·<span·class="dt">unsigned</span>·<span·class="dt">char</span>·a<span·class="op">)</span></span></code></pre></div> |
523 | <p><a | 532 | <p><a |
524 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source | 533 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L564">Source |
525 | Code</a></p> | 534 | Code</a></p> |
Offset 554, 19 lines modified | Offset 563, 19 lines modified | ||
554 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 563 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
555 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a | 564 | <p>See·also:·<a·href="graphics.html#al_map_rgba">al_map_rgba</a>,·<a |
556 | href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a | 565 | href="graphics.html#al_premul_rgba_f">al_premul_rgba_f</a>,·<a |
557 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> | 566 | href="graphics.html#al_map_rgb_f">al_map_rgb_f</a></p> |
558 | <p>Examples:</p> | 567 | <p>Examples:</p> |
559 | <ul> | 568 | <ul> |
560 | <li><a | 569 | <li><a |
561 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 570 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L88">ex_timedwait.c</a></li> |
562 | <li><a | 571 | <li><a |
563 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L11">ex_resize.c</a></li> | 572 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L11">ex_resize.c</a></li> |
564 | <li><a | 573 | <li><a |
565 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_rotate.c#L127">ex_rotate.c</a></li> |
566 | </ul> | 575 | </ul> |
567 | <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2> | 576 | <h2·id="al_premul_rgba_f">al_premul_rgba_f</h2> |
568 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div> | 577 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_premul_rgba_f<span·class="op">(</span><span·class="dt">float</span>·r<span·class="op">,</span>·<span·class="dt">float</span>·g<span·class="op">,</span>·<span·class="dt">float</span>·b<span·class="op">,</span>·<span·class="dt">float</span>·a<span·class="op">)</span></span></code></pre></div> |
569 | <p><a | 578 | <p><a |
570 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source | 579 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L597">Source |
571 | Code</a></p> | 580 | Code</a></p> |
572 | <p>This·is·a·shortcut·for·<a | 581 | <p>This·is·a·shortcut·for·<a |
Offset 603, 17 lines modified | Offset 612, 17 lines modified | ||
603 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a>,·<a | 612 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a>,·<a |
604 | href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> | 613 | href="graphics.html#al_unmap_rgb_f">al_unmap_rgb_f</a></p> |
605 | <p>Examples:</p> | 614 | <p>Examples:</p> |
606 | <ul> | 615 | <ul> |
607 | <li><a | 616 | <li><a |
608 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> | 617 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> |
609 | <li><a | 618 | <li><a |
610 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L107">ex_color_gradient.c</a></li> | ||
611 | <li><a | ||
612 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L399">ex_haiku.c</a></li> | 619 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L399">ex_haiku.c</a></li> |
620 | <li><a | ||
621 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L107">ex_color_gradient.c</a></li> | ||
613 | </ul> | 622 | </ul> |
614 | <h2·id="al_unmap_rgb_f">al_unmap_rgb_f</h2> | 623 | <h2·id="al_unmap_rgb_f">al_unmap_rgb_f</h2> |
615 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgb_f<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> | 624 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_unmap_rgb_f<span·class="op">(</span>ALLEGRO_COLOR·color<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>r<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>g<span·class="op">,</span>·<span·class="dt">float</span>·<span·class="op">*</span>b<span·class="op">)</span></span></code></pre></div> |
616 | <p><a | 625 | <p><a |
617 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L656">Source | 626 | href="https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L656">Source |
618 | Code</a></p> | 627 | Code</a></p> |
619 | <p>Retrieves·components·of·an·<a | 628 | <p>Retrieves·components·of·an·<a |
Offset 622, 17 lines modified | Offset 631, 17 lines modified | ||
622 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> | 631 | <p>This·function·can·be·called·before·Allegro·is·initialized.</p> |
623 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a | 632 | <p>See·also:·<a·href="graphics.html#al_unmap_rgba">al_unmap_rgba</a>,·<a |
624 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a | 633 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>,·<a |
625 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a></p> | 634 | href="graphics.html#al_unmap_rgba_f">al_unmap_rgba_f</a></p> |
626 | <p>Examples:</p> | 635 | <p>Examples:</p> |
Max diff block lines reached; 64960/74025 bytes (87.75%) of diff not shown. |
Offset 175, 48 lines modified | Offset 175, 52 lines modified | ||
175 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 175 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
176 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8* | 176 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8* |
177 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | 177 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; |
178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 178 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
179 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use | 179 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent·way.·Use |
180 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various | 180 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. and·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b·et·al. to·translate·from·and·to·various |
181 | color·representations. | 181 | color·representations. |
182 | Examples: | ||
183 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
184 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
185 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
182 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8* | 186 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8* |
183 | ALLEGRO_COLOR·al_map_rgb( | 187 | ALLEGRO_COLOR·al_map_rgb( |
184 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) | 188 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) |
185 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
186 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for | 190 | Convert·r,·g,·b·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·255·for |
187 | alpha. | 191 | alpha. |
188 | This·function·can·be·called·before·Allegro·is·initialized. | 192 | This·function·can·be·called·before·Allegro·is·initialized. |
189 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 193 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
190 | Examples: | 194 | Examples: |
191 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 195 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
192 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
193 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 196 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
197 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | ||
194 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 198 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
195 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) | 199 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) |
196 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 200 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
197 | Convert·r,·g,·b,·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·using·1.0f·for | 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 |
198 | alpha. | 202 | alpha. |
199 | This·function·can·be·called·before·Allegro·is·initialized. | 203 | This·function·can·be·called·before·Allegro·is·initialized. |
200 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 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 |
201 | Examples: | 205 | Examples: |
202 | ····*·_\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 |
203 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
204 | ····*·_\x8e_\x8x_\x8__\x8 | 207 | ····*·_\x8e_\x8x_\x8__\x8k_.e_.y_.b_.o_.a_.r_.d_.__.e_.v_.e_.n_.t_.s_.._.c |
208 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | ||
205 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 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* |
206 | ALLEGRO_COLOR·al_map_rgba( | 210 | ALLEGRO_COLOR·al_map_rgba( |
207 | ···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) |
208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
209 | Convert·r,·g,·b,·a·(ranging·from·0-255)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 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. |
210 | This·function·can·be·called·before·Allegro·is·initialized. | 214 | This·function·can·be·called·before·Allegro·is·initialized. |
211 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 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 |
212 | Examples: | 216 | Examples: |
213 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | 217 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
214 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | ||
215 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c | 218 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8w_\x8p_\x8i_\x8x_\x8e_\x8l_\x8s_\x8._\x8c |
219 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
216 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 220 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
217 | ALLEGRO_COLOR·al_premul_rgba( | 221 | ALLEGRO_COLOR·al_premul_rgba( |
218 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | 222 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) |
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 223 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). | 224 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a(r·*·a·/·255,·g·*·a·/·255,·b·*·a·/·255,·a). |
221 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of | 225 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of |
222 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that | 226 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that |
Offset 236, 17 lines modified | Offset 240, 17 lines modified | ||
236 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 240 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
237 | ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a) | 241 | ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a) |
238 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 242 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
239 | Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. | 243 | Convert·r,·g,·b,·a·(ranging·from·0.0f-1.0f)·into·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R. |
240 | This·function·can·be·called·before·Allegro·is·initialized. | 244 | This·function·can·be·called·before·Allegro·is·initialized. |
241 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 245 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
242 | Examples: | 246 | Examples: |
243 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | ||
244 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
245 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | 247 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c |
248 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | ||
249 | ····*·_\x8e_\x8x_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8._\x8c | ||
246 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 250 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_p\x8pr\x8re\x8em\x8mu\x8ul\x8l_\x8_r\x8rg\x8gb\x8ba\x8a_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
247 | ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a) | 251 | ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a) |
248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 252 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
249 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a). | 253 | This·is·a·shortcut·for·_\x8a_\x8l_\x8__\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f(r·*·a,·g·*·a,·b·*·a,·a). |
250 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of | 254 | By·default·Allegro·uses·pre-multiplied·alpha·for·transparent·blending·of |
251 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that | 255 | bitmaps·and·primitives·(see·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·for·a·discussion·of·that |
252 | feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be | 256 | feature).·This·means·that·if·you·want·to·tint·a·bitmap·or·primitive·to·be |
Offset 268, 26 lines modified | Offset 272, 26 lines modified | ||
268 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 272 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
269 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components·will·range | 273 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha.·Components·will·range |
270 | from·0-255. | 274 | from·0-255. |
271 | This·function·can·be·called·before·Allegro·is·initialized. | 275 | This·function·can·be·called·before·Allegro·is·initialized. |
272 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 276 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
273 | Examples: | 277 | Examples: |
274 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 278 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
275 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
276 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | 279 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c |
280 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
277 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* | 281 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8b_\x8_f\x8f·*\x8**\x8**\x8**\x8**\x8* |
278 | void·al_unmap_rgb_f(ALLEGRO_COLOR·color,·float·*r,·float·*g,·float·*b) | 282 | void·al_unmap_rgb_f(ALLEGRO_COLOR·color,·float·*r,·float·*g,·float·*b) |
279 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 283 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
280 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·ignoring·alpha.·Components·will·range | 284 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·ignoring·alpha.·Components·will·range |
281 | from·0.0f-1.0f. | 285 | from·0.0f-1.0f. |
282 | This·function·can·be·called·before·Allegro·is·initialized. | 286 | This·function·can·be·called·before·Allegro·is·initialized. |
283 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f | 287 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f |
284 | Examples: | 288 | Examples: |
285 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
286 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | 289 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c |
290 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
287 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* | 291 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8nm\x8ma\x8ap\x8p_\x8_r\x8rg\x8gb\x8ba\x8a·*\x8**\x8**\x8**\x8**\x8* |
288 | void·al_unmap_rgba(ALLEGRO_COLOR·color, | 292 | void·al_unmap_rgba(ALLEGRO_COLOR·color, |
289 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b,·unsigned·char·*a) | 293 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b,·unsigned·char·*a) |
290 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
291 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0-255. | 295 | Retrieves·components·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R.·Components·will·range·from·0-255. |
292 | This·function·can·be·called·before·Allegro·is·initialized. | 296 | This·function·can·be·called·before·Allegro·is·initialized. |
293 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 297 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a_\x8__\x8f,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
Offset 329, 14 lines modified | Offset 333, 18 lines modified | ||
329 | ····*·p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·is·the·number·of·bytes·used·to·represent·a·single·block·of | 333 | ····*·p\x8pi\x8ix\x8xe\x8el\x8l_\x8_s\x8si\x8iz\x8ze\x8e·is·the·number·of·bytes·used·to·represent·a·single·block·of |
330 | ······pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and | 334 | ······pixels·for·the·pixel·format·of·this·locked·region.·For·most·formats·(and |
331 | ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the | 335 | ······historically,·this·used·to·be·true·for·all·formats),·this·is·just·the |
332 | ······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 |
333 | ······different. | 337 | ······different. |
334 | 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, |
335 | _\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: | ||
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 | ||
343 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
336 | *\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* |
337 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 345 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
338 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 346 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
339 | 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 |
340 | 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 |
341 | 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. |
342 | ·····N\x8No\x8ot\x8te\x8e:\x8: | 350 | ·····N\x8No\x8ot\x8te\x8e:\x8: |
Offset 432, 14 lines modified | Offset 440, 18 lines modified | ||
432 | ······resulting·in·4x·compression·ratio.·This·format·supports·sharp·alpha | 440 | ······resulting·in·4x·compression·ratio.·This·format·supports·sharp·alpha |
433 | ······transitions.·Since·5.1.9. | 441 | ······transitions.·Since·5.1.9. |
434 | ····*·ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT5·-·Compressed·using·the·DXT5 | 442 | ····*·ALLEGRO_PIXEL_FORMAT_COMPRESSED_RGBA_DXT5·-·Compressed·using·the·DXT5 |
Max diff block lines reached; 45354/53144 bytes (85.34%) of diff not shown. |
Offset 265, 14 lines modified | Offset 265, 21 lines modified | ||
265 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 265 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
266 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 266 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
267 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 267 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
268 | users.</p> | 268 | users.</p> |
269 | </blockquote> | 269 | </blockquote> |
270 | <p>See·also:·<a | 270 | <p>See·also:·<a |
271 | href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> | 271 | href="haptic.html#al_get_haptic_from_joystick">al_get_haptic_from_joystick</a></p> |
272 | <p>Examples:</p> | ||
273 | <ul> | ||
274 | <li><a | ||
275 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> | ||
278 | </ul> | ||
272 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 279 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> |
273 | <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">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> | 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">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> |
274 | <p><a | 281 | <p><a |
275 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source | 282 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L37">Source |
276 | Code</a></p> | 283 | Code</a></p> |
277 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 284 | <p>This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
278 | capabilities.·If·the·flag·is·set·in·the·return·value·of·<a | 285 | capabilities.·If·the·flag·is·set·in·the·return·value·of·<a |
Offset 516, 14 lines modified | Offset 523, 21 lines modified | ||
516 | <p>Since:·5.1.8</p> | 523 | <p>Since:·5.1.8</p> |
517 | <blockquote> | 524 | <blockquote> |
518 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 525 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
519 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 526 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
520 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 527 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
521 | users.</p> | 528 | users.</p> |
522 | </blockquote> | 529 | </blockquote> |
530 | <p>Examples:</p> | ||
531 | <ul> | ||
532 | <li><a | ||
533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | ||
534 | <li><a | ||
535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> | ||
536 | </ul> | ||
523 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> | 537 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> |
524 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span></code></pre></div> | 538 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID<span·class="op">;</span></span></code></pre></div> |
525 | <p><a | 539 | <p><a |
526 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source | 540 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L183">Source |
527 | Code</a></p> | 541 | Code</a></p> |
528 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic | 542 | <p>This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic |
529 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible | 543 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible |
Offset 531, 14 lines modified | Offset 545, 21 lines modified | ||
531 | <p>Since:·5.1.8</p> | 545 | <p>Since:·5.1.8</p> |
532 | <blockquote> | 546 | <blockquote> |
533 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 547 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
534 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 548 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
535 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 549 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
536 | users.</p> | 550 | users.</p> |
537 | </blockquote> | 551 | </blockquote> |
552 | <p>Examples:</p> | ||
553 | <ul> | ||
554 | <li><a | ||
555 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | ||
556 | <li><a | ||
557 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L23">ex_haptic2.cpp</a></li> | ||
558 | </ul> | ||
538 | <h1·id="al_install_haptic">al_install_haptic</h1> | 559 | <h1·id="al_install_haptic">al_install_haptic</h1> |
539 | <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_install_haptic<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 560 | <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_install_haptic<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
540 | <p><a | 561 | <p><a |
541 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L34">Source | 562 | href="https://github.com/liballeg/allegro5/blob/master/src/haptic.c#L34">Source |
542 | Code</a></p> | 563 | Code</a></p> |
543 | <p>Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be | 564 | <p>Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be |
544 | called·before·using·any·other·haptic-related·functions.·Returns·true·if | 565 | called·before·using·any·other·haptic-related·functions.·Returns·true·if |
Offset 1246, 14 lines modified | Offset 1267, 11 lines modified | ||
1246 | <p>Since:·5.1.8</p> | 1267 | <p>Since:·5.1.8</p> |
1247 | <blockquote> | 1268 | <blockquote> |
1248 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1269 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1249 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all | 1270 | API</a>:</em>·Perhaps·could·be·simplified·due·to·limited·support·for·all |
1250 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from | 1271 | the·exposed·features·across·all·of·the·platforms.·Awaiting·feedback·from |
1251 | users.</p> | 1272 | users.</p> |
1252 | </blockquote> | 1273 | </blockquote> |
1253 | <p·class="timestamp"> | ||
1254 | Allegro·version·5.2.10 | ||
1255 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
1256 | </p> | ||
1257 | </div> | 1274 | </div> |
1258 | </body> | 1275 | </body> |
1259 | </html> | 1276 | </html> |
Offset 90, 14 lines modified | Offset 90, 17 lines modified | ||
90 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force | 90 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports·force |
91 | feedback·or·vibration. | 91 | feedback·or·vibration. |
92 | Since:·5.1.8 | 92 | Since:·5.1.8 |
93 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 93 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
94 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 94 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
95 | ·····feedback·from·users. | 95 | ·····feedback·from·users. |
96 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 96 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
99 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 100 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_C\x8CO\x8ON\x8NS\x8ST\x8TA\x8AN\x8NT\x8TS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
98 | enum·ALLEGRO_HAPTIC_CONSTANTS | 101 | enum·ALLEGRO_HAPTIC_CONSTANTS |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 103 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
101 | capabilities.·If·the·flag·is·set·in·the·return·value·of | 104 | capabilities.·If·the·flag·is·set·in·the·return·value·of |
102 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·it·means·the·device·supports·the·given·effect.·The | 105 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8c_\x8a_\x8p_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8i_\x8e_\x8s,·it·means·the·device·supports·the·given·effect.·The |
103 | value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to | 106 | value·of·these·flags·should·be·set·into·a·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T·struct·to |
Offset 283, 24 lines modified | Offset 286, 30 lines modified | ||
283 | ······If·you·don’t·want·to·use·an·envelope,·then·set·all·four·fields·of | 286 | ······If·you·don’t·want·to·use·an·envelope,·then·set·all·four·fields·of |
284 | ······data.envelope·to·0.0.·The·effect·will·then·play·back·at·full·intensity | 287 | ······data.envelope·to·0.0.·The·effect·will·then·play·back·at·full·intensity |
285 | ······throughout·its·playback. | 288 | ······throughout·its·playback. |
286 | Since:·5.1.8 | 289 | Since:·5.1.8 |
287 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 290 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
288 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 291 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
289 | ·····feedback·from·users. | 292 | ·····feedback·from·users. |
293 | Examples: | ||
294 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
295 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
290 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 296 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C_\x8_E\x8EF\x8FF\x8FE\x8EC\x8CT\x8T_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
291 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | 297 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
292 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 298 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
293 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and | 299 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect·and |
294 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow | 300 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow |
295 | allocation·by·the·users·of·the·Allegro·library. | 301 | allocation·by·the·users·of·the·Allegro·library. |
296 | Since:·5.1.8 | 302 | Since:·5.1.8 |
297 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 303 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
298 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 304 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
299 | ·····feedback·from·users. | 305 | ·····feedback·from·users. |
306 | Examples: | ||
307 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
308 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | ||
300 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 309 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_h\x8ha\x8ap\x8pt\x8ti\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
301 | bool·al_install_haptic(void) | 310 | bool·al_install_haptic(void) |
302 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 311 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
303 | Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be·called | 312 | Installs·the·haptic·(force·feedback)·device·subsystem.·This·must·be·called |
304 | before·using·any·other·haptic-related·functions.·Returns·true·if·the·haptics | 313 | before·using·any·other·haptic-related·functions.·Returns·true·if·the·haptics |
305 | subsystem·could·be·initialized·correctly,·false·in·case·of·error. | 314 | subsystem·could·be·initialized·correctly,·false·in·case·of·error. |
306 | For·portability·you·should·first·open·a·display·before·calling | 315 | For·portability·you·should·first·open·a·display·before·calling |
Offset 709, 8 lines modified | Offset 718, 7 lines modified | ||
709 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to | 718 | again·manually·in·this·case.·However,·if·true·is·returned,·it·is·necessary·to |
710 | call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8e_\x8f_\x8f_\x8e_\x8c_\x8t·when·the·effect·isn’t·needed·anymore,·to·prevent | 719 | call·_\x8a_\x8l_\x8__\x8r_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8__\x8e_\x8f_\x8f_\x8e_\x8c_\x8t·when·the·effect·isn’t·needed·anymore,·to·prevent |
711 | the·amount·of·available·effects·on·the·haptic·device·from·running·out. | 720 | the·amount·of·available·effects·on·the·haptic·device·from·running·out. |
712 | Since:·5.1.8 | 721 | Since:·5.1.8 |
713 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for | 722 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Perhaps·could·be·simplified·due·to·limited·support·for |
714 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 723 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
715 | ·····feedback·from·users. | 724 | ·····feedback·from·users. |
716 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 207, 14 lines modified | Offset 207, 23 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> | ||
214 | <h1 | 223 | <h1 |
215 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> | 224 | id="al_is_image_addon_initialized">al_is_image_addon_initialized</h1> |
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> | 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> |
217 | <p><a | 226 | <p><a |
218 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source | 227 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L169">Source |
219 | Code</a></p> | 228 | Code</a></p> |
220 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 229 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
Offset 64, 14 lines modified | Offset 64, 18 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 | ||
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* | 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* |
72 | bool·al_is_image_addon_initialized(void) | 76 | bool·al_is_image_addon_initialized(void) |
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
75 | Since:·5.2.6 | 79 | Since:·5.2.6 |
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* | 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* |
77 | void·al_shutdown_image_addon(void) | 81 | void·al_shutdown_image_addon(void) |
Offset 230, 28 lines modified | Offset 230, 44 lines modified | ||
230 | <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_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div> | 230 | <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_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span></code></pre></div> |
231 | <p><a | 231 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L39">Source |
233 | Code</a></p> | 233 | Code</a></p> |
234 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> | 234 | <p>This·is·an·abstract·data·type·representing·a·physical·joystick.</p> |
235 | <p>See·also:·<a | 235 | <p>See·also:·<a |
236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
237 | <p>Examples:</p> | ||
238 | <ul> | ||
239 | <li><a | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> | ||
241 | <li><a | ||
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> | ||
243 | <li><a | ||
244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> | ||
245 | </ul> | ||
237 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 246 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div> | 247 | <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_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span></code></pre></div> |
239 | <p><a | 248 | <p><a |
240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source | 249 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L45">Source |
241 | Code</a></p> | 250 | Code</a></p> |
242 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s | 251 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s |
243 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and | 252 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and |
244 | read-only.</p> | 253 | read-only.</p> |
245 | <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="kw">struct</span>·<span·class="op">{</span></span> | 254 | <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="kw">struct</span>·<span·class="op">{</span></span> |
246 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span> | 255 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">float</span>·axis<span·class="op">[</span>num_axes<span·class="op">];</span>·············<span·class="co">//·-1.0·to·1.0</span></span> |
247 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span> | 256 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·stick<span·class="op">[</span>num_sticks<span·class="op">];</span></span> |
248 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div> | 257 | <span·id="cb4-4"><a·href="#cb4-4"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·button<span·class="op">[</span>num_buttons<span·class="op">];</span>·············<span·class="co">//·0·to·32767</span></span></code></pre></div> |
249 | <p>See·also:·<a | 258 | <p>See·also:·<a |
250 | href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> | 259 | href="joystick.html#al_get_joystick_state">al_get_joystick_state</a></p> |
260 | <p>Examples:</p> | ||
261 | <ul> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> | ||
264 | <li><a | ||
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> | ||
266 | </ul> | ||
251 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 267 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> |
252 | <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="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> | 268 | <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="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> |
253 | <p><a | 269 | <p><a |
254 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source | 270 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L58">Source |
255 | Code</a></p> | 271 | Code</a></p> |
256 | <ul> | 272 | <ul> |
257 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 273 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
Offset 589, 14 lines modified | Offset 605, 11 lines modified | ||
589 | <li><a | 605 | <li><a |
590 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L92">ex_joystick_hotplugging.c</a></li> | 606 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L92">ex_joystick_hotplugging.c</a></li> |
591 | <li><a | 607 | <li><a |
592 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L250">ex_joystick_events.c</a></li> | 608 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L250">ex_joystick_events.c</a></li> |
593 | <li><a | 609 | <li><a |
594 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L875">ex_haptic2.cpp</a></li> | 610 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L875">ex_haptic2.cpp</a></li> |
595 | </ul> | 611 | </ul> |
596 | <p·class="timestamp"> | ||
597 | Allegro·version·5.2.10 | ||
598 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
599 | </p> | ||
600 | </div> | 612 | </div> |
601 | </body> | 613 | </body> |
602 | </html> | 614 | </html> |
Offset 74, 24 lines modified | Offset 74, 31 lines modified | ||
74 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the | 74 | mutually·exclusive.·The·haptics·subsystem·will·use·the·same·driver·as·the |
75 | joystick·system·does. | 75 | joystick·system·does. |
76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* |
77 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | 77 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; |
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 79 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
80 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k | 80 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k |
81 | Examples: | ||
82 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | ||
83 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
84 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YS\x8ST\x8TI\x8IC\x8CK\x8K_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 86 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and | 88 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·joystick’s·axes·and |
85 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. | 89 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. |
86 | struct·{ | 90 | struct·{ |
87 | ···float·axis[num_axes];·············//·-1.0·to·1.0 | 91 | ···float·axis[num_axes];·············//·-1.0·to·1.0 |
88 | }·stick[num_sticks]; | 92 | }·stick[num_sticks]; |
89 | int·button[num_buttons];·············//·0·to·32767 | 93 | int·button[num_buttons];·············//·0·to·32767 |
90 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 94 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
95 | Examples: | ||
96 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | ||
97 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
91 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_J\x8JO\x8OY\x8YF\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
92 | enum·ALLEGRO_JOYFLAGS | 99 | enum·ALLEGRO_JOYFLAGS |
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
94 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input | 101 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input |
95 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input | 102 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input |
96 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) | 103 | (this·enum·is·a·holdover·from·the·old·API·and·may·be·removed) |
97 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | 104 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8f_\x8l_\x8a_\x8g_\x8s |
Offset 273, 8 lines modified | Offset 280, 7 lines modified | ||
273 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
274 | Returns·the·global·joystick·event·source.·All·_\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by | 281 | Returns·the·global·joystick·event·source.·All·_\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by |
275 | this·event·source. | 282 | this·event·source. |
276 | Examples: | 283 | Examples: |
277 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c | 284 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8h_\x8o_\x8t_\x8p_\x8l_\x8u_\x8g_\x8g_\x8i_\x8n_\x8g_\x8._\x8c |
278 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 285 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
279 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | 286 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p |
280 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 212, 14 lines modified | Offset 212, 23 lines modified | ||
212 | <ul> | 212 | <ul> |
213 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time | 213 | <li>display·-·points·to·the·display·that·had·keyboard·focus·at·the·time |
214 | the·state·was·saved.·If·no·display·was·focused,·this·points·to | 214 | the·state·was·saved.·If·no·display·was·focused,·this·points·to |
215 | NULL.</li> | 215 | NULL.</li> |
216 | </ul> | 216 | </ul> |
217 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a | 217 | <p>You·cannot·read·the·state·of·keys·directly.·Use·the·function·<a |
218 | href="keyboard.html#al_key_down">al_key_down</a>.</p> | 218 | href="keyboard.html#al_key_down">al_key_down</a>.</p> |
219 | <p>Examples:</p> | ||
220 | <ul> | ||
221 | <li><a | ||
222 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L42">ex_d3d.cpp</a></li> | ||
223 | <li><a | ||
224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L4">ex_keyboard_focus.c</a></li> | ||
225 | <li><a | ||
226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L33">ex_mouse_focus.c</a></li> | ||
227 | </ul> | ||
219 | <h1·id="key-codes">Key·codes</h1> | 228 | <h1·id="key-codes">Key·codes</h1> |
220 | <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest | 229 | <p>The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest |
221 | key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do | 230 | key·code.·So·if·you·want·to·use·the·key·code·as·array·index·you·can·do |
222 | something·like·this:</p> | 231 | something·like·this:</p> |
223 | <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>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span> | 232 | <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>·pressed_keys<span·class="op">[</span>ALLEGRO_KEY_MAX<span·class="op">];</span></span> |
224 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span> | 233 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="co">//...</span></span> |
225 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div> | 234 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>pressed_keys<span·class="op">[</span>key_code<span·class="op">]</span>·<span·class="op">=</span>·<span·class="kw">true</span><span·class="op">;</span></span></code></pre></div> |
Offset 344, 19 lines modified | Offset 353, 19 lines modified | ||
344 | was·already·installed,·nothing·happens·and·true·is·returned.</p> | 353 | was·already·installed,·nothing·happens·and·true·is·returned.</p> |
345 | <p>See·also:·<a | 354 | <p>See·also:·<a |
346 | href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a | 355 | href="keyboard.html#al_uninstall_keyboard">al_uninstall_keyboard</a>,·<a |
347 | href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p> | 356 | href="keyboard.html#al_is_keyboard_installed">al_is_keyboard_installed</a></p> |
348 | <p>Examples:</p> | 357 | <p>Examples:</p> |
349 | <ul> | 358 | <ul> |
350 | <li><a | 359 | <li><a |
351 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L155">ex_audio_props.cpp</a></li> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L34">ex_d3d.cpp</a></li> | 360 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L34">ex_d3d.cpp</a></li> |
354 | <li><a | 361 | <li><a |
355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L39">ex_keyboard_focus.c</a></li> | 362 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L39">ex_keyboard_focus.c</a></li> |
363 | <li><a | ||
364 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L44">ex_mouse_focus.c</a></li> | ||
356 | </ul> | 365 | </ul> |
357 | <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1> | 366 | <h1·id="al_is_keyboard_installed">al_is_keyboard_installed</h1> |
358 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 367 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_keyboard_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
359 | <p><a | 368 | <p><a |
360 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source | 369 | href="https://github.com/liballeg/allegro5/blob/master/src/keybdnu.c#L112">Source |
361 | Code</a></p> | 370 | Code</a></p> |
362 | <p>Returns·true·if·<a | 371 | <p>Returns·true·if·<a |
Offset 484, 20 lines modified | Offset 493, 17 lines modified | ||
484 | <p>Retrieve·the·keyboard·event·source.·All·<a | 493 | <p>Retrieve·the·keyboard·event·source.·All·<a |
485 | href="events.html#allegro_event_key_down">keyboard·events</a>·are | 494 | href="events.html#allegro_event_key_down">keyboard·events</a>·are |
486 | generated·by·this·event·source.</p> | 495 | generated·by·this·event·source.</p> |
487 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> | 496 | <p>Returns·NULL·if·the·keyboard·subsystem·was·not·installed.</p> |
488 | <p>Examples:</p> | 497 | <p>Examples:</p> |
489 | <ul> | 498 | <ul> |
490 | <li><a | 499 | <li><a |
491 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 500 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_events.c#L140">ex_keyboard_events.c</a></li> |
492 | <li><a | 501 | <li><a |
493 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 502 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L145">ex_opengl.c</a></li> |
494 | <li><a | 503 | <li><a |
495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 504 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L40">ex_winfull.c</a></li> |
496 | </ul> | 505 | </ul> |
497 | <p·class="timestamp"> | ||
498 | Allegro·version·5.2.10 | ||
499 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
500 | </p> | ||
501 | </div> | 506 | </div> |
502 | </body> | 507 | </body> |
503 | </html> | 508 | </html> |
Offset 62, 14 lines modified | Offset 62, 18 lines modified | ||
62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
64 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at | 64 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s·state·at |
65 | a·particular·instant.·It·contains·the·following·publically·readable·fields: | 65 | a·particular·instant.·It·contains·the·following·publically·readable·fields: |
66 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 66 | ····*·display·-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
67 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. | 67 | ······state·was·saved.·If·no·display·was·focused,·this·points·to·NULL. |
68 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n. | 68 | You·cannot·read·the·state·of·keys·directly.·Use·the·function·_\x8a_\x8l_\x8__\x8k_\x8e_\x8y_\x8__\x8d_\x8o_\x8w_\x8n. |
69 | Examples: | ||
70 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
71 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
72 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
69 | *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·K\x8Ke\x8ey\x8y·c\x8co\x8od\x8de\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
70 | The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So | 74 | The·constant·ALLEGRO_KEY_MAX·is·always·one·higher·than·the·highest·key·code.·So |
71 | if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this: | 75 | if·you·want·to·use·the·key·code·as·array·index·you·can·do·something·like·this: |
72 | bool·pressed_keys[ALLEGRO_KEY_MAX]; | 76 | bool·pressed_keys[ALLEGRO_KEY_MAX]; |
73 | //... | 77 | //... |
74 | pressed_keys[key_code]·=·true; | 78 | pressed_keys[key_code]·=·true; |
75 | These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the | 79 | These·are·the·list·of·key·codes·used·by·Allegro,·which·are·returned·in·the |
Offset 186, 17 lines modified | Offset 190, 17 lines modified | ||
186 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 190 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
187 | bool·al_install_keyboard(void) | 191 | bool·al_install_keyboard(void) |
188 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
189 | Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already | 193 | Install·a·keyboard·driver.·Returns·true·if·successful.·If·a·driver·was·already |
190 | installed,·nothing·happens·and·true·is·returned. | 194 | installed,·nothing·happens·and·true·is·returned. |
191 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d | 195 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d,·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8e_\x8d |
192 | Examples: | 196 | Examples: |
193 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | ||
194 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 197 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
195 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 198 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
199 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
196 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 200 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
197 | bool·al_is_keyboard_installed(void) | 201 | bool·al_is_keyboard_installed(void) |
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully. | 203 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d·was·called·successfully. |
200 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 204 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
201 | void·al_uninstall_keyboard(void) | 205 | void·al_uninstall_keyboard(void) |
202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 264, 11 lines modified | Offset 268, 10 lines modified | ||
264 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 268 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_k\x8ke\x8ey\x8yb\x8bo\x8oa\x8ar\x8rd\x8d_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
265 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) | 269 | ALLEGRO_EVENT_SOURCE·*al_get_keyboard_event_source(void) |
266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 270 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
267 | Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this | 271 | Retrieve·the·keyboard·event·source.·All·_\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this |
268 | event·source. | 272 | event·source. |
269 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. | 273 | Returns·NULL·if·the·keyboard·subsystem·was·not·installed. |
270 | Examples: | 274 | Examples: |
275 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
276 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
277 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c | ||
271 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | ||
272 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
273 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | ||
274 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 196, 22 lines modified | Offset 196, 24 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> | ||
203 | <h1 | 208 | <h1 |
204 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> | 209 | id="al_get_allegro_memfile_version">al_get_allegro_memfile_version</h1> |
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> | 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> |
206 | <p><a | 211 | <p><a |
207 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source | 212 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L201">Source |
208 | Code</a></p> | 213 | Code</a></p> |
209 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 214 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
210 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 215 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
211 | <p·class="timestamp"> | ||
212 | Allegro·version·5.2.10 | ||
213 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
214 | </p> | ||
215 | </div> | 216 | </div> |
216 | </body> | 217 | </body> |
217 | </html> | 218 | </html> |
Offset 57, 13 lines modified | Offset 57, 14 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 | ||
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* | 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* |
65 | uint32_t·al_get_allegro_memfile_version(void) | 67 | uint32_t·al_get_allegro_memfile_version(void) |
66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
67 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 69 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
68 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 70 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
69 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 203, 14 lines modified | Offset 203, 21 lines modified | ||
203 | be·overridden.</p> | 203 | be·overridden.</p> |
204 | <p>This·is·a·macro.</p> | 204 | <p>This·is·a·macro.</p> |
205 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a | 205 | <p>See·also:·<a·href="memory.html#al_free">al_free</a>,·<a |
206 | href="memory.html#al_realloc">al_realloc</a>,·<a | 206 | href="memory.html#al_realloc">al_realloc</a>,·<a |
207 | href="memory.html#al_calloc">al_calloc</a>,·<a | 207 | href="memory.html#al_calloc">al_calloc</a>,·<a |
208 | href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a | 208 | href="memory.html#al_malloc_with_context">al_malloc_with_context</a>,·<a |
209 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> | 209 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a></p> |
210 | <p>Examples:</p> | ||
211 | <ul> | ||
212 | <li><a | ||
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> | ||
214 | <li><a | ||
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> | ||
216 | </ul> | ||
210 | <h1·id="al_free">al_free</h1> | 217 | <h1·id="al_free">al_free</h1> |
211 | <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="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 218 | <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="pp">#define·al_free</span><span·class="op">(</span><span·class="pp">p</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
212 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</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> | 219 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_free_with_context</span><span·class="op">((</span><span·class="pp">p</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> |
213 | <p><a | 220 | <p><a |
214 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source | 221 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L47">Source |
215 | Code</a></p> | 222 | Code</a></p> |
216 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 223 | <p>Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
Offset 218, 14 lines modified | Offset 225, 23 lines modified | ||
218 | <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be | 225 | <p>Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be |
219 | freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function | 226 | freed·from·the·same·DLL.·In·the·few·places·where·an·Allegro·function |
220 | returns·a·pointer·that·must·be·freed,·you·must·use·<a | 227 | returns·a·pointer·that·must·be·freed,·you·must·use·<a |
221 | href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p> | 228 | href="memory.html#al_free">al_free</a>·for·portability·to·Windows.</p> |
222 | <p>This·is·a·macro.</p> | 229 | <p>This·is·a·macro.</p> |
223 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 230 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
224 | href="memory.html#al_free_with_context">al_free_with_context</a></p> | 231 | href="memory.html#al_free_with_context">al_free_with_context</a></p> |
232 | <p>Examples:</p> | ||
233 | <ul> | ||
234 | <li><a | ||
235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clipboard.c#L67">ex_clipboard.c</a></li> | ||
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> | ||
238 | <li><a | ||
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> | ||
240 | </ul> | ||
225 | <h1·id="al_realloc">al_realloc</h1> | 241 | <h1·id="al_realloc">al_realloc</h1> |
226 | <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> |
227 | <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> |
228 | <p><a | 244 | <p><a |
229 | 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 |
230 | Code</a></p> | 246 | Code</a></p> |
231 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may | 247 | <p>Like·realloc()·in·the·C·standard·library,·but·the·implementation·may |
Offset 240, 14 lines modified | Offset 256, 19 lines modified | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source | 256 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L57">Source |
241 | Code</a></p> | 257 | Code</a></p> |
242 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may | 258 | <p>Like·calloc()·in·the·C·standard·library,·but·the·implementation·may |
243 | be·overridden.</p> | 259 | be·overridden.</p> |
244 | <p>This·is·a·macro.</p> | 260 | <p>This·is·a·macro.</p> |
245 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 261 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
246 | href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p> | 262 | href="memory.html#al_calloc_with_context">al_calloc_with_context</a></p> |
263 | <p>Examples:</p> | ||
264 | <ul> | ||
265 | <li><a | ||
266 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L123">ex_record_name.c</a></li> | ||
267 | </ul> | ||
247 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> | 268 | <h1·id="al_malloc_with_context">al_malloc_with_context</h1> |
248 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_malloc_with_context<span·class="op">(</span><span·class="dt">size_t</span>·n<span·class="op">,</span></span> | 269 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*</span>al_malloc_with_context<span·class="op">(</span><span·class="dt">size_t</span>·n<span·class="op">,</span></span> |
249 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">)</span></span></code></pre></div> | 270 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·line<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>file<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>func<span·class="op">)</span></span></code></pre></div> |
250 | <p><a | 271 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L38">Source | 272 | href="https://github.com/liballeg/allegro5/blob/master/src/memory.c#L38">Source |
252 | Code</a></p> | 273 | Code</a></p> |
253 | <p>This·calls·malloc()·from·the·Allegro·library·(this·matters·on | 274 | <p>This·calls·malloc()·from·the·Allegro·library·(this·matters·on |
Offset 314, 14 lines modified | Offset 335, 11 lines modified | ||
314 | and·<a | 335 | and·<a |
315 | href="memory.html#al_calloc_with_context">al_calloc_with_context</a>. | 336 | href="memory.html#al_calloc_with_context">al_calloc_with_context</a>. |
316 | The·context·arguments·may·be·used·for·debugging.·The·new·functions | 337 | The·context·arguments·may·be·used·for·debugging.·The·new·functions |
317 | should·be·thread·safe.</p> | 338 | should·be·thread·safe.</p> |
318 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> | 339 | <p>If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored.</p> |
319 | <p>See·also:·<a | 340 | <p>See·also:·<a |
320 | href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> | 341 | href="memory.html#allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</a></p> |
321 | <p·class="timestamp"> | ||
322 | Allegro·version·5.2.10 | ||
323 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
324 | </p> | ||
325 | </div> | 342 | </div> |
326 | </body> | 343 | </body> |
327 | </html> | 344 | </html> |
Offset 60, 25 lines modified | Offset 60, 32 lines modified | ||
60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
62 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 62 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
63 | overridden. | 63 | overridden. |
64 | This·is·a·macro. | 64 | This·is·a·macro. |
65 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t, | 65 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t, |
66 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 66 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
67 | Examples: | ||
68 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
69 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | ||
67 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
68 | #define·al_free(p)·\ | 71 | #define·al_free(p)·\ |
69 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 72 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 74 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
72 | overridden. | 75 | overridden. |
73 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed | 76 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be·freed |
74 | 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 |
75 | 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. |
76 | This·is·a·macro. | 79 | This·is·a·macro. |
77 | 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: | ||
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 | ||
84 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | ||
78 | *\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* |
79 | #define·al_realloc(p,·n)·\ | 86 | #define·al_realloc(p,·n)·\ |
80 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
82 | 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 |
83 | overridden. | 90 | overridden. |
84 | This·is·a·macro. | 91 | This·is·a·macro. |
Offset 87, 14 lines modified | Offset 94, 16 lines modified | ||
87 | #define·al_calloc(c,·n)·\ | 94 | #define·al_calloc(c,·n)·\ |
88 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 95 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 97 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
91 | overridden. | 98 | overridden. |
92 | This·is·a·macro. | 99 | This·is·a·macro. |
93 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 100 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
101 | Examples: | ||
102 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | ||
94 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c_\x8_w\x8wi\x8it\x8th\x8h_\x8_c\x8co\x8on\x8nt\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c_\x8_w\x8wi\x8it\x8th\x8h_\x8_c\x8co\x8on\x8nt\x8te\x8ex\x8xt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
95 | void·*al_malloc_with_context(size_t·n, | 104 | void·*al_malloc_with_context(size_t·n, |
96 | ···int·line,·const·char·*file,·const·char·*func) | 105 | ···int·line,·const·char·*file,·const·char·*func) |
97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
98 | This·calls·malloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless | 107 | This·calls·malloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless |
99 | overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e, | 108 | overridden·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e, |
100 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c·macro. | 109 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c·macro. |
Offset 135, 8 lines modified | Offset 144, 7 lines modified | ||
135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
136 | Override·the·memory·management·functions·with·implementations·of | 145 | Override·the·memory·management·functions·with·implementations·of |
137 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·and | 146 | _\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t·and |
138 | _\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t.·The·context·arguments·may·be·used·for·debugging.·The | 147 | _\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t.·The·context·arguments·may·be·used·for·debugging.·The |
139 | new·functions·should·be·thread·safe. | 148 | new·functions·should·be·thread·safe. |
140 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. | 149 | If·the·pointer·is·NULL,·the·default·behaviour·will·be·restored. |
141 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E | 150 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E |
142 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 182, 28 lines modified | Offset 182, 34 lines modified | ||
182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> | 182 | <h1·id="allegro_pi">ALLEGRO_PI</h1> |
183 | <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="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> | 183 | <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="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> |
184 | <p><a | 184 | <p><a |
185 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source | 185 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/base.h#L96">Source |
186 | Code</a></p> | 186 | Code</a></p> |
187 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, | 187 | <p>C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π, |
188 | but·you·can·use·this·one·instead.</p> | 188 | but·you·can·use·this·one·instead.</p> |
189 | <p>Examples:</p> | ||
190 | <ul> | ||
191 | <li><a | ||
192 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L31">ex_convert.c</a></li> | ||
193 | <li><a | ||
194 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl.c#L89">ex_opengl.c</a></li> | ||
195 | <li><a | ||
196 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L49">ex_blend_bench.c</a></li> | ||
197 | </ul> | ||
189 | <h1·id="al_run_main">al_run_main</h1> | 198 | <h1·id="al_run_main">al_run_main</h1> |
190 | <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">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div> | 199 | <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">int</span>·al_run_main<span·class="op">(</span><span·class="dt">int</span>·argc<span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**</span>argv<span·class="op">,</span>·<span·class="dt">int</span>·<span·class="op">(*</span>user_main<span·class="op">)(</span><span·class="dt">int</span><span·class="op">,</span>·<span·class="dt">char</span>·<span·class="op">**))</span></span></code></pre></div> |
191 | <p><a | 200 | <p><a |
192 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source | 201 | href="https://github.com/liballeg/allegro5/blob/master/src/allegro.c#L36">Source |
193 | Code</a></p> | 202 | Code</a></p> |
194 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main() | 203 | <p>This·function·is·useful·in·cases·where·you·don’t·have·a·main() |
195 | function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library). | 204 | function·but·want·to·run·Allegro·(mostly·useful·in·a·wrapper·library). |
196 | Under·Windows·and·Linux·this·is·no·problem·because·you·simply·can·call | 205 | Under·Windows·and·Linux·this·is·no·problem·because·you·simply·can·call |
197 | <a·href="system.html#al_install_system">al_install_system</a>.·But·some | 206 | <a·href="system.html#al_install_system">al_install_system</a>.·But·some |
198 | other·system·(like·OSX)·don’t·allow·calling·<a | 207 | other·system·(like·OSX)·don’t·allow·calling·<a |
199 | href="system.html#al_install_system">al_install_system</a>·in·the·main | 208 | href="system.html#al_install_system">al_install_system</a>·in·the·main |
200 | thread.·al_run_main·will·know·what·to·do·in·that·case.</p> | 209 | thread.·al_run_main·will·know·what·to·do·in·that·case.</p> |
201 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and | 210 | <p>The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and |
202 | the·return·value·of·user_main·will·be·returned.</p> | 211 | the·return·value·of·user_main·will·be·returned.</p> |
203 | <p·class="timestamp"> | ||
204 | Allegro·version·5.2.10 | ||
205 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
206 | </p> | ||
207 | </div> | 212 | </div> |
208 | </body> | 213 | </body> |
209 | </html> | 214 | </html> |
Offset 48, 18 lines modified | Offset 48, 21 lines modified | ||
48 | These·functions·are·declared·in·the·main·Allegro·header·file: | 48 | These·functions·are·declared·in·the·main·Allegro·header·file: |
49 | ·#include·<allegro5/allegro.h> | 49 | ·#include·<allegro5/allegro.h> |
50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* | 50 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_P\x8PI\x8I·*\x8**\x8**\x8**\x8**\x8**\x8* |
51 | #define·ALLEGRO_PI········3.14159265358979323846 | 51 | #define·ALLEGRO_PI········3.14159265358979323846 |
52 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 52 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
53 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you | 53 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but·you |
54 | can·use·this·one·instead. | 54 | can·use·this·one·instead. |
55 | Examples: | ||
56 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
57 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | ||
58 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
55 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_m\x8ma\x8ai\x8in\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
56 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) | 60 | int·al_run_main(int·argc,·char·**argv,·int·(*user_main)(int,·char·**)) |
57 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
58 | This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but | 62 | This·function·is·useful·in·cases·where·you·don’t·have·a·main()·function·but |
59 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and | 63 | want·to·run·Allegro·(mostly·useful·in·a·wrapper·library).·Under·Windows·and |
60 | Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But | 64 | Linux·this·is·no·problem·because·you·simply·can·call·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m.·But |
61 | some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main | 65 | some·other·system·(like·OSX)·don’t·allow·calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·in·the·main |
62 | thread.·al_run_main·will·know·what·to·do·in·that·case. | 66 | thread.·al_run_main·will·know·what·to·do·in·that·case. |
63 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return | 67 | The·passed·argc·and·argv·will·simply·be·passed·on·to·user_main·and·the·return |
64 | value·of·user_main·will·be·returned. | 68 | value·of·user_main·will·be·returned. |
65 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 202, 14 lines modified | Offset 202, 23 lines modified | ||
202 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span> | 202 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x1<span·class="op">;</span></span> |
203 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span> | 203 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y1<span·class="op">;</span></span> |
204 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span> | 204 | <span·id="cb3-5"><a·href="#cb3-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x2<span·class="op">;</span></span> |
205 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span> | 205 | <span·id="cb3-6"><a·href="#cb3-6"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·y2<span·class="op">;</span></span> |
206 | <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div> | 206 | <span·id="cb3-7"><a·href="#cb3-7"·aria-hidden="true"·tabindex="-1"></a><span·class="op">}</span>·ALLEGRO_MONITOR_INFO<span·class="op">;</span></span></code></pre></div> |
207 | <p>See·also:·<a | 207 | <p>See·also:·<a |
208 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 208 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
209 | <p>Examples:</p> | ||
210 | <ul> | ||
211 | <li><a | ||
212 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L8">ex_monitorinfo.c</a></li> | ||
213 | <li><a | ||
214 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L67">ex_drag_and_drop.c</a></li> | ||
215 | <li><a | ||
216 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L16">ex_windows.c</a></li> | ||
217 | </ul> | ||
209 | <h1·id="al_get_monitor_info">al_get_monitor_info</h1> | 218 | <h1·id="al_get_monitor_info">al_get_monitor_info</h1> |
210 | <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_get_monitor_info<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">,</span>·ALLEGRO_MONITOR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div> | 219 | <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_get_monitor_info<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">,</span>·ALLEGRO_MONITOR_INFO·<span·class="op">*</span>info<span·class="op">)</span></span></code></pre></div> |
211 | <p><a | 220 | <p><a |
212 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L52">Source | 221 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L52">Source |
213 | Code</a></p> | 222 | Code</a></p> |
214 | <p>Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is | 223 | <p>Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is |
215 | a·number·from·0·to·al_get_num_video_adapters()-1.</p> | 224 | a·number·from·0·to·al_get_num_video_adapters()-1.</p> |
Offset 225, 15 lines modified | Offset 234, 15 lines modified | ||
225 | <p>Examples:</p> | 234 | <p>Examples:</p> |
226 | <ul> | 235 | <ul> |
227 | <li><a | 236 | <li><a |
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L26">ex_monitorinfo.c</a></li> | 237 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L26">ex_monitorinfo.c</a></li> |
229 | <li><a | 238 | <li><a |
230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L68">ex_drag_and_drop.c</a></li> | 239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L68">ex_drag_and_drop.c</a></li> |
231 | <li><a | 240 | <li><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L49">ex_windows.c</a></li> |
233 | </ul> | 242 | </ul> |
234 | <h1·id="al_get_monitor_dpi">al_get_monitor_dpi</h1> | 243 | <h1·id="al_get_monitor_dpi">al_get_monitor_dpi</h1> |
235 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_dpi<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> | 244 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_dpi<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> |
236 | <p><a | 245 | <p><a |
237 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L68">Source | 246 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L68">Source |
238 | Code</a></p> | 247 | Code</a></p> |
239 | <p>Get·the·dots·per·inch·of·a·monitor·attached·to·the·display | 248 | <p>Get·the·dots·per·inch·of·a·monitor·attached·to·the·display |
Offset 262, 17 lines modified | Offset 271, 17 lines modified | ||
262 | <p>See·also:·<a | 271 | <p>See·also:·<a |
263 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 272 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
264 | <p>Examples:</p> | 273 | <p>Examples:</p> |
265 | <ul> | 274 | <ul> |
266 | <li><a | 275 | <li><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L21">ex_monitorinfo.c</a></li> | 276 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L21">ex_monitorinfo.c</a></li> |
268 | <li><a | 277 | <li><a |
269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L79">ex_dualies.c</a></li> | ||
270 | <li><a | ||
271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L20">ex_winfull.c</a></li> | 278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_winfull.c#L20">ex_winfull.c</a></li> |
279 | <li><a | ||
280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dualies.c#L79">ex_dualies.c</a></li> | ||
272 | </ul> | 281 | </ul> |
273 | <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1> | 282 | <h1·id="al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</h1> |
274 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> | 283 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_monitor_refresh_rate<span·class="op">(</span><span·class="dt">int</span>·adapter<span·class="op">)</span></span></code></pre></div> |
275 | <p><a | 284 | <p><a |
276 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source | 285 | href="https://github.com/liballeg/allegro5/blob/master/src/monitor.c#L36">Source |
277 | Code</a></p> | 286 | Code</a></p> |
278 | <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display | 287 | <p>Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display |
Offset 281, 14 lines modified | Offset 290, 11 lines modified | ||
281 | <blockquote> | 290 | <blockquote> |
282 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 291 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
283 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works | 292 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works |
284 | on·Windows.</p> | 293 | on·Windows.</p> |
285 | </blockquote> | 294 | </blockquote> |
286 | <p>See·also:·<a | 295 | <p>See·also:·<a |
287 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> | 296 | href="monitor.html#al_get_monitor_info">al_get_monitor_info</a></p> |
288 | <p·class="timestamp"> | ||
289 | Allegro·version·5.2.10 | ||
290 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
291 | </p> | ||
292 | </div> | 297 | </div> |
293 | </body> | 298 | </body> |
294 | </html> | 299 | </html> |
Offset 62, 27 lines modified | Offset 62, 31 lines modified | ||
62 | { | 62 | { |
63 | ···int·x1; | 63 | ···int·x1; |
64 | ···int·y1; | 64 | ···int·y1; |
65 | ···int·x2; | 65 | ···int·x2; |
66 | ···int·y2; | 66 | ···int·y2; |
67 | }·ALLEGRO_MONITOR_INFO; | 67 | }·ALLEGRO_MONITOR_INFO; |
68 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 68 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
69 | Examples: | ||
70 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
71 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | ||
72 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | ||
69 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
70 | bool·al_get_monitor_info(int·adapter,·ALLEGRO_MONITOR_INFO·*info) | 74 | bool·al_get_monitor_info(int·adapter,·ALLEGRO_MONITOR_INFO·*info) |
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number | 76 | Get·information·about·a·monitor’s·position·on·the·desktop.·adapter·is·a·number |
73 | from·0·to·al_get_num_video_adapters()-1. | 77 | from·0·to·al_get_num_video_adapters()-1. |
74 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL | 78 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL |
75 | backends,·which·will·often·have·different·adapters·available. | 79 | backends,·which·will·often·have·different·adapters·available. |
76 | Returns·true·on·success,·false·on·failure. | 80 | Returns·true·on·success,·false·on·failure. |
77 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8N_\x8I_\x8T_\x8O_\x8R_\x8__\x8I_\x8N_\x8F_\x8O,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s | 81 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8N_\x8I_\x8T_\x8O_\x8R_\x8__\x8I_\x8N_\x8F_\x8O,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s |
78 | Examples: | 82 | Examples: |
79 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 83 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c |
80 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | 84 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c |
81 | ····*·_\x8e_\x8x_\x8__\x8 | 85 | ····*·_\x8e_\x8x_\x8__\x8w_.i_.n_.d_.o_.w_.s_\x8._\x8c |
82 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_d\x8dp\x8pi\x8i·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_d\x8dp\x8pi\x8i·*\x8**\x8**\x8**\x8**\x8**\x8* |
83 | int·al_get_monitor_dpi(int·adapter) | 87 | int·al_get_monitor_dpi(int·adapter) |
84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
85 | Get·the·dots·per·inch·of·a·monitor·attached·to·the·display·adapter. | 89 | Get·the·dots·per·inch·of·a·monitor·attached·to·the·display·adapter. |
86 | Since:·5.2.5 | 90 | Since:·5.2.5 |
87 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s | 91 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8a_\x8p_\x8t_\x8e_\x8r_\x8s |
88 | Examples: | 92 | Examples: |
Offset 94, 18 lines modified | Offset 98, 17 lines modified | ||
94 | attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus | 98 | attached·to·the·computer·counts·as·one·or·more·adapters.·An·adapter·is·thus |
95 | really·a·video·port·that·can·have·a·monitor·connected·to·it. | 99 | really·a·video·port·that·can·have·a·monitor·connected·to·it. |
96 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL | 100 | On·Windows,·use·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8f_\x8l_\x8a_\x8g_\x8s·to·switch·between·Direct3D·and·OpenGL |
97 | backends,·which·will·often·have·different·adapters·available. | 101 | backends,·which·will·often·have·different·adapters·available. |
98 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 102 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
99 | Examples: | 103 | Examples: |
100 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 104 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c |
101 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
102 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c | 105 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8f_\x8u_\x8l_\x8l_\x8._\x8c |
106 | ····*·_\x8e_\x8x_\x8__\x8d_\x8u_\x8a_\x8l_\x8i_\x8e_\x8s_\x8._\x8c | ||
103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 107 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8on\x8ni\x8it\x8to\x8or\x8r_\x8_r\x8re\x8ef\x8fr\x8re\x8es\x8sh\x8h_\x8_r\x8ra\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
104 | int·al_get_monitor_refresh_rate(int·adapter) | 108 | int·al_get_monitor_refresh_rate(int·adapter) |
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. | 110 | Returns·the·current·refresh·rate·of·a·monitor·attached·to·the·display·adapter. |
107 | Since:·5.2.6 | 111 | Since:·5.2.6 |
108 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only | 112 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·This·is·an·experimental·feature·and·currently·only |
109 | ·····works·on·Windows. | 113 | ·····works·on·Windows. |
110 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 114 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
111 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 251, 14 lines modified | Offset 251, 23 lines modified | ||
251 | <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to | 251 | <li><p>pressure·-·pressure,·ranging·from·<code>0.0</code>·to |
252 | <code>1.0</code></p></li> | 252 | <code>1.0</code></p></li> |
253 | </ul> | 253 | </ul> |
254 | <p>See·also:·<a | 254 | <p>See·also:·<a |
255 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a | 255 | href="mouse.html#al_get_mouse_state">al_get_mouse_state</a>,·<a |
256 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, | 256 | href="mouse.html#al_get_mouse_state_axis">al_get_mouse_state_axis</a>, |
257 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> | 257 | <a·href="mouse.html#al_mouse_button_down">al_mouse_button_down</a></p> |
258 | <p>Examples:</p> | ||
259 | <ul> | ||
260 | <li><a | ||
261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L4">ex_mouse_focus.c</a></li> | ||
262 | <li><a | ||
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L34">ex_mouse.c</a></li> | ||
264 | <li><a | ||
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L160">nihgui.cpp</a></li> | ||
266 | </ul> | ||
258 | <h1·id="mouse-button-constants">Mouse·button·constants</h1> | 267 | <h1·id="mouse-button-constants">Mouse·button·constants</h1> |
259 | <p>Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when | 268 | <p>Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when |
260 | returned·in·the·event.mouse.button·field·of | 269 | returned·in·the·event.mouse.button·field·of |
261 | ALLEGRO_EVENT_MOUSE_BUTTON_UP·and·ALLEGRO_EVENT_MOUSE_BUTTON_DOWN | 270 | ALLEGRO_EVENT_MOUSE_BUTTON_UP·and·ALLEGRO_EVENT_MOUSE_BUTTON_DOWN |
262 | events.</p> | 271 | events.</p> |
263 | <p>As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are | 272 | <p>As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are |
264 | provided·below.·However,·depending·on·the·hardware·there·may·be·more·or | 273 | provided·below.·However,·depending·on·the·hardware·there·may·be·more·or |
Offset 282, 19 lines modified | Offset 291, 19 lines modified | ||
282 | Code</a></p> | 291 | Code</a></p> |
283 | <p>Install·a·mouse·driver.</p> | 292 | <p>Install·a·mouse·driver.</p> |
284 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, | 293 | <p>Returns·true·if·successful.·If·a·driver·was·already·installed, |
285 | nothing·happens·and·true·is·returned.</p> | 294 | nothing·happens·and·true·is·returned.</p> |
286 | <p>Examples:</p> | 295 | <p>Examples:</p> |
287 | <ul> | 296 | <ul> |
288 | <li><a | 297 | <li><a |
289 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 298 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L41">ex_mouse_focus.c</a></li> |
290 | <li><a | 299 | <li><a |
291 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse.c#L46">ex_mouse.c</a></li> |
292 | <li><a | 301 | <li><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 302 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L101">ex_font_justify.cpp</a></li> |
294 | </ul> | 303 | </ul> |
295 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> | 304 | <h1·id="al_is_mouse_installed">al_is_mouse_installed</h1> |
296 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_mouse_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 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> |
297 | <p><a | 306 | <p><a |
298 | 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 |
299 | Code</a></p> | 308 | Code</a></p> |
300 | <p>Returns·true·if·<a | 309 | <p>Returns·true·if·<a |
Offset 458, 19 lines modified | Offset 467, 19 lines modified | ||
458 | <p>Retrieve·the·mouse·event·source.·All·<a | 467 | <p>Retrieve·the·mouse·event·source.·All·<a |
459 | href="events.html#allegro_event_mouse_axes">mouse·events</a>·are | 468 | href="events.html#allegro_event_mouse_axes">mouse·events</a>·are |
460 | generated·by·this·event·source.</p> | 469 | generated·by·this·event·source.</p> |
461 | <p>Returns·NULL·if·the·mouse·subsystem·was·not·installed.</p> | 470 | <p>Returns·NULL·if·the·mouse·subsystem·was·not·installed.</p> |
462 | <p>Examples:</p> | 471 | <p>Examples:</p> |
463 | <ul> | 472 | <ul> |
464 | <li><a | 473 | <li><a |
465 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 474 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L58">ex_display_events.c</a></li> |
466 | <li><a | 475 | <li><a |
467 | href="https://github.com/liballeg/allegro5/blob/master/examples/ | 476 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L46">ex_mouse_warp.c</a></li> |
468 | <li><a | 477 | <li><a |
469 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 478 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_noframe.c#L44">ex_noframe.c</a></li> |
470 | </ul> | 479 | </ul> |
471 | <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> |
472 | <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> |
473 | <p><a | 482 | <p><a |
474 | 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 |
475 | Code</a></p> | 484 | Code</a></p> |
476 | <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 695, 14 lines modified | Offset 704, 11 lines modified | ||
695 | Code</a></p> | 704 | Code</a></p> |
696 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the | 705 | <p>Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the |
697 | program.</p> | 706 | program.</p> |
698 | <blockquote> | 707 | <blockquote> |
699 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> | 708 | <p><em>Note:</em>·not·yet·implemented·on·Mac·OS·X.</p> |
700 | </blockquote> | 709 | </blockquote> |
701 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> | 710 | <p>See·also:·<a·href="mouse.html#al_grab_mouse">al_grab_mouse</a></p> |
702 | <p·class="timestamp"> | ||
703 | Allegro·version·5.2.10 | ||
704 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | ||
705 | </p> | ||
706 | </div> | 711 | </div> |
707 | </body> | 712 | </body> |
708 | </html> | 713 | </html> |
Offset 81, 14 lines modified | Offset 81, 18 lines modified | ||
81 | ····*·y·-·mouse·y·position | 81 | ····*·y·-·mouse·y·position |
82 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) | 82 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) |
83 | ····*·buttons·-·mouse·buttons·bitfield | 83 | ····*·buttons·-·mouse·buttons·bitfield |
84 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first | 84 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first |
85 | ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on. | 85 | ······bit·is·set·if·the·secondary·mouse·button·is·held·down,·and·so·on. |
86 | ····*·pressure·-·pressure,·ranging·from·0.0·to·1.0 | 86 | ····*·pressure·-·pressure,·ranging·from·0.0·to·1.0 |
87 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n | 87 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8a_\x8x_\x8i_\x8s,·_\x8a_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\x8n |
88 | Examples: | ||
89 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
90 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
91 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8ou\x8us\x8se\x8e·b\x8bu\x8ut\x8tt\x8to\x8on\x8n·c\x8co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 92 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8ou\x8us\x8se\x8e·b\x8bu\x8ut\x8tt\x8to\x8on\x8n·c\x8co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when·returned·in·the | 93 | Unlike·other·indexes,·the·first·mouse·button·is·numbered·1·when·returned·in·the |
90 | event.mouse.button·field·of·ALLEGRO_EVENT_MOUSE_BUTTON_UP·and | 94 | event.mouse.button·field·of·ALLEGRO_EVENT_MOUSE_BUTTON_UP·and |
91 | ALLEGRO_EVENT_MOUSE_BUTTON_DOWN·events. | 95 | ALLEGRO_EVENT_MOUSE_BUTTON_DOWN·events. |
92 | As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are·provided | 96 | As·a·convenience,·the·following·ALLEGRO_MOUSE_BUTTON·constants·are·provided |
93 | below.·However,·depending·on·the·hardware·there·may·be·more·or·fewer·mouse | 97 | below.·However,·depending·on·the·hardware·there·may·be·more·or·fewer·mouse |
94 | buttons.·You·can·check·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure. | 98 | buttons.·You·can·check·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8u_\x8t_\x8t_\x8o_\x8n_\x8s·if·you·want·to·be·sure. |
Offset 103, 17 lines modified | Offset 107, 17 lines modified | ||
103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 107 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
104 | bool·al_install_mouse(void) | 108 | bool·al_install_mouse(void) |
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | Install·a·mouse·driver. | 110 | Install·a·mouse·driver. |
107 | 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 |
108 | and·true·is·returned. | 112 | and·true·is·returned. |
109 | Examples: | 113 | Examples: |
110 | ····*·_\x8e_\x8x_\x8__\x8 | 114 | ····*·_\x8e_\x8x_\x8__\x8m_.o_.u_.s_.e_.__.f_.o_.c_.u_.s_.._.c |
115 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | ||
111 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8 | 116 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_.u_.s_.t_.i_.f_.y_\x8._\x8c_\x8p_\x8p |
112 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | ||
113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
114 | bool·al_is_mouse_installed(void) | 118 | bool·al_is_mouse_installed(void) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. | 120 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8m_\x8o_\x8u_\x8s_\x8e·was·called·successfully. |
117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
118 | void·al_uninstall_mouse(void) | 122 | void·al_uninstall_mouse(void) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
Offset 210, 17 lines modified | Offset 214, 17 lines modified | ||
210 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 214 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
211 | ALLEGRO_EVENT_SOURCE·*al_get_mouse_event_source(void) | 215 | ALLEGRO_EVENT_SOURCE·*al_get_mouse_event_source(void) |
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event | 217 | Retrieve·the·mouse·event·source.·All·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·are·generated·by·this·event |
214 | source. | 218 | source. |
215 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. | 219 | Returns·NULL·if·the·mouse·subsystem·was·not·installed. |
216 | Examples: | 220 | Examples: |
217 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
218 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
219 | ····*·_\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 | ||
223 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8f_\x8r_\x8a_\x8m_\x8e_\x8._\x8c | ||
220 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_w\x8wh\x8he\x8ee\x8el\x8l_\x8_p\x8pr\x8re\x8ec\x8ci\x8is\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
221 | void·al_set_mouse_wheel_precision(int·precision) | 225 | void·al_set_mouse_wheel_precision(int·precision) |
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 226 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision | 227 | Sets·the·precision·of·the·mouse·wheel·(the·z·and·w·coordinates).·This·precision |
224 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It | 228 | manifests·itself·as·a·multiplier·on·the·dz·and·dw·fields·in·mouse·events.·It |
225 | also·affects·the·z·and·w·fields·of·events·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8S_\x8T_\x8A_\x8T_\x8E,·but·not·in·a | 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 |
226 | 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 364, 8 lines modified | Offset 368, 7 lines modified | ||
364 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 368 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
365 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ng\x8gr\x8ra\x8ab\x8b_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8* | 369 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ng\x8gr\x8ra\x8ab\x8b_\x8_m\x8mo\x8ou\x8us\x8se\x8e·*\x8**\x8**\x8**\x8**\x8* |
366 | bool·al_ungrab_mouse(void) | 370 | bool·al_ungrab_mouse(void) |
367 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 371 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
368 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. | 372 | Stop·confining·the·mouse·cursor·to·any·display·belonging·to·the·program. |
369 | ·····N\x8No\x8ot\x8te\x8e:\x8:·not·yet·implemented·on·Mac·OS·X. | 373 | ·····N\x8No\x8ot\x8te\x8e:\x8:·not·yet·implemented·on·Mac·OS·X. |
370 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 374 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
371 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 267, 20 lines modified | Offset 267, 32 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> | ||
274 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 279 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
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> | 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> |
276 | <p><a | 281 | <p><a |
277 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source | 282 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/allegro5/allegro_native_dialog.h#L42">Source |
278 | Code</a></p> | 283 | Code</a></p> |
279 | <p>Opaque·handle·to·a·text·log·window.</p> | 284 | <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> | ||
280 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> | 292 | <h1·id="al_init_native_dialog_addon">al_init_native_dialog_addon</h1> |
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> | 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> |
282 | <p><a | 294 | <p><a |
283 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source | 295 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L18">Source |
284 | Code</a></p> | 296 | Code</a></p> |
285 | <p>Initialise·the·native·dialog·addon.</p> | 297 | <p>Initialise·the·native·dialog·addon.</p> |
286 | <p>Returns·true·on·success,·false·on·error.</p> | 298 | <p>Returns·true·on·success,·false·on·error.</p> |
Offset 292, 14 lines modified | Offset 304, 23 lines modified | ||
292 | is·<a | 304 | is·<a |
293 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, | 305 | href="native_dialog.html#al_show_native_message_box">al_show_native_message_box</a>, |
294 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to | 306 | which·may·be·useful·to·show·an·error·message·if·Allegro·fails·to |
295 | initialise.</p> | 307 | initialise.</p> |
296 | </blockquote> | 308 | </blockquote> |
297 | <p>See·also:·<a | 309 | <p>See·also:·<a |
298 | href="native_dialog.html#al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</a></p> | 310 | 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> | ||
299 | <h1 | 320 | <h1 |
300 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> | 321 | id="al_is_native_dialog_addon_initialized">al_is_native_dialog_addon_initialized</h1> |
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> | 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> |
302 | <p><a | 323 | <p><a |
303 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L35">Source |
304 | Code</a></p> | 325 | Code</a></p> |
305 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 326 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
Offset 406, 14 lines modified | Offset 427, 19 lines modified | ||
406 | and·<a | 427 | and·<a |
407 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. | 428 | href="native_dialog.html#al_get_native_file_dialog_path">al_get_native_file_dialog_path</a>. |
408 | When·you·are·done,·call·<a | 429 | When·you·are·done,·call·<a |
409 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> | 430 | href="native_dialog.html#al_destroy_native_file_dialog">al_destroy_native_file_dialog</a> |
410 | on·it.</p> | 431 | on·it.</p> |
411 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns | 432 | <p>If·a·dialog·window·could·not·be·created·then·this·function·returns |
412 | NULL.</p> | 433 | 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> | ||
413 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 439 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
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> | 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> |
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> | 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> |
416 | <p><a | 442 | <p><a |
417 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source | 443 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L78">Source |
418 | Code</a></p> | 444 | Code</a></p> |
419 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given | 445 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given |
Offset 427, 22 lines modified | Offset 453, 32 lines modified | ||
427 | <p><em>Note:</em>·On·Android,·<a | 453 | <p><em>Note:</em>·On·Android,·<a |
428 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a> | 454 | href="events.html#allegro_event_display_halt_drawing">ALLEGRO_EVENT_DISPLAY_HALT_DRAWING</a> |
429 | and·<a | 455 | and·<a |
430 | href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a> | 456 | href="events.html#allegro_event_display_resume_drawing">ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING</a> |
431 | need·to·be·handled·before·this·function·returns.·This·means·that·you | 457 | need·to·be·handled·before·this·function·returns.·This·means·that·you |
432 | must·call·it·from·a·different·thread.</p> | 458 | must·call·it·from·a·different·thread.</p> |
433 | </blockquote> | 459 | </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> | ||
434 | <h1 | 465 | <h1 |
435 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 466 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
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> | 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> |
437 | <p><a | 468 | <p><a |
438 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source | 469 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L87">Source |
439 | Code</a></p> | 470 | Code</a></p> |
440 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was | 471 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was |
441 | cancelled.</p> | 472 | 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> | ||
442 | <h1 | 478 | <h1 |
443 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 479 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
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> | 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> |
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> | 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> |
446 | <p><a | 482 | <p><a |
447 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source | 483 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L95">Source |
448 | Code</a></p> | 484 | Code</a></p> |
Offset 452, 21 lines modified | Offset 488, 31 lines modified | ||
452 | <code>-1</code>.</p> | 488 | <code>-1</code>.</p> |
453 | <blockquote> | 489 | <blockquote> |
454 | <p><em>Note:</em>·On·Android,·this·function·returns·a·content:// | 490 | <p><em>Note:</em>·On·Android,·this·function·returns·a·content:// |
455 | Universal·Resource·Identifier·instead·of·a·file·path·due·to·the | 491 | Universal·Resource·Identifier·instead·of·a·file·path·due·to·the |
456 | constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a | 492 | constraints·of·Scoped·Storage.·Selected·files·may·be·accessed·using·<a |
457 | href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p> | 493 | href="platform.html#al_android_open_fd">al_android_open_fd</a>.</p> |
458 | </blockquote> | 494 | </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> | ||
459 | <h1 | 500 | <h1 |
460 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> | 501 | id="al_destroy_native_file_dialog">al_destroy_native_file_dialog</h1> |
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> | 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> |
462 | <p><a | 503 | <p><a |
463 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source | 504 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L106">Source |
Max diff block lines reached; 29555/37769 bytes (78.25%) of diff not shown. |
Offset 90, 30 lines modified | Offset 90, 39 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 | ||
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* | 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* |
98 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 100 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Opaque·handle·to·a·text·log·window. | 102 | 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 | ||
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* | 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* |
102 | bool·al_init_native_dialog_addon(void) | 107 | bool·al_init_native_dialog_addon(void) |
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | Initialise·the·native·dialog·addon. | 109 | Initialise·the·native·dialog·addon. |
105 | Returns·true·on·success,·false·on·error. | 110 | Returns·true·on·success,·false·on·error. |
106 | Since:·5.0.9,·5.1.0 | 111 | Since:·5.0.9,·5.1.0 |
107 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called | 112 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Prior·to·Allegro·5.1.0·native·dialog·functions·could·be·called |
108 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future | 113 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
109 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 114 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
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 | 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 |
111 | ·····message·if·Allegro·fails·to·initialise. | 116 | ·····message·if·Allegro·fails·to·initialise. |
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 | 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 |
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 | ||
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* | 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* |
114 | bool·al_is_native_dialog_addon_initialized(void) | 123 | bool·al_is_native_dialog_addon_initialized(void) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 125 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
117 | false. | 126 | false. |
118 | Since:·5.2.6 | 127 | Since:·5.2.6 |
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* | 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* |
Offset 180, 45 lines modified | Offset 189, 55 lines modified | ||
180 | ······If·supported,·allow·selecting·multiple·files. | 189 | ······If·supported,·allow·selecting·multiple·files. |
181 | Returns: | 190 | Returns: |
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 | 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 |
183 | display·it,·and·from·which·you·then·can·query·the·results·using | 192 | display·it,·and·from·which·you·then·can·query·the·results·using |
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 | 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 |
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. | 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. |
186 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. | 195 | 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 | ||
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* | 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* |
188 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 199 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
189 | ···ALLEGRO_FILECHOOSER·*dialog) | 200 | ···ALLEGRO_FILECHOOSER·*dialog) |
190 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 201 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
191 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is | 202 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
192 | treated·as·the·parent·if·possible. | 203 | treated·as·the·parent·if·possible. |
193 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 204 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to |
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. | 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. |
195 | Returns·true·on·success,·false·on·failure. | 206 | Returns·true·on·success,·false·on·failure. |
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 | 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 |
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 | 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 |
198 | ·····function·returns.·This·means·that·you·must·call·it·from·a·different | 209 | ·····function·returns.·This·means·that·you·must·call·it·from·a·different |
199 | ·····thread. | 210 | ·····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 | ||
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* | 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* |
201 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 214 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
202 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 215 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
203 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 216 | 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 | ||
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* | 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* |
205 | const·char·*al_get_native_file_dialog_path( | 220 | const·char·*al_get_native_file_dialog_path( |
206 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 221 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
208 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 | 223 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 |
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. | 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. |
210 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal | 225 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·this·function·returns·a·content://·Universal |
211 | ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of | 226 | ·····Resource·Identifier·instead·of·a·file·path·due·to·the·constraints·of |
212 | ·····Scoped·Storage.·Selected·files·may·be·accessed·using | 227 | ·····Scoped·Storage.·Selected·files·may·be·accessed·using |
213 | ·····_\x8a_\x8l_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8d. | 228 | ·····_\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 | ||
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* | 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* |
215 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 232 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 233 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
217 | Frees·up·all·resources·used·by·the·file·dialog. | 234 | 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 | ||
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* | 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* |
219 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 238 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
220 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 239 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
221 | ···char·const·*buttons,·int·flags) | 240 | ···char·const·*buttons,·int·flags) |
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error | 242 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
224 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, | 243 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, |
Offset 261, 14 lines modified | Offset 280, 18 lines modified | ||
261 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" | 280 | ··"If·you·click·yes·then·you·are·confirming·that·\"Yes\"·" |
262 | ··"is·your·response·to·the·query·which·you·have·" | 281 | ··"is·your·response·to·the·query·which·you·have·" |
263 | ··"generated·by·the·action·you·took·to·open·this·" | 282 | ··"generated·by·the·action·you·took·to·open·this·" |
264 | ··"message·box.", | 283 | ··"message·box.", |
265 | ··NULL, | 284 | ··NULL, |
266 | ··ALLEGRO_MESSAGEBOX_YES_NO | 285 | ··ALLEGRO_MESSAGEBOX_YES_NO |
267 | ); | 286 | ); |
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 | ||
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* | 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* |
269 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | 292 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
270 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
271 | Opens·a·window·to·which·you·can·append·log·messages·with | 294 | Opens·a·window·to·which·you·can·append·log·messages·with |
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 | 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 |
273 | to·depend·on·a·console·being·available. | 296 | to·depend·on·a·console·being·available. |
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. | 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. |
Offset 279, 40 lines modified | Offset 302, 53 lines modified | ||
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. | 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. |
280 | ··ALLEGRO_TEXTLOG_MONOSPACE | 303 | ··ALLEGRO_TEXTLOG_MONOSPACE |
281 | ······Use·a·monospace·font·to·display·the·text. | 304 | ······Use·a·monospace·font·to·display·the·text. |
282 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows | 305 | Returns·NULL·if·there·was·an·error·opening·the·window,·or·if·text·log·windows |
283 | are·not·implemented·on·the·platform. | 306 | are·not·implemented·on·the·platform. |
284 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat. | 307 | ·····N\x8No\x8ot\x8te\x8e:\x8:·On·Android,·logs·can·be·viewed·using·logcat. |
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 | 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 |
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 | ||
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* | 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* |
287 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | 313 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) |
Max diff block lines reached; 15170/23047 bytes (65.82%) of diff not shown. |
Offset 245, 17 lines modified | Offset 245, 17 lines modified | ||
245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, | 245 | href="path.html#al_create_path_for_directory">al_create_path_for_directory</a>, |
246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> | 246 | <a·href="path.html#al_destroy_path">al_destroy_path</a></p> |
247 | <p>Examples:</p> | 247 | <p>Examples:</p> |
248 | <ul> | 248 | <ul> |
249 | <li><a | 249 | <li><a |
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li> | 250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L18">ex_path.c</a></li> |
251 | <li><a | 251 | <li><a |
252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li> | ||
253 | <li><a | ||
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> | 252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> |
253 | <li><a | ||
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L187">ex_audio_chain.cpp</a></li> | ||
255 | </ul> | 255 | </ul> |
256 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> | 256 | <h1·id="al_create_path_for_directory">al_create_path_for_directory</h1> |
257 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> | 257 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_create_path_for_directory<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>str<span·class="op">)</span></span></code></pre></div> |
258 | <p><a | 258 | <p><a |
259 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source | 259 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L188">Source |
260 | Code</a></p> | 260 | Code</a></p> |
261 | <p>This·is·the·same·as·<a | 261 | <p>This·is·the·same·as·<a |
Offset 275, 15 lines modified | Offset 275, 15 lines modified | ||
275 | <p>Examples:</p> | 275 | <p>Examples:</p> |
276 | <ul> | 276 | <ul> |
277 | <li><a | 277 | <li><a |
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L14">ex_get_path.c</a></li> | 278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L14">ex_get_path.c</a></li> |
279 | <li><a | 279 | <li><a |
280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L21">ex_path.c</a></li> | 280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L21">ex_path.c</a></li> |
281 | <li><a | 281 | <li><a |
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ | 282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L36">ex_path_test.c</a></li> |
283 | </ul> | 283 | </ul> |
284 | <h1·id="al_clone_path">al_clone_path</h1> | 284 | <h1·id="al_clone_path">al_clone_path</h1> |
285 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 285 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_PATH·<span·class="op">*</span>al_clone_path<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
286 | <p><a | 286 | <p><a |
287 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source | 287 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L203">Source |
288 | Code</a></p> | 288 | Code</a></p> |
289 | <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p> | 289 | <p>Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure.</p> |
Offset 326, 17 lines modified | Offset 326, 17 lines modified | ||
326 | <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is | 326 | <p>For·example,·if·<em>head</em>·is·“/anchor/”·and·<em>tail</em>·is |
327 | “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes | 327 | “data/file.ext”,·then·after·the·call·<em>tail</em>·becomes |
328 | “/anchor/data/file.ext”.</p> | 328 | “/anchor/data/file.ext”.</p> |
329 | <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></p> | 329 | <p>See·also:·<a·href="path.html#al_join_paths">al_join_paths</a></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_audio_chain.cpp#L188">ex_audio_chain.cpp</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L376">ex_path_test.c</a></li> | 333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L376">ex_path_test.c</a></li> |
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L188">ex_audio_chain.cpp</a></li> | ||
336 | </ul> | 336 | </ul> |
337 | <h1·id="al_get_path_drive">al_get_path_drive</h1> | 337 | <h1·id="al_get_path_drive">al_get_path_drive</h1> |
338 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 338 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_drive<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
339 | <p><a | 339 | <p><a |
340 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source | 340 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L481">Source |
341 | Code</a></p> | 341 | Code</a></p> |
342 | <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is | 342 | <p>Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is |
Offset 381, 17 lines modified | Offset 381, 17 lines modified | ||
381 | href="path.html#al_get_path_num_components">al_get_path_num_components</a>, | 381 | href="path.html#al_get_path_num_components">al_get_path_num_components</a>, |
382 | <a·href="path.html#al_get_path_tail">al_get_path_tail</a></p> | 382 | <a·href="path.html#al_get_path_tail">al_get_path_tail</a></p> |
383 | <p>Examples:</p> | 383 | <p>Examples:</p> |
384 | <ul> | 384 | <ul> |
385 | <li><a | 385 | <li><a |
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L53">ex_path.c</a></li> | 386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path.c#L53">ex_path.c</a></li> |
387 | <li><a | 387 | <li><a |
388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L176">ex_audio_chain.cpp</a></li> | ||
389 | <li><a | ||
390 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> | 388 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L35">ex_path_test.c</a></li> |
389 | <li><a | ||
390 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L176">ex_audio_chain.cpp</a></li> | ||
391 | </ul> | 391 | </ul> |
392 | <h1·id="al_get_path_tail">al_get_path_tail</h1> | 392 | <h1·id="al_get_path_tail">al_get_path_tail</h1> |
393 | <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">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_tail<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 393 | <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">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_path_tail<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
394 | <p><a | 394 | <p><a |
395 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L307">Source | 395 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L307">Source |
396 | Code</a></p> | 396 | Code</a></p> |
397 | <p>Returns·the·last·directory·component,·or·NULL·if·there·are·no | 397 | <p>Returns·the·last·directory·component,·or·NULL·if·there·are·no |
Offset 536, 17 lines modified | Offset 536, 17 lines modified | ||
536 | href="path.html#al_insert_path_component">al_insert_path_component</a>, | 536 | href="path.html#al_insert_path_component">al_insert_path_component</a>, |
537 | <a | 537 | <a |
538 | href="path.html#al_replace_path_component">al_replace_path_component</a>, | 538 | href="path.html#al_replace_path_component">al_replace_path_component</a>, |
539 | <a·href="path.html#al_drop_path_tail">al_drop_path_tail</a></p> | 539 | <a·href="path.html#al_drop_path_tail">al_drop_path_tail</a></p> |
540 | <p>Examples:</p> | 540 | <p>Examples:</p> |
541 | <ul> | 541 | <ul> |
542 | <li><a | 542 | <li><a |
543 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L181">ex_audio_chain.cpp</a></li> | ||
544 | <li><a | ||
545 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L206">ex_path_test.c</a></li> | 543 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_path_test.c#L206">ex_path_test.c</a></li> |
544 | <li><a | ||
545 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L181">ex_audio_chain.cpp</a></li> | ||
546 | </ul> | 546 | </ul> |
547 | <h1·id="al_drop_path_tail">al_drop_path_tail</h1> | 547 | <h1·id="al_drop_path_tail">al_drop_path_tail</h1> |
548 | <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">void</span>·al_drop_path_tail<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 548 | <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">void</span>·al_drop_path_tail<span·class="op">(</span>ALLEGRO_PATH·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
549 | <p><a | 549 | <p><a |
550 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L320">Source | 550 | href="https://github.com/liballeg/allegro5/blob/master/src/path.c#L320">Source |
551 | Code</a></p> | 551 | Code</a></p> |
552 | <p>Remove·the·last·directory·component,·if·any.</p> | 552 | <p>Remove·the·last·directory·component,·if·any.</p> |
Offset 81, 16 lines modified | Offset 81, 16 lines modified | ||
81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by | 81 | Create·a·path·structure·from·a·string.·The·last·component,·if·it·is·followed·by |
82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last | 82 | a·directory·separator·and·is·neither·“.”·nor·“..”,·is·treated·as·the·last |
83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the | 83 | directory·name·in·the·path.·Otherwise·the·last·component·is·treated·as·the |
84 | filename.·The·string·may·be·NULL·for·an·empty·path. | 84 | filename.·The·string·may·be·NULL·for·an·empty·path. |
85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 85 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
86 | Examples: | 86 | Examples: |
87 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 87 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
88 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
89 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
89 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
90 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 90 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pa\x8at\x8th\x8h_\x8_f\x8fo\x8or\x8r_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8to\x8or\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
91 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) | 91 | ALLEGRO_PATH·*al_create_path_for_directory(const·char·*str) |
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 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a | 93 | This·is·the·same·as·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·but·interprets·the·passed·string·as·a |
94 | directory·path.·The·filename·component·of·the·returned·path·will·always·be | 94 | directory·path.·The·filename·component·of·the·returned·path·will·always·be |
95 | empty. | 95 | empty. |
96 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 96 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
Offset 98, 15 lines modified | Offset 98, 15 lines modified | ||
98 | void·al_destroy_path(ALLEGRO_PATH·*path) | 98 | void·al_destroy_path(ALLEGRO_PATH·*path) |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Free·a·path·structure.·Does·nothing·if·passed·NULL. | 100 | Free·a·path·structure.·Does·nothing·if·passed·NULL. |
101 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y | 101 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y |
102 | Examples: | 102 | Examples: |
103 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 103 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
104 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 104 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
105 | ····*·_\x8e_\x8x_\x8__\x8 | 105 | ····*·_\x8e_\x8x_\x8__\x8p_.a_.t_.h_.__.t_.e_.s_.t_.._.c |
106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 106 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cl\x8lo\x8on\x8ne\x8e_\x8_p\x8pa\x8at\x8th\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
107 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) | 107 | ALLEGRO_PATH·*al_clone_path(const·ALLEGRO_PATH·*path) |
108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
109 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. | 109 | Clones·an·ALLEGRO_PATH·structure.·Returns·NULL·on·failure. |
110 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h | 110 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h |
111 | Examples: | 111 | Examples: |
112 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 112 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
Offset 131, 16 lines modified | Offset 131, 16 lines modified | ||
131 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l | 131 | Concatenate·two·path·structures,·modifying·the·second·path·structure.·If·t\x8ta\x8ai\x8il\x8l |
132 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path | 132 | is·an·absolute·path,·this·function·does·nothing.·Otherwise,·the·drive·and·path |
133 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. | 133 | components·in·h\x8he\x8ea\x8ad\x8d·are·inserted·at·the·start·of·t\x8ta\x8ai\x8il\x8l. |
134 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the | 134 | For·example,·if·h\x8he\x8ea\x8ad\x8d·is·“/anchor/”·and·t\x8ta\x8ai\x8il\x8l·is·“data/file.ext”,·then·after·the |
135 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. | 135 | call·t\x8ta\x8ai\x8il\x8l·becomes·“/anchor/data/file.ext”. |
136 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s | 136 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8p_\x8a_\x8t_\x8h_\x8s |
137 | Examples: | 137 | Examples: |
138 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
139 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 138 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
139 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
140 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 140 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_d\x8dr\x8ri\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
141 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) | 141 | const·char·*al_get_path_drive(const·ALLEGRO_PATH·*path) |
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. | 143 | Return·the·drive·letter·on·a·path,·or·the·empty·string·if·there·is·none. |
144 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, | 144 | The·“drive·letter”·is·only·used·on·Windows,·and·is·usually·a·string·like·“c:”, |
145 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming | 145 | but·may·be·something·like·“\\Computer·Name”·in·the·case·of·UNC·(Uniform·Naming |
146 | Convention)·syntax. | 146 | Convention)·syntax. |
Offset 162, 16 lines modified | Offset 162, 16 lines modified | ||
162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
163 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index | 163 | Return·the·i’th·directory·component·of·a·path,·counting·from·zero.·If·the·index |
164 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path | 164 | is·negative·then·count·from·the·right,·i.e. -1·refers·to·the·last·path |
165 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. | 165 | component.·It·is·an·error·to·pass·an·index·which·is·out·of·bounds. |
166 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l | 166 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8n_\x8u_\x8m_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l |
167 | Examples: | 167 | Examples: |
168 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 168 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
169 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
170 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 169 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
170 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
172 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) | 172 | const·char·*al_get_path_tail(const·ALLEGRO_PATH·*path) |
173 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 173 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
174 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory | 174 | Returns·the·last·directory·component,·or·NULL·if·there·are·no·directory |
175 | components. | 175 | components. |
176 | Examples: | 176 | Examples: |
177 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 177 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
Offset 248, 16 lines modified | Offset 248, 16 lines modified | ||
248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 248 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
249 | Delete·the·i’th·directory·component.·If·the·index·is·negative·then·count·from | 249 | Delete·the·i’th·directory·component.·If·the·index·is·negative·then·count·from |
250 | the·right,·i.e. -1·refers·to·the·last·path·component.·It·is·an·error·to·pass·an | 250 | the·right,·i.e. -1·refers·to·the·last·path·component.·It·is·an·error·to·pass·an |
251 | index·which·is·out·of·bounds. | 251 | index·which·is·out·of·bounds. |
252 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8p_\x8l_\x8a_\x8c_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t, | 252 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8p_\x8l_\x8a_\x8c_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t, |
253 | _\x8a_\x8l_\x8__\x8d_\x8r_\x8o_\x8p_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l | 253 | _\x8a_\x8l_\x8__\x8d_\x8r_\x8o_\x8p_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8a_\x8i_\x8l |
254 | Examples: | 254 | Examples: |
255 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
256 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 255 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
256 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
257 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ro\x8op\x8p_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 257 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ro\x8op\x8p_\x8_p\x8pa\x8at\x8th\x8h_\x8_t\x8ta\x8ai\x8il\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
258 | void·al_drop_path_tail(ALLEGRO_PATH·*path) | 258 | void·al_drop_path_tail(ALLEGRO_PATH·*path) |
259 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 259 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
260 | Remove·the·last·directory·component,·if·any. | 260 | Remove·the·last·directory·component,·if·any. |
261 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t | 261 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t |
262 | Examples: | 262 | Examples: |
263 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 263 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
Offset 224, 14 lines modified | Offset 224, 19 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> | ||
231 | <h1 | 236 | <h1 |
232 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> | 237 | id="al_get_allegro_physfs_version">al_get_allegro_physfs_version</h1> |
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> | 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> |
234 | <p><a | 239 | <p><a |
235 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source | 240 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L310">Source |
236 | Code</a></p> | 241 | Code</a></p> |
237 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 242 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
Offset 70, 13 lines modified | Offset 70, 15 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 | ||
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* | 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* |
78 | uint32_t·al_get_allegro_physfs_version(void) | 80 | uint32_t·al_get_allegro_physfs_version(void) |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 82 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
81 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 83 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
82 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 84 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 226, 14 lines modified | Offset 226, 19 lines modified | ||
226 | <h2·id="al_get_win_window_handle">al_get_win_window_handle</h2> | 226 | <h2·id="al_get_win_window_handle">al_get_win_window_handle</h2> |
227 | <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>HWND·al_get_win_window_handle<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> | 227 | <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>HWND·al_get_win_window_handle<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">)</span></span></code></pre></div> |
228 | <p><a | 228 | <p><a |
229 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1460">Source | 229 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1460">Source |
230 | Code</a></p> | 230 | Code</a></p> |
231 | <p>Returns·the·handle·to·the·window·that·the·passed·display·is | 231 | <p>Returns·the·handle·to·the·window·that·the·passed·display·is |
232 | using.</p> | 232 | using.</p> |
233 | <p>Examples:</p> | ||
234 | <ul> | ||
235 | <li><a | ||
236 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ogre3d.cpp#L115">ex_ogre3d.cpp</a></li> | ||
237 | </ul> | ||
233 | <h2·id="al_win_add_window_callback">al_win_add_window_callback</h2> | 238 | <h2·id="al_win_add_window_callback">al_win_add_window_callback</h2> |
234 | <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_win_add_window_callback<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> | 239 | <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_win_add_window_callback<span·class="op">(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span></span> |
235 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">bool</span>·<span·class="op">(*</span>callback<span·class="op">)(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·UINT·message<span·class="op">,</span>·WPARAM·wparam<span·class="op">,</span></span> | 240 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">bool</span>·<span·class="op">(*</span>callback<span·class="op">)(</span>ALLEGRO_DISPLAY·<span·class="op">*</span>display<span·class="op">,</span>·UINT·message<span·class="op">,</span>·WPARAM·wparam<span·class="op">,</span></span> |
236 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···LPARAM·lparam<span·class="op">,</span>·LRESULT·<span·class="op">*</span>result<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">)</span></span></code></pre></div> | 241 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>···LPARAM·lparam<span·class="op">,</span>·LRESULT·<span·class="op">*</span>result<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>userdata<span·class="op">)</span></span></code></pre></div> |
237 | <p><a | 242 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1502">Source | 243 | href="https://github.com/liballeg/allegro5/blob/master/src/win/wwindow.c#L1502">Source |
239 | Code</a></p> | 244 | Code</a></p> |
Offset 326, 17 lines modified | Offset 331, 17 lines modified | ||
326 | </blockquote> | 331 | </blockquote> |
327 | <p>Since:·5.1.2</p> | 332 | <p>Since:·5.1.2</p> |
328 | <p>Examples:</p> | 333 | <p>Examples:</p> |
329 | <ul> | 334 | <ul> |
330 | <li><a | 335 | <li><a |
331 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L19">common.c</a></li> | 336 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L19">common.c</a></li> |
332 | <li><a | 337 | <li><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L222">ex_native_filechooser.c</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L5">ex_android.c</a></li> | 338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L5">ex_android.c</a></li> |
339 | <li><a | ||
340 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L222">ex_native_filechooser.c</a></li> | ||
336 | </ul> | 341 | </ul> |
337 | <h2 | 342 | <h2 |
338 | id="al_android_set_apk_fs_interface">al_android_set_apk_fs_interface</h2> | 343 | id="al_android_set_apk_fs_interface">al_android_set_apk_fs_interface</h2> |
339 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_android_set_apk_fs_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 344 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_android_set_apk_fs_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
340 | <p><a | 345 | <p><a |
341 | href="https://github.com/liballeg/allegro5/blob/master/src/android/android_apk_fs.c#L302">Source | 346 | href="https://github.com/liballeg/allegro5/blob/master/src/android/android_apk_fs.c#L302">Source |
342 | Code</a></p> | 347 | Code</a></p> |
Offset 466, 14 lines modified | Offset 471, 19 lines modified | ||
466 | you·can·set·an·icon·before·calling·al_create_display.·This·works·by | 471 | you·can·set·an·icon·before·calling·al_create_display.·This·works·by |
467 | setting·the·icon·before·XMapWindow.</p> | 472 | setting·the·icon·before·XMapWindow.</p> |
468 | <p>Since:·5.2.3</p> | 473 | <p>Since:·5.2.3</p> |
469 | <blockquote> | 474 | <blockquote> |
470 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 475 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
471 | API</a>:</em>·New·API.</p> | 476 | API</a>:</em>·New·API.</p> |
472 | </blockquote> | 477 | </blockquote> |
478 | <p>Examples:</p> | ||
479 | <ul> | ||
480 | <li><a | ||
481 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L45">ex_icon2.c</a></li> | ||
482 | </ul> | ||
473 | <p·class="timestamp"> | 483 | <p·class="timestamp"> |
474 | Allegro·version·5.2.10 | 484 | Allegro·version·5.2.10 |
475 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 485 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
476 | </p> | 486 | </p> |
477 | </div> | 487 | </div> |
478 | </body> | 488 | </body> |
479 | </html> | 489 | </html> |
Offset 66, 14 lines modified | Offset 66, 16 lines modified | ||
66 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wi\x8in\x8nd\x8do\x8ow\x8ws\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 66 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wi\x8in\x8nd\x8do\x8ow\x8ws\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
67 | These·functions·are·declared·in·the·following·header·file: | 67 | These·functions·are·declared·in·the·following·header·file: |
68 | ·#include·<allegro5/allegro_windows.h> | 68 | ·#include·<allegro5/allegro_windows.h> |
69 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8n_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 69 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_w\x8wi\x8in\x8n_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
70 | HWND·al_get_win_window_handle(ALLEGRO_DISPLAY·*display) | 70 | HWND·al_get_win_window_handle(ALLEGRO_DISPLAY·*display) |
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | Returns·the·handle·to·the·window·that·the·passed·display·is·using. | 72 | Returns·the·handle·to·the·window·that·the·passed·display·is·using. |
73 | Examples: | ||
74 | ····*·_\x8e_\x8x_\x8__\x8o_\x8g_\x8r_\x8e_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
73 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wi\x8in\x8n_\x8_a\x8ad\x8dd\x8d_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_c\x8ca\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8* | 75 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_w\x8wi\x8in\x8n_\x8_a\x8ad\x8dd\x8d_\x8_w\x8wi\x8in\x8nd\x8do\x8ow\x8w_\x8_c\x8ca\x8al\x8ll\x8lb\x8ba\x8ac\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8* |
74 | bool·al_win_add_window_callback(ALLEGRO_DISPLAY·*display, | 76 | bool·al_win_add_window_callback(ALLEGRO_DISPLAY·*display, |
75 | ···bool·(*callback)(ALLEGRO_DISPLAY·*display,·UINT·message,·WPARAM·wparam, | 77 | ···bool·(*callback)(ALLEGRO_DISPLAY·*display,·UINT·message,·WPARAM·wparam, |
76 | ···LPARAM·lparam,·LRESULT·*result,·void·*userdata),·void·*userdata) | 78 | ···LPARAM·lparam,·LRESULT·*result,·void·*userdata),·void·*userdata) |
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | The·specified·callback·function·will·intercept·the·window’s·message·before | 80 | The·specified·callback·function·will·intercept·the·window’s·message·before |
79 | Allegro·processes·it.·If·the·callback·function·consumes·the·event,·then·it | 81 | Allegro·processes·it.·If·the·callback·function·consumes·the·event,·then·it |
Offset 134, 16 lines modified | Offset 136, 16 lines modified | ||
134 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·that·makes·all·future | 136 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·that·makes·all·future |
135 | calls·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·read·from·the·applicatons’s·APK·file. | 137 | calls·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·read·from·the·applicatons’s·APK·file. |
136 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Currently,·access·to·the·APK·file·after·calling·this·function | 138 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Currently,·access·to·the·APK·file·after·calling·this·function |
137 | ·····is·read·only. | 139 | ·····is·read·only. |
138 | Since:·5.1.2 | 140 | Since:·5.1.2 |
139 | Examples: | 141 | Examples: |
140 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 142 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c |
141 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
142 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | 143 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c |
144 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
143 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8an\x8nd\x8dr\x8ro\x8oi\x8id\x8d_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pk\x8k_\x8_f\x8fs\x8s_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 145 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8an\x8nd\x8dr\x8ro\x8oi\x8id\x8d_\x8_s\x8se\x8et\x8t_\x8_a\x8ap\x8pk\x8k_\x8_f\x8fs\x8s_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
144 | void·al_android_set_apk_fs_interface(void) | 146 | void·al_android_set_apk_fs_interface(void) |
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 147 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
146 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·which·allows·working | 148 | This·function·will·set·up·a·custom·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·which·allows·working |
147 | within·the·APK·filesystem.·The·filesystem·root·is·your·assets·directory·and | 149 | within·the·APK·filesystem.·The·filesystem·root·is·your·assets·directory·and |
148 | there·is·read-only·access·to·all·files·within. | 150 | there·is·read-only·access·to·all·files·within. |
149 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Some·things·like·querying·file·size·or·attributes·are·not | 151 | ·····N\x8No\x8ot\x8te\x8e:\x8:·Some·things·like·querying·file·size·or·attributes·are·not |
Offset 232, 8 lines modified | Offset 234, 10 lines modified | ||
232 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 234 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
233 | On·some·window·managers·(notably·Ubuntu’s·Unity)·al_set_display_icon·doesn’t | 235 | On·some·window·managers·(notably·Ubuntu’s·Unity)·al_set_display_icon·doesn’t |
234 | work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you·can·set·an | 236 | work·and·you·need·to·use·a·.desktop·file.·But·with·this·function·you·can·set·an |
235 | icon·before·calling·al_create_display.·This·works·by·setting·the·icon·before | 237 | icon·before·calling·al_create_display.·This·works·by·setting·the·icon·before |
236 | XMapWindow. | 238 | XMapWindow. |
237 | Since:·5.2.3 | 239 | Since:·5.2.3 |
238 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. | 240 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·New·API. |
241 | Examples: | ||
242 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x82_\x8._\x8c | ||
239 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 243 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 343, 14 lines modified | Offset 343, 23 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> | ||
350 | <h2 | 359 | <h2 |
351 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> | 360 | id="al_is_primitives_addon_initialized">al_is_primitives_addon_initialized</h2> |
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> | 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> |
353 | <p><a | 362 | <p><a |
354 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source | 363 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L62">Source |
355 | Code</a></p> | 364 | Code</a></p> |
356 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 365 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
Offset 474, 14 lines modified | Offset 483, 23 lines modified | ||
474 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> | 483 | <li>x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line</li> |
475 | <li>color·-·Color·of·the·line</li> | 484 | <li>color·-·Color·of·the·line</li> |
476 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw | 485 | <li>thickness·-·Thickness·of·the·line,·pass·<code><=·0</code>·to·draw |
477 | hairline·lines</li> | 486 | hairline·lines</li> |
478 | </ul> | 487 | </ul> |
479 | <p>See·also:·<a | 488 | <p>See·also:·<a |
480 | href="primitives.html#al_draw_soft_line">al_draw_soft_line</a></p> | 489 | 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> | ||
481 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 499 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
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> | 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> |
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> | 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> |
484 | <p><a | 502 | <p><a |
485 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source | 503 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L126">Source |
486 | Code</a></p> | 504 | Code</a></p> |
487 | <p>Draws·an·outlined·triangle.</p> | 505 | <p>Draws·an·outlined·triangle.</p> |
Offset 492, 28 lines modified | Offset 510, 38 lines modified | ||
492 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 510 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
493 | draw·hairline·lines</li> | 511 | draw·hairline·lines</li> |
494 | </ul> | 512 | </ul> |
495 | <p>See·also:·<a | 513 | <p>See·also:·<a |
496 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, | 514 | href="primitives.html#al_draw_filled_triangle">al_draw_filled_triangle</a>, |
497 | <a | 515 | <a |
498 | href="primitives.html#al_draw_soft_triangle">al_draw_soft_triangle</a></p> | 516 | 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> | ||
499 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 522 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
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> | 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> |
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> | 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> |
502 | <p><a | 525 | <p><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source | 526 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L339">Source |
504 | Code</a></p> | 527 | Code</a></p> |
505 | <p>Draws·a·filled·triangle.</p> | 528 | <p>Draws·a·filled·triangle.</p> |
506 | <p><em>Parameters:</em></p> | 529 | <p><em>Parameters:</em></p> |
507 | <ul> | 530 | <ul> |
508 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 531 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
509 | <li>color·-·Color·of·the·triangle</li> | 532 | <li>color·-·Color·of·the·triangle</li> |
510 | </ul> | 533 | </ul> |
511 | <p>See·also:·<a | 534 | <p>See·also:·<a |
512 | href="primitives.html#al_draw_triangle">al_draw_triangle</a></p> | 535 | 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> | ||
513 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 541 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
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> | 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> |
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> | 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> |
516 | <p><a | 544 | <p><a |
517 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source | 545 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L361">Source |
518 | Code</a></p> | 546 | Code</a></p> |
519 | <p>Draws·an·outlined·rectangle.</p> | 547 | <p>Draws·an·outlined·rectangle.</p> |
Offset 525, 14 lines modified | Offset 553, 23 lines modified | ||
525 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to | 553 | <li>thickness·-·Thickness·of·the·lines,·pass·<code><=·0</code>·to |
526 | draw·hairline·lines</li> | 554 | draw·hairline·lines</li> |
527 | </ul> | 555 | </ul> |
528 | <p>See·also:·<a | 556 | <p>See·also:·<a |
529 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, | 557 | href="primitives.html#al_draw_filled_rectangle">al_draw_filled_rectangle</a>, |
530 | <a | 558 | <a |
531 | href="primitives.html#al_draw_rounded_rectangle">al_draw_rounded_rectangle</a></p> | 559 | 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> | ||
532 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> | 569 | <h2·id="al_draw_filled_rectangle">al_draw_filled_rectangle</h2> |
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> | 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> |
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> | 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> |
535 | <p><a | 572 | <p><a |
536 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source | 573 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L406">Source |
537 | Code</a></p> | 574 | Code</a></p> |
538 | <p>Draws·a·filled·rectangle.</p> | 575 | <p>Draws·a·filled·rectangle.</p> |
Offset 541, 14 lines modified | Offset 578, 23 lines modified | ||
541 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the | 578 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the |
542 | rectangle</li> | 579 | rectangle</li> |
543 | <li>color·-·Color·of·the·rectangle</li> | 580 | <li>color·-·Color·of·the·rectangle</li> |
544 | </ul> | 581 | </ul> |
545 | <p>See·also:·<a | 582 | <p>See·also:·<a |
546 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a | 583 | href="primitives.html#al_draw_rectangle">al_draw_rectangle</a>,·<a |
547 | href="primitives.html#al_draw_filled_rounded_rectangle">al_draw_filled_rounded_rectangle</a></p> | 584 | 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, 14 lines modified | Offset 123, 18 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 | ||
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* | 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* |
131 | bool·al_is_primitives_addon_initialized(void) | 135 | bool·al_is_primitives_addon_initialized(void) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
134 | Since:·5.2.6 | 138 | Since:·5.2.6 |
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 | 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 |
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* | 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* |
Offset 225, 73 lines modified | Offset 229, 97 lines modified | ||
225 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
226 | Draws·a·line·segment·between·two·points. | 230 | Draws·a·line·segment·between·two·points. |
227 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 231 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
228 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 232 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
229 | ····*·color·-·Color·of·the·line | 233 | ····*·color·-·Color·of·the·line |
230 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 234 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines |
231 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8l_\x8i_\x8n_\x8e | 235 | 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 | ||
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* | 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* |
233 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 241 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
234 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 242 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
236 | Draws·an·outlined·triangle. | 244 | Draws·an·outlined·triangle. |
237 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 245 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
238 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 246 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
239 | ····*·color·-·Color·of·the·triangle | 247 | ····*·color·-·Color·of·the·triangle |
240 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 248 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
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 | 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 |
250 | Examples: | ||
251 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
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* | 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* |
243 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | 253 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
244 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 254 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
246 | Draws·a·filled·triangle. | 256 | Draws·a·filled·triangle. |
247 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 257 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
248 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 258 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
249 | ····*·color·-·Color·of·the·triangle | 259 | ····*·color·-·Color·of·the·triangle |
250 | See·also:·_\x8a_\x8l_\x8__\x8d_\x8r_\x8a_\x8w_\x8__\x8t_\x8r_\x8i_\x8a_\x8n_\x8g_\x8l_\x8e | 260 | 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 | ||
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* | 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* |
252 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 264 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
253 | ···ALLEGRO_COLOR·color,·float·thickness) | 265 | ···ALLEGRO_COLOR·color,·float·thickness) |
254 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
255 | Draws·an·outlined·rectangle. | 267 | Draws·an·outlined·rectangle. |
256 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 268 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
257 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 269 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
258 | ····*·color·-·Color·of·the·rectangle | 270 | ····*·color·-·Color·of·the·rectangle |
259 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 271 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
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 | 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 |
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 | ||
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* | 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* |
262 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 278 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
263 | ···ALLEGRO_COLOR·color) | 279 | ···ALLEGRO_COLOR·color) |
264 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
265 | Draws·a·filled·rectangle. | 281 | Draws·a·filled·rectangle. |
266 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 282 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
267 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 283 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
268 | ····*·color·-·Color·of·the·rectangle | 284 | ····*·color·-·Color·of·the·rectangle |
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 | 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 |
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 | ||
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* | 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* |
271 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 291 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
272 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 292 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
273 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
274 | Draws·an·outlined·rounded·rectangle. | 294 | Draws·an·outlined·rounded·rectangle. |
275 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 295 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
276 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 296 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
277 | ····*·color·-·Color·of·the·rectangle | 297 | ····*·color·-·Color·of·the·rectangle |
278 | ····*·rx,·ry·-·The·radii·of·the·round | 298 | ····*·rx,·ry·-·The·radii·of·the·round |
279 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 299 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
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 | 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 |
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 | ||
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* | 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* |
282 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | 306 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
283 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 307 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
284 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 308 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
285 | Draws·an·filled·rounded·rectangle. | 309 | Draws·an·filled·rounded·rectangle. |
286 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: | 310 | P\x8Pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s:\x8: |
287 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle | 311 | ····*·x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the·rectangle |
288 | ····*·color·-·Color·of·the·rectangle | 312 | ····*·color·-·Color·of·the·rectangle |
289 | ····*·rx,·ry·-·The·radii·of·the·round | 313 | ····*·rx,·ry·-·The·radii·of·the·round |
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 | 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 |
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 | ||
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* | 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* |
292 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | 320 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, |
293 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | 321 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
294 | ···int·num_points) | 322 | ···int·num_points) |
295 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 323 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
296 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly | 324 | When·thickness·<=·0·this·function·computes·positions·of·num_points·regularly |
297 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes | 325 | spaced·points·on·an·elliptical·arc.·When·thickness·>·0·this·function·computes |
Offset 343, 14 lines modified | Offset 371, 16 lines modified | ||
343 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in | 371 | ····*·start_theta·-·The·initial·angle·from·which·the·arc·is·calculated·in |
344 | ······radians | 372 | ······radians |
345 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number | 373 | ····*·delta_theta·-·Angular·span·of·the·arc·in·radians·(pass·a·negative·number |
346 | ······to·switch·direction) | 374 | ······to·switch·direction) |
347 | ····*·thickness·-·Thickness·of·the·arc | 375 | ····*·thickness·-·Thickness·of·the·arc |
348 | ····*·num_points·-·The·number·of·points·to·calculate | 376 | ····*·num_points·-·The·number·of·points·to·calculate |
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 | 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 |
378 | Examples: | ||
379 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | ||
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* | 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* |
Max diff block lines reached; 28787/36121 bytes (79.70%) of diff not shown. |
Offset 229, 14 lines modified | Offset 229, 23 lines modified | ||
229 | <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This | 229 | <em>program</em>·which·has·one·or·more·<em>shaders</em>·attached.·This |
230 | can·be·confusing.)</p> | 230 | can·be·confusing.)</p> |
231 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be | 231 | <p>The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be |
232 | provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a | 232 | provided·either·as·GLSL·or·HLSL,·depending·on·the·value·of·<a |
233 | href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a> | 233 | href="shader.html#allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</a> |
234 | used·when·creating·it.</p> | 234 | used·when·creating·it.</p> |
235 | <p>Since:·5.1.0</p> | 235 | <p>Since:·5.1.0</p> |
236 | <p>Examples:</p> | ||
237 | <ul> | ||
238 | <li><a | ||
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> | ||
240 | <li><a | ||
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> | ||
242 | <li><a | ||
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> | ||
244 | </ul> | ||
236 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 245 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> |
237 | <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">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div> | 246 | <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">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span></code></pre></div> |
238 | <p><a | 247 | <p><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source | 248 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L23">Source |
240 | Code</a></p> | 249 | Code</a></p> |
241 | <p>Used·with·<a | 250 | <p>Used·with·<a |
242 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> | 251 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a> |
Offset 284, 14 lines modified | Offset 293, 21 lines modified | ||
284 | more·minimal·implementation·that·may·not·support·alpha·testing.</li> | 293 | more·minimal·implementation·that·may·not·support·alpha·testing.</li> |
285 | <li>ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.</li> | 294 | <li>ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader.</li> |
286 | <li>ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.</li> | 295 | <li>ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader.</li> |
287 | <li>ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model | 296 | <li>ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model |
288 | 3_0.</li> | 297 | 3_0.</li> |
289 | </ul> | 298 | </ul> |
290 | <p>Since:·5.1.0</p> | 299 | <p>Since:·5.1.0</p> |
300 | <p>Examples:</p> | ||
301 | <ul> | ||
302 | <li><a | ||
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L42">ex_shader.cpp</a></li> | ||
304 | <li><a | ||
305 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> | ||
306 | </ul> | ||
291 | <h1·id="al_create_shader">al_create_shader</h1> | 307 | <h1·id="al_create_shader">al_create_shader</h1> |
292 | <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_SHADER·<span·class="op">*</span>al_create_shader<span·class="op">(</span>ALLEGRO_SHADER_PLATFORM·platform<span·class="op">)</span></span></code></pre></div> | 308 | <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_SHADER·<span·class="op">*</span>al_create_shader<span·class="op">(</span>ALLEGRO_SHADER_PLATFORM·platform<span·class="op">)</span></span></code></pre></div> |
293 | <p><a | 309 | <p><a |
294 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L58">Source | 310 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L58">Source |
295 | Code</a></p> | 311 | Code</a></p> |
296 | <p>Create·a·shader·object.</p> | 312 | <p>Create·a·shader·object.</p> |
297 | <p>The·platform·argument·is·one·of·the·<a | 313 | <p>The·platform·argument·is·one·of·the·<a |
Offset 669, 17 lines modified | Offset 685, 17 lines modified | ||
669 | <p>Since:·5.1.0</p> | 685 | <p>Since:·5.1.0</p> |
670 | <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a></p> | 686 | <p>See·also:·<a·href="shader.html#al_use_shader">al_use_shader</a></p> |
671 | <p>Examples:</p> | 687 | <p>Examples:</p> |
672 | <ul> | 688 | <ul> |
673 | <li><a | 689 | <li><a |
674 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L123">ex_shader_multitex.c</a></li> | 690 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L123">ex_shader_multitex.c</a></li> |
675 | <li><a | 691 | <li><a |
676 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L279">ex_prim_wrap.c</a></li> | ||
677 | <li><a | ||
678 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L130">ex_palette.c</a></li> | 692 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L130">ex_palette.c</a></li> |
693 | <li><a | ||
694 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L279">ex_prim_wrap.c</a></li> | ||
679 | </ul> | 695 | </ul> |
680 | <h1·id="al_set_shader_matrix">al_set_shader_matrix</h1> | 696 | <h1·id="al_set_shader_matrix">al_set_shader_matrix</h1> |
681 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_shader_matrix<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">,</span></span> | 697 | <div·class="sourceCode"·id="cb15"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb15-1"><a·href="#cb15-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_set_shader_matrix<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>name<span·class="op">,</span></span> |
682 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>matrix<span·class="op">)</span></span></code></pre></div> | 698 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>matrix<span·class="op">)</span></span></code></pre></div> |
683 | <p><a | 699 | <p><a |
684 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L291">Source | 700 | href="https://github.com/liballeg/allegro5/blob/master/src/shader.c#L291">Source |
685 | Code</a></p> | 701 | Code</a></p> |
Offset 796, 17 lines modified | Offset 812, 17 lines modified | ||
796 | <p>See·also:·<a | 812 | <p>See·also:·<a |
797 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> | 813 | href="shader.html#al_attach_shader_source">al_attach_shader_source</a></p> |
798 | <p>Examples:</p> | 814 | <p>Examples:</p> |
799 | <ul> | 815 | <ul> |
800 | <li><a | 816 | <li><a |
801 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L73">ex_shader_multitex.c</a></li> | 817 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_multitex.c#L73">ex_shader_multitex.c</a></li> |
802 | <li><a | 818 | <li><a |
803 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li> | ||
804 | <li><a | ||
805 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li> | 819 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L112">ex_palette.c</a></li> |
820 | <li><a | ||
821 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_wrap.c#L188">ex_prim_wrap.c</a></li> | ||
806 | </ul> | 822 | </ul> |
807 | <p·class="timestamp"> | 823 | <p·class="timestamp"> |
808 | Allegro·version·5.2.10 | 824 | Allegro·version·5.2.10 |
809 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 825 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
810 | </p> | 826 | </p> |
811 | </div> | 827 | </div> |
812 | </body> | 828 | </body> |
Offset 71, 14 lines modified | Offset 71, 18 lines modified | ||
71 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex | 71 | An·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·a·program·that·runs·on·the·GPU.·It·combines·both·a·vertex |
72 | and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m | 72 | and·a·pixel·shader.·(In·OpenGL·terms,·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·actually·a·p\x8pr\x8ro\x8og\x8gr\x8ra\x8am\x8m |
73 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) | 73 | which·has·one·or·more·s\x8sh\x8ha\x8ad\x8de\x8er\x8rs\x8s·attached.·This·can·be·confusing.) |
74 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided | 74 | The·source·code·for·the·underlying·vertex·or·pixel·shader·can·be·provided |
75 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used | 75 | either·as·GLSL·or·HLSL,·depending·on·the·value·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·used |
76 | when·creating·it. | 76 | when·creating·it. |
77 | Since:·5.1.0 | 77 | Since:·5.1.0 |
78 | Examples: | ||
79 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
80 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
81 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
78 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 82 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
79 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 83 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
81 | Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify | 85 | Used·with·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e·and·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8f_\x8i_\x8l_\x8e·to·specify |
82 | how·to·interpret·the·attached·source. | 86 | how·to·interpret·the·attached·source. |
83 | ··ALLEGRO_VERTEX_SHADER | 87 | ··ALLEGRO_VERTEX_SHADER |
84 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program | 88 | ······A·vertex·shader·is·executed·for·each·vertex·it·is·used·with.·The·program |
Offset 109, 14 lines modified | Offset 113, 17 lines modified | ||
109 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) | 113 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) |
110 | ····*·ALLEGRO_SHADER_AUTO_MINIMAL·-·Like·ALLEGRO_SHADER_AUTO,·but·pick·a·more | 114 | ····*·ALLEGRO_SHADER_AUTO_MINIMAL·-·Like·ALLEGRO_SHADER_AUTO,·but·pick·a·more |
111 | ······minimal·implementation·that·may·not·support·alpha·testing. | 115 | ······minimal·implementation·that·may·not·support·alpha·testing. |
112 | ····*·ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader. | 116 | ····*·ALLEGRO_SHADER_GLSL_MINIMAL·-·Minimal·GLSL·shader. |
113 | ····*·ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader. | 117 | ····*·ALLEGRO_SHADER_HLSL_MINIMAL·-·Minimal·HLSL·shader. |
114 | ····*·ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model·3_0. | 118 | ····*·ALLEGRO_SHADER_HLSL_SM_3_0·-·HLSL·shader·using·shader·model·3_0. |
115 | Since:·5.1.0 | 119 | Since:·5.1.0 |
120 | Examples: | ||
121 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
122 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
116 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 123 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
117 | ALLEGRO_SHADER·*al_create_shader(ALLEGRO_SHADER_PLATFORM·platform) | 124 | ALLEGRO_SHADER·*al_create_shader(ALLEGRO_SHADER_PLATFORM·platform) |
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | Create·a·shader·object. | 126 | Create·a·shader·object. |
120 | The·platform·argument·is·one·of·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·values,·and | 127 | The·platform·argument·is·one·of·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R_\x8__\x8P_\x8L_\x8A_\x8T_\x8F_\x8O_\x8R_\x8M·values,·and |
121 | specifies·the·type·of·shader·object·to·create,·and·which·language·is·used·to | 128 | specifies·the·type·of·shader·object·to·create,·and·which·language·is·used·to |
122 | program·the·shader. | 129 | program·the·shader. |
Offset 332, 16 lines modified | Offset 339, 16 lines modified | ||
332 | thus·not·use·al_tex·(the·al_use_tex·variable·will·be·set·to·false). | 339 | thus·not·use·al_tex·(the·al_use_tex·variable·will·be·set·to·false). |
333 | Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that | 340 | Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that |
334 | name·does·not·exist·in·the·shader. | 341 | name·does·not·exist·in·the·shader. |
335 | Since:·5.1.0 | 342 | Since:·5.1.0 |
336 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r | 343 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r |
337 | Examples: | 344 | Examples: |
338 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c | 345 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c |
339 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
340 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | 346 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c |
347 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
341 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_m\x8ma\x8at\x8tr\x8ri\x8ix\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 348 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_s\x8sh\x8ha\x8ad\x8de\x8er\x8r_\x8_m\x8ma\x8at\x8tr\x8ri\x8ix\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
342 | bool·al_set_shader_matrix(const·char·*name, | 349 | bool·al_set_shader_matrix(const·char·*name, |
343 | ···const·ALLEGRO_TRANSFORM·*matrix) | 350 | ···const·ALLEGRO_TRANSFORM·*matrix) |
344 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 351 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
345 | Sets·a·matrix·uniform·of·the·current·target·bitmap’s·shader. | 352 | Sets·a·matrix·uniform·of·the·current·target·bitmap’s·shader. |
346 | Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that | 353 | Returns·true·on·success.·Otherwise·returns·false,·e.g. if·the·uniform·by·that |
347 | name·does·not·exist·in·the·shader. | 354 | name·does·not·exist·in·the·shader. |
Offset 420, 10 lines modified | Offset 427, 10 lines modified | ||
420 | requires·that·there·is·a·current·display·set·on·the·calling·thread.·This | 427 | requires·that·there·is·a·current·display·set·on·the·calling·thread.·This |
421 | function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of | 428 | function·can·return·NULL·if·Allegro·was·built·without·support·for·shaders·of |
422 | the·selected·platform. | 429 | the·selected·platform. |
423 | Since:·5.1.6 | 430 | Since:·5.1.6 |
424 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 431 | See·also:·_\x8a_\x8l_\x8__\x8a_\x8t_\x8t_\x8a_\x8c_\x8h_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
425 | Examples: | 432 | Examples: |
426 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c | 433 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8t_\x8e_\x8x_\x8._\x8c |
427 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
428 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | 434 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c |
435 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8w_\x8r_\x8a_\x8p_\x8._\x8c | ||
429 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 436 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 218, 14 lines modified | Offset 218, 23 lines modified | ||
218 | All·other·global·state·is·per-thread,·so·if·your·application·has | 218 | All·other·global·state·is·per-thread,·so·if·your·application·has |
219 | multiple·separate·threads·they·never·will·interfere·with·each·other. | 219 | multiple·separate·threads·they·never·will·interfere·with·each·other. |
220 | (Except·if·there·are·objects·accessed·by·multiple·threads·of·course. | 220 | (Except·if·there·are·objects·accessed·by·multiple·threads·of·course. |
221 | Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use | 221 | Usually·you·want·to·minimize·that·though·and·for·the·remaining·cases·use |
222 | synchronization·primitives·described·in·the·threads·section·or·events | 222 | synchronization·primitives·described·in·the·threads·section·or·events |
223 | described·in·the·events·section·to·control·inter-thread | 223 | described·in·the·events·section·to·control·inter-thread |
224 | communication.)</p> | 224 | communication.)</p> |
225 | <p>Examples:</p> | ||
226 | <ul> | ||
227 | <li><a | ||
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> | ||
229 | <li><a | ||
230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> | ||
231 | <li><a | ||
232 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> | ||
233 | </ul> | ||
225 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 234 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> |
226 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> | 235 | <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="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> |
227 | <p><a | 236 | <p><a |
228 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source | 237 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L28">Source |
229 | Code</a></p> | 238 | Code</a></p> |
230 | <p>Flags·which·can·be·passed·to·<a | 239 | <p>Flags·which·can·be·passed·to·<a |
231 | href="state.html#al_store_state">al_store_state</a>/<a | 240 | href="state.html#al_store_state">al_store_state</a>/<a |
Offset 237, 14 lines modified | Offset 246, 23 lines modified | ||
237 | <p><a | 246 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L762">Source | 247 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L762">Source |
239 | Code</a></p> | 248 | Code</a></p> |
240 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a | 249 | <p>Restores·part·of·the·state·of·the·current·thread·from·the·given·<a |
241 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> | 250 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.</p> |
242 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a | 251 | <p>See·also:·<a·href="state.html#al_store_state">al_store_state</a>,·<a |
243 | href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> | 252 | href="state.html#allegro_state_flags">ALLEGRO_STATE_FLAGS</a></p> |
253 | <p>Examples:</p> | ||
254 | <ul> | ||
255 | <li><a | ||
256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L96">ex_blend_bench.c</a></li> | ||
257 | <li><a | ||
258 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L316">ex_blend2.cpp</a></li> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L33">nihgui.cpp</a></li> | ||
261 | </ul> | ||
244 | <h1·id="al_store_state">al_store_state</h1> | 262 | <h1·id="al_store_state">al_store_state</h1> |
245 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_store_state<span·class="op">(</span>ALLEGRO_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span></code></pre></div> | 263 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_store_state<span·class="op">(</span>ALLEGRO_STATE·<span·class="op">*</span>state<span·class="op">,</span>·<span·class="dt">int</span>·flags<span·class="op">)</span></span></code></pre></div> |
246 | <p><a | 264 | <p><a |
247 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L692">Source | 265 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L692">Source |
248 | Code</a></p> | 266 | Code</a></p> |
249 | <p>Stores·part·of·the·state·of·the·current·thread·in·the·given·<a | 267 | <p>Stores·part·of·the·state·of·the·current·thread·in·the·given·<a |
250 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.·The·flags | 268 | href="state.html#allegro_state">ALLEGRO_STATE</a>·object.·The·flags |
Offset 263, 30 lines modified | Offset 281, 51 lines modified | ||
263 | <li>ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface</li> | 281 | <li>ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface</li> |
264 | <li>ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS | 282 | <li>ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS |
265 | and·ALLEGRO_STATE_TARGET_BITMAP</li> | 283 | and·ALLEGRO_STATE_TARGET_BITMAP</li> |
266 | <li>ALLEGRO_STATE_ALL·-·all·of·the·above</li> | 284 | <li>ALLEGRO_STATE_ALL·-·all·of·the·above</li> |
267 | </ul> | 285 | </ul> |
268 | <p>See·also:·<a·href="state.html#al_restore_state">al_restore_state</a>, | 286 | <p>See·also:·<a·href="state.html#al_restore_state">al_restore_state</a>, |
269 | <a·href="state.html#allegro_state">ALLEGRO_STATE</a></p> | 287 | <a·href="state.html#allegro_state">ALLEGRO_STATE</a></p> |
288 | <p>Examples:</p> | ||
289 | <ul> | ||
290 | <li><a | ||
291 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L91">ex_blend_bench.c</a></li> | ||
292 | <li><a | ||
293 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L299">ex_blend2.cpp</a></li> | ||
294 | <li><a | ||
295 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L29">nihgui.cpp</a></li> | ||
296 | </ul> | ||
270 | <h1·id="al_get_errno">al_get_errno</h1> | 297 | <h1·id="al_get_errno">al_get_errno</h1> |
271 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_errno<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 298 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_errno<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> |
272 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>GETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·<span·class="dv">0</span><span·class="op">)</span></span></code></pre></div> | 299 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>GETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·<span·class="dv">0</span><span·class="op">)</span></span></code></pre></div> |
273 | <p><a | 300 | <p><a |
274 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L928">Source | 301 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L928">Source |
275 | Code</a></p> | 302 | Code</a></p> |
276 | <p>Some·Allegro·functions·will·set·an·error·number·as·well·as·returning | 303 | <p>Some·Allegro·functions·will·set·an·error·number·as·well·as·returning |
277 | an·error·code.·Call·this·function·to·retrieve·the·last·error·number·set | 304 | an·error·code.·Call·this·function·to·retrieve·the·last·error·number·set |
278 | for·the·calling·thread.</p> | 305 | for·the·calling·thread.</p> |
306 | <p>Examples:</p> | ||
307 | <ul> | ||
308 | <li><a | ||
309 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L477">ex_utf8.c</a></li> | ||
310 | </ul> | ||
279 | <h1·id="al_set_errno">al_set_errno</h1> | 311 | <h1·id="al_set_errno">al_set_errno</h1> |
280 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_errno<span·class="op">(</span><span·class="dt">int</span>·errnum<span·class="op">)</span></span> | 312 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_errno<span·class="op">(</span><span·class="dt">int</span>·errnum<span·class="op">)</span></span> |
281 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>SETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·errnum<span·class="op">)</span></span></code></pre></div> | 313 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>SETTER<span·class="op">(</span>allegro_errno<span·class="op">,</span>·errnum<span·class="op">)</span></span></code></pre></div> |
282 | <p><a | 314 | <p><a |
283 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source | 315 | href="https://github.com/liballeg/allegro5/blob/master/src/tls.c#L933">Source |
284 | Code</a></p> | 316 | Code</a></p> |
285 | <p>Set·the·error·number·for·the·calling·thread.</p> | 317 | <p>Set·the·error·number·for·the·calling·thread.</p> |
318 | <p>Examples:</p> | ||
319 | <ul> | ||
320 | <li><a | ||
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L250">ex_curl.c</a></li> | ||
322 | <li><a | ||
323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L475">ex_utf8.c</a></li> | ||
324 | </ul> | ||
286 | <p·class="timestamp"> | 325 | <p·class="timestamp"> |
287 | Allegro·version·5.2.10 | 326 | Allegro·version·5.2.10 |
288 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 327 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
289 | </p> | 328 | </p> |
290 | </div> | 329 | </div> |
291 | </body> | 330 | </body> |
292 | </html> | 331 | </html> |
Offset 76, 25 lines modified | Offset 76, 33 lines modified | ||
76 | In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other | 76 | In·general,·the·only·real·global·state·is·the·active·system·driver.·All·other |
77 | global·state·is·per-thread,·so·if·your·application·has·multiple·separate | 77 | global·state·is·per-thread,·so·if·your·application·has·multiple·separate |
78 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects | 78 | threads·they·never·will·interfere·with·each·other.·(Except·if·there·are·objects |
79 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that | 79 | accessed·by·multiple·threads·of·course.·Usually·you·want·to·minimize·that |
80 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in | 80 | though·and·for·the·remaining·cases·use·synchronization·primitives·described·in |
81 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- | 81 | the·threads·section·or·events·described·in·the·events·section·to·control·inter- |
82 | thread·communication.) | 82 | thread·communication.) |
83 | Examples: | ||
84 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
85 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
86 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
83 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
84 | typedef·enum·ALLEGRO_STATE_FLAGS | 88 | typedef·enum·ALLEGRO_STATE_FLAGS |
85 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
86 | Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit | 90 | Flags·which·can·be·passed·to·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e/_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·as·bit |
87 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. | 91 | combinations.·See·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e·for·the·list·of·flags. |
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 92 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 93 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
91 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 95 | Restores·part·of·the·state·of·the·current·thread·from·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
92 | object. | 96 | object. |
93 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
98 | Examples: | ||
99 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
101 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
94 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 102 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8or\x8re\x8e_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
95 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) | 103 | void·al_store_state(ALLEGRO_STATE·*state,·int·flags) |
96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
97 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 105 | Stores·part·of·the·state·of·the·current·thread·in·the·given·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
98 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: | 106 | object.·The·flags·parameter·can·take·any·bit-combination·of·these·flags: |
99 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, | 107 | ····*·ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS·-·new_display_format, |
100 | ······new_display_refresh_rate,·new_display_flags | 108 | ······new_display_refresh_rate,·new_display_flags |
Offset 105, 20 lines modified | Offset 113, 29 lines modified | ||
105 | ····*·ALLEGRO_STATE_TRANSFORM·-·current_transformation | 113 | ····*·ALLEGRO_STATE_TRANSFORM·-·current_transformation |
106 | ····*·ALLEGRO_STATE_PROJECTION_TRANSFORM·-·current_projection_transformation | 114 | ····*·ALLEGRO_STATE_PROJECTION_TRANSFORM·-·current_projection_transformation |
107 | ····*·ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface | 115 | ····*·ALLEGRO_STATE_NEW_FILE_INTERFACE·-·new_file_interface |
108 | ····*·ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS·and | 116 | ····*·ALLEGRO_STATE_BITMAP·-·same·as·ALLEGRO_STATE_NEW_BITMAP_PARAMETERS·and |
109 | ······ALLEGRO_STATE_TARGET_BITMAP | 117 | ······ALLEGRO_STATE_TARGET_BITMAP |
110 | ····*·ALLEGRO_STATE_ALL·-·all·of·the·above | 118 | ····*·ALLEGRO_STATE_ALL·-·all·of·the·above |
111 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 119 | See·also:·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
120 | Examples: | ||
121 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | ||
122 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | ||
123 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
112 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
113 | int·al_get_errno(void) | 125 | int·al_get_errno(void) |
114 | GETTER(allegro_errno,·0) | 126 | GETTER(allegro_errno,·0) |
115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
116 | Some·Allegro·functions·will·set·an·error·number·as·well·as·returning·an·error | 128 | Some·Allegro·functions·will·set·an·error·number·as·well·as·returning·an·error |
117 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling | 129 | code.·Call·this·function·to·retrieve·the·last·error·number·set·for·the·calling |
118 | thread. | 130 | thread. |
131 | Examples: | ||
132 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
119 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 133 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8er\x8rr\x8rn\x8no\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
120 | void·al_set_errno(int·errnum) | 134 | void·al_set_errno(int·errnum) |
121 | SETTER(allegro_errno,·errnum) | 135 | SETTER(allegro_errno,·errnum) |
122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
123 | Set·the·error·number·for·the·calling·thread. | 137 | Set·the·error·number·for·the·calling·thread. |
138 | Examples: | ||
139 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | ||
140 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
124 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 141 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 248, 14 lines modified | Offset 248, 23 lines modified | ||
248 | game·binary.·In·particular,·do·not·call·it·inside·a·shared·library | 248 | game·binary.·In·particular,·do·not·call·it·inside·a·shared·library |
249 | unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call | 249 | unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to·call |
250 | al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a | 250 | al_install_system·either·with·a·<code>NULL</code>·atexit_ptr,·or·with·a |
251 | pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> | 251 | pointer·to·atexit·provided·by·the·user·of·this·shared·library.</p> |
252 | </blockquote> | 252 | </blockquote> |
253 | <p>See·also:·<a | 253 | <p>See·also:·<a |
254 | href="system.html#al_install_system">al_install_system</a></p> | 254 | href="system.html#al_install_system">al_install_system</a></p> |
255 | <p>Examples:</p> | ||
256 | <ul> | ||
257 | <li><a | ||
258 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L16">ex_audio_devices.c</a></li> | ||
259 | <li><a | ||
260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L30">ex_get_path.c</a></li> | ||
261 | <li><a | ||
262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_monitorinfo.c#L15">ex_monitorinfo.c</a></li> | ||
263 | </ul> | ||
255 | <h1·id="al_uninstall_system">al_uninstall_system</h1> | 264 | <h1·id="al_uninstall_system">al_uninstall_system</h1> |
256 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 265 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_system<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
257 | <p><a | 266 | <p><a |
258 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L316">Source | 267 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L316">Source |
259 | Code</a></p> | 268 | Code</a></p> |
260 | <p>Closes·down·the·Allegro·system.</p> | 269 | <p>Closes·down·the·Allegro·system.</p> |
261 | <blockquote> | 270 | <blockquote> |
Offset 264, 17 lines modified | Offset 273, 17 lines modified | ||
264 | e.g. from·atexit().</p> | 273 | e.g. from·atexit().</p> |
265 | </blockquote> | 274 | </blockquote> |
266 | <p>Examples:</p> | 275 | <p>Examples:</p> |
267 | <ul> | 276 | <ul> |
268 | <li><a | 277 | <li><a |
269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L128">ex_opengl_pixel_shader.c</a></li> | 278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L128">ex_opengl_pixel_shader.c</a></li> |
270 | <li><a | 279 | <li><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon.c#L74">ex_icon.c</a></li> | ||
272 | <li><a | ||
273 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L85">ex_icon2.c</a></li> | 280 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon2.c#L85">ex_icon2.c</a></li> |
281 | <li><a | ||
282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_icon.c#L74">ex_icon.c</a></li> | ||
274 | </ul> | 283 | </ul> |
275 | <h1·id="al_is_system_installed">al_is_system_installed</h1> | 284 | <h1·id="al_is_system_installed">al_is_system_installed</h1> |
276 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 285 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_is_system_installed<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
277 | <p><a | 286 | <p><a |
278 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L346">Source | 287 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L346">Source |
279 | Code</a></p> | 288 | Code</a></p> |
280 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> | 289 | <p>Returns·true·if·Allegro·is·initialized,·otherwise·returns·false.</p> |
Offset 377, 17 lines modified | Offset 386, 17 lines modified | ||
377 | href="path.html#al_destroy_path">al_destroy_path</a>,·<a | 386 | href="path.html#al_destroy_path">al_destroy_path</a>,·<a |
378 | href="system.html#al_set_exe_name">al_set_exe_name</a></p> | 387 | href="system.html#al_set_exe_name">al_set_exe_name</a></p> |
379 | <p>Examples:</p> | 388 | <p>Examples:</p> |
380 | <ul> | 389 | <ul> |
381 | <li><a | 390 | <li><a |
382 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L11">ex_get_path.c</a></li> | 391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L11">ex_get_path.c</a></li> |
383 | <li><a | 392 | <li><a |
384 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L172">ex_audio_chain.cpp</a></li> | ||
385 | <li><a | ||
386 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L87">ex_physfs.c</a></li> | 393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L87">ex_physfs.c</a></li> |
394 | <li><a | ||
395 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L20">ex_android.c</a></li> | ||
387 | </ul> | 396 | </ul> |
388 | <h1·id="al_set_exe_name">al_set_exe_name</h1> | 397 | <h1·id="al_set_exe_name">al_set_exe_name</h1> |
389 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> | 398 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_exe_name<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>path<span·class="op">)</span></span></code></pre></div> |
390 | <p><a | 399 | <p><a |
391 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source | 400 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L405">Source |
392 | Code</a></p> | 401 | Code</a></p> |
393 | <p>This·override·the·executable·name·used·by·<a | 402 | <p>This·override·the·executable·name·used·by·<a |
Offset 415, 28 lines modified | Offset 424, 38 lines modified | ||
415 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to | 424 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to |
416 | build·the·full·path·to·an·application’s·files.</p> | 425 | build·the·full·path·to·an·application’s·files.</p> |
417 | <p>This·function·may·be·called·before·<a | 426 | <p>This·function·may·be·called·before·<a |
418 | href="system.html#al_init">al_init</a>·or·<a | 427 | href="system.html#al_init">al_init</a>·or·<a |
419 | href="system.html#al_install_system">al_install_system</a>.</p> | 428 | href="system.html#al_install_system">al_install_system</a>.</p> |
420 | <p>See·also:·<a·href="system.html#al_get_app_name">al_get_app_name</a>, | 429 | <p>See·also:·<a·href="system.html#al_get_app_name">al_get_app_name</a>, |
421 | <a·href="system.html#al_set_org_name">al_set_org_name</a></p> | 430 | <a·href="system.html#al_set_org_name">al_set_org_name</a></p> |
431 | <p>Examples:</p> | ||
432 | <ul> | ||
433 | <li><a | ||
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L28">ex_get_path.c</a></li> | ||
435 | </ul> | ||
422 | <h1·id="al_set_org_name">al_set_org_name</h1> | 436 | <h1·id="al_set_org_name">al_set_org_name</h1> |
423 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_org_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>org_name<span·class="op">)</span></span></code></pre></div> | 437 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_org_name<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>org_name<span·class="op">)</span></span></code></pre></div> |
424 | <p><a | 438 | <p><a |
425 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L417">Source | 439 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L417">Source |
426 | Code</a></p> | 440 | Code</a></p> |
427 | <p>Sets·the·global·organization·name.</p> | 441 | <p>Sets·the·global·organization·name.</p> |
428 | <p>The·organization·name·is·used·by·<a | 442 | <p>The·organization·name·is·used·by·<a |
429 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to | 443 | href="system.html#al_get_standard_path">al_get_standard_path</a>·to |
430 | build·the·full·path·to·an·application’s·files.</p> | 444 | build·the·full·path·to·an·application’s·files.</p> |
431 | <p>This·function·may·be·called·before·<a | 445 | <p>This·function·may·be·called·before·<a |
432 | href="system.html#al_init">al_init</a>·or·<a | 446 | href="system.html#al_init">al_init</a>·or·<a |
433 | href="system.html#al_install_system">al_install_system</a>.</p> | 447 | href="system.html#al_install_system">al_install_system</a>.</p> |
434 | <p>See·also:·<a·href="system.html#al_get_org_name">al_get_org_name</a>, | 448 | <p>See·also:·<a·href="system.html#al_get_org_name">al_get_org_name</a>, |
435 | <a·href="system.html#al_set_app_name">al_set_app_name</a></p> | 449 | <a·href="system.html#al_set_app_name">al_set_app_name</a></p> |
450 | <p>Examples:</p> | ||
451 | <ul> | ||
452 | <li><a | ||
453 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_get_path.c#L25">ex_get_path.c</a></li> | ||
454 | </ul> | ||
436 | <h1·id="al_get_app_name">al_get_app_name</h1> | 455 | <h1·id="al_get_app_name">al_get_app_name</h1> |
437 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_app_name<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 456 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_get_app_name<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
438 | <p><a | 457 | <p><a |
439 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L452">Source | 458 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L452">Source |
440 | Code</a></p> | 459 | Code</a></p> |
441 | <p>Returns·the·global·application·name·string.</p> | 460 | <p>Returns·the·global·application·name·string.</p> |
442 | <p>See·also:·<a | 461 | <p>See·also:·<a |
Offset 738, 17 lines modified | Offset 757, 17 lines modified | ||
738 | <span·id="cb15-260"><a·href="#cb15-260"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·keyboard_version·=·5.2.9</span></span> | 757 | <span·id="cb15-260"><a·href="#cb15-260"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·keyboard_version·=·5.2.9</span></span> |
739 | <span·id="cb15-261"><a·href="#cb15-261"·aria-hidden="true"·tabindex="-1"></a></span> | 758 | <span·id="cb15-261"><a·href="#cb15-261"·aria-hidden="true"·tabindex="-1"></a></span> |
740 | <span·id="cb15-262"><a·href="#cb15-262"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files.</span></span> | 759 | <span·id="cb15-262"><a·href="#cb15-262"·aria-hidden="true"·tabindex="-1"></a><span·class="co">#·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files.</span></span> |
741 | <span·id="cb15-263"><a·href="#cb15-263"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">acodec_prefer_dumb·</span><span·class="ot">=</span><span·class="st">·</span><span·class="kw">false</span></span></code></pre></div> | 760 | <span·id="cb15-263"><a·href="#cb15-263"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">acodec_prefer_dumb·</span><span·class="ot">=</span><span·class="st">·</span><span·class="kw">false</span></span></code></pre></div> |
742 | <p>Examples:</p> | 761 | <p>Examples:</p> |
743 | <ul> | 762 | <ul> |
744 | <li><a | 763 | <li><a |
745 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L493">ex_camera.c</a></li> | ||
746 | <li><a | ||
747 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize2.c#L35">ex_resize2.c</a></li> | 764 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize2.c#L35">ex_resize2.c</a></li> |
765 | <li><a | ||
766 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L493">ex_camera.c</a></li> | ||
748 | </ul> | 767 | </ul> |
749 | <h1·id="al_get_system_id">al_get_system_id</h1> | 768 | <h1·id="al_get_system_id">al_get_system_id</h1> |
750 | <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>ALLEGRO_SYSTEM_ID·al_get_system_id<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 769 | <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>ALLEGRO_SYSTEM_ID·al_get_system_id<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
751 | <p><a | 770 | <p><a |
752 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L363">Source | 771 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L363">Source |
753 | Code</a></p> | 772 | Code</a></p> |
754 | <p>Returns·the·platform·that·Allegro·is·running·on.</p> | 773 | <p>Returns·the·platform·that·Allegro·is·running·on.</p> |
Offset 90, 24 lines modified | Offset 90, 28 lines modified | ||
90 | atexit·function·visible·in·the·current·binary. | 90 | atexit·function·visible·in·the·current·binary. |
91 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 91 | ·····Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
92 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library | 92 | ·····game·binary.·In·particular,·do·not·call·it·inside·a·shared·library |
93 | ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to | 93 | ·····unless·you·know·what·you’re·doing.·In·those·cases,·it·is·better·to |
94 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a | 94 | ·····call·al_install_system·either·with·a·NULL·atexit_ptr,·or·with·a |
95 | ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library. | 95 | ·····pointer·to·atexit·provided·by·the·user·of·this·shared·library. |
96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m | 96 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m |
97 | Examples: | ||
98 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | ||
99 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
100 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | ||
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
98 | void·al_uninstall_system(void) | 102 | void·al_uninstall_system(void) |
99 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
100 | Closes·down·the·Allegro·system. | 104 | Closes·down·the·Allegro·system. |
101 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding | 105 | ·····Note:·al_uninstall_system()·can·be·called·without·a·corresponding |
102 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). | 106 | ·····_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·call,·e.g. from·atexit(). |
103 | Examples: | 107 | Examples: |
104 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 108 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c |
105 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x8._\x8c | ||
106 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x82_\x8._\x8c | 109 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x82_\x8._\x8c |
110 | ····*·_\x8e_\x8x_\x8__\x8i_\x8c_\x8o_\x8n_\x8._\x8c | ||
107 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
108 | bool·al_is_system_installed(void) | 112 | bool·al_is_system_installed(void) |
109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
110 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. | 114 | Returns·true·if·Allegro·is·initialized,·otherwise·returns·false. |
111 | Examples: | 115 | Examples: |
112 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 116 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c |
113 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 176, 16 lines modified | Offset 180, 16 lines modified | ||
176 | ··ALLEGRO_EXENAME_PATH | 180 | ··ALLEGRO_EXENAME_PATH |
177 | ······The·full·path·to·the·executable. | 181 | ······The·full·path·to·the·executable. |
178 | Returns·NULL·on·failure.·The·returned·path·should·be·freed·with | 182 | Returns·NULL·on·failure.·The·returned·path·should·be·freed·with |
179 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h. | 183 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h. |
180 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e | 184 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8p_\x8a_\x8t_\x8h,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8x_\x8e_\x8__\x8n_\x8a_\x8m_\x8e |
181 | Examples: | 185 | Examples: |
182 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | 186 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c |
183 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c_\x8p_\x8p | ||
184 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | 187 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c |
188 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
185 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 189 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_e\x8ex\x8xe\x8e_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
186 | void·al_set_exe_name(char·const·*path) | 190 | void·al_set_exe_name(char·const·*path) |
187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 191 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
188 | This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for | 192 | This·override·the·executable·name·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·for |
189 | ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH. | 193 | ALLEGRO_EXENAME_PATH·and·ALLEGRO_RESOURCES_PATH. |
190 | One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python | 194 | One·possibility·where·changing·this·can·be·useful·is·if·you·use·the·Python |
191 | wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python | 195 | wrapper.·Allegro·would·then·by·default·think·that·the·system’s·Python |
Offset 199, 22 lines modified | Offset 203, 26 lines modified | ||
199 | void·al_set_app_name(const·char·*app_name) | 203 | void·al_set_app_name(const·char·*app_name) |
200 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 204 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
201 | Sets·the·global·application·name. | 205 | Sets·the·global·application·name. |
202 | The·application·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to | 206 | The·application·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to |
203 | an·application’s·files. | 207 | an·application’s·files. |
204 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. | 208 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. |
205 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e | 209 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e |
210 | Examples: | ||
211 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
206 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 212 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
207 | void·al_set_org_name(const·char·*org_name) | 213 | void·al_set_org_name(const·char·*org_name) |
208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 214 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
209 | Sets·the·global·organization·name. | 215 | Sets·the·global·organization·name. |
210 | The·organization·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to | 216 | The·organization·name·is·used·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8p_\x8a_\x8t_\x8h·to·build·the·full·path·to |
211 | an·application’s·files. | 217 | an·application’s·files. |
212 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. | 218 | This·function·may·be·called·before·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m. |
213 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e | 219 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8o_\x8r_\x8g_\x8__\x8n_\x8a_\x8m_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e |
220 | Examples: | ||
221 | ····*·_\x8e_\x8x_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8._\x8c | ||
214 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 222 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8ap\x8pp\x8p_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
215 | const·char·*al_get_app_name(void) | 223 | const·char·*al_get_app_name(void) |
216 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 224 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
217 | Returns·the·global·application·name·string. | 225 | Returns·the·global·application·name·string. |
218 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e | 226 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8a_\x8p_\x8p_\x8__\x8n_\x8a_\x8m_\x8e |
219 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 227 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_o\x8or\x8rg\x8g_\x8_n\x8na\x8am\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
220 | const·char·*al_get_org_name(void) | 228 | const·char·*al_get_org_name(void) |
Offset 506, 16 lines modified | Offset 514, 16 lines modified | ||
506 | #·Allegro·version·that·had·the·desired·old·behavior. | 514 | #·Allegro·version·that·had·the·desired·old·behavior. |
507 | #·joystick_version·=·5.2.9 | 515 | #·joystick_version·=·5.2.9 |
508 | #·keyboard_version·=·5.2.9 | 516 | #·keyboard_version·=·5.2.9 |
509 | #·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files. | 517 | #·Prefer·using·DUMB·rather·than·OpenMPT·to·decode·module·files. |
510 | acodec_prefer_dumb·=·false | 518 | acodec_prefer_dumb·=·false |
511 | Examples: | 519 | Examples: |
512 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
513 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c | 520 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x82_\x8._\x8c |
521 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
514 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 522 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_s\x8sy\x8ys\x8st\x8te\x8em\x8m_\x8_i\x8id\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
515 | ALLEGRO_SYSTEM_ID·al_get_system_id(void) | 523 | ALLEGRO_SYSTEM_ID·al_get_system_id(void) |
516 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 524 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
517 | Returns·the·platform·that·Allegro·is·running·on. | 525 | Returns·the·platform·that·Allegro·is·running·on. |
518 | Since:·5.2.5 | 526 | Since:·5.2.5 |
519 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8Y_\x8S_\x8T_\x8E_\x8M_\x8__\x8I_\x8D | 527 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8Y_\x8S_\x8T_\x8E_\x8M_\x8__\x8I_\x8D |
520 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_a\x8as\x8ss\x8se\x8er\x8rt\x8t_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 528 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8eg\x8gi\x8is\x8st\x8te\x8er\x8r_\x8_a\x8as\x8ss\x8se\x8er\x8rt\x8t_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
Offset 228, 39 lines modified | Offset 228, 69 lines modified | ||
228 | <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.h></span></span></code></pre></div> | 228 | <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.h></span></span></code></pre></div> |
229 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> | 229 | <h1·id="allegro_thread">ALLEGRO_THREAD</h1> |
230 | <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_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div> | 230 | <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_THREAD·ALLEGRO_THREAD<span·class="op">;</span></span></code></pre></div> |
231 | <p><a | 231 | <p><a |
232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L27">Source |
233 | Code</a></p> | 233 | Code</a></p> |
234 | <p>An·opaque·structure·representing·a·thread.</p> | 234 | <p>An·opaque·structure·representing·a·thread.</p> |
235 | <p>Examples:</p> | ||
236 | <ul> | ||
237 | <li><a | ||
238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | ||
239 | <li><a | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | ||
241 | <li><a | ||
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> | ||
243 | </ul> | ||
235 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
236 | <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> |
237 | <p><a | 246 | <p><a |
238 | 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 |
239 | Code</a></p> | 248 | Code</a></p> |
240 | <p>An·opaque·structure·representing·a·mutex.</p> | 249 | <p>An·opaque·structure·representing·a·mutex.</p> |
250 | <p>Examples:</p> | ||
251 | <ul> | ||
252 | <li><a | ||
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> | ||
254 | <li><a | ||
255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> | ||
256 | </ul> | ||
241 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 257 | <h1·id="allegro_cond">ALLEGRO_COND</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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div> | 258 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COND·ALLEGRO_COND<span·class="op">;</span></span></code></pre></div> |
243 | <p><a | 259 | <p><a |
244 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source | 260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/threads.h#L35">Source |
245 | Code</a></p> | 261 | Code</a></p> |
246 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 262 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
263 | <p>Examples:</p> | ||
264 | <ul> | ||
265 | <li><a | ||
266 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L28">ex_threads2.c</a></li> | ||
267 | </ul> | ||
247 | <h1·id="al_create_thread">al_create_thread</h1> | 268 | <h1·id="al_create_thread">al_create_thread</h1> |
248 | <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_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span> | 269 | <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_THREAD·<span·class="op">*</span>al_create_thread<span·class="op">(</span></span> |
249 | <span·id="cb5-2"><a·href="#cb5-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></code></pre></div> | 270 | <span·id="cb5-2"><a·href="#cb5-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></code></pre></div> |
250 | <p><a | 271 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source | 272 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L115">Source |
252 | Code</a></p> | 273 | Code</a></p> |
253 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new | 274 | <p>Spawn·a·new·thread·which·begins·executing·<code>proc</code>.·The·new |
254 | thread·is·passed·its·own·thread·handle·and·the·value | 275 | thread·is·passed·its·own·thread·handle·and·the·value |
255 | <code>arg</code>.</p> | 276 | <code>arg</code>.</p> |
256 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL | 277 | <p>Returns·a·pointer·to·the·thread·on·success.·Otherwise,·returns·NULL |
257 | if·there·was·an·error.</p> | 278 | if·there·was·an·error.</p> |
258 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, | 279 | <p>See·also:·<a·href="threads.html#al_start_thread">al_start_thread</a>, |
259 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> | 280 | <a·href="threads.html#al_join_thread">al_join_thread</a>.</p> |
281 | <p>Examples:</p> | ||
282 | <ul> | ||
283 | <li><a | ||
284 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L233">ex_threads.c</a></li> | ||
285 | <li><a | ||
286 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L313">ex_threads2.c</a></li> | ||
287 | <li><a | ||
288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L158">ex_loading_thread.c</a></li> | ||
289 | </ul> | ||
260 | <h1 | 290 | <h1 |
261 | 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> |
262 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_THREAD·<span·class="op">*</span>al_create_thread_with_stacksize<span·class="op">(</span></span> | 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> |
263 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">void</span>·<span·class="op">*(*</span>proc<span·class="op">)(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">),</span>·<span·class="dt">void</span>·<span·class="op">*</span>arg<span·class="op">,</span>·<span·class="dt">size_t</span>·stacksize<span·class="op">)</span></span></code></pre></div> | 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> |
264 | <p><a | 294 | <p><a |
265 | 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 |
266 | Code</a></p> | 296 | Code</a></p> |
Offset 284, 14 lines modified | Offset 314, 23 lines modified | ||
284 | Code</a></p> | 314 | Code</a></p> |
285 | <p>When·a·thread·is·created,·it·is·initially·in·a·suspended·state. | 315 | <p>When·a·thread·is·created,·it·is·initially·in·a·suspended·state. |
286 | Calling·<a·href="threads.html#al_start_thread">al_start_thread</a>·will | 316 | Calling·<a·href="threads.html#al_start_thread">al_start_thread</a>·will |
287 | start·its·actual·execution.</p> | 317 | start·its·actual·execution.</p> |
288 | <p>Starting·a·thread·which·has·already·been·started·does·nothing.</p> | 318 | <p>Starting·a·thread·which·has·already·been·started·does·nothing.</p> |
289 | <p>See·also:·<a | 319 | <p>See·also:·<a |
290 | href="threads.html#al_create_thread">al_create_thread</a>.</p> | 320 | href="threads.html#al_create_thread">al_create_thread</a>.</p> |
321 | <p>Examples:</p> | ||
322 | <ul> | ||
323 | <li><a | ||
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L237">ex_threads.c</a></li> | ||
325 | <li><a | ||
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L329">ex_threads2.c</a></li> | ||
327 | <li><a | ||
328 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L159">ex_loading_thread.c</a></li> | ||
329 | </ul> | ||
291 | <h1·id="al_join_thread">al_join_thread</h1> | 330 | <h1·id="al_join_thread">al_join_thread</h1> |
292 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_join_thread<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">,</span>·<span·class="dt">void</span>·<span·class="op">**</span>ret_value<span·class="op">)</span></span></code></pre></div> | 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> |
293 | <p><a | 332 | <p><a |
294 | 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 |
295 | Code</a></p> | 334 | Code</a></p> |
296 | <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 |
297 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a> | 336 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a> |
Offset 300, 24 lines modified | Offset 339, 38 lines modified | ||
300 | returned·by·the·thread·function·will·be·stored·at·the·location·pointed | 339 | returned·by·the·thread·function·will·be·stored·at·the·location·pointed |
301 | to·by·<code>ret_value</code>.</p> | 340 | to·by·<code>ret_value</code>.</p> |
302 | <p>See·also:·<a | 341 | <p>See·also:·<a |
303 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>, | 342 | href="threads.html#al_set_thread_should_stop">al_set_thread_should_stop</a>, |
304 | <a | 343 | <a |
305 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>, | 344 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>, |
306 | <a·href="threads.html#al_destroy_thread">al_destroy_thread</a>.</p> | 345 | <a·href="threads.html#al_destroy_thread">al_destroy_thread</a>.</p> |
346 | <p>Examples:</p> | ||
347 | <ul> | ||
348 | <li><a | ||
349 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L240">ex_threads.c</a></li> | ||
350 | <li><a | ||
351 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L383">ex_threads2.c</a></li> | ||
352 | <li><a | ||
353 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L227">ex_loading_thread.c</a></li> | ||
354 | </ul> | ||
307 | <h1·id="al_set_thread_should_stop">al_set_thread_should_stop</h1> | 355 | <h1·id="al_set_thread_should_stop">al_set_thread_should_stop</h1> |
308 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> | 356 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> |
309 | <p><a | 357 | <p><a |
310 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L244">Source | 358 | href="https://github.com/liballeg/allegro5/blob/master/src/threads.c#L244">Source |
311 | Code</a></p> | 359 | Code</a></p> |
312 | <p>Set·the·flag·to·indicate·<code>thread</code>·should·stop.·Returns | 360 | <p>Set·the·flag·to·indicate·<code>thread</code>·should·stop.·Returns |
313 | immediately.</p> | 361 | immediately.</p> |
314 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, | 362 | <p>See·also:·<a·href="threads.html#al_join_thread">al_join_thread</a>, |
315 | <a | 363 | <a |
316 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>.</p> | 364 | href="threads.html#al_get_thread_should_stop">al_get_thread_should_stop</a>.</p> |
365 | <p>Examples:</p> | ||
366 | <ul> | ||
367 | <li><a | ||
368 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L375">ex_threads2.c</a></li> | ||
369 | </ul> | ||
317 | <h1·id="al_get_thread_should_stop">al_get_thread_should_stop</h1> | 370 | <h1·id="al_get_thread_should_stop">al_get_thread_should_stop</h1> |
318 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> | 371 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_thread_should_stop<span·class="op">(</span>ALLEGRO_THREAD·<span·class="op">*</span>thread<span·class="op">)</span></span></code></pre></div> |
Max diff block lines reached; 10441/19155 bytes (54.51%) of diff not shown. |
Offset 74, 31 lines modified | Offset 74, 44 lines modified | ||
74 | cases. | 74 | cases. |
75 | These·functions·are·declared·in·the·main·Allegro·header·file: | 75 | These·functions·are·declared·in·the·main·Allegro·header·file: |
76 | ·#include·<allegro5/allegro.h> | 76 | ·#include·<allegro5/allegro.h> |
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: | ||
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 | ||
84 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
81 | *\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* |
82 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | An·opaque·structure·representing·a·mutex. | 88 | An·opaque·structure·representing·a·mutex. |
89 | Examples: | ||
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 | ||
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 92 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8ON\x8ND\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 93 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | An·opaque·structure·representing·a·condition·variable. | 95 | An·opaque·structure·representing·a·condition·variable. |
96 | Examples: | ||
97 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
89 | *\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**\x8**\x8**\x8**\x8**\x8* | 98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
90 | ALLEGRO_THREAD·*al_create_thread( | 99 | ALLEGRO_THREAD·*al_create_thread( |
91 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
93 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its | 102 | Spawn·a·new·thread·which·begins·executing·proc.·The·new·thread·is·passed·its |
94 | own·thread·handle·and·the·value·arg. | 103 | own·thread·handle·and·the·value·arg. |
95 | 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 |
96 | was·an·error. | 105 | was·an·error. |
97 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 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: | ||
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 | ||
110 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
98 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_w\x8wi\x8it\x8th\x8h_\x8_s\x8st\x8ta\x8ac\x8ck\x8ks\x8si\x8iz\x8ze\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
99 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( | 112 | ALLEGRO_THREAD·*al_create_thread_with_stacksize( |
100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t | 113 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg,·size_t |
101 | stacksize) | 114 | stacksize) |
102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
103 | 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 |
104 | 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 111, 58 lines modified | Offset 124, 78 lines modified | ||
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 124 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | void·al_start_thread(ALLEGRO_THREAD·*thread) | 125 | void·al_start_thread(ALLEGRO_THREAD·*thread) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | 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 |
115 | _\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. |
116 | Starting·a·thread·which·has·already·been·started·does·nothing. | 129 | Starting·a·thread·which·has·already·been·started·does·nothing. |
117 | 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: | ||
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 | ||
134 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_j\x8jo\x8oi\x8in\x8n_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
119 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) | 136 | void·al_join_thread(ALLEGRO_THREAD·*thread,·void·**ret_value) |
120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
121 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls | 138 | Wait·for·the·thread·to·finish·executing.·This·implicitly·calls |
122 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·first. | 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. |
123 | 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 |
124 | stored·at·the·location·pointed·to·by·ret_value. | 141 | stored·at·the·location·pointed·to·by·ret_value. |
125 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p, | 142 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p, |
126 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 143 | _\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
144 | Examples: | ||
145 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
146 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
147 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
127 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* | 148 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* |
128 | void·al_set_thread_should_stop(ALLEGRO_THREAD·*thread) | 149 | void·al_set_thread_should_stop(ALLEGRO_THREAD·*thread) |
129 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 150 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
130 | Set·the·flag·to·indicate·thread·should·stop.·Returns·immediately. | 151 | Set·the·flag·to·indicate·thread·should·stop.·Returns·immediately. |
131 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. | 152 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. |
153 | Examples: | ||
154 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
132 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* | 155 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d_\x8_s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d_\x8_s\x8st\x8to\x8op\x8p·*\x8**\x8**\x8**\x8**\x8**\x8* |
133 | bool·al_get_thread_should_stop(ALLEGRO_THREAD·*thread) | 156 | bool·al_get_thread_should_stop(ALLEGRO_THREAD·*thread) |
134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
135 | Check·if·another·thread·is·waiting·for·thread·to·stop.·Threads·which·run·in·a | 158 | Check·if·another·thread·is·waiting·for·thread·to·stop.·Threads·which·run·in·a |
136 | loop·should·check·this·periodically·and·act·on·it·when·convenient. | 159 | loop·should·check·this·periodically·and·act·on·it·when·convenient. |
137 | Returns·true·if·another·thread·has·called·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·or | 160 | Returns·true·if·another·thread·has·called·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·or |
138 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·on·this·thread. | 161 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p·on·this·thread. |
139 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. | 162 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8__\x8s_\x8t_\x8o_\x8p. |
140 | ·····N\x8No\x8ot\x8te\x8e:\x8:·We·don’t·support·forceful·killing·of·threads. | 163 | ·····N\x8No\x8ot\x8te\x8e:\x8:·We·don’t·support·forceful·killing·of·threads. |
164 | Examples: | ||
165 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
166 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
141 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 167 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
142 | void·al_destroy_thread(ALLEGRO_THREAD·*thread) | 168 | void·al_destroy_thread(ALLEGRO_THREAD·*thread) |
143 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 169 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
144 | Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the | 170 | Free·the·resources·used·by·a·thread.·Implicitly·performs·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the |
145 | thread·if·it·hasn’t·been·done·already. | 171 | thread·if·it·hasn’t·been·done·already. |
146 | Does·nothing·if·thread·is·NULL. | 172 | Does·nothing·if·thread·is·NULL. |
147 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. | 173 | See·also:·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d. |
174 | Examples: | ||
175 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | ||
176 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
177 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
148 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 178 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8ru\x8un\x8n_\x8_d\x8de\x8et\x8ta\x8ac\x8ch\x8he\x8ed\x8d_\x8_t\x8th\x8hr\x8re\x8ea\x8ad\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
149 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) | 179 | void·al_run_detached_thread(void·*(*proc)(void·*arg),·void·*arg) |
150 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 180 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
151 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only | 181 | Runs·the·passed·function·in·its·own·thread,·with·arg·passed·to·it·as·only |
152 | parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and | 182 | parameter.·This·is·similar·to·calling·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·and |
153 | (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the | 183 | (after·the·thread·has·finished)·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·-·but·you·don’t·have·the |
154 | possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread. | 184 | possibility·of·ever·calling·_\x8a_\x8l_\x8__\x8j_\x8o_\x8i_\x8n_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d·on·the·thread. |
155 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* | 185 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x·*\x8**\x8**\x8**\x8**\x8**\x8* |
156 | ALLEGRO_MUTEX·*al_create_mutex(void) | 186 | ALLEGRO_MUTEX·*al_create_mutex(void) |
157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
158 | Create·the·mutex·object·(a·mutual·exclusion·device).·The·mutex·may·or·may·not | 188 | Create·the·mutex·object·(a·mutual·exclusion·device).·The·mutex·may·or·may·not |
159 | support·“recursive”·locking. | 189 | support·“recursive”·locking. |
160 | Returns·the·mutex·on·success·or·NULL·on·error. | 190 | Returns·the·mutex·on·success·or·NULL·on·error. |
161 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e. | 191 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e. |
192 | Examples: | ||
193 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | ||
194 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
162 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_r\x8re\x8ec\x8cu\x8ur\x8rs\x8si\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_m\x8mu\x8ut\x8te\x8ex\x8x_\x8_r\x8re\x8ec\x8cu\x8ur\x8rs\x8si\x8iv\x8ve\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
163 | ALLEGRO_MUTEX·*al_create_mutex_recursive(void) | 196 | ALLEGRO_MUTEX·*al_create_mutex_recursive(void) |
164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
165 | Create·the·mutex·object·(a·mutual·exclusion·device),·with·support·for | 198 | Create·the·mutex·object·(a·mutual·exclusion·device),·with·support·for |
166 | “recursive”·locking.·That·is,·the·mutex·will·count·the·number·of·times·it·has | 199 | “recursive”·locking.·That·is,·the·mutex·will·count·the·number·of·times·it·has |
167 | been·locked·by·the·same·thread.·If·the·caller·tries·to·acquire·a·lock·on·the | 200 | been·locked·by·the·same·thread.·If·the·caller·tries·to·acquire·a·lock·on·the |
168 | mutex·when·it·already·holds·the·lock·then·the·count·is·incremented.·The·mutex | 201 | mutex·when·it·already·holds·the·lock·then·the·count·is·incremented.·The·mutex |
Offset 177, 32 lines modified | Offset 210, 42 lines modified | ||
177 | If·the·mutex·is·already·locked·by·the·calling·thread,·then·the·behaviour | 210 | If·the·mutex·is·already·locked·by·the·calling·thread,·then·the·behaviour |
178 | depends·on·whether·the·mutex·was·created·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x·or | 211 | depends·on·whether·the·mutex·was·created·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x·or |
179 | _\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e.·In·the·former·case,·the·behaviour·is·undefined;·the | 212 | _\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8m_\x8u_\x8t_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8u_\x8r_\x8s_\x8i_\x8v_\x8e.·In·the·former·case,·the·behaviour·is·undefined;·the |
Max diff block lines reached; 3944/11620 bytes (33.94%) of diff not shown. |
Offset 187, 47 lines modified | Offset 187, 75 lines modified | ||
187 | <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_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div> | 187 | <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_TIMEOUT·ALLEGRO_TIMEOUT<span·class="op">;</span></span></code></pre></div> |
188 | <p><a | 188 | <p><a |
189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source | 189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/altime.h#L12">Source |
190 | Code</a></p> | 190 | Code</a></p> |
191 | <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it | 191 | <p>Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it |
192 | can·be·statically·allocated.·The·contents·are·private.</p> | 192 | can·be·statically·allocated.·The·contents·are·private.</p> |
193 | <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p> | 193 | <p>See·also:·<a·href="time.html#al_init_timeout">al_init_timeout</a></p> |
194 | <p>Examples:</p> | ||
195 | <ul> | ||
196 | <li><a | ||
197 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L99">ex_timedwait.c</a></li> | ||
198 | </ul> | ||
194 | <h1·id="al_get_time">al_get_time</h1> | 199 | <h1·id="al_get_time">al_get_time</h1> |
195 | <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">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 200 | <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">double</span>·al_get_time<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
196 | <p><a | 201 | <p><a |
197 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source | 202 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L504">Source |
198 | Code</a></p> | 203 | Code</a></p> |
199 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was | 204 | <p>Return·the·number·of·seconds·since·the·Allegro·library·was |
200 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. | 205 | initialised.·The·return·value·is·undefined·if·Allegro·is·uninitialised. |
201 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the | 206 | The·resolution·depends·on·the·used·driver,·but·typically·can·be·in·the |
202 | order·of·microseconds.</p> | 207 | order·of·microseconds.</p> |
208 | <p>Examples:</p> | ||
209 | <ul> | ||
210 | <li><a | ||
211 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_convert.c#L40">ex_convert.c</a></li> | ||
212 | <li><a | ||
213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_d3d.cpp#L81">ex_d3d.cpp</a></li> | ||
214 | <li><a | ||
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L215">ex_enet_server.c</a></li> | ||
216 | </ul> | ||
203 | <h1·id="al_init_timeout">al_init_timeout</h1> | 217 | <h1·id="al_init_timeout">al_init_timeout</h1> |
204 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 218 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_init_timeout<span·class="op">(</span>ALLEGRO_TIMEOUT·<span·class="op">*</span>timeout<span·class="op">,</span>·<span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
205 | <p><a | 219 | <p><a |
206 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source | 220 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L527">Source |
207 | Code</a></p> | 221 | Code</a></p> |
208 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function | 222 | <p>Set·timeout·value·of·some·number·of·seconds·after·the·function |
209 | call.</p> | 223 | call.</p> |
210 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be | 224 | <p>For·compatibility·with·all·platforms,·<code>seconds</code>·must·be |
211 | 2,147,483.647·seconds·or·less.</p> | 225 | 2,147,483.647·seconds·or·less.</p> |
212 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a | 226 | <p>See·also:·<a·href="time.html#allegro_timeout">ALLEGRO_TIMEOUT</a>,·<a |
213 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> | 227 | href="events.html#al_wait_for_event_until">al_wait_for_event_until</a></p> |
228 | <p>Examples:</p> | ||
229 | <ul> | ||
230 | <li><a | ||
231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timedwait.c#L105">ex_timedwait.c</a></li> | ||
232 | </ul> | ||
214 | <h1·id="al_rest">al_rest</h1> | 233 | <h1·id="al_rest">al_rest</h1> |
215 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> | 234 | <div·class="sourceCode"·id="cb5"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb5-1"><a·href="#cb5-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_rest<span·class="op">(</span><span·class="dt">double</span>·seconds<span·class="op">)</span></span></code></pre></div> |
216 | <p><a | 235 | <p><a |
217 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L516">Source | 236 | href="https://github.com/liballeg/allegro5/blob/master/src/system.c#L516">Source |
218 | Code</a></p> | 237 | Code</a></p> |
219 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to | 238 | <p>Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to |
220 | pause·the·current·thread·for·the·given·amount·of·time.·With·some | 239 | pause·the·current·thread·for·the·given·amount·of·time.·With·some |
221 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, | 240 | operating·systems,·the·accuracy·can·be·in·the·order·of·10ms.·That·is, |
222 | even</p> | 241 | even</p> |
223 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div> | 242 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>al_rest<span·class="op">(</span><span·class="fl">0.000001</span><span·class="op">)</span></span></code></pre></div> |
224 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer | 243 | <p>might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer |
225 | routines·for·easier·ways·to·time·your·program·without·using·up·all | 244 | routines·for·easier·ways·to·time·your·program·without·using·up·all |
226 | CPU.</p> | 245 | CPU.</p> |
246 | <p>Examples:</p> | ||
247 | <ul> | ||
248 | <li><a | ||
249 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_keyboard_focus.c#L68">ex_keyboard_focus.c</a></li> | ||
250 | <li><a | ||
251 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L45">ex_timer_pause.c</a></li> | ||
252 | <li><a | ||
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_focus.c#L92">ex_mouse_focus.c</a></li> | ||
254 | </ul> | ||
227 | <p·class="timestamp"> | 255 | <p·class="timestamp"> |
228 | Allegro·version·5.2.10 | 256 | Allegro·version·5.2.10 |
229 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 257 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
230 | </p> | 258 | </p> |
231 | </div> | 259 | </div> |
232 | </body> | 260 | </body> |
233 | </html> | 261 | </html> |
Offset 51, 30 lines modified | Offset 51, 42 lines modified | ||
51 | ·#include·<allegro5/allegro.h> | 51 | ·#include·<allegro5/allegro.h> |
52 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8EO\x8OU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
53 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; | 53 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; |
54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
55 | Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be | 55 | Represent·a·timeout·value.·The·size·of·the·structure·is·known·so·it·can·be |
56 | statically·allocated.·The·contents·are·private. | 56 | statically·allocated.·The·contents·are·private. |
57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t | 57 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t |
58 | Examples: | ||
59 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 60 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | double·al_get_time(void) | 61 | double·al_get_time(void) |
60 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 62 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
61 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The | 63 | Return·the·number·of·seconds·since·the·Allegro·library·was·initialised.·The |
62 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends | 64 | return·value·is·undefined·if·Allegro·is·uninitialised.·The·resolution·depends |
63 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. | 65 | on·the·used·driver,·but·typically·can·be·in·the·order·of·microseconds. |
66 | Examples: | ||
67 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | ||
68 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | ||
69 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
64 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 70 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_t\x8ti\x8im\x8me\x8eo\x8ou\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
65 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) | 71 | void·al_init_timeout(ALLEGRO_TIMEOUT·*timeout,·double·seconds) |
66 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 72 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
67 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. | 73 | Set·timeout·value·of·some·number·of·seconds·after·the·function·call. |
68 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or | 74 | For·compatibility·with·all·platforms,·seconds·must·be·2,147,483.647·seconds·or |
69 | less. | 75 | less. |
70 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l | 76 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8I_\x8M_\x8E_\x8O_\x8U_\x8T,·_\x8a_\x8l_\x8__\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8t_\x8i_\x8l |
77 | Examples: | ||
78 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | ||
71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
72 | void·al_rest(double·seconds) | 80 | void·al_rest(double·seconds) |
73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
74 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the | 82 | Waits·for·the·specified·number·of·seconds.·This·tells·the·system·to·pause·the |
75 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the | 83 | current·thread·for·the·given·amount·of·time.·With·some·operating·systems,·the |
76 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even | 84 | accuracy·can·be·in·the·order·of·10ms.·That·is,·even |
77 | al_rest(0.000001) | 85 | al_rest(0.000001) |
78 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for | 86 | might·pause·for·something·like·10ms.·Also·see·the·section·on·Timer·routines·for |
79 | easier·ways·to·time·your·program·without·using·up·all·CPU. | 87 | easier·ways·to·time·your·program·without·using·up·all·CPU. |
88 | Examples: | ||
89 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
91 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | ||
80 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 92 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 213, 14 lines modified | Offset 213, 23 lines modified | ||
213 | <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.h></span></span></code></pre></div> | 213 | <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.h></span></span></code></pre></div> |
214 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> | 214 | <h1·id="allegro_timer">ALLEGRO_TIMER</h1> |
215 | <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_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div> | 215 | <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_TIMER·ALLEGRO_TIMER<span·class="op">;</span></span></code></pre></div> |
216 | <p><a | 216 | <p><a |
217 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source | 217 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L46">Source |
218 | Code</a></p> | 218 | Code</a></p> |
219 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> | 219 | <p>This·is·an·abstract·data·type·representing·a·timer·object.</p> |
220 | <p>Examples:</p> | ||
221 | <ul> | ||
222 | <li><a | ||
223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> | ||
224 | <li><a | ||
225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> | ||
226 | <li><a | ||
227 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> | ||
228 | </ul> | ||
220 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 229 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> |
221 | <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="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div> | 230 | <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="pp">#define·ALLEGRO_USECS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">······</span><span·class="op">((</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="fl">1000000.0</span><span·class="op">)</span></span></code></pre></div> |
222 | <p><a | 231 | <p><a |
223 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L29">Source |
224 | Code</a></p> | 233 | Code</a></p> |
225 | <p>Convert·microseconds·to·seconds.</p> | 234 | <p>Convert·microseconds·to·seconds.</p> |
226 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 235 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
Offset 231, 14 lines modified | Offset 240, 19 lines modified | ||
231 | <p>Convert·milliseconds·to·seconds.</p> | 240 | <p>Convert·milliseconds·to·seconds.</p> |
232 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> | 241 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> |
233 | <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="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> | 242 | <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="pp">#define·ALLEGRO_BPS_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">1.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> |
234 | <p><a | 243 | <p><a |
235 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source | 244 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L37">Source |
236 | Code</a></p> | 245 | Code</a></p> |
237 | <p>Convert·beats·per·second·to·seconds.</p> | 246 | <p>Convert·beats·per·second·to·seconds.</p> |
247 | <p>Examples:</p> | ||
248 | <ul> | ||
249 | <li><a | ||
250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> | ||
251 | </ul> | ||
238 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> | 252 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> |
239 | <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="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> | 253 | <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="pp">#define·ALLEGRO_BPM_TO_SECS</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">(</span><span·class="fl">60.0</span><span·class="pp">·</span><span·class="op">/</span><span·class="pp">·</span><span·class="op">(</span><span·class="pp">x</span><span·class="op">))</span></span></code></pre></div> |
240 | <p><a | 254 | <p><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source | 255 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L41">Source |
242 | Code</a></p> | 256 | Code</a></p> |
243 | <p>Convert·beats·per·minute·to·seconds.</p> | 257 | <p>Convert·beats·per·minute·to·seconds.</p> |
244 | <h1·id="al_create_timer">al_create_timer</h1> | 258 | <h1·id="al_create_timer">al_create_timer</h1> |
Offset 253, 51 lines modified | Offset 267, 85 lines modified | ||
253 | href="timer.html#al_start_timer">al_start_timer</a>·before·<a | 267 | href="timer.html#al_start_timer">al_start_timer</a>·before·<a |
254 | href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>·events | 268 | href="events.html#allegro_event_timer">ALLEGRO_EVENT_TIMER</a>·events |
255 | are·sent.</p> | 269 | are·sent.</p> |
256 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but | 270 | <p>Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but |
257 | with·some·drivers·might·only·be·milliseconds.</p> | 271 | with·some·drivers·might·only·be·milliseconds.</p> |
258 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 272 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
259 | href="timer.html#al_destroy_timer">al_destroy_timer</a></p> | 273 | href="timer.html#al_destroy_timer">al_destroy_timer</a></p> |
274 | <p>Examples:</p> | ||
275 | <ul> | ||
276 | <li><a | ||
277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L212">ex_enet_server.c</a></li> | ||
278 | <li><a | ||
279 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L37">ex_timer_pause.c</a></li> | ||
280 | <li><a | ||
281 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L59">ex_user_events.c</a></li> | ||
282 | </ul> | ||
260 | <h1·id="al_start_timer">al_start_timer</h1> | 283 | <h1·id="al_start_timer">al_start_timer</h1> |
261 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 284 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_start_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
262 | <p><a | 285 | <p><a |
263 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L318">Source | 286 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L318">Source |
264 | Code</a></p> | 287 | Code</a></p> |
265 | <p>Start·the·timer·specified.·From·then,·the·timer’s·counter·will | 288 | <p>Start·the·timer·specified.·From·then,·the·timer’s·counter·will |
266 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. | 289 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. |
267 | Starting·a·timer·that·is·already·started·does·nothing.·Starting·a·timer | 290 | Starting·a·timer·that·is·already·started·does·nothing.·Starting·a·timer |
268 | that·was·stopped·will·reset·the·timer’s·counter,·effectively·restarting | 291 | that·was·stopped·will·reset·the·timer’s·counter,·effectively·restarting |
269 | the·timer·from·the·beginning.</p> | 292 | the·timer·from·the·beginning.</p> |
270 | <p>See·also:·<a·href="timer.html#al_stop_timer">al_stop_timer</a>,·<a | 293 | <p>See·also:·<a·href="timer.html#al_stop_timer">al_stop_timer</a>,·<a |
271 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a | 294 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a |
272 | href="timer.html#al_resume_timer">al_resume_timer</a></p> | 295 | href="timer.html#al_resume_timer">al_resume_timer</a></p> |
296 | <p>Examples:</p> | ||
297 | <ul> | ||
298 | <li><a | ||
299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L216">ex_enet_server.c</a></li> | ||
300 | <li><a | ||
301 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L5">ex_timer_pause.c</a></li> | ||
302 | <li><a | ||
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L72">ex_user_events.c</a></li> | ||
304 | </ul> | ||
273 | <h1·id="al_resume_timer">al_resume_timer</h1> | 305 | <h1·id="al_resume_timer">al_resume_timer</h1> |
274 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_resume_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 306 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_resume_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
275 | <p><a | 307 | <p><a |
276 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L327">Source | 308 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L327">Source |
277 | Code</a></p> | 309 | Code</a></p> |
278 | <p>Resume·the·timer·specified.·From·then,·the·timer’s·counter·will | 310 | <p>Resume·the·timer·specified.·From·then,·the·timer’s·counter·will |
279 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. | 311 | increment·at·a·constant·rate,·and·it·will·begin·generating·events. |
280 | Resuming·a·timer·that·is·already·started·does·nothing.·Resuming·a | 312 | Resuming·a·timer·that·is·already·started·does·nothing.·Resuming·a |
281 | stopped·timer·will·not·reset·the·timer’s·counter·(unlike·<a | 313 | stopped·timer·will·not·reset·the·timer’s·counter·(unlike·<a |
282 | href="timer.html#al_start_timer">al_start_timer</a>).</p> | 314 | href="timer.html#al_start_timer">al_start_timer</a>).</p> |
283 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 315 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
284 | href="timer.html#al_stop_timer">al_stop_timer</a>,·<a | 316 | href="timer.html#al_stop_timer">al_stop_timer</a>,·<a |
285 | href="timer.html#al_get_timer_started">al_get_timer_started</a></p> | 317 | href="timer.html#al_get_timer_started">al_get_timer_started</a></p> |
318 | <p>Examples:</p> | ||
319 | <ul> | ||
320 | <li><a | ||
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L5">ex_timer_pause.c</a></li> | ||
322 | <li><a | ||
323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L350">ex_native_filechooser.c</a></li> | ||
324 | </ul> | ||
286 | <h1·id="al_stop_timer">al_stop_timer</h1> | 325 | <h1·id="al_stop_timer">al_stop_timer</h1> |
287 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 326 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_stop_timer<span·class="op">(</span>ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
288 | <p><a | 327 | <p><a |
289 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L336">Source | 328 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L336">Source |
290 | Code</a></p> | 329 | Code</a></p> |
291 | <p>Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing | 330 | <p>Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing |
292 | and·it·will·stop·generating·events.·Stopping·a·timer·that·is·already | 331 | and·it·will·stop·generating·events.·Stopping·a·timer·that·is·already |
293 | stopped·does·nothing.</p> | 332 | stopped·does·nothing.</p> |
294 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a | 333 | <p>See·also:·<a·href="timer.html#al_start_timer">al_start_timer</a>,·<a |
295 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a | 334 | href="timer.html#al_get_timer_started">al_get_timer_started</a>,·<a |
296 | href="timer.html#al_resume_timer">al_resume_timer</a></p> | 335 | href="timer.html#al_resume_timer">al_resume_timer</a></p> |
336 | <p>Examples:</p> | ||
337 | <ul> | ||
338 | <li><a | ||
339 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L48">ex_timer_pause.c</a></li> | ||
340 | <li><a | ||
341 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_android.c#L196">ex_android.c</a></li> | ||
342 | <li><a | ||
343 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection2.c#L153">ex_projection2.c</a></li> | ||
344 | </ul> | ||
297 | <h1·id="al_get_timer_started">al_get_timer_started</h1> | 345 | <h1·id="al_get_timer_started">al_get_timer_started</h1> |
298 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> | 346 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_get_timer_started<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TIMER·<span·class="op">*</span>timer<span·class="op">)</span></span></code></pre></div> |
299 | <p><a | 347 | <p><a |
300 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source | 348 | href="https://github.com/liballeg/allegro5/blob/master/src/timernu.c#L356">Source |
301 | Code</a></p> | 349 | Code</a></p> |
Max diff block lines reached; 5054/14161 bytes (35.69%) of diff not shown. |
Offset 62, 87 lines modified | Offset 62, 116 lines modified | ||
62 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 62 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
63 | These·functions·are·declared·in·the·main·Allegro·header·file: | 63 | These·functions·are·declared·in·the·main·Allegro·header·file: |
64 | ·#include·<allegro5/allegro.h> | 64 | ·#include·<allegro5/allegro.h> |
65 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 65 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TI\x8IM\x8ME\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
66 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | 66 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; |
67 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 67 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
68 | This·is·an·abstract·data·type·representing·a·timer·object. | 68 | This·is·an·abstract·data·type·representing·a·timer·object. |
69 | Examples: | ||
70 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
71 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
72 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
69 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
70 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 74 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | Convert·microseconds·to·seconds. | 76 | Convert·microseconds·to·seconds. |
73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MS\x8SE\x8EC\x8CS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
74 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 78 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
76 | Convert·milliseconds·to·seconds. | 80 | Convert·milliseconds·to·seconds. |
77 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PS\x8S_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
78 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 82 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Convert·beats·per·second·to·seconds. | 84 | Convert·beats·per·second·to·seconds. |
85 | Examples: | ||
86 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | ||
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BP\x8PM\x8M_\x8_T\x8TO\x8O_\x8_S\x8SE\x8EC\x8CS\x8S·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 88 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | Convert·beats·per·minute·to·seconds. | 90 | Convert·beats·per·minute·to·seconds. |
85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 91 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
86 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) | 92 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) |
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer | 94 | Allocates·and·initializes·a·timer.·If·successful,·a·pointer·to·a·new·timer |
89 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per | 95 | object·is·returned,·otherwise·NULL·is·returned.·s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·is·in·seconds·per |
90 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to | 96 | “tick”,·and·must·be·positive.·The·new·timer·is·initially·stopped·and·needs·to |
91 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. | 97 | be·started·with·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r·before·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8I_\x8M_\x8E_\x8R·events·are·sent. |
92 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some | 98 | Usage·note:·typical·granularity·is·on·the·order·of·microseconds,·but·with·some |
93 | drivers·might·only·be·milliseconds. | 99 | drivers·might·only·be·milliseconds. |
94 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 100 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8d_\x8e_\x8s_\x8t_\x8r_\x8o_\x8y_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
101 | Examples: | ||
102 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
103 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
104 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
95 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 105 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8ta\x8ar\x8rt\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
96 | void·al_start_timer(ALLEGRO_TIMER·*timer) | 106 | void·al_start_timer(ALLEGRO_TIMER·*timer) |
97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
98 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 108 | Start·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
99 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is | 109 | constant·rate,·and·it·will·begin·generating·events.·Starting·a·timer·that·is |
100 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the | 110 | already·started·does·nothing.·Starting·a·timer·that·was·stopped·will·reset·the |
101 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. | 111 | timer’s·counter,·effectively·restarting·the·timer·from·the·beginning. |
102 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 112 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
113 | Examples: | ||
114 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | ||
115 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
116 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
103 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
104 | void·al_resume_timer(ALLEGRO_TIMER·*timer) | 118 | void·al_resume_timer(ALLEGRO_TIMER·*timer) |
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a | 120 | Resume·the·timer·specified.·From·then,·the·timer’s·counter·will·increment·at·a |
107 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is | 121 | constant·rate,·and·it·will·begin·generating·events.·Resuming·a·timer·that·is |
108 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the | 122 | already·started·does·nothing.·Resuming·a·stopped·timer·will·not·reset·the |
109 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). | 123 | timer’s·counter·(unlike·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r). |
110 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d | 124 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d |
125 | Examples: | ||
126 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
127 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
111 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 128 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8st\x8to\x8op\x8p_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
112 | void·al_stop_timer(ALLEGRO_TIMER·*timer) | 129 | void·al_stop_timer(ALLEGRO_TIMER·*timer) |
113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
114 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it | 131 | Stop·the·timer·specified.·The·timer’s·counter·will·stop·incrementing·and·it |
115 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does | 132 | will·stop·generating·events.·Stopping·a·timer·that·is·already·stopped·does |
116 | nothing. | 133 | nothing. |
117 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 134 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8e_\x8d,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
135 | Examples: | ||
136 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8a_\x8n_\x8d_\x8r_\x8o_\x8i_\x8d_\x8._\x8c | ||
138 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x82_\x8._\x8c | ||
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 139 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_s\x8st\x8ta\x8ar\x8rt\x8te\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) | 140 | bool·al_get_timer_started(const·ALLEGRO_TIMER·*timer) |
120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
121 | Return·true·if·the·timer·specified·is·currently·started. | 142 | Return·true·if·the·timer·specified·is·currently·started. |
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8y_\x8_t\x8ti\x8im\x8me\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) | 144 | void·al_destroy_timer(ALLEGRO_TIMER·*timer) |
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically | 146 | Uninstall·the·timer·specified.·If·the·timer·is·started,·it·will·automatically |
126 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the | 147 | be·stopped·before·uninstallation.·It·will·also·automatically·unregister·the |
127 | timer·with·any·event·queues. | 148 | timer·with·any·event·queues. |
128 | Does·nothing·if·passed·the·NULL·pointer. | 149 | Does·nothing·if·passed·the·NULL·pointer. |
129 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r | 150 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r |
151 | Examples: | ||
152 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | ||
153 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | ||
154 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8f_\x8r_\x8a_\x8m_\x8e_\x8._\x8c | ||
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 155 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
131 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) | 156 | int64_t·al_get_timer_count(const·ALLEGRO_TIMER·*timer) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. | 158 | Return·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped. |
134 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 159 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
160 | Examples: | ||
161 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | ||
135 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 162 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) | 163 | void·al_set_timer_count(ALLEGRO_TIMER·*timer,·int64_t·new_count) |
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count | 165 | Set·the·timer’s·counter·value.·The·timer·can·be·started·or·stopped.·The·count |
139 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each | 166 | value·may·be·positive·or·negative,·but·will·always·be·incremented·by·+1·at·each |
140 | tick. | 167 | tick. |
141 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 168 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t,·_\x8a_\x8l_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
169 | Examples: | ||
170 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
142 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 171 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_a\x8ad\x8dd\x8d_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_c\x8co\x8ou\x8un\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
143 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) | 172 | void·al_add_timer_count(ALLEGRO_TIMER·*timer,·int64_t·diff) |
144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 173 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
145 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: | 174 | Add·d\x8di\x8if\x8ff\x8f·to·the·timer’s·counter·value.·This·is·similar·to·writing: |
146 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); | 175 | al_set_timer_count(timer,·al_get_timer_count(timer)·+·diff); |
147 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. | 176 | except·that·the·addition·is·performed·atomically,·so·no·ticks·will·be·lost. |
148 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t | 177 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8c_\x8o_\x8u_\x8n_\x8t |
Offset 157, 13 lines modified | Offset 186, 19 lines modified | ||
157 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 186 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
158 | Set·the·timer’s·speed,·i.e. the·rate·at·which·its·counter·will·be·incremented | 187 | Set·the·timer’s·speed,·i.e. the·rate·at·which·its·counter·will·be·incremented |
159 | when·it·is·started.·This·can·be·done·when·the·timer·is·started·or·stopped.·If | 188 | when·it·is·started.·This·can·be·done·when·the·timer·is·started·or·stopped.·If |
160 | the·timer·is·currently·running,·it·is·made·to·look·as·though·the·speed·change | 189 | the·timer·is·currently·running,·it·is·made·to·look·as·though·the·speed·change |
161 | occurred·precisely·at·the·last·tick. | 190 | occurred·precisely·at·the·last·tick. |
162 | s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·has·exactly·the·same·meaning·as·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r. | 191 | s\x8sp\x8pe\x8ee\x8ed\x8d_\x8_s\x8se\x8ec\x8cs\x8s·has·exactly·the·same·meaning·as·with·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8i_\x8m_\x8e_\x8r. |
163 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 192 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
193 | Examples: | ||
194 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
164 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8ti\x8im\x8me\x8er\x8r_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 413/8170 bytes (5.06%) of diff not shown. |
Offset 294, 14 lines modified | Offset 294, 23 lines modified | ||
294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source | 294 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L43">Source |
295 | Code</a></p> | 295 | Code</a></p> |
296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a | 296 | <p>Install·a·touch·input·driver,·returning·true·if·successful.·If·a |
297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> | 297 | touch·input·driver·was·already·installed,·returns·true·immediately.</p> |
298 | <p>Since:·5.1.0</p> | 298 | <p>Since:·5.1.0</p> |
299 | <p>See·also:·<a | 299 | <p>See·also:·<a |
300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> | 300 | href="touch.html#al_uninstall_touch_input">al_uninstall_touch_input</a></p> |
301 | <p>Examples:</p> | ||
302 | <ul> | ||
303 | <li><a | ||
304 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L18">common.c</a></li> | ||
305 | <li><a | ||
306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L56">ex_touch_input.c</a></li> | ||
307 | <li><a | ||
308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L165">ex_lockbitmap.c</a></li> | ||
309 | </ul> | ||
301 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> | 310 | <h1·id="al_uninstall_touch_input">al_uninstall_touch_input</h1> |
302 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 311 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_uninstall_touch_input<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
303 | <p><a | 312 | <p><a |
304 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source | 313 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L68">Source |
305 | Code</a></p> | 314 | Code</a></p> |
306 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver | 315 | <p>Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver |
307 | was·active,·this·function·does·nothing.</p> | 316 | was·active,·this·function·does·nothing.</p> |
Offset 314, 14 lines modified | Offset 323, 23 lines modified | ||
314 | <p><a | 323 | <p><a |
315 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L35">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L35">Source |
316 | Code</a></p> | 325 | Code</a></p> |
317 | <p>Returns·true·if·<a | 326 | <p>Returns·true·if·<a |
318 | href="touch.html#al_install_touch_input">al_install_touch_input</a>·was | 327 | href="touch.html#al_install_touch_input">al_install_touch_input</a>·was |
319 | called·successfully.</p> | 328 | called·successfully.</p> |
320 | <p>Since:·5.1.0</p> | 329 | <p>Since:·5.1.0</p> |
330 | <p>Examples:</p> | ||
331 | <ul> | ||
332 | <li><a | ||
333 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L178">ex_lockbitmap.c</a></li> | ||
334 | <li><a | ||
335 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haiku.c#L973">ex_haiku.c</a></li> | ||
336 | <li><a | ||
337 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L154">ex_prim_shader.c</a></li> | ||
338 | </ul> | ||
321 | <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> |
322 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_get_touch_input_state<span·class="op">(</span>ALLEGRO_TOUCH_INPUT_STATE·<span·class="op">*</span>ret_state<span·class="op">)</span></span></code></pre></div> | 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> |
323 | <p><a | 341 | <p><a |
324 | 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 |
325 | Code</a></p> | 343 | Code</a></p> |
326 | <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 |
327 | into·the·<a | 345 | into·the·<a |
Offset 341, 14 lines modified | Offset 359, 19 lines modified | ||
341 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have | 359 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have |
342 | different·semantics·compared·to·mouse·input.</p> | 360 | different·semantics·compared·to·mouse·input.</p> |
343 | </blockquote> | 361 | </blockquote> |
344 | <p>See·also:·<a | 362 | <p>See·also:·<a |
345 | href="touch.html#allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</a>, | 363 | href="touch.html#allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</a>, |
346 | <a | 364 | <a |
347 | href="touch.html#al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</a>.</p> | 365 | href="touch.html#al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</a>.</p> |
366 | <p>Examples:</p> | ||
367 | <ul> | ||
368 | <li><a | ||
369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L205">ex_native_filechooser.c</a></li> | ||
370 | </ul> | ||
348 | <h1·id="al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</h1> | 371 | <h1·id="al_get_mouse_emulation_mode">al_get_mouse_emulation_mode</h1> |
349 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_emulation_mode<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 372 | <div·class="sourceCode"·id="cb12"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb12-1"><a·href="#cb12-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">int</span>·al_get_mouse_emulation_mode<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
350 | <p><a | 373 | <p><a |
351 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L117">Source | 374 | href="https://github.com/liballeg/allegro5/blob/master/src/touch_input.c#L117">Source |
352 | Code</a></p> | 375 | Code</a></p> |
353 | <p>Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem | 376 | <p>Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem |
354 | is·set·to·perform.</p> | 377 | is·set·to·perform.</p> |
Offset 371, 14 lines modified | Offset 394, 23 lines modified | ||
371 | <p>Returns·the·global·touch·input·event·source.·This·event·source | 394 | <p>Returns·the·global·touch·input·event·source.·This·event·source |
372 | generates·<a·href="events.html#allegro_event_touch_begin">touch·input | 395 | generates·<a·href="events.html#allegro_event_touch_begin">touch·input |
373 | events</a>.</p> | 396 | events</a>.</p> |
374 | <p>Since:·5.1.0</p> | 397 | <p>Since:·5.1.0</p> |
375 | <p>See·also:·<a | 398 | <p>See·also:·<a |
376 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a | 399 | href="events.html#allegro_event_source">ALLEGRO_EVENT_SOURCE</a>,·<a |
377 | 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> | ||
402 | <ul> | ||
403 | <li><a | ||
404 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_touch_input.c#L66">ex_touch_input.c</a></li> | ||
405 | <li><a | ||
406 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_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> | ||
409 | </ul> | ||
378 | <h1 | 410 | <h1 |
379 | 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> |
380 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_EVENT_SOURCE·<span·class="op">*</span>al_get_touch_input_mouse_emulation_event_source<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 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> |
381 | <p><a | 413 | <p><a |
382 | 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 |
383 | Code</a></p> | 415 | Code</a></p> |
384 | <p>Returns·the·global·touch·input·event·source·for·emulated·mouse | 416 | <p>Returns·the·global·touch·input·event·source·for·emulated·mouse |
Offset 390, 14 lines modified | Offset 422, 23 lines modified | ||
390 | href="events.html#al_register_event_source">al_register_event_source</a></p> | 422 | href="events.html#al_register_event_source">al_register_event_source</a></p> |
391 | <p>Since:·5.1.0</p> | 423 | <p>Since:·5.1.0</p> |
392 | <blockquote> | 424 | <blockquote> |
393 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 425 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
394 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have | 426 | API</a>:</em>·Seems·of·limited·value,·as·touch·input·tends·to·have |
395 | different·semantics·compared·to·mouse·input.</p> | 427 | different·semantics·compared·to·mouse·input.</p> |
396 | </blockquote> | 428 | </blockquote> |
429 | <p>Examples:</p> | ||
430 | <ul> | ||
431 | <li><a | ||
432 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L180">ex_lockbitmap.c</a></li> | ||
433 | <li><a | ||
434 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_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> | ||
437 | </ul> | ||
397 | <p·class="timestamp"> | 438 | <p·class="timestamp"> |
398 | Allegro·version·5.2.10 | 439 | Allegro·version·5.2.10 |
399 | ·-·Last·updated:·2025-01-09·13:52:42·UTC | 440 | ·-·Last·updated:·2025-01-09·13:52:42·UTC |
400 | </p> | 441 | </p> |
401 | </div> | 442 | </div> |
402 | </body> | 443 | </body> |
403 | </html> | 444 | </html> |
Offset 110, 41 lines modified | Offset 110, 51 lines modified | ||
110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 110 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
111 | bool·al_install_touch_input(void) | 111 | bool·al_install_touch_input(void) |
112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 112 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input | 113 | Install·a·touch·input·driver,·returning·true·if·successful.·If·a·touch·input |
114 | driver·was·already·installed,·returns·true·immediately. | 114 | driver·was·already·installed,·returns·true·immediately. |
115 | Since:·5.1.0 | 115 | Since:·5.1.0 |
116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 116 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
117 | Examples: | ||
118 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | ||
119 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | ||
120 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
117 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 121 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8un\x8ni\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
118 | void·al_uninstall_touch_input(void) | 122 | void·al_uninstall_touch_input(void) |
119 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 123 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
120 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, | 124 | Uninstalls·the·active·touch·input·driver.·If·no·touch·input·driver·was·active, |
121 | this·function·does·nothing. | 125 | this·function·does·nothing. |
122 | This·function·is·automatically·called·when·Allegro·is·shut·down. | 126 | This·function·is·automatically·called·when·Allegro·is·shut·down. |
123 | Since:·5.1.0 | 127 | Since:·5.1.0 |
124 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t | 128 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t |
125 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8is\x8s_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8le\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
126 | bool·al_is_touch_input_installed(void) | 130 | bool·al_is_touch_input_installed(void) |
127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
128 | Returns·true·if·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t·was·called·successfully. | 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. |
129 | Since:·5.1.0 | 133 | Since:·5.1.0 |
134 | Examples: | ||
135 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
136 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
137 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
130 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
131 | 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) |
132 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
133 | 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 |
134 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8I_\x8N_\x8P_\x8U_\x8T_\x8__\x8S_\x8T_\x8A_\x8T_\x8E·you·provide·to·this·function. | 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. |
135 | Since:·5.1.0 | 143 | Since:·5.1.0 |
136 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
137 | void·al_set_mouse_emulation_mode(int·mode) | 145 | void·al_set_mouse_emulation_mode(int·mode) |
138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
139 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. | 147 | Sets·the·kind·of·mouse·emulation·for·the·touch·input·subsystem·to·perform. |
140 | Since:·5.1.0 | 148 | Since:·5.1.0 |
141 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 149 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
142 | ·····different·semantics·compared·to·mouse·input. | 150 | ·····different·semantics·compared·to·mouse·input. |
143 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e. | 151 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8O_\x8U_\x8S_\x8E_\x8__\x8E_\x8M_\x8U_\x8L_\x8A_\x8T_\x8I_\x8O_\x8N_\x8__\x8M_\x8O_\x8D_\x8E,·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8m_\x8o_\x8d_\x8e. |
152 | Examples: | ||
153 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | ||
144 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 154 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_m\x8mo\x8od\x8de\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
145 | int·al_get_mouse_emulation_mode(void) | 155 | int·al_get_mouse_emulation_mode(void) |
146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 156 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
147 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to | 157 | Returns·the·kind·of·mouse·emulation·which·the·touch·input·subsystem·is·set·to |
148 | perform. | 158 | perform. |
149 | Since:·5.1.0 | 159 | Since:·5.1.0 |
150 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 160 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have |
Offset 153, 17 lines modified | Offset 163, 25 lines modified | ||
153 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 163 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
154 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_event_source(void) | 164 | ALLEGRO_EVENT_SOURCE·*al_get_touch_input_event_source(void) |
155 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 165 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
156 | 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 |
157 | _\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. |
158 | Since:·5.1.0 | 168 | Since:·5.1.0 |
159 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 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: | ||
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 | ||
160 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_t\x8to\x8ou\x8uc\x8ch\x8h_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_m\x8mo\x8ou\x8us\x8se\x8e_\x8_e\x8em\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n_\x8_e\x8ev\x8ve\x8en\x8nt\x8t_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
161 | 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) |
162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
163 | 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 |
164 | event·source·generates·_\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8e_\x8d_\x8·_\x8m_\x8o_\x8u_\x8s_\x8e_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8s·that·are·based·on·touch·events. | 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. |
165 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8S_\x8O_\x8U_\x8R_\x8C_\x8E,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 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 |
166 | Since:·5.1.0 | 180 | Since:·5.1.0 |
167 | ·····_\x8U\x8U_\x8n\x8n_\x8s\x8s_\x8t\x8t_\x8a\x8a_\x8b\x8b_\x8l\x8l_\x8e\x8e_\x8·_\x8A\x8A_\x8P\x8P_\x8I\x8I:\x8:·Seems·of·limited·value,·as·touch·input·tends·to·have | 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 |
168 | ·····different·semantics·compared·to·mouse·input. | 182 | ·····different·semantics·compared·to·mouse·input. |
183 | Examples: | ||
184 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | ||
185 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8i_\x8k_\x8u_\x8._\x8c | ||
186 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | ||
169 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC | 187 | Allegro·version·5.2.10·-·Last·updated:·2025-01-09·13:52:42·UTC |
Offset 312, 25 lines modified | Offset 312, 39 lines modified | ||
312 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms | 312 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms |
313 | use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2 | 313 | use·only·a·small·subsection·of·this·matrix,·namely·the·top·left·2x2 |
314 | matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> | 314 | matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values.</p> |
315 | <p><em>Fields:</em></p> | 315 | <p><em>Fields:</em></p> |
316 | <ul> | 316 | <ul> |
317 | <li>m·-·A·4x4·float·matrix</li> | 317 | <li>m·-·A·4x4·float·matrix</li> |
318 | </ul> | 318 | </ul> |
319 | <p>Examples:</p> | ||
320 | <ul> | ||
321 | <li><a | ||
322 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L137">ex_shader.cpp</a></li> | ||
323 | <li><a | ||
324 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L61">ex_shader_target.c</a></li> | ||
325 | <li><a | ||
326 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L74">ex_audio_timer.c</a></li> | ||
327 | </ul> | ||
319 | <h1·id="al_copy_transform">al_copy_transform</h1> | 328 | <h1·id="al_copy_transform">al_copy_transform</h1> |
320 | <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> |
321 | <p><a | 330 | <p><a |
322 | 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 |
323 | Code</a></p> | 332 | Code</a></p> |
324 | <p>Makes·a·copy·of·a·transformation.</p> | 333 | <p>Makes·a·copy·of·a·transformation.</p> |
325 | <p><em>Parameters:</em></p> | 334 | <p><em>Parameters:</em></p> |
326 | <ul> | 335 | <ul> |
327 | <li>dest·-·Source·transformation</li> | 336 | <li>dest·-·Source·transformation</li> |
328 | <li>src·-·Destination·transformation</li> | 337 | <li>src·-·Destination·transformation</li> |
329 | </ul> | 338 | </ul> |
339 | <p>Examples:</p> | ||
340 | <ul> | ||
341 | <li><a | ||
342 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L138">ex_shader.cpp</a></li> | ||
343 | </ul> | ||
330 | <h1·id="al_use_transform">al_use_transform</h1> | 344 | <h1·id="al_use_transform">al_use_transform</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_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> | 345 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> |
332 | <p><a | 346 | <p><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source | 347 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L40">Source |
334 | Code</a></p> | 348 | Code</a></p> |
335 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on | 349 | <p>Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on |
336 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every | 350 | the·target·bitmap·(each·bitmap·maintains·its·own·transformation).·Every |
Offset 351, 25 lines modified | Offset 365, 41 lines modified | ||
351 | <ul> | 365 | <ul> |
352 | <li>trans·-·Transformation·to·use</li> | 366 | <li>trans·-·Transformation·to·use</li> |
353 | </ul> | 367 | </ul> |
354 | <p>See·also:·<a | 368 | <p>See·also:·<a |
355 | href="transformations.html#al_get_current_transform">al_get_current_transform</a>, | 369 | href="transformations.html#al_get_current_transform">al_get_current_transform</a>, |
356 | <a | 370 | <a |
357 | href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p> | 371 | href="transformations.html#al_transform_coordinates">al_transform_coordinates</a></p> |
372 | <p>Examples:</p> | ||
373 | <ul> | ||
374 | <li><a | ||
375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L142">ex_shader.cpp</a></li> | ||
376 | <li><a | ||
377 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L120">ex_shader_target.c</a></li> | ||
378 | <li><a | ||
379 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L124">ex_audio_timer.c</a></li> | ||
380 | </ul> | ||
358 | <h1·id="al_get_current_transform">al_get_current_transform</h1> | 381 | <h1·id="al_get_current_transform">al_get_current_transform</h1> |
359 | <div·class="sourceCode"·id="cb10"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb10-1"><a·href="#cb10-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 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> |
360 | <p><a | 383 | <p><a |
361 | 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 |
362 | Code</a></p> | 385 | Code</a></p> |
363 | <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 |
364 | href="transformations.html#al_use_transform">al_use_transform</a>.·If | 387 | href="transformations.html#al_use_transform">al_use_transform</a>.·If |
365 | there·is·no·target·bitmap,·this·function·returns·NULL.</p> | 388 | there·is·no·target·bitmap,·this·function·returns·NULL.</p> |
366 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> | 389 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> |
367 | <p>See·also:·<a | 390 | <p>See·also:·<a |
368 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a></p> | 391 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a></p> |
392 | <p>Examples:</p> | ||
393 | <ul> | ||
394 | <li><a | ||
395 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L138">ex_shader.cpp</a></li> | ||
396 | <li><a | ||
397 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color_gradient.c#L63">ex_color_gradient.c</a></li> | ||
398 | </ul> | ||
369 | <h1·id="al_use_projection_transform">al_use_projection_transform</h1> | 399 | <h1·id="al_use_projection_transform">al_use_projection_transform</h1> |
370 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_projection_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> | 400 | <div·class="sourceCode"·id="cb11"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb11-1"><a·href="#cb11-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_use_projection_transform<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>trans<span·class="op">)</span></span></code></pre></div> |
371 | <p><a | 401 | <p><a |
372 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L74">Source | 402 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L74">Source |
373 | Code</a></p> | 403 | Code</a></p> |
374 | <p>Sets·the·projection·transformation·to·be·used·for·the·drawing | 404 | <p>Sets·the·projection·transformation·to·be·used·for·the·drawing |
375 | operations·on·the·target·bitmap·(each·bitmap·maintains·its·own | 405 | operations·on·the·target·bitmap·(each·bitmap·maintains·its·own |
Offset 401, 25 lines modified | Offset 431, 39 lines modified | ||
401 | <p>Since:·5.1.9</p> | 431 | <p>Since:·5.1.9</p> |
402 | <p>See·also:·<a | 432 | <p>See·also:·<a |
403 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a>, | 433 | href="transformations.html#al_get_current_projection_transform">al_get_current_projection_transform</a>, |
404 | <a | 434 | <a |
405 | href="transformations.html#al_perspective_transform">al_perspective_transform</a>, | 435 | href="transformations.html#al_perspective_transform">al_perspective_transform</a>, |
406 | <a | 436 | <a |
407 | href="transformations.html#al_orthographic_transform">al_orthographic_transform</a></p> | 437 | href="transformations.html#al_orthographic_transform">al_orthographic_transform</a></p> |
438 | <p>Examples:</p> | ||
439 | <ul> | ||
440 | <li><a | ||
441 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection.c#L79">ex_projection.c</a></li> | ||
442 | <li><a | ||
443 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_depth_target.c#L40">ex_depth_target.c</a></li> | ||
444 | <li><a | ||
445 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_projection2.c#L43">ex_projection2.c</a></li> | ||
446 | </ul> | ||
408 | <h1 | 447 | <h1 |
409 | id="al_get_current_projection_transform">al_get_current_projection_transform</h1> | 448 | id="al_get_current_projection_transform">al_get_current_projection_transform</h1> |
410 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 449 | <div·class="sourceCode"·id="cb13"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb13-1"><a·href="#cb13-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_projection_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
411 | <p><a | 450 | <p><a |
412 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source | 451 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L116">Source |
413 | Code</a></p> | 452 | Code</a></p> |
414 | <p>If·there·is·no·target·bitmap,·this·function·returns·NULL.</p> | 453 | <p>If·there·is·no·target·bitmap,·this·function·returns·NULL.</p> |
415 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> | 454 | <p><em>Returns:</em>·A·pointer·to·the·current·transformation.</p> |
416 | <p>Since:·5.1.9</p> | 455 | <p>Since:·5.1.9</p> |
417 | <p>See·also:·<a | 456 | <p>See·also:·<a |
418 | href="transformations.html#al_use_projection_transform">al_use_projection_transform</a></p> | 457 | href="transformations.html#al_use_projection_transform">al_use_projection_transform</a></p> |
458 | <p>Examples:</p> | ||
459 | <ul> | ||
460 | <li><a | ||
461 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_camera.c#L325">ex_camera.c</a></li> | ||
462 | </ul> | ||
419 | <h1 | 463 | <h1 |
420 | id="al_get_current_inverse_transform">al_get_current_inverse_transform</h1> | 464 | id="al_get_current_inverse_transform">al_get_current_inverse_transform</h1> |
421 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_inverse_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | 465 | <div·class="sourceCode"·id="cb14"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb14-1"><a·href="#cb14-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·ALLEGRO_TRANSFORM·<span·class="op">*</span>al_get_current_inverse_transform<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
422 | <p><a | 466 | <p><a |
423 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L128">Source | 467 | href="https://github.com/liballeg/allegro5/blob/master/src/transformations.c#L128">Source |
424 | Code</a></p> | 468 | Code</a></p> |
425 | <p>Returns·the·inverse·of·the·current·transformation·of·the·target | 469 | <p>Returns·the·inverse·of·the·current·transformation·of·the·target |
Offset 520, 14 lines modified | Offset 564, 23 lines modified | ||
520 | </ul> | 564 | </ul> |
521 | <p>See·also:·<a | 565 | <p>See·also:·<a |
522 | href="transformations.html#al_translate_transform">al_translate_transform</a>, | 566 | href="transformations.html#al_translate_transform">al_translate_transform</a>, |
523 | <a | 567 | <a |
524 | href="transformations.html#al_rotate_transform">al_rotate_transform</a>, | 568 | href="transformations.html#al_rotate_transform">al_rotate_transform</a>, |
Max diff block lines reached; 19538/26925 bytes (72.56%) of diff not shown. |
Offset 136, 21 lines modified | Offset 136, 27 lines modified | ||
136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
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 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a | 138 | Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms·use·only·a |
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: | ||
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 | ||
146 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
143 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8op\x8py\x8y_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
144 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) | 148 | void·al_copy_transform(ALLEGRO_TRANSFORM·*dest,·const·ALLEGRO_TRANSFORM·*src) |
145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
146 | Makes·a·copy·of·a·transformation. | 150 | Makes·a·copy·of·a·transformation. |
147 | 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: |
148 | ····*·dest·-·Source·transformation | 152 | ····*·dest·-·Source·transformation |
149 | ····*·src·-·Destination·transformation | 153 | ····*·src·-·Destination·transformation |
154 | Examples: | ||
155 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
150 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 156 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
151 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) | 157 | void·al_use_transform(const·ALLEGRO_TRANSFORM·*trans) |
152 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 158 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
153 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target | 159 | Sets·the·transformation·to·be·used·for·the·the·drawing·operations·on·the·target |
154 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation | 160 | bitmap·(each·bitmap·maintains·its·own·transformation).·Every·drawing·operation |
155 | after·this·call·will·be·transformed·using·this·transformation.·Call·this | 161 | after·this·call·will·be·transformed·using·this·transformation.·Call·this |
156 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. | 162 | function·with·an·identity·transformation·to·return·to·the·default·behaviour. |
Offset 163, 21 lines modified | Offset 169, 28 lines modified | ||
163 | ···ALLEGRO_TRANSFORM·transform; | 169 | ···ALLEGRO_TRANSFORM·transform; |
164 | ···al_translate_transform(&transform,·5,·10); | 170 | ···al_translate_transform(&transform,·5,·10); |
165 | ···al_use_transform(&transform); | 171 | ···al_use_transform(&transform); |
166 | } | 172 | } |
167 | 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: |
168 | ····*·trans·-·Transformation·to·use | 174 | ····*·trans·-·Transformation·to·use |
169 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m_\x8__\x8c_\x8o_\x8o_\x8r_\x8d_\x8i_\x8n_\x8a_\x8t_\x8e_\x8s | 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: | ||
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 | ||
179 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
170 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
171 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) | 181 | const·ALLEGRO_TRANSFORM·*al_get_current_transform(void) |
172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
173 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by | 183 | Returns·the·transformation·of·the·current·target·bitmap,·as·set·by |
174 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m.·If·there·is·no·target·bitmap,·this·function·returns·NULL. | 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. |
175 | 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. |
176 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 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 |
187 | Examples: | ||
188 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | ||
189 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8g_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | ||
177 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 190 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8se\x8e_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
178 | void·al_use_projection_transform(const·ALLEGRO_TRANSFORM·*trans) | 191 | void·al_use_projection_transform(const·ALLEGRO_TRANSFORM·*trans) |
179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
180 | Sets·the·projection·transformation·to·be·used·for·the·drawing·operations·on·the | 193 | Sets·the·projection·transformation·to·be·used·for·the·drawing·operations·on·the |
181 | target·bitmap·(each·bitmap·maintains·its·own·projection·transformation).·Every | 194 | target·bitmap·(each·bitmap·maintains·its·own·projection·transformation).·Every |
182 | drawing·operation·after·this·call·will·be·transformed·using·this | 195 | drawing·operation·after·this·call·will·be·transformed·using·this |
183 | transformation.·To·return·default·behavior,·call·this·function·with·an | 196 | transformation.·To·return·default·behavior,·call·this·function·with·an |
Offset 201, 21 lines modified | Offset 214, 27 lines modified | ||
201 | projection·transform·of·the·target·bitmap·was·temporarily·reset·to·default). | 214 | projection·transform·of·the·target·bitmap·was·temporarily·reset·to·default). |
202 | The·parameter·is·passed·by·reference·as·an·optimization·to·avoid·the·overhead | 215 | The·parameter·is·passed·by·reference·as·an·optimization·to·avoid·the·overhead |
203 | of·stack·copying.·The·reference·will·not·be·stored·in·the·Allegro·library·so·it | 216 | of·stack·copying.·The·reference·will·not·be·stored·in·the·Allegro·library·so·it |
204 | is·safe·to·pass·references·to·local·variables. | 217 | is·safe·to·pass·references·to·local·variables. |
205 | Since:·5.1.9 | 218 | Since:·5.1.9 |
206 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, | 219 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8c_\x8u_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8p_\x8e_\x8r_\x8s_\x8p_\x8e_\x8c_\x8t_\x8i_\x8v_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, |
207 | _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 220 | _\x8a_\x8l_\x8__\x8o_\x8r_\x8t_\x8h_\x8o_\x8g_\x8r_\x8a_\x8p_\x8h_\x8i_\x8c_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
221 | Examples: | ||
222 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c | ||
223 | ····*·_\x8e_\x8x_\x8__\x8d_\x8e_\x8p_\x8t_\x8h_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | ||
224 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x82_\x8._\x8c | ||
208 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 225 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pr\x8ro\x8oj\x8je\x8ec\x8ct\x8ti\x8io\x8on\x8n_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
209 | const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void) | 226 | const·ALLEGRO_TRANSFORM·*al_get_current_projection_transform(void) |
210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 227 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
211 | If·there·is·no·target·bitmap,·this·function·returns·NULL. | 228 | If·there·is·no·target·bitmap,·this·function·returns·NULL. |
212 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. | 229 | R\x8Re\x8et\x8tu\x8ur\x8rn\x8ns\x8s:\x8:·A·pointer·to·the·current·transformation. |
213 | Since:·5.1.9 | 230 | Since:·5.1.9 |
214 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 231 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8e_\x8__\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m |
232 | Examples: | ||
233 | ····*·_\x8e_\x8x_\x8__\x8c_\x8a_\x8m_\x8e_\x8r_\x8a_\x8._\x8c | ||
215 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nv\x8ve\x8er\x8rs\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 234 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_c\x8cu\x8ur\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nv\x8ve\x8er\x8rs\x8se\x8e_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* |
216 | const·ALLEGRO_TRANSFORM·*al_get_current_inverse_transform(void) | 235 | const·ALLEGRO_TRANSFORM·*al_get_current_inverse_transform(void) |
217 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 236 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
218 | Returns·the·inverse·of·the·current·transformation·of·the·target·bitmap.·If | 237 | Returns·the·inverse·of·the·current·transformation·of·the·target·bitmap.·If |
219 | there·is·no·target·bitmap,·this·function·returns·NULL. | 238 | there·is·no·target·bitmap,·this·function·returns·NULL. |
220 | This·is·similar·to·calling·al_invert_transform(al_get_current_transform())·but | 239 | This·is·similar·to·calling·al_invert_transform(al_get_current_transform())·but |
221 | the·result·of·this·function·is·cached. | 240 | the·result·of·this·function·is·cached. |
Offset 280, 14 lines modified | Offset 299, 18 lines modified | ||
280 | the·default. | 299 | the·default. |
281 | ALLEGRO_TRANSFORM·t; | 300 | ALLEGRO_TRANSFORM·t; |
282 | al_identity_transform(&t); | 301 | al_identity_transform(&t); |
283 | al_use_transform(&t); | 302 | al_use_transform(&t); |
284 | 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: |
285 | ····*·trans·-·Transformation·to·alter | 304 | ····*·trans·-·Transformation·to·alter |
286 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m | 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: | ||
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 | ||
309 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | ||
287 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
288 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, | 311 | void·al_build_transform(ALLEGRO_TRANSFORM·*trans,·float·x,·float·y, |
289 | ···float·sx,·float·sy,·float·theta) | 312 | ···float·sx,·float·sy,·float·theta) |
290 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 313 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
291 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to | 314 | Builds·a·transformation·given·some·parameters.·This·call·is·equivalent·to |
292 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, | 315 | calling·the·transformations·in·this·order:·make·identity,·rotate,·scale, |
293 | translate.·This·method·is·faster,·however,·than·actually·calling·those | 316 | translate.·This·method·is·faster,·however,·than·actually·calling·those |
Offset 298, 14 lines modified | Offset 321, 18 lines modified | ||
298 | ····*·sx,·sy·-·Scale | 321 | ····*·sx,·sy·-·Scale |
299 | ····*·theta·-·Rotation·angle·in·radians | 322 | ····*·theta·-·Rotation·angle·in·radians |
300 | ·····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 |
301 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, | 324 | ·····different·(and·more·useful)·order·of·operations:·identity,·scale, |
302 | ·····rotate,·translate. | 325 | ·····rotate,·translate. |
303 | See·also:·_\x8a_\x8l_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8l_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8r_\x8o_\x8t_\x8a_\x8t_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m,·_\x8a_\x8l_\x8__\x8s_\x8c_\x8a_\x8l_\x8e_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8f_\x8o_\x8r_\x8m, | 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, |
304 | _\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: | ||
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 | ||
305 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_b\x8bu\x8ui\x8il\x8ld\x8d_\x8_c\x8ca\x8am\x8me\x8er\x8ra\x8a_\x8_t\x8tr\x8ra\x8an\x8ns\x8sf\x8fo\x8or\x8rm\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | 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* |
306 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, | 333 | void·al_build_camera_transform(ALLEGRO_TRANSFORM·*trans, |
307 | ···float·position_x,·float·position_y,·float·position_z, | 334 | ···float·position_x,·float·position_y,·float·position_z, |
308 | ···float·look_x,·float·look_y,·float·look_z, | 335 | ···float·look_x,·float·look_y,·float·look_z, |
309 | ···float·up_x,·float·up_y,·float·up_z) | 336 | ···float·up_x,·float·up_y,·float·up_z) |
310 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 337 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
311 | 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 334, 59 lines modified | Offset 361, 77 lines modified | ||
334 | al_build_camera_transform(&t, | 361 | al_build_camera_transform(&t, |
335 | ····1,·1,·1, | 362 | ····1,·1,·1, |
336 | ····5,·5,·5, | 363 | ····5,·5,·5, |
337 | ····1,·1,·0); | 364 | ····1,·1,·0); |
Max diff block lines reached; 8991/16203 bytes (55.49%) of diff not shown. |
Offset 444, 28 lines modified | Offset 444, 46 lines modified | ||
444 | <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>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div> | 444 | <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>·_al_tagbstring·ALLEGRO_USTR<span·class="op">;</span></span></code></pre></div> |
445 | <p><a | 445 | <p><a |
446 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source | 446 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source |
447 | Code</a></p> | 447 | Code</a></p> |
448 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain | 448 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain |
449 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, | 449 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, |
450 | including·NULs.</p> | 450 | including·NULs.</p> |
451 | <p>Examples:</p> | ||
452 | <ul> | ||
453 | <li><a | ||
454 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | ||
455 | <li><a | ||
456 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | ||
457 | <li><a | ||
458 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | ||
459 | </ul> | ||
451 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 460 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> |
452 | <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="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div> | 461 | <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="kw">typedef</span>·<span·class="kw">struct</span>·_al_tagbstring·ALLEGRO_USTR_INFO<span·class="op">;</span></span></code></pre></div> |
453 | <p><a | 462 | <p><a |
454 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source | 463 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source |
455 | Code</a></p> | 464 | Code</a></p> |
456 | <p>A·type·that·holds·additional·information·for·an·<a | 465 | <p>A·type·that·holds·additional·information·for·an·<a |
457 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an | 466 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an |
458 | external·memory·buffer.·You·can·convert·it·back·to·<a | 467 | external·memory·buffer.·You·can·convert·it·back·to·<a |
459 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a | 468 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·via·<a |
460 | href="utf8.html#al_ref_info">al_ref_info</a>.</p> | 469 | href="utf8.html#al_ref_info">al_ref_info</a>.</p> |
461 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a | 470 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a |
462 | href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a | 471 | href="utf8.html#al_ref_buffer">al_ref_buffer</a>,·<a |
463 | href="utf8.html#al_ref_info">al_ref_info</a>·and·<a | 472 | href="utf8.html#al_ref_info">al_ref_info</a>·and·<a |
464 | href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> | 473 | href="utf8.html#al_ref_ustr">al_ref_ustr</a>.</p> |
474 | <p>Examples:</p> | ||
475 | <ul> | ||
476 | <li><a | ||
477 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | ||
478 | <li><a | ||
479 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | ||
480 | <li><a | ||
481 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | ||
482 | </ul> | ||
465 | <h1·id="creating-and-destroying-strings">Creating·and·destroying | 483 | <h1·id="creating-and-destroying-strings">Creating·and·destroying |
466 | strings</h1> | 484 | strings</h1> |
467 | <h2·id="al_ustr_new">al_ustr_new</h2> | 485 | <h2·id="al_ustr_new">al_ustr_new</h2> |
468 | <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_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div> | 486 | <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_USTR·<span·class="op">*</span>al_ustr_new<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">)</span></span></code></pre></div> |
469 | <p><a | 487 | <p><a |
470 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source | 488 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L62">Source |
471 | Code</a></p> | 489 | Code</a></p> |
Offset 473, 24 lines modified | Offset 491, 38 lines modified | ||
473 | <code>s</code>.·The·string·must·eventually·be·freed·with·<a | 491 | <code>s</code>.·The·string·must·eventually·be·freed·with·<a |
474 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> | 492 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> |
475 | <p>See·also:·<a | 493 | <p>See·also:·<a |
476 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a | 494 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a |
477 | href="utf8.html#al_ustr_newf">al_ustr_newf</a>,·<a | 495 | href="utf8.html#al_ustr_newf">al_ustr_newf</a>,·<a |
478 | href="utf8.html#al_ustr_dup">al_ustr_dup</a>,·<a | 496 | href="utf8.html#al_ustr_dup">al_ustr_dup</a>,·<a |
479 | href="utf8.html#al_ustr_new_from_utf16">al_ustr_new_from_utf16</a></p> | 497 | href="utf8.html#al_ustr_new_from_utf16">al_ustr_new_from_utf16</a></p> |
498 | <p>Examples:</p> | ||
499 | <ul> | ||
500 | <li><a | ||
501 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L756">nihgui.cpp</a></li> | ||
502 | <li><a | ||
503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L65">ex_loading_thread.c</a></li> | ||
504 | <li><a | ||
505 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L54">ex_utf8.c</a></li> | ||
506 | </ul> | ||
480 | <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> |
481 | <div·class="sourceCode"·id="cb6"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb6-1"><a·href="#cb6-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_new_from_buffer<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>s<span·class="op">,</span>·<span·class="dt">size_t</span>·size<span·class="op">)</span></span></code></pre></div> | 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> |
482 | <p><a | 509 | <p><a |
483 | 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 |
484 | Code</a></p> | 511 | Code</a></p> |
485 | <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 |
486 | <code>s</code>·of·the·given·<code>size</code>·in·bytes.·The·string·must | 513 | <code>s</code>·of·the·given·<code>size</code>·in·bytes.·The·string·must |
487 | eventually·be·freed·with·<a | 514 | eventually·be·freed·with·<a |
488 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> | 515 | href="utf8.html#al_ustr_free">al_ustr_free</a>.</p> |
489 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a></p> | 516 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a></p> |
517 | <p>Examples:</p> | ||
518 | <ul> | ||
519 | <li><a | ||
520 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L845">ex_utf8.c</a></li> | ||
521 | </ul> | ||
490 | <h2·id="al_ustr_newf">al_ustr_newf</h2> | 522 | <h2·id="al_ustr_newf">al_ustr_newf</h2> |
491 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_newf<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>fmt<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> | 523 | <div·class="sourceCode"·id="cb7"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb7-1"><a·href="#cb7-1"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_USTR·<span·class="op">*</span>al_ustr_newf<span·class="op">(</span><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>fmt<span·class="op">,</span>·<span·class="op">...)</span></span></code></pre></div> |
492 | <p><a | 524 | <p><a |
493 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L78">Source | 525 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L78">Source |
494 | Code</a></p> | 526 | Code</a></p> |
495 | <p>Create·a·new·string·using·a·printf-style·format·string.</p> | 527 | <p>Create·a·new·string·using·a·printf-style·format·string.</p> |
496 | <p><em>Notes:</em></p> | 528 | <p><em>Notes:</em></p> |
Offset 503, 24 lines modified | Offset 535, 38 lines modified | ||
503 | code·point.·Therefore·it·is·only·usable·for·ASCII·characters·(value | 535 | code·point.·Therefore·it·is·only·usable·for·ASCII·characters·(value |
504 | <=·127)·or·if·you·really·mean·to·output·byte·values·from·128–255.·To | 536 | <=·127)·or·if·you·really·mean·to·output·byte·values·from·128–255.·To |
505 | insert·the·UTF-8·encoding·of·a·code·point,·encode·it·into·a·memory | 537 | insert·the·UTF-8·encoding·of·a·code·point,·encode·it·into·a·memory |
506 | buffer·using·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>·then | 538 | buffer·using·<a·href="utf8.html#al_utf8_encode">al_utf8_encode</a>·then |
507 | use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer.</p> | 539 | use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer.</p> |
508 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a | 540 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a |
509 | href="utf8.html#al_ustr_appendf">al_ustr_appendf</a></p> | 541 | href="utf8.html#al_ustr_appendf">al_ustr_appendf</a></p> |
542 | <p>Examples:</p> | ||
543 | <ul> | ||
544 | <li><a | ||
545 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L1006">ex_utf8.c</a></li> | ||
546 | </ul> | ||
510 | <h2·id="al_ustr_free">al_ustr_free</h2> | 547 | <h2·id="al_ustr_free">al_ustr_free</h2> |
511 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_free<span·class="op">(</span>ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> | 548 | <div·class="sourceCode"·id="cb8"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb8-1"><a·href="#cb8-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_ustr_free<span·class="op">(</span>ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> |
512 | <p><a | 549 | <p><a |
513 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L93">Source | 550 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L93">Source |
514 | Code</a></p> | 551 | Code</a></p> |
515 | <p>Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is | 552 | <p>Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is |
516 | NULL.</p> | 553 | NULL.</p> |
517 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a | 554 | <p>See·also:·<a·href="utf8.html#al_ustr_new">al_ustr_new</a>,·<a |
518 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a | 555 | href="utf8.html#al_ustr_new_from_buffer">al_ustr_new_from_buffer</a>,·<a |
519 | href="utf8.html#al_ustr_newf">al_ustr_newf</a></p> | 556 | href="utf8.html#al_ustr_newf">al_ustr_newf</a></p> |
557 | <p>Examples:</p> | ||
558 | <ul> | ||
559 | <li><a | ||
560 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L761">nihgui.cpp</a></li> | ||
561 | <li><a | ||
562 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L77">ex_loading_thread.c</a></li> | ||
563 | <li><a | ||
564 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_utf8.c#L61">ex_utf8.c</a></li> | ||
565 | </ul> | ||
520 | <h2·id="al_cstr">al_cstr</h2> | 566 | <h2·id="al_cstr">al_cstr</h2> |
521 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> | 567 | <div·class="sourceCode"·id="cb9"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb9-1"><a·href="#cb9-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>al_cstr<span·class="op">(</span><span·class="dt">const</span>·ALLEGRO_USTR·<span·class="op">*</span>us<span·class="op">)</span></span></code></pre></div> |
522 | <p><a | 568 | <p><a |
523 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source | 569 | href="https://github.com/liballeg/allegro5/blob/master/src/utf8.c#L101">Source |
524 | Code</a></p> | 570 | Code</a></p> |
525 | <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This | 571 | <p>Get·a·<code>char·*</code>·pointer·to·the·data·in·a·string.·This |
526 | pointer·will·only·be·valid·while·the·<a | 572 | pointer·will·only·be·valid·while·the·<a |
Offset 538, 47 lines modified | Offset 584, 71 lines modified | ||
538 | <li><p>If·the·ALLEGRO_USTR·references·another·string,·the·returned·C | 584 | <li><p>If·the·ALLEGRO_USTR·references·another·string,·the·returned·C |
539 | string·will·point·into·the·referenced·string.·Again,·no·NUL·terminator | 585 | string·will·point·into·the·referenced·string.·Again,·no·NUL·terminator |
Max diff block lines reached; 72276/80239 bytes (90.08%) of diff not shown. |
Offset 195, 35 lines modified | Offset 195, 49 lines modified | ||
195 | *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\x8**\x8**\x8**\x8**\x8**\x8*·U\x8UT\x8TF\x8F-\x8-8\x88·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·t\x8ty\x8yp\x8pe\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
196 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8* | 196 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8* |
197 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | 197 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; |
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- | 199 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- |
200 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including | 200 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including |
201 | NULs. | 201 | NULs. |
202 | Examples: | ||
203 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
204 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
205 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | ||
202 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8* | 206 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8* |
203 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | 207 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
204 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
205 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an | 209 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an |
206 | external·memory·buffer.·You·can·convert·it·back·to·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·via | 210 | external·memory·buffer.·You·can·convert·it·back·to·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·via |
207 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o. | 211 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8i_\x8n_\x8f_\x8o. |
208 | 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__\x8i_\x8n_\x8f_\x8o·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. | 212 | 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__\x8i_\x8n_\x8f_\x8o·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. |
213 | Examples: | ||
214 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | ||
215 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
216 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | ||
209 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 217 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Cr\x8re\x8ea\x8at\x8ti\x8in\x8ng\x8g·a\x8an\x8nd\x8d·d\x8de\x8es\x8st\x8tr\x8ro\x8oy\x8yi\x8in\x8ng\x8g·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
210 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* | 218 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w·*\x8**\x8**\x8**\x8**\x8* |
211 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) | 219 | ALLEGRO_USTR·*al_ustr_new(const·char·*s) |
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 220 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must | 221 | Create·a·new·string·containing·a·copy·of·the·C-style·string·s.·The·string·must |
214 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 222 | eventually·be·freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
215 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p, | 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, |
216 | _\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: | ||
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 | ||
228 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
217 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8w_\x8_f\x8fr\x8ro\x8om\x8m_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 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* |
218 | 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) |
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | 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 |
221 | 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. |
222 | 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: | ||
236 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
223 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* | 237 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_n\x8ne\x8ew\x8wf\x8f·*\x8**\x8**\x8**\x8**\x8* |
224 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) | 238 | ALLEGRO_USTR·*al_ustr_newf(const·char·*fmt,·...) |
225 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 239 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
226 | Create·a·new·string·using·a·printf-style·format·string. | 240 | Create·a·new·string·using·a·printf-style·format·string. |
227 | N\x8No\x8ot\x8te\x8es\x8s:\x8: | 241 | N\x8No\x8ot\x8te\x8es\x8s:\x8: |
228 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to | 242 | The·“%s”·specifier·takes·C·string·arguments,·not·ALLEGRO_USTRs.·Therefore·to |
229 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL | 243 | pass·an·ALLEGRO_USTR·as·a·parameter·you·must·use·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·and·it·must·be·NUL |
Offset 231, 19 lines modified | Offset 245, 25 lines modified | ||
231 | byte·onwards·will·be·ignored. | 245 | byte·onwards·will·be·ignored. |
232 | The·“%c”·specifier·outputs·a·single·byte,·not·the·UTF-8·encoding·of·a·code | 246 | The·“%c”·specifier·outputs·a·single·byte,·not·the·UTF-8·encoding·of·a·code |
233 | point.·Therefore·it·is·only·usable·for·ASCII·characters·(value·<=·127)·or·if | 247 | point.·Therefore·it·is·only·usable·for·ASCII·characters·(value·<=·127)·or·if |
234 | you·really·mean·to·output·byte·values·from·128–255.·To·insert·the·UTF- | 248 | you·really·mean·to·output·byte·values·from·128–255.·To·insert·the·UTF- |
235 | 8·encoding·of·a·code·point,·encode·it·into·a·memory·buffer·using·_\x8a_\x8l_\x8__\x8u_\x8t_\x8f_\x88_\x8__\x8e_\x8n_\x8c_\x8o_\x8d_\x8e | 249 | 8·encoding·of·a·code·point,·encode·it·into·a·memory·buffer·using·_\x8a_\x8l_\x8__\x8u_\x8t_\x8f_\x88_\x8__\x8e_\x8n_\x8c_\x8o_\x8d_\x8e |
236 | then·use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer. | 250 | then·use·the·“%s”·specifier.·Remember·to·NUL·terminate·the·buffer. |
237 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8f | 251 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8a_\x8p_\x8p_\x8e_\x8n_\x8d_\x8f |
252 | Examples: | ||
253 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
238 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8* | 254 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_f\x8fr\x8re\x8ee\x8e·*\x8**\x8**\x8**\x8**\x8* |
239 | void·al_ustr_free(ALLEGRO_USTR·*us) | 255 | void·al_ustr_free(ALLEGRO_USTR·*us) |
240 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 256 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
241 | Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL. | 257 | Free·a·previously·allocated·string.·Does·nothing·if·the·argument·is·NULL. |
242 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f | 258 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8r_\x8o_\x8m_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8n_\x8e_\x8w_\x8f |
259 | Examples: | ||
260 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
261 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
262 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
243 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* | 263 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* |
244 | const·char·*al_cstr(const·ALLEGRO_USTR·*us) | 264 | const·char·*al_cstr(const·ALLEGRO_USTR·*us) |
245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
246 | Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid | 266 | Get·a·char·*·pointer·to·the·data·in·a·string.·This·pointer·will·only·be·valid |
247 | while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer | 267 | while·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·object·is·not·modified·and·not·destroyed.·The·pointer |
248 | may·be·passed·to·functions·expecting·C-style·strings,·with·the·following | 268 | may·be·passed·to·functions·expecting·C-style·strings,·with·the·following |
249 | caveats: | 269 | caveats: |
Offset 253, 74 lines modified | Offset 273, 95 lines modified | ||
253 | ······terminated.·A·string·which·is·dynamically·allocated·will·always·be·NUL | 273 | ······terminated.·A·string·which·is·dynamically·allocated·will·always·be·NUL |
254 | ······terminated,·but·a·string·which·references·the·middle·of·another·string·or | 274 | ······terminated,·but·a·string·which·references·the·middle·of·another·string·or |
255 | ······region·of·memory·will·n\x8no\x8ot\x8t·be·NUL·terminated. | 275 | ······region·of·memory·will·n\x8no\x8ot\x8t·be·NUL·terminated. |
256 | ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will | 276 | ····*·If·the·ALLEGRO_USTR·references·another·string,·the·returned·C·string·will |
257 | ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added | 277 | ······point·into·the·referenced·string.·Again,·no·NUL·terminator·will·be·added |
258 | ······to·the·referenced·string. | 278 | ······to·the·referenced·string. |
259 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p | 279 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p |
280 | Examples: | ||
281 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | ||
282 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | ||
283 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
260 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 284 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_t\x8to\x8o_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
261 | void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size) | 285 | void·al_ustr_to_buffer(const·ALLEGRO_USTR·*us,·char·*buffer,·int·size) |
262 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 286 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
263 | Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size | 287 | Write·the·contents·of·the·string·into·a·pre-allocated·buffer·of·the·given·size |
264 | in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1 | 288 | in·bytes.·The·result·will·always·be·NUL·terminated,·so·a·maximum·of·size·-·1 |
265 | bytes·will·be·copied. | 289 | bytes·will·be·copied. |
266 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p | 290 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p |
291 | Examples: | ||
292 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
267 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* | 293 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cs\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* |
268 | char·*al_cstr_dup(const·ALLEGRO_USTR·*us) | 294 | char·*al_cstr_dup(const·ALLEGRO_USTR·*us) |
269 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 295 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
270 | Create·a·NUL·('\0')·terminated·copy·of·the·string.·Any·embedded·NUL·bytes·will | 296 | Create·a·NUL·('\0')·terminated·copy·of·the·string.·Any·embedded·NUL·bytes·will |
271 | still·be·presented·in·the·returned·string.·The·new·string·must·eventually·be | 297 | still·be·presented·in·the·returned·string.·The·new·string·must·eventually·be |
272 | freed·with·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e. | 298 | freed·with·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e. |
273 | If·an·error·occurs·NULL·is·returned. | 299 | If·an·error·occurs·NULL·is·returned. |
274 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e | 300 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8t_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r,·_\x8a_\x8l_\x8__\x8f_\x8r_\x8e_\x8e |
301 | Examples: | ||
302 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
275 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* | 303 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p·*\x8**\x8**\x8**\x8**\x8* |
276 | ALLEGRO_USTR·*al_ustr_dup(const·ALLEGRO_USTR·*us) | 304 | ALLEGRO_USTR·*al_ustr_dup(const·ALLEGRO_USTR·*us) |
277 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 305 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
278 | Return·a·duplicate·copy·of·a·string.·The·new·string·will·need·to·be·freed·with | 306 | Return·a·duplicate·copy·of·a·string.·The·new·string·will·need·to·be·freed·with |
279 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 307 | _\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
280 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p_\x8__\x8s_\x8u_\x8b_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e | 308 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p_\x8__\x8s_\x8u_\x8b_\x8s_\x8t_\x8r,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e |
309 | Examples: | ||
310 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
281 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p_\x8_s\x8su\x8ub\x8bs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* | 311 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_u\x8us\x8st\x8tr\x8r_\x8_d\x8du\x8up\x8p_\x8_s\x8su\x8ub\x8bs\x8st\x8tr\x8r·*\x8**\x8**\x8**\x8**\x8* |
282 | ALLEGRO_USTR·*al_ustr_dup_substr(const·ALLEGRO_USTR·*us,·int·start_pos, | 312 | ALLEGRO_USTR·*al_ustr_dup_substr(const·ALLEGRO_USTR·*us,·int·start_pos, |
283 | ···int·end_pos) | 313 | ···int·end_pos) |
284 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 314 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
285 | Return·a·new·copy·of·a·string,·containing·its·contents·in·the·byte·interval | 315 | Return·a·new·copy·of·a·string,·containing·its·contents·in·the·byte·interval |
286 | [start_pos,·end_pos).·The·new·string·will·be·NUL·terminated·and·will·need·to·be | 316 | [start_pos,·end_pos).·The·new·string·will·be·NUL·terminated·and·will·need·to·be |
287 | freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. | 317 | freed·with·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e. |
288 | If·necessary,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·byte·offsets·for·a·given·code | 318 | If·necessary,·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·byte·offsets·for·a·given·code |
289 | point·that·you·are·interested·in. | 319 | point·that·you·are·interested·in. |
290 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e | 320 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8d_\x8u_\x8p,·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8f_\x8r_\x8e_\x8e |
321 | Examples: | ||
322 | ····*·_\x8e_\x8x_\x8__\x8u_\x8t_\x8f_\x88_\x8._\x8c | ||
291 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8re\x8ed\x8de\x8ef\x8fi\x8in\x8ne\x8ed\x8d·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 323 | *\x8**\x8**\x8**\x8**\x8**\x8*·P\x8Pr\x8re\x8ed\x8de\x8ef\x8fi\x8in\x8ne\x8ed\x8d·s\x8st\x8tr\x8ri\x8in\x8ng\x8gs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 33832/41306 bytes (81.91%) of diff not shown. |
Offset 290, 14 lines modified | Offset 290, 19 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> | ||
297 | <h1 | 302 | <h1 |
298 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> | 303 | id="al_is_video_addon_initialized">al_is_video_addon_initialized</h1> |
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> | 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> |
300 | <p><a | 305 | <p><a |
301 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source | 306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L297">Source |
302 | Code</a></p> | 307 | Code</a></p> |
303 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 308 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
Offset 323, 14 lines modified | Offset 328, 19 lines modified | ||
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> | 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> |
324 | <p><a | 329 | <p><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source | 330 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L100">Source |
326 | Code</a></p> | 331 | Code</a></p> |
327 | <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the | 332 | <p>Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the |
328 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> | 333 | meta·info·so·you·can·query·e.g. the·size·or·audio·rate.</p> |
329 | <p>Since:·5.1.0</p> | 334 | <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> | ||
330 | <h1·id="al_identify_video">al_identify_video</h1> | 340 | <h1·id="al_identify_video">al_identify_video</h1> |
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> | 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> |
332 | <p><a | 342 | <p><a |
333 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source | 343 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L334">Source |
334 | Code</a></p> | 344 | Code</a></p> |
335 | <p>This·works·exactly·as·<a | 345 | <p>This·works·exactly·as·<a |
336 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you | 346 | href="video.html#al_identify_video_f">al_identify_video_f</a>·but·you |
Offset 362, 21 lines modified | Offset 372, 31 lines modified | ||
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> | 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> |
363 | <p><a | 373 | <p><a |
364 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source | 374 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L141">Source |
365 | Code</a></p> | 375 | Code</a></p> |
366 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer | 376 | <p>Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer |
367 | is·invalid·after·the·function·returns.</p> | 377 | is·invalid·after·the·function·returns.</p> |
368 | <p>Since:·5.1.0</p> | 378 | <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> | ||
369 | <h1·id="al_start_video">al_start_video</h1> | 384 | <h1·id="al_start_video">al_start_video</h1> |
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> | 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> |
371 | <p><a | 386 | <p><a |
372 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source | 387 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L164">Source |
373 | Code</a></p> | 388 | Code</a></p> |
374 | <p>Starts·playing·the·video·from·the·beginning.</p> | 389 | <p>Starts·playing·the·video·from·the·beginning.</p> |
375 | <p>Since:·5.1.0</p> | 390 | <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> | ||
376 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> | 396 | <h1·id="al_start_video_with_voice">al_start_video_with_voice</h1> |
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> | 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> |
378 | <p><a | 398 | <p><a |
379 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source | 399 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L179">Source |
380 | Code</a></p> | 400 | Code</a></p> |
381 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio | 401 | <p>Like·<a·href="video.html#al_start_video">al_start_video</a>·but·audio |
382 | is·routed·to·the·provided·voice.</p> | 402 | is·routed·to·the·provided·voice.</p> |
Offset 386, 65 lines modified | Offset 406, 100 lines modified | ||
386 | <p><a | 406 | <p><a |
387 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source | 407 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L156">Source |
388 | Code</a></p> | 408 | Code</a></p> |
389 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described | 409 | <p>Get·an·event·source·for·the·video.·The·possible·events·are·described |
390 | under·<a | 410 | under·<a |
391 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 411 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
392 | <p>Since:·5.1.0</p> | 412 | <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> | ||
393 | <h1·id="al_set_video_playing">al_set_video_playing</h1> | 418 | <h1·id="al_set_video_playing">al_set_video_playing</h1> |
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> | 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> |
395 | <p><a | 420 | <p><a |
396 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source | 421 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L190">Source |
397 | Code</a></p> | 422 | Code</a></p> |
398 | <p>Paused·or·resumes·playback.</p> | 423 | <p>Paused·or·resumes·playback.</p> |
399 | <p>Since:·5.1.12</p> | 424 | <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> | ||
400 | <h1·id="al_is_video_playing">al_is_video_playing</h1> | 430 | <h1·id="al_is_video_playing">al_is_video_playing</h1> |
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> | 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> |
402 | <p><a | 432 | <p><a |
403 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source | 433 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L202">Source |
404 | Code</a></p> | 434 | Code</a></p> |
405 | <p>Returns·true·if·the·video·is·currently·playing.</p> | 435 | <p>Returns·true·if·the·video·is·currently·playing.</p> |
406 | <p>Since:·5.1.12</p> | 436 | <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> | ||
407 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> | 442 | <h1·id="al_get_video_audio_rate">al_get_video_audio_rate</h1> |
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> | 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> |
409 | <p><a | 444 | <p><a |
410 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source | 445 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L243">Source |
411 | Code</a></p> | 446 | Code</a></p> |
412 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> | 447 | <p>Returns·the·audio·rate·of·the·video,·in·Hz.</p> |
413 | <p>Since:·5.1.0</p> | 448 | <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> | ||
414 | <h1·id="al_get_video_fps">al_get_video_fps</h1> | 454 | <h1·id="al_get_video_fps">al_get_video_fps</h1> |
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> | 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> |
416 | <p><a | 456 | <p><a |
417 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source | 457 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L251">Source |
418 | Code</a></p> | 458 | Code</a></p> |
419 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will | 459 | <p>Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will |
420 | not·be·an·integer·value.</p> | 460 | not·be·an·integer·value.</p> |
Max diff block lines reached; 5730/13966 bytes (41.03%) of diff not shown. |
Offset 109, 14 lines modified | Offset 109, 16 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 | ||
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* | 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* |
117 | bool·al_is_video_addon_initialized(void) | 119 | bool·al_is_video_addon_initialized(void) |
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
120 | Since:·5.2.6 | 122 | Since:·5.2.6 |
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* | 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* |
122 | void·al_shutdown_video_addon(void) | 124 | void·al_shutdown_video_addon(void) |
Offset 132, 14 lines modified | Offset 134, 16 lines modified | ||
132 | Since:·5.1.12 | 134 | Since:·5.1.12 |
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* | 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* |
134 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 136 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
136 | Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so | 138 | Reads·a·video·file.·This·does·not·start·playing·yet·but·reads·the·meta·info·so |
137 | you·can·query·e.g. the·size·or·audio·rate. | 139 | you·can·query·e.g. the·size·or·audio·rate. |
138 | Since:·5.1.0 | 140 | Since:·5.1.0 |
141 | Examples: | ||
142 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
140 | char·const·*al_identify_video(char·const·*filename) | 144 | char·const·*al_identify_video(char·const·*filename) |
141 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
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 | 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 |
143 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, | 147 | file·for·which·to·detect·the·type·and·not·a·file·handle.·The·extension,·if·any, |
144 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. | 148 | of·the·passed·filename·is·not·taken·into·account·-·only·the·file·contents. |
145 | Since:·5.2.8 | 149 | Since:·5.2.8 |
Offset 157, 67 lines modified | Offset 161, 85 lines modified | ||
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 | 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 |
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* | 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* |
159 | void·al_close_video(ALLEGRO_VIDEO·*video) | 163 | void·al_close_video(ALLEGRO_VIDEO·*video) |
160 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
161 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is | 165 | Closes·the·video·and·frees·all·allocated·resources.·The·video·pointer·is |
162 | invalid·after·the·function·returns. | 166 | invalid·after·the·function·returns. |
163 | Since:·5.1.0 | 167 | Since:·5.1.0 |
168 | Examples: | ||
169 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
165 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 171 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
166 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
167 | Starts·playing·the·video·from·the·beginning. | 173 | Starts·playing·the·video·from·the·beginning. |
168 | Since:·5.1.0 | 174 | Since:·5.1.0 |
175 | Examples: | ||
176 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
170 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | 178 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
171 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
172 | Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice. | 180 | Like·_\x8a_\x8l_\x8__\x8s_\x8t_\x8a_\x8r_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o·but·audio·is·routed·to·the·provided·voice. |
173 | Since:·5.1.0 | 181 | Since:·5.1.0 |
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* | 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* |
175 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 183 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
176 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 184 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
177 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under | 185 | Get·an·event·source·for·the·video.·The·possible·events·are·described·under |
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. | 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. |
179 | Since:·5.1.0 | 187 | Since:·5.1.0 |
188 | Examples: | ||
189 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
181 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | 191 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
183 | Paused·or·resumes·playback. | 193 | Paused·or·resumes·playback. |
184 | Since:·5.1.12 | 194 | Since:·5.1.12 |
195 | Examples: | ||
196 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
186 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | 198 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
187 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
188 | Returns·true·if·the·video·is·currently·playing. | 200 | Returns·true·if·the·video·is·currently·playing. |
189 | Since:·5.1.12 | 201 | Since:·5.1.12 |
202 | Examples: | ||
203 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
191 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | 205 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
193 | Returns·the·audio·rate·of·the·video,·in·Hz. | 207 | Returns·the·audio·rate·of·the·video,·in·Hz. |
194 | Since:·5.1.0 | 208 | Since:·5.1.0 |
209 | Examples: | ||
210 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
196 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | 212 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 213 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
198 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an | 214 | Returns·the·speed·of·the·video·in·frames·per·second.·Often·this·will·not·be·an |
199 | integer·value. | 215 | integer·value. |
200 | Since:·5.1.0 | 216 | Since:·5.1.0 |
217 | Examples: | ||
218 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
202 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | 220 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
203 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 221 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
204 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 222 | Returns·the·width·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
205 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of | 223 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·width·of |
206 | the·frame·bitmap. | 224 | the·frame·bitmap. |
207 | Since:·5.1.12 | 225 | Since:·5.1.12 |
208 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e | 226 | 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 | ||
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* | 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* |
210 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | 230 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) |
211 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 231 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
212 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do | 232 | Returns·the·height·with·which·the·video·frame·should·be·drawn.·Videos·often·do |
213 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height | 233 | not·use·square·pixels,·so·this·will·may·return·a·value·larger·than·the·height |
214 | of·the·frame·bitmap. | 234 | of·the·frame·bitmap. |
215 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e | 235 | See·also:·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e |
216 | Since:·5.1.12 | 236 | Since:·5.1.12 |
237 | Examples: | ||
238 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | ||
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* | 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* |
218 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | 240 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) |
219 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 241 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
220 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not | 242 | Returns·the·current·video·frame.·The·bitmap·is·owned·by·the·video·so·do·not |
221 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to | 243 | attempt·to·free·it.·The·bitmap·will·stay·valid·until·the·next·call·to |
222 | al_get_video_frame. | 244 | al_get_video_frame. |
223 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video | 245 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a·video |
Offset 227, 21 lines modified | Offset 249, 27 lines modified | ||
227 | float·sw·=·al_get_bitmap_width(frame); | 249 | float·sw·=·al_get_bitmap_width(frame); |
228 | float·sh·=·al_get_bitmap_height(frame); | 250 | float·sh·=·al_get_bitmap_height(frame); |
229 | float·dw·=·scale·*·al_get_video_scaled_width(video); | 251 | float·dw·=·scale·*·al_get_video_scaled_width(video); |
230 | float·dh·=·scale·*·al_get_video_scaled_height(video); | 252 | float·dh·=·scale·*·al_get_video_scaled_height(video); |
231 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); | 253 | al_draw_scaled_bitmap(frame,·0,·0,·sw,·sh,·0,·0,·dw,·dh,·0); |
232 | Since:·5.1.0 | 254 | Since:·5.1.0 |
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 | 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 |
Max diff block lines reached; 808/7240 bytes (11.16%) of diff not shown. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_DEPTH"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_DEPTH"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_DEPTH·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_DEPTH·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_AUDIO_DEPTH | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sample·depth·and·type·as·well·as·signedness. | 12 | Sample·depth·and·type·as·well·as·signedness. |
14 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed | 13 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed |
15 | integers. | 14 | integers. |
16 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to | 15 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to |
17 | the·depth·value. | 16 | the·depth·value. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_DEVICE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_DEVICE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_DEVICE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_DEVICE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·datatype·that·represents·an·audio·device. | 12 | An·opaque·datatype·that·represents·an·audio·device. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_AUDIO_EVENT_TYPE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or | 12 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or |
14 | al_get_audio_recorder_event_source(3alleg5). | 13 | al_get_audio_recorder_event_source(3alleg5). |
15 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT | 14 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT |
16 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. | 15 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. |
17 | See·al_get_audio_stream_fragment(3alleg5). | 16 | See·al_get_audio_stream_fragment(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_PAN_NONE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_PAN_NONE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_PAN_NONE·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_PAN_NONE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·special·value·for·the·pan·property·of·sample·instances·and·audio | 12 | A·special·value·for·the·pan·property·of·sample·instances·and·audio |
14 | streams. | 13 | streams. |
15 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, | 14 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, |
16 | and·play·them·without·attentuation·implied·by·panning·support. | 15 | and·play·them·without·attentuation·implied·by·panning·support. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_RECORDER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_RECORDER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_RECORDER·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_RECORDER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·datatype·that·represents·a·recording·device. | 12 | An·opaque·datatype·that·represents·a·recording·device. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.1 | 14 | 5.1.1 |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_RECORDER_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_RECORDER_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_RECORDER_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_RECORDER_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Structure·that·holds·the·audio·recorder·event·data. | 12 | Structure·that·holds·the·audio·recorder·event·data. |
14 | Every·event·type·will·contain: | 13 | Every·event·type·will·contain: |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | \&.source:·pointer·to·the·audio·recorder | 15 | \&.source:·pointer·to·the·audio·recorder |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_AUDIO_STREAM"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_AUDIO_STREAM"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_AUDIO_STREAM·\-·Allegro·5·API | 5 | ALLEGRO_AUDIO_STREAM·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the | 12 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the |
14 | sound·device,·in·real\-time. | 13 | sound·device,·in·real\-time. |
15 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of | 14 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of |
16 | fragments. | 15 | fragments. |
17 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with | 16 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_BITMAP"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_BITMAP"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_BITMAP·\-·Allegro·5·API | 5 | ALLEGRO_BITMAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Abstract·type·representing·a·bitmap·(2D·image). | 12 | Abstract·type·representing·a·bitmap·(2D·image). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_BITMAP_WRAP"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_BITMAP_WRAP"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_BITMAP_WRAP·\-·Allegro·5·API | 5 | ALLEGRO_BITMAP_WRAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying | 12 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying |
14 | the·texture·coordinates·are·outside·the·usual·bounds. | 13 | the·texture·coordinates·are·outside·the·usual·bounds. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. | 15 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. |
17 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives | 16 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_BPM_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_BPM_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_BPM_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_BPM_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·beats·per·minute·to·seconds. | 12 | Convert·beats·per·minute·to·seconds. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_BPS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_BPS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_BPS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_BPS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·beats·per·second·to·seconds. | 12 | Convert·beats·per·second·to·seconds. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_CHANNEL_CONF"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_CHANNEL_CONF"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_CHANNEL_CONF·\-·Allegro·5·API | 5 | ALLEGRO_CHANNEL_CONF·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_CHANNEL_CONF | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Speaker·configuration·(mono,·stereo,·2.1,·etc). | 12 | Speaker·configuration·(mono,·stereo,·2.1,·etc). |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_CHANNEL_CONF_1 | 14 | ALLEGRO_CHANNEL_CONF_1 |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_CHANNEL_CONF_2 | 16 | ALLEGRO_CHANNEL_CONF_2 |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"ALLEGRO_COLOR"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_COLOR"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_COLOR·\-·Allegro·5·API | 5 | ALLEGRO_COLOR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 12 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
14 | way. | 13 | way. |
15 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to | 14 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to |
16 | translate·from·and·to·various·color·representations. | 15 | translate·from·and·to·various·color·representations. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_COND"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_COND"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_COND·\-·Allegro·5·API | 5 | ALLEGRO_COND·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·condition·variable. | 12 | An·opaque·structure·representing·a·condition·variable. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_CONFIG"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_CONFIG"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_CONFIG·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·abstract·configuration·structure. | 12 | An·abstract·configuration·structure. |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"ALLEGRO_CONFIG_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_CONFIG_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG_ENTRY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 12 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
14 | section. | 13 | section. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) | 15 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_CONFIG_SECTION"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_CONFIG_SECTION"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API | 5 | ALLEGRO_CONFIG_SECTION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·structure·used·for·iterating·across·sections·in·a | 12 | An·opaque·structure·used·for·iterating·across·sections·in·a |
14 | configuration·structure. | 13 | configuration·structure. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_first_config_section(3alleg5), | 15 | al_get_first_config_section(3alleg5), |
17 | al_get_next_config_section(3alleg5) | 16 | al_get_next_config_section(3alleg5) |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_DISPLAY"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_DISPLAY"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_DISPLAY·\-·Allegro·5·API | 5 | ALLEGRO_DISPLAY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·type·representing·an·open·display·or·window. | 12 | An·opaque·type·representing·an·open·display·or·window. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_DISPLAY_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_DISPLAY_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_DISPLAY_MODE·\-·Allegro·5·API | 5 | ALLEGRO_DISPLAY_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Used·for·fullscreen·mode·queries. | 12 | Used·for·fullscreen·mode·queries. |
14 | Contains·information·about·a·supported·fullscreen·modes. | 13 | Contains·information·about·a·supported·fullscreen·modes. |
15 | .IP | 14 | .IP |
16 | .EX | 15 | .EX |
17 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 16 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is | 12 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is |
14 | an·object·large·enough·to·hold·the·data·of·any·event·type. | 13 | an·object·large·enough·to·hold·the·data·of·any·event·type. |
15 | All·events·have·the·following·fields·in·common: | 14 | All·events·have·the·following·fields·in·common: |
16 | .TP | 15 | .TP |
17 | type·(ALLEGRO_EVENT_TYPE) | 16 | type·(ALLEGRO_EVENT_TYPE) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_EVENT_QUEUE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_EVENT_QUEUE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_EVENT_QUEUE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_QUEUE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·event·queue·holds·events·that·have·been·generated·by·event·sources | 12 | An·event·queue·holds·events·that·have·been·generated·by·event·sources |
14 | that·are·registered·with·the·queue. | 13 | that·are·registered·with·the·queue. |
15 | Events·are·stored·in·the·order·they·are·generated. | 14 | Events·are·stored·in·the·order·they·are·generated. |
16 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. | 15 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_EVENT_SOURCE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_EVENT_SOURCE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_EVENT_SOURCE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_SOURCE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·event·source·is·any·object·which·can·generate·events. | 12 | An·event·source·is·any·object·which·can·generate·events. |
14 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 13 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
15 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with | 14 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with |
16 | al_get_display_event_source(3alleg5). | 15 | al_get_display_event_source(3alleg5). |
17 | .PP | 16 | .PP |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"ALLEGRO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·integer·used·to·distinguish·between·different·types·of·events. | 12 | An·integer·used·to·distinguish·between·different·types·of·events. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), | 14 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), |
16 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) | 15 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"ALLEGRO_EVENT_TYPE_IS_USER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_EVENT_TYPE_IS_USER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_EVENT_TYPE_IS_USER·\-·Allegro·5·API | 5 | ALLEGRO_EVENT_TYPE_IS_USER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event | 12 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event |
14 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). | 13 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"ALLEGRO_FILE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FILE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FILE·\-·Allegro·5·API | 5 | ALLEGRO_FILE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·object·representing·an·open·file. | 12 | An·opaque·object·representing·an·open·file. |
14 | This·could·be·a·real·file·on·disk·or·a·virtual·file. | 13 | This·could·be·a·real·file·on·disk·or·a·virtual·file. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_FILECHOOSER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FILECHOOSER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FILECHOOSER·\-·Allegro·5·API | 5 | ALLEGRO_FILECHOOSER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Opaque·handle·to·a·native·file·dialog. | 12 | Opaque·handle·to·a·native·file·dialog. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_FILE_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FILE_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FILE_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_FILE_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·structure·containing·function·pointers·to·handle·a·type·of | 12 | A·structure·containing·function·pointers·to·handle·a·type·of |
14 | \[lq]file\[rq],·real·or·virtual. | 13 | \[lq]file\[rq],·real·or·virtual. |
15 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). | 14 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). |
16 | .PP | 15 | .PP |
17 | The·fields·are: | 16 | The·fields·are: |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_FILE_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FILE_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FILE_MODE·\-·Allegro·5·API | 5 | ALLEGRO_FILE_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_FILE_MODE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Filesystem·modes/types | 12 | Filesystem·modes/types |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_FILEMODE_READ·\-·Readable | 14 | ALLEGRO_FILEMODE_READ·\-·Readable |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_FILEMODE_WRITE·\-·Writable | 16 | ALLEGRO_FILEMODE_WRITE·\-·Writable |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_FONT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FONT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FONT·\-·Allegro·5·API | 5 | ALLEGRO_FONT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·handle·identifying·any·kind·of·font. | 12 | A·handle·identifying·any·kind·of·font. |
14 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports | 13 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports |
15 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 14 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
16 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 15 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
17 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font | 16 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_FOR_EACH_FS_ENTRY_RESULT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FOR_EACH_FS_ENTRY_RESULT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·\-·Allegro·5·API | 5 | ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for | 12 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for |
14 | that·function·itself. | 13 | that·function·itself. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. | 15 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"ALLEGRO_FS_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FS_ENTRY"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FS_ENTRY·\-·Allegro·5·API | 5 | ALLEGRO_FS_ENTRY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Opaque·filesystem·entry·object. | 12 | Opaque·filesystem·entry·object. |
14 | Represents·a·file·or·a·directory·(check·with | 13 | Represents·a·file·or·a·directory·(check·with |
15 | al_get_fs_entry_mode(3alleg5)). | 14 | al_get_fs_entry_mode(3alleg5)). |
16 | There·are·no·user·accessible·member·variables. | 15 | There·are·no·user·accessible·member·variables. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_FS_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_FS_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_FS_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_FS_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | The·available·functions·you·can·provide·for·a·filesystem. | 12 | The·available·functions·you·can·provide·for·a·filesystem. |
14 | They·are: | 13 | They·are: |
15 | .IP | 14 | .IP |
16 | .EX | 15 | .EX |
17 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 16 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_GET_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_GET_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_GET_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_GET_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. | 12 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. |
14 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit | 13 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit |
15 | character·codes,·for·example: | 14 | character·codes,·for·example: |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_GLYPH"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_GLYPH"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_GLYPH·\-·Allegro·5·API | 5 | ALLEGRO_GLYPH·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·structure·containing·the·properties·of·a·character·in·a·font. | 12 | A·structure·containing·the·properties·of·a·character·in·a·font. |
14 | .IP | 13 | .IP |
15 | .EX | 14 | .EX |
16 | typedef·struct·ALLEGRO_GLYPH·{ | 15 | typedef·struct·ALLEGRO_GLYPH·{ |
17 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 16 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_HAPTIC"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_HAPTIC"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_HAPTIC·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports | 12 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports |
14 | force·feedback·or·vibration. | 13 | force·feedback·or·vibration. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
17 | .RS | 16 | .RS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_HAPTIC_CONSTANTS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_HAPTIC_CONSTANTS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_HAPTIC_CONSTANTS·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_CONSTANTS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 12 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
14 | capabilities. | 13 | capabilities. |
15 | If·the·flag·is·set·in·the·return·value·of | 14 | If·the·flag·is·set·in·the·return·value·of |
16 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the | 15 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the |
17 | given·effect. | 16 | given·effect. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_HAPTIC_EFFECT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_HAPTIC_EFFECT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_HAPTIC_EFFECT·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_EFFECT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | struct·ALLEGRO_HAPTIC_EFFECT | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·struct·models·a·particular·haptic·or·vibration·effect. | 12 | This·struct·models·a·particular·haptic·or·vibration·effect. |
14 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device | 13 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device |
15 | before·the·device·can·play·it·back. | 14 | before·the·device·can·play·it·back. |
16 | .PP | 15 | .PP |
17 | \f[I]Fields:\f[R] | 16 | \f[I]Fields:\f[R] |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_HAPTIC_EFFECT_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_HAPTIC_EFFECT_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_HAPTIC_EFFECT_ID·\-·Allegro·5·API | 5 | ALLEGRO_HAPTIC_EFFECT_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect | 12 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect |
14 | and·should·be·considered·opaque. | 13 | and·should·be·considered·opaque. |
15 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of | 14 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of |
16 | the·Allegro·library. | 15 | the·Allegro·library. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_INDEX_BUFFER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_INDEX_BUFFER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_INDEX_BUFFER·\-·Allegro·5·API | 5 | ALLEGRO_INDEX_BUFFER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a | 12 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a |
14 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every | 13 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every |
15 | drawing·operation. | 14 | drawing·operation. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.8 | 16 | 5.1.8 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_JOYFLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_JOYFLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_JOYFLAGS·\-·Allegro·5·API | 5 | ALLEGRO_JOYFLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_JOYFLAGS | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 12 | .IP·\[bu]·2 |
14 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input | 13 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input | 15 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input |
17 | .PP | 16 | .PP |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"ALLEGRO_JOYSTICK"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_JOYSTICK"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_JOYSTICK·\-·Allegro·5·API | 5 | ALLEGRO_JOYSTICK·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 12 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_joystick(3alleg5) | 14 | al_get_joystick(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_JOYSTICK_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_JOYSTICK_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_JOYSTICK_STATE·\-·Allegro·5·API | 5 | ALLEGRO_JOYSTICK_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 12 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
14 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. | 13 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. |
15 | All·fields·public·and·read\-only. | 14 | All·fields·public·and·read\-only. |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_KEYBOARD_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_KEYBOARD_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_KEYBOARD_STATE·\-·Allegro·5·API | 5 | ALLEGRO_KEYBOARD_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 12 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
14 | keyboard\[cq]s·state·at·a·particular·instant. | 13 | keyboard\[cq]s·state·at·a·particular·instant. |
15 | It·contains·the·following·publically·readable·fields: | 14 | It·contains·the·following·publically·readable·fields: |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 16 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_LINE_CAP"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_LINE_CAP"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_LINE_CAP·\-·Allegro·5·API | 5 | ALLEGRO_LINE_CAP·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_LINE_CAP | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 12 | .IP·\[bu]·2 |
14 | ALLEGRO_LINE_CAP_NONE | 13 | ALLEGRO_LINE_CAP_NONE |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_LINE_CAP_SQUARE | 15 | ALLEGRO_LINE_CAP_SQUARE |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_LINE_JOIN"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_LINE_JOIN"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_LINE_JOIN·\-·Allegro·5·API | 5 | ALLEGRO_LINE_JOIN·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_LINE_JOIN | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 12 | .IP·\[bu]·2 |
14 | ALLEGRO_LINE_JOIN_NONE | 13 | ALLEGRO_LINE_JOIN_NONE |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_LINE_JOIN_BEVEL | 15 | ALLEGRO_LINE_JOIN_BEVEL |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_LOCKED_REGION"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_LOCKED_REGION"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_LOCKED_REGION·\-·Allegro·5·API | 5 | ALLEGRO_LOCKED_REGION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 12 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
14 | lock·it·first. | 13 | lock·it·first. |
15 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 14 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
16 | bitmap. | 15 | bitmap. |
17 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 16 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MEMORY_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MEMORY_INTERFACE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MEMORY_INTERFACE·\-·Allegro·5·API | 5 | ALLEGRO_MEMORY_INTERFACE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·structure·has·the·following·fields. | 12 | This·structure·has·the·following·fields. |
14 | .IP | 13 | .IP |
15 | .EX | 14 | .EX |
16 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 15 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
17 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 16 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"ALLEGRO_MENU"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MENU"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MENU·\-·Allegro·5·API | 5 | ALLEGRO_MENU·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. | 12 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. |
14 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. | 13 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MENU_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MENU_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MENU_INFO·\-·Allegro·5·API | 5 | ALLEGRO_MENU_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_MENU_INFO·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·structure·that·defines·how·to·create·a·complete·menu·system. | 12 | A·structure·that·defines·how·to·create·a·complete·menu·system. |
14 | For·standard·menu·items,·the·following·format·is·used: | 13 | For·standard·menu·items,·the·following·format·is·used: |
15 | .IP | 14 | .IP |
16 | .EX | 15 | .EX |
17 | ···{·caption,·id,·flags,·icon·} | 16 | ···{·caption,·id,·flags,·icon·} |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MIXER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MIXER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MIXER·\-·Allegro·5·API | 5 | ALLEGRO_MIXER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. | 12 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. |
14 | In·the·process,·it·converts·channel·configurations,·sample·frequencies | 13 | In·the·process,·it·converts·channel·configurations,·sample·frequencies |
15 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams | 14 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams |
16 | accordingly. | 15 | accordingly. |
17 | You·can·control·the·quality·of·this·conversion·using | 16 | You·can·control·the·quality·of·this·conversion·using |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MIXER_QUALITY"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MIXER_QUALITY"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MIXER_QUALITY·\-·Allegro·5·API | 5 | ALLEGRO_MIXER_QUALITY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_MIXER_QUALITY | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 12 | .IP·\[bu]·2 |
14 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling | 13 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation | 15 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MONITOR_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MONITOR_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MONITOR_INFO·\-·Allegro·5·API | 5 | ALLEGRO_MONITOR_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. | 12 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. |
14 | x1,·y1·will·be·0,·0·on·the·primary·display. | 13 | x1,·y1·will·be·0,·0·on·the·primary·display. |
15 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above | 14 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above |
16 | the·primary·display. | 15 | the·primary·display. |
17 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that | 16 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MOUSE_EMULATION_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MOUSE_EMULATION_MODE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MOUSE_EMULATION_MODE·\-·Allegro·5·API | 5 | ALLEGRO_MOUSE_EMULATION_MODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Type·of·mouse·emulation·to·apply. | 12 | Type·of·mouse·emulation·to·apply. |
14 | .TP | 13 | .TP |
15 | ALLEGRO_MOUSE_EMULATION_NONE | 14 | ALLEGRO_MOUSE_EMULATION_NONE |
16 | Disables·mouse·emulation. | 15 | Disables·mouse·emulation. |
17 | .TP | 16 | .TP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_MOUSE_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MOUSE_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MOUSE_STATE·\-·Allegro·5·API | 5 | ALLEGRO_MOUSE_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Public·fields·(read·only): | 12 | Public·fields·(read·only): |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | x·\-·mouse·x·position | 14 | x·\-·mouse·x·position |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | y·\-·mouse·y·position | 16 | y·\-·mouse·y·position |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_MSECS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MSECS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MSECS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_MSECS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·milliseconds·to·seconds. | 12 | Convert·milliseconds·to·seconds. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_MUTEX"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_MUTEX"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_MUTEX·\-·Allegro·5·API | 5 | ALLEGRO_MUTEX·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·mutex. | 12 | An·opaque·structure·representing·a·mutex. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·\-·Allegro·5·API | 5 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 12 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
14 | al_set_new_window_title(3alleg5). | 13 | al_set_new_window_title(3alleg5). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_new_window_title(3alleg5) | 15 | al_set_new_window_title(3alleg5) |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"ALLEGRO_PI"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PI"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PI·\-·Allegro·5·API | 5 | ALLEGRO_PI·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but | 12 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but |
14 | you·can·use·this·one·instead. | 13 | you·can·use·this·one·instead. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PIXEL_FORMAT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PIXEL_FORMAT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PIXEL_FORMAT·\-·Allegro·5·API | 5 | ALLEGRO_PIXEL_FORMAT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Pixel·formats. | 12 | Pixel·formats. |
14 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in | 13 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in |
15 | memory. | 14 | memory. |
16 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a | 15 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a |
17 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 16 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PLAYMODE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PLAYMODE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PLAYMODE·\-·Allegro·5·API | 5 | ALLEGRO_PLAYMODE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | enum·ALLEGRO_PLAYMODE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sample·and·stream·playback·mode. | 12 | Sample·and·stream·playback·mode. |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to | 14 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to |
16 | finish·an·then·it·stops. | 15 | finish·an·then·it·stops. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PRIM_ATTR"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PRIM_ATTR"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PRIM_ATTR·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_ATTR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_ATTR | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. | 12 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in | 14 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in |
16 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. | 15 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PRIM_BUFFER_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PRIM_BUFFER_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PRIM_BUFFER_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_BUFFER_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. | 12 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is | 14 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is |
16 | written·to·often,·but·used·only·a·few·times·per·frame | 15 | written·to·often,·but·used·only·a·few·times·per·frame |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PRIM_QUALITY"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PRIM_QUALITY"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PRIM_QUALITY·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_QUALITY·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | #define·ALLEGRO_PRIM_QUALITY·10 | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Controls·the·quality·of·the·approximation·of·curved·primitives | 12 | Controls·the·quality·of·the·approximation·of·curved·primitives |
14 | (e.g.\·circles). | 13 | (e.g.\·circles). |
15 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of | 14 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of |
16 | line·segments. | 15 | line·segments. |
17 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a | 16 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PRIM_STORAGE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PRIM_STORAGE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PRIM_STORAGE·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_STORAGE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_STORAGE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be | 12 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be |
14 | stored·in. | 13 | stored·in. |
15 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and | 14 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and |
16 | can·only·be·accessed·via·shaders. | 15 | can·only·be·accessed·via·shaders. |
17 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets | 16 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_PRIM_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_PRIM_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_PRIM_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_PRIM_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·enum·ALLEGRO_PRIM_TYPE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Enumerates·the·types·of·primitives·this·addon·can·draw. | 12 | Enumerates·the·types·of·primitives·this·addon·can·draw. |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point | 14 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices | 16 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_RENDER_FUNCTION"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_RENDER_FUNCTION"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_RENDER_FUNCTION·\-·Allegro·5·API | 5 | ALLEGRO_RENDER_FUNCTION·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Possible·functions·are: | 12 | Possible·functions·are: |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_RENDER_NEVER | 14 | ALLEGRO_RENDER_NEVER |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_RENDER_ALWAYS | 16 | ALLEGRO_RENDER_ALWAYS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_RENDER_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_RENDER_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_RENDER_STATE·\-·Allegro·5·API | 5 | ALLEGRO_RENDER_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Possible·render·states·which·can·be·set·with | 12 | Possible·render·states·which·can·be·set·with |
14 | al_set_render_state(3alleg5): | 13 | al_set_render_state(3alleg5): |
15 | .TP | 14 | .TP |
16 | ALLEGRO_ALPHA_TEST | 15 | ALLEGRO_ALPHA_TEST |
17 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 16 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_SAMPLE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_SAMPLE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_SAMPLE·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing | 12 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing |
14 | pre\-defined·digital·audio. | 13 | pre\-defined·digital·audio. |
15 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its | 14 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its |
16 | format·(data·length,·depth,·frequency,·channel·configuration). | 15 | format·(data·length,·depth,·frequency,·channel·configuration). |
17 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times | 16 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_SAMPLE_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_SAMPLE_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_SAMPLE_ID·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via | 12 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via |
14 | al_play_sample(3alleg5). | 13 | al_play_sample(3alleg5). |
15 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). | 14 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). |
16 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using | 15 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using |
17 | al_lock_sample_id(3alleg5). | 16 | al_lock_sample_id(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_SAMPLE_INSTANCE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_SAMPLE_INSTANCE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_SAMPLE_INSTANCE·\-·Allegro·5·API | 5 | ALLEGRO_SAMPLE_INSTANCE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a | 12 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a |
14 | predefined·sound·effect. | 13 | predefined·sound·effect. |
15 | It·holds·information·about·how·the·effect·should·be·played:·These | 14 | It·holds·information·about·how·the·effect·should·be·played:·These |
16 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, | 15 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, |
17 | playing·position,·speed,·gain,·pan·and·the·playmode. | 16 | playing·position,·speed,·gain,·pan·and·the·playmode. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_SEEK"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_SEEK"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_SEEK·\-·Allegro·5·API | 5 | ALLEGRO_SEEK·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_SEEK | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | .IP·\[bu]·2 | 12 | .IP·\[bu]·2 |
14 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file | 13 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position | 15 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_STATE·\-·Allegro·5·API | 5 | ALLEGRO_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
10 | .EE | 9 | .EE |
11 | .SH·DESCRIPTION | 10 | .SH·DESCRIPTION |
12 | Opaque·type·which·is·passed·to | 11 | Opaque·type·which·is·passed·to |
13 | al_store_state(3alleg5)/al_restore_state(3alleg5). | 12 | al_store_state(3alleg5)/al_restore_state(3alleg5). |
14 | .PP | 13 | .PP |
15 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 14 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
16 | .IP | 15 | .IP |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"ALLEGRO_STATE_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_STATE_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_STATE_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_STATE_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
10 | .EE | 9 | .EE |
11 | .SH·DESCRIPTION | 10 | .SH·DESCRIPTION |
12 | Flags·which·can·be·passed·to | 11 | Flags·which·can·be·passed·to |
13 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. | 12 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. |
14 | See·al_store_state(3alleg5)·for·the·list·of·flags. | 13 | See·al_store_state(3alleg5)·for·the·list·of·flags. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_SYSTEM_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_SYSTEM_ID"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_SYSTEM_ID·\-·Allegro·5·API | 5 | ALLEGRO_SYSTEM_ID·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | enum·ALLEGRO_SYSTEM_ID·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | The·system·Allegro·is·running·on. | 12 | The·system·Allegro·is·running·on. |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. | 14 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx | 16 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_TEXTLOG"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TEXTLOG"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TEXTLOG·\-·Allegro·5·API | 5 | ALLEGRO_TEXTLOG·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Opaque·handle·to·a·text·log·window. | 12 | Opaque·handle·to·a·text·log·window. |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_THREAD"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_THREAD"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_THREAD·\-·Allegro·5·API | 5 | ALLEGRO_THREAD·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·structure·representing·a·thread. | 12 | An·opaque·structure·representing·a·thread. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_TIMEOUT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TIMEOUT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TIMEOUT·\-·Allegro·5·API | 5 | ALLEGRO_TIMEOUT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Represent·a·timeout·value. | 12 | Represent·a·timeout·value. |
14 | The·size·of·the·structure·is·known·so·it·can·be·statically·allocated. | 13 | The·size·of·the·structure·is·known·so·it·can·be·statically·allocated. |
15 | The·contents·are·private. | 14 | The·contents·are·private. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_timeout(3alleg5) | 16 | al_init_timeout(3alleg5) |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_TIMER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TIMER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TIMER·\-·Allegro·5·API | 5 | ALLEGRO_TIMER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·an·abstract·data·type·representing·a·timer·object. | 12 | This·is·an·abstract·data·type·representing·a·timer·object. |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"ALLEGRO_TOUCH_INPUT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TOUCH_INPUT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TOUCH_INPUT·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 12 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.0 | 14 | 5.1.0 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 12 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.0 | 14 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_TOUCH_INPUT_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TOUCH_INPUT_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TOUCH_INPUT_STATE·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_INPUT_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at | 12 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at |
14 | a·particular·instant. | 13 | a·particular·instant. |
15 | .PP | 14 | .PP |
16 | Public·fields·(read·only): | 15 | Public·fields·(read·only): |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_TOUCH_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TOUCH_STATE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TOUCH_STATE·\-·Allegro·5·API | 5 | ALLEGRO_TOUCH_STATE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch | 12 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch |
14 | at·a·particular·instant. | 13 | at·a·particular·instant. |
15 | .PP | 14 | .PP |
16 | Public·fields·(read·only): | 15 | Public·fields·(read·only): |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_TRANSFORM"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_TRANSFORM"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_TRANSFORM·\-·Allegro·5·API | 5 | ALLEGRO_TRANSFORM·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Defines·the·generic·transformation·type,·a·4x4·matrix. | 12 | Defines·the·generic·transformation·type,·a·4x4·matrix. |
14 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top | 13 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top |
15 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. | 14 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. |
16 | .PP | 15 | .PP |
17 | \f[I]Fields:\f[R] | 16 | \f[I]Fields:\f[R] |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"ALLEGRO_USECS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_USECS_TO_SECS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_USECS_TO_SECS·\-·Allegro·5·API | 5 | ALLEGRO_USECS_TO_SECS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·microseconds·to·seconds. | 12 | Convert·microseconds·to·seconds. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_USER_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_USER_EVENT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_USER_EVENT·\-·Allegro·5·API | 5 | ALLEGRO_USER_EVENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·event·structure·that·can·be·emitted·by·user·event·sources. | 12 | An·event·structure·that·can·be·emitted·by·user·event·sources. |
14 | These·are·the·public·fields: | 13 | These·are·the·public·fields: |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_EVENT_SOURCE·*source; | 15 | ALLEGRO_EVENT_SOURCE·*source; |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"ALLEGRO_USTR"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_USTR"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_USTR·\-·Allegro·5·API | 5 | ALLEGRO_USTR·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | An·opaque·type·representing·a·string. | 12 | An·opaque·type·representing·a·string. |
14 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be | 13 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be |
15 | used·to·hold·any·byte·sequences,·including·NULs. | 14 | used·to·hold·any·byte·sequences,·including·NULs. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_USTR_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_USTR_INFO"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_USTR_INFO·\-·Allegro·5·API | 5 | ALLEGRO_USTR_INFO·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) | 12 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) |
14 | that·references·an·external·memory·buffer. | 13 | that·references·an·external·memory·buffer. |
15 | You·can·convert·it·back·to·ALLEGRO_USTR(3alleg5)·via | 14 | You·can·convert·it·back·to·ALLEGRO_USTR(3alleg5)·via |
16 | al_ref_info(3alleg5). | 15 | al_ref_info(3alleg5). |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VERTEX"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VERTEX"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VERTEX·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture | 12 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture |
14 | coordinates·for·a·single·texture. | 13 | coordinates·for·a·single·texture. |
15 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render | 14 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render |
16 | 3D·primitives. | 15 | 3D·primitives. |
17 | If·you·want·a·2D·only·primitive,·set·z·to·0. | 16 | If·you·want·a·2D·only·primitive,·set·z·to·0. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VERTEX_BUFFER"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VERTEX_BUFFER"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VERTEX_BUFFER·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_BUFFER·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU | 12 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU |
14 | instead·of·uploading·them·afresh·during·every·drawing·operation. | 13 | instead·of·uploading·them·afresh·during·every·drawing·operation. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.3 | 15 | 5.1.3 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VERTEX_CACHE_SIZE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VERTEX_CACHE_SIZE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VERTEX_CACHE_SIZE·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_CACHE_SIZE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software | 12 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software |
14 | renderer. | 13 | renderer. |
15 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering | 14 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering |
16 | functions·you·will·get·a·speed·boost. | 15 | functions·you·will·get·a·speed·boost. |
17 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the | 16 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VERTEX_DECL"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VERTEX_DECL"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VERTEX_DECL·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_DECL·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·vertex·declaration. | 12 | A·vertex·declaration. |
14 | This·opaque·structure·is·responsible·for·describing·the·format·and | 13 | This·opaque·structure·is·responsible·for·describing·the·format·and |
15 | layout·of·a·user·defined·custom·vertex. | 14 | layout·of·a·user·defined·custom·vertex. |
16 | It·is·created·and·destroyed·by·specialized·functions. | 15 | It·is·created·and·destroyed·by·specialized·functions. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VERTEX_ELEMENT"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VERTEX_ELEMENT"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VERTEX_ELEMENT·\-·Allegro·5·API | 5 | ALLEGRO_VERTEX_ELEMENT·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·small·structure·describing·a·certain·element·of·a·vertex. | 12 | A·small·structure·describing·a·certain·element·of·a·vertex. |
14 | E.g. | 13 | E.g. |
15 | the·position·of·the·vertex,·or·its·color. | 14 | the·position·of·the·vertex,·or·its·color. |
16 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function | 15 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function |
17 | to·create·the·vertex·declaration. | 16 | to·create·the·vertex·declaration. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VIDEO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VIDEO_EVENT_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VIDEO_EVENT_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_VIDEO_EVENT_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Events·sent·by·al_get_video_event_source(3alleg5). | 12 | Events·sent·by·al_get_video_event_source(3alleg5). |
14 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW | 13 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW |
15 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. | 14 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. |
16 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned | 15 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned |
17 | by·al_get_video_frame(3alleg5)). | 16 | by·al_get_video_frame(3alleg5)). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VIDEO_POSITION_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VIDEO_POSITION_TYPE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VIDEO_POSITION_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_VIDEO_POSITION_TYPE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to | 12 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to |
14 | retrieve. | 13 | retrieve. |
15 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the | 14 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the |
16 | display·of·the·video. | 15 | display·of·the·video. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_VOICE"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_VOICE"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_VOICE·\-·Allegro·5·API | 5 | ALLEGRO_VOICE·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real | 12 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real |
14 | device,·or·an·abstract·device·provided·by·the·operating·system. | 13 | device,·or·an·abstract·device·provided·by·the·operating·system. |
15 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio | 14 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio |
16 | stream·to·a·voice. | 15 | stream·to·a·voice. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"ALLEGRO_WRITE_MASK_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"ALLEGRO_WRITE_MASK_FLAGS"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | ALLEGRO_WRITE_MASK_FLAGS·\-·Allegro·5·API | 5 | ALLEGRO_WRITE_MASK_FLAGS·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled | 12 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled |
14 | bit·means·it·is·not. | 13 | bit·means·it·is·not. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_MASK_RED | 15 | ALLEGRO_MASK_RED |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_add_new_bitmap_flag"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_add_new_bitmap_flag"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_add_new_bitmap_flag·\-·Allegro·5·API | 5 | al_add_new_bitmap_flag·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_add_new_bitmap_flag(int·flag) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·convenience·function·which·does·the·same·as | 12 | A·convenience·function·which·does·the·same·as |
14 | .IP | 13 | .IP |
15 | .EX | 14 | .EX |
16 | al_set_new_bitmap_flags(al_get_new_bitmap_flags()·|·flag); | 15 | al_set_new_bitmap_flags(al_get_new_bitmap_flags()·|·flag); |
17 | .EE | 16 | .EE |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_append_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_append_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_append_menu_item·\-·Allegro·5·API | 5 | al_append_menu_item·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, | ||
11 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Appends·a·menu·item·to·the·end·of·the·menu. | 12 | Appends·a·menu·item·to·the·end·of·the·menu. |
15 | See·al_insert_menu_item(3alleg5)·for·more·information. | 13 | See·al_insert_menu_item(3alleg5)·for·more·information. |
16 | .SH·SINCE | 14 | .SH·SINCE |
17 | 5.1.0 | 15 | 5.1.0 |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_append_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_append_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_append_native_text_log·\-·Allegro·5·API | 5 | al_append_native_text_log·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, | ||
11 | ···char·const·*format,·...) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the | 12 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the |
15 | bottom·(if·the·line·would·not·be·visible·otherwise). | 13 | bottom·(if·the·line·would·not·be·visible·otherwise). |
16 | This·works·like·printf. | 14 | This·works·like·printf. |
17 | A·line·is·continued·until·you·add·a·newline·character. | 15 | A·line·is·continued·until·you·add·a·newline·character. |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_audio_stream_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_audio_stream_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_audio_stream_to_mixer·\-·Allegro·5·API | 5 | al_attach_audio_stream_to_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Attach·an·audio·stream·to·a·mixer. | 12 | Attach·an·audio·stream·to·a·mixer. |
14 | The·stream·must·not·already·be·attached·to·anything. | 13 | The·stream·must·not·already·be·attached·to·anything. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_audio_stream_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_audio_stream_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_audio_stream_to_voice·\-·Allegro·5·API | 5 | al_attach_audio_stream_to_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, | ||
11 | ···ALLEGRO_VOICE·*voice) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Attaches·an·audio·stream·to·a·voice. | 12 | Attaches·an·audio·stream·to·a·voice. |
15 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. | 13 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. |
16 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer | 14 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer |
17 | count·and·buffer·size·the·stream·uses. | 15 | count·and·buffer·size·the·stream·uses. |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_mixer_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_mixer_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_mixer_to_mixer·\-·Allegro·5·API | 5 | al_attach_mixer_to_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as | 12 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as |
14 | the·second·argument. | 13 | the·second·argument. |
15 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be | 14 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be |
16 | attached·to·anything. | 15 | attached·to·anything. |
17 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel | 16 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_mixer_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_mixer_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_mixer_to_voice·\-·Allegro·5·API | 5 | al_attach_mixer_to_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Attaches·a·mixer·to·a·voice. | 12 | Attaches·a·mixer·to·a·voice. |
14 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth | 13 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth |
15 | may·be·different. | 14 | may·be·different. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_sample_instance_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_sample_instance_to_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_sample_instance_to_mixer·\-·Allegro·5·API | 5 | al_attach_sample_instance_to_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
11 | ···ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Attach·a·sample·instance·to·a·mixer. | 12 | Attach·a·sample·instance·to·a·mixer. |
15 | The·instance·must·not·already·be·attached·to·anything. | 13 | The·instance·must·not·already·be·attached·to·anything. |
16 | .PP | 14 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_attach_sample_instance_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_attach_sample_instance_to_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_attach_sample_instance_to_voice·\-·Allegro·5·API | 5 | al_attach_sample_instance_to_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
11 | ···ALLEGRO_VOICE·*voice) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. | 12 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. |
15 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have | 13 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have |
16 | the·same·frequency,·channel·configuration·and·depth·(including | 14 | the·same·frequency,·channel·configuration·and·depth·(including |
17 | signed\-ness)·as·the·voice. | 15 | signed\-ness)·as·the·voice. |
18 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support | 16 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_build_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_build_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_build_menu·\-·Allegro·5·API | 5 | al_build_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of | 12 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of |
14 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. | 13 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. |
15 | .PP | 14 | .PP |
16 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or | 15 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or |
17 | \f[CR]NULL\f[R]·on·failure. | 16 | \f[CR]NULL\f[R]·on·failure. |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_calculate_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_calculate_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_calculate_arc·\-·Allegro·5·API | 5 | al_calculate_arc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | ||
11 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | ||
12 | ···int·num_points) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of | 12 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of |
16 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. | 13 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. |
17 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, | 14 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, |
18 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points | 15 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points |
19 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by | 16 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_calculate_ribbon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_calculate_ribbon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_calculate_ribbon·\-·Allegro·5·API | 5 | al_calculate_ribbon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, | ||
11 | ···int·points_stride,·float·thickness,·int·num_segments) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Calculates·a·ribbon·given·an·array·of·points. | 12 | Calculates·a·ribbon·given·an·array·of·points. |
15 | The·ribbon·will·go·through·all·of·the·passed·points. | 13 | The·ribbon·will·go·through·all·of·the·passed·points. |
16 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 14 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
17 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. | 15 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. |
18 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced | 16 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_calculate_spline"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_calculate_spline"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_calculate_spline·\-·Allegro·5·API | 5 | al_calculate_spline·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], | ||
11 | ···float·thickness,·int·num_segments) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Calculates·a·Bézier·spline·given·4·control·points. | 12 | Calculates·a·Bézier·spline·given·4·control·points. |
15 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 13 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
16 | required·in·the·destination,·otherwise·twice·as·many·are·needed. | 14 | required·in·the·destination,·otherwise·twice·as·many·are·needed. |
17 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance | 15 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance |
18 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y | 16 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_calloc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_calloc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_calloc·\-·Allegro·5·API | 5 | al_calloc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_calloc(c,·n)·\[rs] | ||
11 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 12 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 13 | overridden. |
16 | .PP | 14 | .PP |
17 | This·is·a·macro. | 15 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_clone_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_clone_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_clone_menu·\-·Allegro·5·API | 5 | al_clone_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. | 12 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. |
14 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or | 13 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or |
15 | a·sub\-menu. | 14 | a·sub\-menu. |
16 | .PP | 15 | .PP |
17 | Returns·the·cloned·menu. | 16 | Returns·the·cloned·menu. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_clone_menu_for_popup"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_clone_menu_for_popup"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_clone_menu_for_popup·\-·Allegro·5·API | 5 | al_clone_menu_for_popup·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup | 12 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup |
14 | menu. | 13 | menu. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_close_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_close_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_close_native_text_log·\-·Allegro·5·API | 5 | al_close_native_text_log·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) | 12 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) |
14 | earlier. | 13 | earlier. |
15 | .PP | 14 | .PP |
16 | Does·nothing·if·passed·NULL. | 15 | Does·nothing·if·passed·NULL. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_close_video"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_close_video"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_close_video·\-·Allegro·5·API | 5 | al_close_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Closes·the·video·and·frees·all·allocated·resources. | 12 | Closes·the·video·and·frees·all·allocated·resources. |
14 | The·video·pointer·is·invalid·after·the·function·returns. | 13 | The·video·pointer·is·invalid·after·the·function·returns. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_color_cmyk"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_cmyk"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_cmyk·\-·Allegro·5·API | 5 | al_color_cmyk·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, |
14 | magenta,·yellow,·black). | 13 | magenta,·yellow,·black). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 15 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_color_cmyk_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_cmyk_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_cmyk_to_rgb·\-·Allegro·5·API | 5 | al_color_cmyk_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
11 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·CMYK·values·to·RGB·values. | 12 | Convert·CMYK·values·to·RGB·values. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 14 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_distance_ciede2000"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_distance_ciede2000"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_distance_ciede2000·\-·Allegro·5·API | 5 | al_color_distance_ciede2000·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, | ||
11 | ······ALLEGRO_COLOR·color2)·{ | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB | 12 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB |
15 | colors. | 13 | colors. |
16 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB | 14 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB |
17 | distance. | 15 | distance. |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_hsl"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_hsl"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_hsl·\-·Allegro·5·API | 5 | al_color_hsl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, |
14 | lightness)·values. | 13 | lightness)·values. |
15 | .PP | 14 | .PP |
16 | Parameters: | 15 | Parameters: |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_hsl_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_hsl_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_hsl_to_rgb·\-·Allegro·5·API | 5 | al_color_hsl_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
11 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 12 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
15 | .PP | 13 | .PP |
16 | Parameters: | 14 | Parameters: |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | hue·\-·Color·hue·angle·in·the·range·0..360 | 16 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_hsv"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_hsv"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_hsv·\-·Allegro·5·API | 5 | al_color_hsv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, |
14 | value)·values. | 13 | value)·values. |
15 | .PP | 14 | .PP |
16 | Parameters: | 15 | Parameters: |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_hsv_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_hsv_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_hsv_to_rgb·\-·Allegro·5·API | 5 | al_color_hsv_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
11 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 12 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
15 | .PP | 13 | .PP |
16 | Parameters: | 14 | Parameters: |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | hue·\-·Color·hue·angle·in·the·range·0..360 | 16 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_html"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_html"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_html·\-·Allegro·5·API | 5 | al_color_html·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 12 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
14 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). | 13 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). |
15 | .PP | 14 | .PP |
16 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if | 15 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if |
17 | the·string·could·not·be·parsed. | 16 | the·string·could·not·be·parsed. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_html_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_html_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_html_to_rgb·\-·Allegro·5·API | 5 | al_color_html_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | bool·al_color_html_to_rgb(char·const·*string, | ||
11 | ···float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 12 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
15 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] | 13 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] |
16 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. | 14 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. |
17 | .PP | 15 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_lab"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_lab"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_lab·\-·Allegro·5·API | 5 | al_color_lab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. |
14 | The·L*·component·corresponds·to·luminance·from·0..1. | 13 | The·L*·component·corresponds·to·luminance·from·0..1. |
15 | The·a*·and·b*·components·are·in·the·range·\-1..+1. | 14 | The·a*·and·b*·components·are·in·the·range·\-1..+1. |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_lab_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_lab_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_lab_to_rgb·\-·Allegro·5·API | 5 | al_color_lab_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. | 12 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) | 16 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_lch"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_lch"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_lch·\-·Allegro·5·API | 5 | al_color_lch·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. |
14 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and | 13 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and |
15 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. | 14 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. |
16 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in | 15 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in |
17 | degree. | 16 | degree. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_lch_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_lch_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_lch_to_rgb·\-·Allegro·5·API | 5 | al_color_lch_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·CIE·LCH·color·values·to·RGB·color·space. | 12 | Convert·CIE·LCH·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) | 16 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_linear"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_linear"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_linear·\-·Allegro·5·API | 5 | al_color_linear·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. |
14 | Allegro·RGB·values·are·assumed·to·be·sRGB. | 13 | Allegro·RGB·values·are·assumed·to·be·sRGB. |
15 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. | 14 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. |
16 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before | 15 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before |
17 | they·get·displayed. | 16 | they·get·displayed. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_linear_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_linear_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_linear_to_rgb·\-·Allegro·5·API | 5 | al_color_linear_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB | 12 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB |
15 | values. | 13 | values. |
16 | .SH·SINCE | 14 | .SH·SINCE |
17 | 5.2.8 | 15 | 5.2.8 |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_color_name"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_name"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_name·\-·Allegro·5·API | 5 | al_color_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_name(char·const·*name) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. |
14 | If·the·color·is·not·found·then·black·is·returned. | 13 | If·the·color·is·not·found·then·black·is·returned. |
15 | .PP | 14 | .PP |
16 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. | 15 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_name_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_name_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_name_to_rgb·\-·Allegro·5·API | 5 | al_color_name_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Parameters: | 12 | Parameters: |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | name·\-·The·(lowercase)·name·of·the·color. | 14 | name·\-·The·(lowercase)·name·of·the·color. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the | 16 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_oklab"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_oklab"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_oklab·\-·Allegro·5·API | 5 | al_color_oklab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. |
14 | The·L·component·corresponds·to·luminance·from·0..1. | 13 | The·L·component·corresponds·to·luminance·from·0..1. |
15 | The·a·and·b·components·are·in·the·range·\-1..+1. | 14 | The·a·and·b·components·are·in·the·range·\-1..+1. |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_oklab_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_oklab_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_oklab_to_rgb·\-·Allegro·5·API | 5 | al_color_oklab_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·Oklab·color·values·to·RGB. | 12 | Convert·Oklab·color·values·to·RGB. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.8 | 14 | 5.2.8 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) | 16 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_cmyk"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_cmyk"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_cmyk·\-·Allegro·5·API | 5 | al_color_rgb_to_cmyk·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, | ||
11 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with | 12 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with |
15 | the·following·formula: | 13 | the·following·formula: |
16 | .IP | 14 | .IP |
17 | .EX | 15 | .EX |
18 | C·=·1·\-·R | 16 | C·=·1·\-·R |
Offset 3, 16 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_color_rgb_to_hsl"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_hsl"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_hsl·\-·Allegro·5·API | 5 | al_color_rgb_to_hsl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, | ||
11 | ···float·*hue,·float·*saturation,·float·*lightness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 12 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
15 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. | 13 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. |
16 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
17 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) | 15 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_color_rgb_to_hsv"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_hsv"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_hsv·\-·Allegro·5·API | 5 | al_color_rgb_to_hsv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, | ||
11 | ···float·*hue,·float·*saturation,·float·*value) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 12 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
15 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. | 13 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. |
16 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
17 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) | 15 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_html"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_html"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_html·\-·Allegro·5·API | 5 | al_color_rgb_to_html·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
11 | ····char·*string) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Create·an·HTML\-style·string·representation·of·an | 12 | Create·an·HTML\-style·string·representation·of·an |
15 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. | 13 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. |
16 | .PP | 14 | .PP |
17 | Parameters: | 15 | Parameters: |
18 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_lab"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_lab"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_lab·\-·Allegro·5·API | 5 | al_color_rgb_to_lab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, | ||
11 | ···float·*l,·float·*a,·float·*b) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·L*a*b*·color·space. | 12 | Convert·RGB·values·to·L*a*b*·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) | 16 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_lch"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_lch"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_lch·\-·Allegro·5·API | 5 | al_color_rgb_to_lch·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, | ||
11 | ···float·*l,·float·*c,·float·*h) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·CIE·LCH·color·space. | 12 | Convert·RGB·values·to·CIE·LCH·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) | 16 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_linear"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_linear"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_linear·\-·Allegro·5·API | 5 | al_color_rgb_to_linear·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, | ||
11 | ···float·*r,·float·*g,·float·*b) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB | 12 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB |
15 | space. | 13 | space. |
16 | .SH·SINCE | 14 | .SH·SINCE |
17 | 5.2.8 | 15 | 5.2.8 |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_color_rgb_to_name"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_name"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_name·\-·Allegro·5·API | 5 | al_color_rgb_to_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color | 12 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color |
14 | name·describing·it·approximately. | 13 | name·describing·it·approximately. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) | 15 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_oklab"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_oklab"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_oklab·\-·Allegro·5·API | 5 | al_color_rgb_to_oklab·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, | ||
11 | ···float·*ol,·float·*oa,·float·*ob) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·the·Oklab·color·space. | 12 | Convert·RGB·values·to·the·Oklab·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.8 | 14 | 5.2.8 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) | 16 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_xyy"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_xyy"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_xyy·\-·Allegro·5·API | 5 | al_color_rgb_to_xyy·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, | ||
11 | ···float·*x,·float·*y,·float·*y2) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·xyY·color·space. | 12 | Convert·RGB·values·to·xyY·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) | 16 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_rgb_to_xyz"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_xyz"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_xyz·\-·Allegro·5·API | 5 | al_color_rgb_to_xyz·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, | ||
11 | ···float·*x,·float·*y,·float·*z) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·XYZ·color·space. | 12 | Convert·RGB·values·to·XYZ·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) | 16 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_color_rgb_to_yuv"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_rgb_to_yuv"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_rgb_to_yuv·\-·Allegro·5·API | 5 | al_color_rgb_to_yuv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, | ||
11 | ···float·*y,·float·*u,·float·*v) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·RGB·values·to·YUV·color·space. | 12 | Convert·RGB·values·to·YUV·color·space. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) | 14 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_xyy"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_xyy"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_xyy·\-·Allegro·5·API | 5 | al_color_xyy·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. |
14 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. | 13 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. |
15 | .PP | 14 | .PP |
16 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: | 15 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: |
17 | .IP | 16 | .IP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_xyy_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_xyy_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_xyy_to_rgb·\-·Allegro·5·API | 5 | al_color_xyy_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·xyY·color·values·to·RGB·color·space. | 12 | Convert·xyY·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) | 16 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_xyz"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_xyz"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_xyz·\-·Allegro·5·API | 5 | al_color_xyz·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. |
14 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range | 13 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range |
15 | 0..1. | 14 | 0..1. |
16 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components | 15 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components |
17 | define·the·color. | 16 | define·the·color. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_color_xyz_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_xyz_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_xyz_to_rgb·\-·Allegro·5·API | 5 | al_color_xyz_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·XYZ·color·values·to·RGB·color·space. | 12 | Convert·XYZ·color·values·to·RGB·color·space. |
15 | .SH·SINCE | 13 | .SH·SINCE |
16 | 5.2.3 | 14 | 5.2.3 |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) | 16 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_color_yuv"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_yuv"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_yuv·\-·Allegro·5·API | 5 | al_color_yuv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. | 12 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 14 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_color_yuv_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_color_yuv_to_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_color_yuv_to_rgb·\-·Allegro·5·API | 5 | al_color_yuv_to_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, | ||
11 | ····float·*red,·float·*green,·float·*blue) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·YUV·color·values·to·RGB·color·space. | 12 | Convert·YUV·color·values·to·RGB·color·space. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 14 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_audio_recorder·\-·Allegro·5·API | 5 | al_create_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, | ||
11 | ···unsigned·int·samples,·unsigned·int·frequency, | ||
12 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording | 12 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording |
16 | device. | 13 | device. |
17 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s | 14 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s |
18 | default·recording·device.) | 15 | default·recording·device.) |
19 | .PP | 16 | .PP |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_audio_stream·\-·Allegro·5·API | 5 | al_create_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, | ||
11 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). | 12 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). |
16 | The·stream·will·be·set·to·play·by·default. | 13 | The·stream·will·be·set·to·play·by·default. |
17 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of | 14 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of |
18 | fragments. | 15 | fragments. |
19 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_builtin_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_builtin_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_builtin_font·\-·Allegro·5·API | 5 | al_create_builtin_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_create_builtin_font(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). | 12 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). |
14 | .PP | 13 | .PP |
15 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in | 14 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in |
16 | environments·or·during·early·runtime·states·where·no·external·font·data | 15 | environments·or·during·early·runtime·states·where·no·external·font·data |
17 | is·available·or·loaded·(e.g.\·for·debugging). | 16 | is·available·or·loaded·(e.g.\·for·debugging). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_index_buffer·\-·Allegro·5·API | 5 | al_create_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | ||
11 | ····const·void*·initial_data,·int·num_indices,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Creates·a·index·buffer. | 12 | Creates·a·index·buffer. |
15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 13 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
16 | only·supports·write\-only·buffers). | 14 | only·supports·write\-only·buffers). |
17 | .RS | 15 | .RS |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_menu·\-·Allegro·5·API | 5 | al_create_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_create_menu(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Creates·a·menu·container·that·can·hold·menu·items. | 12 | Creates·a·menu·container·that·can·hold·menu·items. |
14 | .PP | 13 | .PP |
15 | Returns·\f[CR]NULL\f[R]·on·failure. | 14 | Returns·\f[CR]NULL\f[R]·on·failure. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_mixer·\-·Allegro·5·API | 5 | al_create_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, | ||
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other | 12 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other |
15 | mixers·to. | 13 | mixers·to. |
16 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel | 14 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel |
17 | count. | 15 | count. |
18 | .PP | 16 | .PP |
Offset 3, 20 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_native_file_dialog·\-·Allegro·5·API | 5 | al_create_native_file_dialog·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
11 | ···char·const·*initial_path, | ||
12 | ···char·const·*title, | ||
13 | ···char·const·*patterns, | ||
14 | ···int·mode) | ||
15 | .EE | 10 | .EE |
16 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
17 | Creates·a·new·native·file·dialog. | 12 | Creates·a·new·native·file·dialog. |
18 | You·should·only·have·one·such·dialog·opened·at·a·time. | 13 | You·should·only·have·one·such·dialog·opened·at·a·time. |
19 | .PP | 14 | .PP |
20 | Parameters: | 15 | Parameters: |
21 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_popup_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_popup_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_popup_menu·\-·Allegro·5·API | 5 | al_create_popup_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_create_popup_menu(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Creates·a·menu·container·for·popup·menus. | 12 | Creates·a·menu·container·for·popup·menus. |
14 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. | 13 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. |
15 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). | 14 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). |
16 | .PP | 15 | .PP |
17 | Returns·\f[CR]NULL\f[R]·on·failure. | 16 | Returns·\f[CR]NULL\f[R]·on·failure. |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_sample·\-·Allegro·5·API | 5 | al_create_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, | ||
11 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Create·a·sample·data·structure·from·the·supplied·buffer. | 12 | Create·a·sample·data·structure·from·the·supplied·buffer. |
16 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with | 13 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with |
17 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. | 14 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. |
18 | For·portability·(especially·Windows),·the·buffer·should·have·been | 15 | For·portability·(especially·Windows),·the·buffer·should·have·been |
19 | allocated·with·al_malloc(3alleg5). | 16 | allocated·with·al_malloc(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_sample_instance·\-·Allegro·5·API | 5 | al_create_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Creates·a·sample·instance,·using·the·supplied·sample·data. | 12 | Creates·a·sample·instance,·using·the·supplied·sample·data. |
14 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually | 13 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually |
15 | produce·output. | 14 | produce·output. |
16 | .PP | 15 | .PP |
17 | The·argument·may·be·NULL. | 16 | The·argument·may·be·NULL. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_vertex_buffer·\-·Allegro·5·API | 5 | al_create_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, | ||
11 | ···const·void*·initial_data,·int·num_vertices,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Creates·a·vertex·buffer. | 12 | Creates·a·vertex·buffer. |
15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 13 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
16 | only·supports·write\-only·buffers). | 14 | only·supports·write\-only·buffers). |
17 | .RS | 15 | .RS |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_vertex_decl"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_vertex_decl"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_vertex_decl·\-·Allegro·5·API | 5 | al_create_vertex_decl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. | 12 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. |
14 | .PP | 13 | .PP |
15 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. | 16 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_create_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_create_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_create_voice·\-·Allegro·5·API | 5 | al_create_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, | ||
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound | 12 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound |
15 | driver. | 13 | driver. |
16 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration | 14 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration |
17 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. | 15 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. |
18 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching | 16 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_audio_recorder·\-·Allegro·5·API | 5 | al_destroy_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. | 12 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. |
14 | It·is·safe·to·destroy·a·recorder·that·is·recording. | 13 | It·is·safe·to·destroy·a·recorder·that·is·recording. |
15 | .PP | 14 | .PP |
16 | You·may·receive·events·after·the·recorder·has·been·destroyed. | 15 | You·may·receive·events·after·the·recorder·has·been·destroyed. |
17 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. | 16 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_audio_stream·\-·Allegro·5·API | 5 | al_destroy_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroy·an·audio·stream·which·was·created·with | 12 | Destroy·an·audio·stream·which·was·created·with |
14 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). | 13 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). |
15 | .RS | 14 | .RS |
16 | .PP | 15 | .PP |
17 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, | 16 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_destroy_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_font·\-·Allegro·5·API | 5 | al_destroy_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Frees·the·memory·being·used·by·a·font·structure. | 12 | Frees·the·memory·being·used·by·a·font·structure. |
14 | Does·nothing·if·passed·NULL. | 13 | Does·nothing·if·passed·NULL. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_load_font(3alleg5) | 15 | al_load_font(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_index_buffer·\-·Allegro·5·API | 5 | al_destroy_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·a·index·buffer. | 12 | Destroys·a·index·buffer. |
14 | Does·nothing·if·passed·NULL. | 13 | Does·nothing·if·passed·NULL. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_menu·\-·Allegro·5·API | 5 | al_destroy_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_destroy_menu(ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·an·entire·menu,·including·its·sub\-menus. | 12 | Destroys·an·entire·menu,·including·its·sub\-menus. |
14 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. | 13 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. |
15 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. | 14 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_destroy_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_mixer·\-·Allegro·5·API | 5 | al_destroy_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·the·mixer. | 12 | Destroys·the·mixer. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_create_mixer(3alleg5) | 14 | al_create_mixer(3alleg5) |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_destroy_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_native_file_dialog·\-·Allegro·5·API | 5 | al_destroy_native_file_dialog·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Frees·up·all·resources·used·by·the·file·dialog. | 12 | Frees·up·all·resources·used·by·the·file·dialog. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_sample·\-·Allegro·5·API | 5 | al_destroy_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Free·the·sample·data·structure. | 12 | Free·the·sample·data·structure. |
14 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, | 13 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, |
15 | then·the·buffer·will·be·freed·with·al_free(3alleg5). | 14 | then·the·buffer·will·be·freed·with·al_free(3alleg5). |
16 | .PP | 15 | .PP |
17 | This·function·will·stop·any·sample·instances·which·may·be·playing·the | 16 | This·function·will·stop·any·sample·instances·which·may·be·playing·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_sample_instance·\-·Allegro·5·API | 5 | al_destroy_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and | 12 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and |
14 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] | 13 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] |
15 | freed!). | 14 | freed!). |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_create_sample_instance(3alleg5) | 16 | al_create_sample_instance(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_vertex_buffer·\-·Allegro·5·API | 5 | al_destroy_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·a·vertex·buffer. | 12 | Destroys·a·vertex·buffer. |
14 | Does·nothing·if·passed·NULL. | 13 | Does·nothing·if·passed·NULL. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.3 | 15 | 5.1.3 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_destroy_vertex_decl"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_vertex_decl"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_vertex_decl·\-·Allegro·5·API | 5 | al_destroy_vertex_decl·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·a·vertex·declaration. | 12 | Destroys·a·vertex·declaration. |
14 | .PP | 13 | .PP |
15 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | decl·\-·Vertex·declaration·to·destroy | 16 | decl·\-·Vertex·declaration·to·destroy |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_destroy_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_destroy_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_destroy_voice·\-·Allegro·5·API | 5 | al_destroy_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. | 12 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. |
14 | Does·nothing·if·the·voice·is·NULL. | 13 | Does·nothing·if·the·voice·is·NULL. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_create_voice(3alleg5) | 15 | al_create_voice(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_detach_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_detach_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_detach_audio_stream·\-·Allegro·5·API | 5 | al_detach_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. | 12 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_audio_stream_to_mixer(3alleg5), | 14 | al_attach_audio_stream_to_mixer(3alleg5), |
16 | al_attach_audio_stream_to_voice(3alleg5), | 15 | al_attach_audio_stream_to_voice(3alleg5), |
17 | al_get_audio_stream_attached(3alleg5). | 16 | al_get_audio_stream_attached(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_detach_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_detach_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_detach_mixer·\-·Allegro·5·API | 5 | al_detach_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. | 12 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_mixer(3alleg5). | 14 | al_attach_mixer_to_mixer(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_detach_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_detach_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_detach_sample_instance·\-·Allegro·5·API | 5 | al_detach_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if | 12 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if |
14 | anything. | 13 | anything. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success. | 15 | Returns·true·on·success. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_detach_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_detach_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_detach_voice·\-·Allegro·5·API | 5 | al_detach_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_detach_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. | 12 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_voice(3alleg5), | 14 | al_attach_mixer_to_voice(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 15 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5) | 16 | al_attach_audio_stream_to_voice(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_disable_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_disable_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_disable_menu_event_source·\-·Allegro·5·API | 5 | al_disable_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the | 12 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the |
14 | default·event·source. | 13 | default·event·source. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 19 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_do_multiline_text"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_do_multiline_text"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_do_multiline_text·\-·Allegro·5·API | 5 | al_do_multiline_text·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, | ||
11 | ···float·max_width,·const·char·*text, | ||
12 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), | ||
13 | ···void·*extra) | ||
14 | .EE | 10 | .EE |
15 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
16 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as | 12 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as |
17 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback | 13 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback |
18 | \f[CR]cb\f[R]·once·for·every·line. | 14 | \f[CR]cb\f[R]·once·for·every·line. |
19 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating | 15 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating |
20 | the·size·of·multiline·text·ahead·of·time. | 16 | the·size·of·multiline·text·ahead·of·time. |
Offset 3, 19 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_do_multiline_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_do_multiline_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_do_multiline_ustr·\-·Allegro·5·API | 5 | al_do_multiline_ustr·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, | ||
11 | ···const·ALLEGRO_USTR·*ustr, | ||
12 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), | ||
13 | ···void·*extra) | ||
14 | .EE | 10 | .EE |
15 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
16 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a | 12 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a |
17 | NUL\-terminated·char·array·for·text. | 13 | NUL\-terminated·char·array·for·text. |
18 | .SH·SINCE | 14 | .SH·SINCE |
19 | 5.1.9 | 15 | 5.1.9 |
20 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_drain_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_drain_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_drain_audio_stream·\-·Allegro·5·API | 5 | al_drain_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer | 12 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer |
14 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. | 13 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. |
15 | The·stream\[cq]s·playing·state·will·change·to·false. | 14 | The·stream\[cq]s·playing·state·will·change·to·false. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_destroy_audio_stream(3alleg5) | 16 | al_destroy_audio_stream(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_arc·\-·Allegro·5·API | 5 | al_draw_arc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, | ||
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·arc. | 12 | Draws·an·arc. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·arc | 16 | cx,·cy·\-·Center·of·the·arc |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_circle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_circle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_circle·\-·Allegro·5·API | 5 | al_draw_circle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, | ||
11 | ···float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·outlined·circle. | 12 | Draws·an·outlined·circle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·circle | 16 | cx,·cy·\-·Center·of·the·circle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_ellipse"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_ellipse"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_ellipse·\-·Allegro·5·API | 5 | al_draw_ellipse·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
11 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·outlined·ellipse. | 12 | Draws·an·outlined·ellipse. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·ellipse | 16 | cx,·cy·\-·Center·of·the·ellipse |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_elliptical_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_elliptical_arc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_elliptical_arc·\-·Allegro·5·API | 5 | al_draw_elliptical_arc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_elliptical_arc(float·cx,·float·cy,·float·rx,·float·ry,·float·start_theta, | ||
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·elliptical·arc. | 12 | Draws·an·elliptical·arc. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·arc | 16 | cx,·cy·\-·Center·of·the·arc |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_circle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_circle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_circle·\-·Allegro·5·API | 5 | al_draw_filled_circle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Draws·a·filled·circle. | 12 | Draws·a·filled·circle. |
14 | .PP | 13 | .PP |
15 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | cx,·cy·\-·Center·of·the·circle | 16 | cx,·cy·\-·Center·of·the·circle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_ellipse"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_ellipse"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_ellipse·\-·Allegro·5·API | 5 | al_draw_filled_ellipse·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
11 | ···ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·filled·ellipse. | 12 | Draws·a·filled·ellipse. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·ellipse | 16 | cx,·cy·\-·Center·of·the·ellipse |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_pieslice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_pieslice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_pieslice·\-·Allegro·5·API | 5 | al_draw_filled_pieslice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
11 | ···float·delta_theta,·ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·filled·pieslice·(filled·circular·sector). | 12 | Draws·a·filled·pieslice·(filled·circular·sector). |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·pieslice | 16 | cx,·cy·\-·Center·of·the·pieslice |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_polygon·\-·Allegro·5·API | 5 | al_draw_filled_polygon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_polygon(const·float·*vertices,·int·vertex_count, | ||
11 | ···ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draw·a·filled,·simple·polygon. | 12 | Draw·a·filled,·simple·polygon. |
15 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be | 13 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be |
16 | self\-overlapping. | 14 | self\-overlapping. |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 16 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_polygon_with_holes"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_polygon_with_holes"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_polygon_with_holes·\-·Allegro·5·API | 5 | al_draw_filled_polygon_with_holes·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, | ||
11 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons | 12 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons |
15 | subtracted·from·it·\-·the·holes. | 13 | subtracted·from·it·\-·the·holes. |
16 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled | 14 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled |
17 | polygon. | 15 | polygon. |
18 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_rectangle·\-·Allegro·5·API | 5 | al_draw_filled_rectangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·filled·rectangle. | 12 | Draws·a·filled·rectangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 16 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_rounded_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_rounded_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_rounded_rectangle·\-·Allegro·5·API | 5 | al_draw_filled_rounded_rectangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·filled·rounded·rectangle. | 12 | Draws·an·filled·rounded·rectangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 16 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_filled_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_filled_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_filled_triangle·\-·Allegro·5·API | 5 | al_draw_filled_triangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·filled·triangle. | 12 | Draws·a·filled·triangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 16 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_glyph"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_glyph"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_glyph·\-·Allegro·5·API | 5 | al_draw_glyph·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, | ||
11 | ···int·codepoint) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given | 12 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given |
15 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. | 13 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. |
16 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. | 14 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. |
17 | .PP | 15 | .PP |
18 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use | 16 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_indexed_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_indexed_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_indexed_buffer·\-·Allegro·5·API | 5 | al_draw_indexed_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
11 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, | ||
12 | ···int·start,·int·end,·int·type) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Draws·a·subset·of·the·passed·vertex·buffer. | 12 | Draws·a·subset·of·the·passed·vertex·buffer. |
16 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. | 13 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. |
17 | Both·buffers·must·not·be·locked. | 14 | Both·buffers·must·not·be·locked. |
18 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 15 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
19 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the | 16 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_indexed_prim"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_indexed_prim"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_indexed_prim·\-·Allegro·5·API | 5 | al_draw_indexed_prim·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_indexed_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
11 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·array. | 12 | Draws·a·subset·of·the·passed·vertex·array. |
15 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. | 13 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. |
16 | .PP | 14 | .PP |
17 | \f[I]Parameters:\f[R] | 15 | \f[I]Parameters:\f[R] |
18 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_justified_text"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_justified_text"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_justified_text·\-·Allegro·5·API | 5 | al_draw_justified_text·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, | ||
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
12 | ···float·y,·float·diff,·int·flags,·const·char·*text) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region | 12 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region |
16 | x1\-x2. | 13 | x1\-x2. |
17 | .PP | 14 | .PP |
18 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space | 15 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space |
19 | to·allow·between·words. | 16 | to·allow·between·words. |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_justified_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_justified_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_justified_textf·\-·Allegro·5·API | 5 | al_draw_justified_textf·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | ||
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | ||
12 | ···float·diff,·int·flags,·const·char·*format,·...) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 12 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with | 13 | All·parameters·have·the·same·meaning·as·with |
17 | al_draw_justified_text(3alleg5)·otherwise. | 14 | al_draw_justified_text(3alleg5)·otherwise. |
18 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
19 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). | 16 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). |
Offset 3, 17 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_draw_justified_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_justified_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_justified_ustr·\-·Allegro·5·API | 5 | al_draw_justified_ustr·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, | ||
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
12 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an | 12 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 13 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
18 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). | 15 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_line"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_line"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_line·\-·Allegro·5·API | 5 | al_draw_line·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·line·segment·between·two·points. | 12 | Draws·a·line·segment·between·two·points. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line | 16 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_multiline_text"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_multiline_text"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_multiline_text·\-·Allegro·5·API | 5 | al_draw_multiline_text·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | ||
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
12 | ·····int·flags,·const·char·*text) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple | 12 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple |
16 | lines·of·text. | 13 | lines·of·text. |
17 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the | 14 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the |
18 | \f[CR]max_width\f[R]·parameter. | 15 | \f[CR]max_width\f[R]·parameter. |
19 | The·lines·are·then·layed·out·vertically·depending·on·the | 16 | The·lines·are·then·layed·out·vertically·depending·on·the |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_multiline_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_multiline_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_multiline_textf·\-·Allegro·5·API | 5 | al_draw_multiline_textf·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, | ||
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
12 | ·····int·flags,·const·char·*format,·...) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 12 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with | 13 | All·parameters·have·the·same·meaning·as·with |
17 | al_draw_multiline_text(3alleg5)·otherwise. | 14 | al_draw_multiline_text(3alleg5)·otherwise. |
18 | .SH·SINCE | 15 | .SH·SINCE |
19 | 5.1.9 | 16 | 5.1.9 |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_multiline_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_multiline_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_multiline_ustr·\-·Allegro·5·API | 5 | al_draw_multiline_ustr·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, | ||
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
12 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an | 12 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 13 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SINCE | 14 | .SH·SINCE |
18 | 5.1.9 | 15 | 5.1.9 |
19 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_pieslice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_pieslice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_pieslice·\-·Allegro·5·API | 5 | al_draw_pieslice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·pieslice·(outlined·circular·sector). | 12 | Draws·a·pieslice·(outlined·circular·sector). |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·pieslice | 16 | cx,·cy·\-·Center·of·the·pieslice |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_polygon·\-·Allegro·5·API | 5 | al_draw_polygon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, | ||
11 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draw·an·unfilled·polygon. | 12 | Draw·an·unfilled·polygon. |
15 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to | 13 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to |
16 | al_draw_polyline(3alleg5). | 14 | al_draw_polyline(3alleg5). |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 16 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_polyline"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_polyline"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_polyline·\-·Allegro·5·API | 5 | al_draw_polyline·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, | ||
11 | ···int·vertex_count,·int·join_style,·int·cap_style, | ||
12 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Draw·a·series·of·line·segments. | 12 | Draw·a·series·of·line·segments. |
16 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
17 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 14 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
18 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
19 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the | 16 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_prim"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_prim"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_prim·\-·Allegro·5·API | 5 | al_draw_prim·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·array. | 12 | Draws·a·subset·of·the·passed·vertex·array. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves | 16 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_rectangle·\-·Allegro·5·API | 5 | al_draw_rectangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·outlined·rectangle. | 12 | Draws·an·outlined·rectangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 16 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_ribbon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_ribbon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_ribbon·\-·Allegro·5·API | 5 | al_draw_ribbon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, | ||
11 | ···float·thickness,·int·num_segments) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·ribbon·given·an·array·of·points. | 12 | Draws·a·ribbon·given·an·array·of·points. |
15 | The·ribbon·will·go·through·all·of·the·passed·points. | 13 | The·ribbon·will·go·through·all·of·the·passed·points. |
16 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, | 14 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, |
17 | corresponding·to·x·and·y·coordinates·of·the·vertices. | 15 | corresponding·to·x·and·y·coordinates·of·the·vertices. |
18 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_rounded_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_rounded_rectangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_rounded_rectangle·\-·Allegro·5·API | 5 | al_draw_rounded_rectangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·outlined·rounded·rectangle. | 12 | Draws·an·outlined·rounded·rectangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 16 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 3, 19 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_soft_line"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_soft_line"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_soft_line·\-·Allegro·5·API | 5 | al_draw_soft_line·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_soft_line(ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·uintptr_t·state, | ||
11 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
12 | ···void·(*step)(uintptr_t,·int), | ||
13 | ···void·(*draw)(uintptr_t,·int,·int)) | ||
14 | .EE | 10 | .EE |
15 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
16 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel | 12 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel |
17 | functions. | 13 | functions. |
18 | For·help·in·understanding·what·these·functions·do,·see·the | 14 | For·help·in·understanding·what·these·functions·do,·see·the |
19 | implementation·of·the·various·shading·routines·in | 15 | implementation·of·the·various·shading·routines·in |
20 | addons/primitives/line_soft.c. | 16 | addons/primitives/line_soft.c. |
Offset 3, 21 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_soft_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_soft_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_soft_triangle·\-·Allegro·5·API | 5 | al_draw_soft_triangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_soft_triangle( | ||
11 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, | ||
12 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
13 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), | ||
14 | ···void·(*step)(uintptr_t,·int), | ||
15 | ···void·(*draw)(uintptr_t,·int,·int,·int)) | ||
16 | .EE | 10 | .EE |
17 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
18 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel | 12 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel |
19 | functions. | 13 | functions. |
20 | For·help·in·understanding·what·these·functions·do,·see·the | 14 | For·help·in·understanding·what·these·functions·do,·see·the |
21 | implementation·of·the·various·shading·routines·in | 15 | implementation·of·the·various·shading·routines·in |
22 | addons/primitives/tri_soft.c. | 16 | addons/primitives/tri_soft.c. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_spline"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_spline"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_spline·\-·Allegro·5·API | 5 | al_draw_spline·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Draws·a·Bézier·spline·given·4·control·points. | 12 | Draws·a·Bézier·spline·given·4·control·points. |
14 | .PP | 13 | .PP |
15 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points | 16 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_text"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_text"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_text·\-·Allegro·5·API | 5 | al_draw_text·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_text(const·ALLEGRO_FONT·*font, | ||
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
12 | ···char·const·*text)· | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap | 12 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap |
16 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified | 13 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified |
17 | \f[CR]font\f[R]. | 14 | \f[CR]font\f[R]. |
18 | .PP | 15 | .PP |
19 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: | 16 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_textf"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_textf·\-·Allegro·5·API | 5 | al_draw_textf·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, | ||
11 | ···float·x,·float·y,·int·flags, | ||
12 | ···const·char·*format,·...) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Formatted·text·output,·using·a·printf()·style·format·string. | 12 | Formatted·text·output,·using·a·printf()·style·format·string. |
16 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) | 13 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) |
17 | otherwise. | 14 | otherwise. |
18 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
19 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) | 16 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_triangle"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_triangle·\-·Allegro·5·API | 5 | al_draw_triangle·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·an·outlined·triangle. | 12 | Draws·an·outlined·triangle. |
15 | .PP | 13 | .PP |
16 | \f[I]Parameters:\f[R] | 14 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 16 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_ustr"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_ustr·\-·Allegro·5·API | 5 | al_draw_ustr·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, | ||
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
12 | ···const·ALLEGRO_USTR·*ustr)· | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR | 12 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR |
16 | instead·of·a·NUL\-terminated·char·array. | 13 | instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
18 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), | 15 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), |
19 | al_draw_multiline_ustr(3alleg5) | 16 | al_draw_multiline_ustr(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_draw_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_draw_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_draw_vertex_buffer·\-·Allegro·5·API | 5 | al_draw_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Draws·a·subset·of·the·passed·vertex·buffer. | 12 | Draws·a·subset·of·the·passed·vertex·buffer. |
15 | The·vertex·buffer·must·not·be·locked. | 13 | The·vertex·buffer·must·not·be·locked. |
16 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 14 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
17 | the·vertex·buffer·must·support·reading·(i.e. | 15 | the·vertex·buffer·must·support·reading·(i.e. |
18 | it·must·be·created·with·the·\f[CR]ALLEGRO_PRIM_BUFFER_READWRITE\f[R]). | 16 | it·must·be·created·with·the·\f[CR]ALLEGRO_PRIM_BUFFER_READWRITE\f[R]). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_enable_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_enable_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_enable_menu_event_source·\-·Allegro·5·API | 5 | al_enable_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Enables·a·unique·event·source·for·this·menu. | 12 | Enables·a·unique·event·source·for·this·menu. |
14 | It·and·all·of·its·sub\-menus·will·use·this·event·source. | 13 | It·and·all·of·its·sub\-menus·will·use·this·event·source. |
15 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) | 14 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) |
16 | .PP | 15 | .PP |
17 | Returns·the·event·source. | 16 | Returns·the·event·source. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fill_silence"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fill_silence"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fill_silence·\-·Allegro·5·API | 5 | al_fill_silence·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_fill_silence(void·*buf,·unsigned·int·samples, | ||
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel | 12 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel |
15 | configuration. | 13 | configuration. |
16 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and | 14 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and |
17 | be·properly·aligned. | 15 | be·properly·aligned. |
18 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_find_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_find_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_find_menu·\-·Allegro·5·API | 5 | al_find_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given | 12 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given |
14 | \f[CR]id\f[R]. | 13 | \f[CR]id\f[R]. |
15 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 14 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
16 | index.) | 15 | index.) |
17 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_find_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_find_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_find_menu_item·\-·Allegro·5·API | 5 | al_find_menu_item·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, | ||
11 | ···int·*index) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given | 12 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given |
15 | \f[CR]id\f[R]. | 13 | \f[CR]id\f[R]. |
16 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 14 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
17 | index.) | 15 | index.) |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixacos"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixacos"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixacos·\-·Allegro·5·API | 5 | al_fixacos·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixacos(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·finds·the·inverse·cosine·of·a·value·using·a·lookup·table. | 12 | This·function·finds·the·inverse·cosine·of·a·value·using·a·lookup·table. |
14 | The·input·must·be·a·fixed·point·value. | 13 | The·input·must·be·a·fixed·point·value. |
15 | The·inverse·cosine·is·defined·only·in·the·domain·from·\-1·to·1. | 14 | The·inverse·cosine·is·defined·only·in·the·domain·from·\-1·to·1. |
16 | Outside·of·this·input·range,·the·function·will·set·Allegro\[cq]s·errno | 15 | Outside·of·this·input·range,·the·function·will·set·Allegro\[cq]s·errno |
17 | to·EDOM·and·return·zero. | 16 | to·EDOM·and·return·zero. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixadd"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixadd"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixadd·\-·Allegro·5·API | 5 | al_fixadd·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixadd(al_fixed·x,·al_fixed·y); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Although·fixed·point·numbers·can·be·added·with·the·normal·\f[CR]+\f[R] | 12 | Although·fixed·point·numbers·can·be·added·with·the·normal·\f[CR]+\f[R] |
14 | integer·operator,·that·doesn\[cq]t·provide·any·protection·against | 13 | integer·operator,·that·doesn\[cq]t·provide·any·protection·against |
15 | overflow. | 14 | overflow. |
16 | If·overflow·is·a·problem,·you·should·use·this·function·instead. | 15 | If·overflow·is·a·problem,·you·should·use·this·function·instead. |
17 | It·is·slower·than·using·integer·operators,·but·if·an·overflow·occurs·it | 16 | It·is·slower·than·using·integer·operators,·but·if·an·overflow·occurs·it |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixasin"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixasin"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixasin·\-·Allegro·5·API | 5 | al_fixasin·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixasin(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·finds·the·inverse·sine·of·a·value·using·a·lookup·table. | 12 | This·function·finds·the·inverse·sine·of·a·value·using·a·lookup·table. |
14 | The·input·value·must·be·a·fixed·point·value. | 13 | The·input·value·must·be·a·fixed·point·value. |
15 | The·inverse·sine·is·defined·only·in·the·domain·from·\-1·to·1. | 14 | The·inverse·sine·is·defined·only·in·the·domain·from·\-1·to·1. |
16 | Outside·of·this·input·range,·the·function·will·set·Allegro\[cq]s·errno | 15 | Outside·of·this·input·range,·the·function·will·set·Allegro\[cq]s·errno |
17 | to·EDOM·and·return·zero. | 16 | to·EDOM·and·return·zero. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixcos"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixcos"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixcos·\-·Allegro·5·API | 5 | al_fixcos·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixcos(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·finds·the·cosine·of·a·value·using·a·lookup·table. | 12 | This·function·finds·the·cosine·of·a·value·using·a·lookup·table. |
14 | The·input·value·must·be·a·fixed·point·binary·angle. | 13 | The·input·value·must·be·a·fixed·point·binary·angle. |
15 | .PP | 14 | .PP |
16 | Example: | 15 | Example: |
17 | .IP | 16 | .IP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixdiv"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixdiv"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixdiv·\-·Allegro·5·API | 5 | al_fixdiv·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixdiv(al_fixed·x,·al_fixed·y); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·fixed·point·value·can·be·divided·by·an·integer·with·the·normal | 12 | A·fixed·point·value·can·be·divided·by·an·integer·with·the·normal |
14 | \f[CR]/\f[R]·operator. | 13 | \f[CR]/\f[R]·operator. |
15 | To·divide·two·fixed·point·values,·though,·you·must·use·this·function. | 14 | To·divide·two·fixed·point·values,·though,·you·must·use·this·function. |
16 | If·a·division·by·zero·occurs,·Allegro\[cq]s·errno·will·be·set·and·the | 15 | If·a·division·by·zero·occurs,·Allegro\[cq]s·errno·will·be·set·and·the |
17 | maximum·possible·value·will·be·returned,·but·errno·is·not·cleared·if·the | 16 | maximum·possible·value·will·be·returned,·but·errno·is·not·cleared·if·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixed·\-·Allegro·5·API | 5 | al_fixed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | typedef·int32_t·al_fixed; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·fixed·point·number. | 12 | A·fixed·point·number. |
14 | .PP | 13 | .PP |
15 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 14 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
16 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. | 15 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. |
17 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the | 16 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixmul"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixmul"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixmul·\-·Allegro·5·API | 5 | al_fixmul·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixmul(al_fixed·x,·al_fixed·y); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | A·fixed·point·value·can·be·multiplied·or·divided·by·an·integer·with·the | 12 | A·fixed·point·value·can·be·multiplied·or·divided·by·an·integer·with·the |
14 | normal·\f[CR]*\f[R]·and·\f[CR]/\f[R]·operators. | 13 | normal·\f[CR]*\f[R]·and·\f[CR]/\f[R]·operators. |
15 | To·multiply·two·fixed·point·values,·though,·you·must·use·this·function. | 14 | To·multiply·two·fixed·point·values,·though,·you·must·use·this·function. |
16 | .PP | 15 | .PP |
17 | If·an·overflow·occurs,·Allegro\[cq]s·errno·will·be·set·and·the·maximum | 16 | If·an·overflow·occurs,·Allegro\[cq]s·errno·will·be·set·and·the·maximum |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixsin"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixsin"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixsin·\-·Allegro·5·API | 5 | al_fixsin·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixsin(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·finds·the·sine·of·a·value·using·a·lookup·table. | 12 | This·function·finds·the·sine·of·a·value·using·a·lookup·table. |
14 | The·input·value·must·be·a·fixed·point·binary·angle. | 13 | The·input·value·must·be·a·fixed·point·binary·angle. |
15 | .PP | 14 | .PP |
16 | Example: | 15 | Example: |
17 | .IP | 16 | .IP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixsub"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixsub"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixsub·\-·Allegro·5·API | 5 | al_fixsub·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixsub(al_fixed·x,·al_fixed·y); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Although·fixed·point·numbers·can·be·subtracted·with·the·normal | 12 | Although·fixed·point·numbers·can·be·subtracted·with·the·normal |
14 | \f[CR]\-\f[R]·integer·operator,·that·doesn\[cq]t·provide·any·protection | 13 | \f[CR]\-\f[R]·integer·operator,·that·doesn\[cq]t·provide·any·protection |
15 | against·overflow. | 14 | against·overflow. |
16 | If·overflow·is·a·problem,·you·should·use·this·function·instead. | 15 | If·overflow·is·a·problem,·you·should·use·this·function·instead. |
17 | It·is·slower·than·using·integer·operators,·but·if·an·overflow·occurs·it | 16 | It·is·slower·than·using·integer·operators,·but·if·an·overflow·occurs·it |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixtan"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixtan"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixtan·\-·Allegro·5·API | 5 | al_fixtan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_fixtan(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·finds·the·tangent·of·a·value·using·a·lookup·table. | 12 | This·function·finds·the·tangent·of·a·value·using·a·lookup·table. |
14 | The·input·value·must·be·a·fixed·point·binary·angle. | 13 | The·input·value·must·be·a·fixed·point·binary·angle. |
15 | .PP | 14 | .PP |
16 | Example: | 15 | Example: |
17 | .IP | 16 | .IP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_fixtof"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_fixtof"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_fixtof·\-·Allegro·5·API | 5 | al_fixtof·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | double·al_fixtof(al_fixed·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Converts·fixed·point·to·floating·point. | 12 | Converts·fixed·point·to·floating·point. |
14 | .PP | 13 | .PP |
15 | Example: | 14 | Example: |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_free"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_free"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_free·\-·Allegro·5·API | 5 | al_free·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_free(p)·\[rs] | ||
11 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 12 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 13 | overridden. |
16 | .PP | 14 | .PP |
17 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be | 15 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be |
18 | freed·from·the·same·DLL. | 16 | freed·from·the·same·DLL. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_ftofix"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_ftofix"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_ftofix·\-·Allegro·5·API | 5 | al_ftofix·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | al_fixed·al_ftofix(double·x); | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Converts·a·floating·point·value·to·fixed·point. | 12 | Converts·a·floating·point·value·to·fixed·point. |
14 | Unlike·al_itofix(3alleg5),·this·function·clamps·values·which·could | 13 | Unlike·al_itofix(3alleg5),·this·function·clamps·values·which·could |
15 | overflow·the·type·conversion,·setting·Allegro\[cq]s·errno·to·ERANGE·in | 14 | overflow·the·type·conversion,·setting·Allegro\[cq]s·errno·to·ERANGE·in |
16 | the·process·if·this·happens. | 15 | the·process·if·this·happens. |
17 | .PP | 16 | .PP |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_acodec_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_acodec_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_acodec_version·\-·Allegro·5·API | 5 | al_get_allegro_acodec_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_acodec.h> | 9 | #include·<allegro5/allegro_acodec.h> |
10 | uint32_t·al_get_allegro_acodec_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_audio_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_audio_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_audio_version·\-·Allegro·5·API | 5 | al_get_allegro_audio_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | uint32_t·al_get_allegro_audio_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_color_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_color_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_color_version·\-·Allegro·5·API | 5 | al_get_allegro_color_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_color.h> | 9 | #include·<allegro5/allegro_color.h> |
10 | uint32_t·al_get_allegro_color_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_font_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_font_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_font_version·\-·Allegro·5·API | 5 | al_get_allegro_font_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | uint32_t·al_get_allegro_font_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_image_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_image_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_image_version·\-·Allegro·5·API | 5 | al_get_allegro_image_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | uint32_t·al_get_allegro_image_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_memfile_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_memfile_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_memfile_version·\-·Allegro·5·API | 5 | al_get_allegro_memfile_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_memfile.h> | 9 | #include·<allegro5/allegro_memfile.h> |
10 | uint32_t·al_get_allegro_memfile_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_native_dialog_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_native_dialog_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_native_dialog_version·\-·Allegro·5·API | 5 | al_get_allegro_native_dialog_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | uint32_t·al_get_allegro_native_dialog_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_physfs_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_physfs_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_physfs_version·\-·Allegro·5·API | 5 | al_get_allegro_physfs_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_physfs.h> | 9 | #include·<allegro5/allegro_physfs.h> |
10 | uint32_t·al_get_allegro_physfs_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_primitives_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_primitives_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_primitives_version·\-·Allegro·5·API | 5 | al_get_allegro_primitives_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | uint32_t·al_get_allegro_primitives_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_allegro_ttf_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_ttf_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_ttf_version·\-·Allegro·5·API | 5 | al_get_allegro_ttf_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | uint32_t·al_get_allegro_ttf_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_allegro_video_version"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_allegro_video_version"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_allegro_video_version·\-·Allegro·5·API | 5 | al_get_allegro_video_version·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | uint32_t·al_get_allegro_video_version(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
14 | al_get_allegro_version(3alleg5). | 13 | al_get_allegro_version(3alleg5). |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.12 | 15 | 5.1.12 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_depth_size"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_depth_size"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_depth_size·\-·Allegro·5·API | 5 | al_get_audio_depth_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. | 12 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. |
14 | The·format·is·one·of·the·values·listed·under | 13 | The·format·is·one·of·the·values·listed·under |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_device_name"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_device_name"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_device_name·\-·Allegro·5·API | 5 | al_get_audio_device_name·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·user·friendly·display·name·of·the·device. | 12 | Get·the·user·friendly·display·name·of·the·device. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.8 | 14 | 5.2.8 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_output_device"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_output_device"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_output_device·\-·Allegro·5·API | 5 | al_get_audio_output_device·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·output·audio·device·of·the·specified·index. | 12 | Get·the·output·audio·device·of·the·specified·index. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.8 | 14 | 5.2.8 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_recorder_event"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_recorder_event"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_recorder_event·\-·Allegro·5·API | 5 | al_get_audio_recorder_event·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). | 12 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.1 | 14 | 5.1.1 |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_recorder_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_recorder_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_recorder_event_source·\-·Allegro·5·API | 5 | al_get_audio_recorder_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·event·source·for·the·recorder·that·generates·the·various | 12 | Returns·the·event·source·for·the·recorder·that·generates·the·various |
14 | recording·events. | 13 | recording·events. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.1 | 15 | 5.1.1 |
17 | .RS | 16 | .RS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_attached·\-·Allegro·5·API | 5 | al_get_audio_stream_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·whether·the·stream·is·attached·to·something. | 12 | Return·whether·the·stream·is·attached·to·something. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_audio_stream_to_mixer(3alleg5), | 14 | al_attach_audio_stream_to_mixer(3alleg5), |
16 | al_attach_audio_stream_to_voice(3alleg5), | 15 | al_attach_audio_stream_to_voice(3alleg5), |
17 | al_detach_audio_stream(3alleg5). | 16 | al_detach_audio_stream(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_channels·\-·Allegro·5·API | 5 | al_get_audio_stream_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( | ||
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Return·the·stream·channel·configuration. | 12 | Return·the·stream·channel·configuration. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | ALLEGRO_CHANNEL_CONF(3alleg5). | 14 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_depth·\-·Allegro·5·API | 5 | al_get_audio_stream_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( | ||
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Return·the·stream·audio·depth. | 12 | Return·the·stream·audio·depth. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_event_source·\-·Allegro·5·API | 5 | al_get_audio_stream_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( | ||
11 | ···ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Retrieve·the·associated·event·source. | 12 | Retrieve·the·associated·event·source. |
15 | .PP | 13 | .PP |
16 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the | 14 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the |
17 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams | 15 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams |
18 | emit. | 16 | emit. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_fragment"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_fragment"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_fragment·\-·Allegro·5·API | 5 | al_get_audio_stream_fragment·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to | 12 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to |
14 | continuously·provide·new·sample·data·to·a·stream. | 13 | continuously·provide·new·sample·data·to·a·stream. |
15 | .PP | 14 | .PP |
16 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the | 15 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the |
17 | address·of·an·internal·buffer·to·be·filled·with·audio·data. | 16 | address·of·an·internal·buffer·to·be·filled·with·audio·data. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_fragments"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_fragments"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_fragments·\-·Allegro·5·API | 5 | al_get_audio_stream_fragments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·number·of·fragments·this·stream·uses. | 12 | Returns·the·number·of·fragments·this·stream·uses. |
14 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when | 13 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when |
15 | a·new·stream·is·created. | 14 | a·new·stream·is·created. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_available_audio_stream_fragments(3alleg5) | 16 | al_get_available_audio_stream_fragments(3alleg5) |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_get_audio_stream_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_frequency·\-·Allegro·5·API | 5 | al_get_audio_stream_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·stream·frequency·(in·Hz). | 12 | Return·the·stream·frequency·(in·Hz). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_gain·\-·Allegro·5·API | 5 | al_get_audio_stream_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·playback·gain·of·the·stream. | 12 | Return·the·playback·gain·of·the·stream. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_audio_stream_gain(3alleg5). | 14 | al_set_audio_stream_gain(3alleg5). |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_get_audio_stream_length"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_length"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_length·\-·Allegro·5·API | 5 | al_get_audio_stream_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·stream·length·in·samples. | 12 | Return·the·stream·length·in·samples. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_length_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_length_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_length_secs·\-·Allegro·5·API | 5 | al_get_audio_stream_length_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·stream·in·seconds,·if·known. | 12 | Return·the·length·of·the·stream·in·seconds,·if·known. |
14 | Otherwise·returns·zero. | 13 | Otherwise·returns·zero. |
15 | .PP | 14 | .PP |
16 | Currently·this·can·only·be·called·on·streams·created·with | 15 | Currently·this·can·only·be·called·on·streams·created·with |
17 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_pan·\-·Allegro·5·API | 5 | al_get_audio_stream_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·pan·value·of·the·stream. | 12 | Get·the·pan·value·of·the·stream. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_audio_stream_pan(3alleg5). | 14 | al_set_audio_stream_pan(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_audio_stream_played_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_played_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_played_samples·\-·Allegro·5·API | 5 | al_get_audio_stream_played_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream | 12 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream |
14 | was·started. | 13 | was·started. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_playing·\-·Allegro·5·API | 5 | al_get_audio_stream_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·true·if·the·stream·is·playing. | 12 | Return·true·if·the·stream·is·playing. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_audio_stream_playing(3alleg5). | 14 | al_set_audio_stream_playing(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_playmode·\-·Allegro·5·API | 5 | al_get_audio_stream_playmode·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( | ||
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Return·the·playback·mode·of·the·stream. | 12 | Return·the·playback·mode·of·the·stream. |
15 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
16 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). | 14 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_audio_stream_position_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_position_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_position_secs·\-·Allegro·5·API | 5 | al_get_audio_stream_position_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·position·of·the·stream·in·seconds. | 12 | Return·the·position·of·the·stream·in·seconds. |
14 | Currently·this·can·only·be·called·on·streams·created·with | 13 | Currently·this·can·only·be·called·on·streams·created·with |
15 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 14 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
16 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 15 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_audio_stream_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_audio_stream_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_audio_stream_speed·\-·Allegro·5·API | 5 | al_get_audio_stream_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·relative·playback·speed·of·the·stream. | 12 | Return·the·relative·playback·speed·of·the·stream. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_audio_stream_speed(3alleg5). | 14 | al_set_audio_stream_speed(3alleg5). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_available_audio_stream_fragments"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_available_audio_stream_fragments"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_available_audio_stream_fragments·\-·Allegro·5·API | 5 | al_get_available_audio_stream_fragments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_available_audio_stream_fragments( | ||
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, | 12 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, |
15 | fragments·which·are·not·currently·filled·with·data·for·playback. | 13 | fragments·which·are·not·currently·filled·with·data·for·playback. |
16 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
17 | al_get_audio_stream_fragment(3alleg5), | 15 | al_get_audio_stream_fragment(3alleg5), |
18 | al_get_audio_stream_fragments(3alleg5) | 16 | al_get_audio_stream_fragments(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_blend_color"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_blend_color"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_blend_color·\-·Allegro·5·API | 5 | al_get_blend_color·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_get_blend_color(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·color·currently·used·for·constant·color·blending·(white·by | 12 | Returns·the·color·currently·used·for·constant·color·blending·(white·by |
14 | default). | 13 | default). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_blend_color(3alleg5),·al_set_blender(3alleg5) | 15 | al_set_blend_color(3alleg5),·al_set_blender(3alleg5) |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_blender·\-·Allegro·5·API | 5 | al_get_blender·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_get_blender(int·*op,·int·*src,·int·*dst) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·active·blender·for·the·current·thread. | 12 | Returns·the·active·blender·for·the·current·thread. |
14 | You·can·pass·NULL·for·values·you·are·not·interested·in. | 13 | You·can·pass·NULL·for·values·you·are·not·interested·in. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_blender(3alleg5),·al_get_separate_blender(3alleg5) | 15 | al_set_blender(3alleg5),·al_get_separate_blender(3alleg5) |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_get_channel_count"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_channel_count"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_channel_count·\-·Allegro·5·API | 5 | al_get_channel_count·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·number·of·channels·for·the·given·channel·configuration,·which | 12 | Return·the·number·of·channels·for·the·given·channel·configuration,·which |
14 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). | 13 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_current_display"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_current_display"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_current_display·\-·Allegro·5·API | 5 | al_get_current_display·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_DISPLAY·*al_get_current_display(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·display·that·is·\[lq]current\[rq]·for·the·calling·thread,·or | 12 | Return·the·display·that·is·\[lq]current\[rq]·for·the·calling·thread,·or |
14 | NULL·if·there·is·none. | 13 | NULL·if·there·is·none. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_target_bitmap(3alleg5) | 15 | al_set_target_bitmap(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_default_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_default_menu_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_default_menu_event_source·\-·Allegro·5·API | 5 | al_get_default_menu_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·default·event·source·used·for·menu·clicks. | 12 | Returns·the·default·event·source·used·for·menu·clicks. |
14 | If·a·menu·was·not·given·its·own·event·source·via | 13 | If·a·menu·was·not·given·its·own·event·source·via |
15 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default | 14 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default |
16 | source. | 15 | source. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_default_mixer·\-·Allegro·5·API | 5 | al_get_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER·*al_get_default_mixer(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. | 12 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. |
14 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in | 13 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in |
15 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. | 14 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. |
16 | The·default·mixer·is·used·by·al_play_sample(3alleg5). | 15 | The·default·mixer·is·used·by·al_play_sample(3alleg5). |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_default_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_default_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_default_voice·\-·Allegro·5·API | 5 | al_get_default_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_VOICE·*al_get_default_voice(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·default·voice·or·NULL·if·there·is·none. | 12 | Returns·the·default·voice·or·NULL·if·there·is·none. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.13 | 14 | 5.1.13 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_default_mixer(3alleg5) | 16 | al_get_default_mixer(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_display_menu·\-·Allegro·5·API | 5 | al_get_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or | 12 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or |
14 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. | 13 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_fallback_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_fallback_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_fallback_font·\-·Allegro·5·API | 5 | al_get_fallback_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 12 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.12 | 14 | 5.1.12 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_fallback_font(3alleg5) | 16 | al_set_fallback_font(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_font_ascent"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_font_ascent"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_font_ascent·\-·Allegro·5·API | 5 | al_get_font_ascent·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·ascent·of·the·specified·font. | 12 | Returns·the·ascent·of·the·specified·font. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) | 14 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_font_descent"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_font_descent"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_font_descent·\-·Allegro·5·API | 5 | al_get_font_descent·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·descent·of·the·specified·font. | 12 | Returns·the·descent·of·the·specified·font. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) | 14 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_font_line_height"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_font_line_height"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_font_line_height·\-·Allegro·5·API | 5 | al_get_font_line_height·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. | 12 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. |
14 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. | 13 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. |
15 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. | 14 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. |
16 | In·particular,·some·special·glyphs·may·be·higher·than·the·height | 15 | In·particular,·some·special·glyphs·may·be·higher·than·the·height |
17 | returned·here. | 16 | returned·here. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_font_ranges"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_font_ranges"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_font_ranges·\-·Allegro·5·API | 5 | al_get_font_ranges·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of | 12 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of |
14 | ranges. | 13 | ranges. |
15 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). | 14 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). |
16 | .PP | 15 | .PP |
17 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be | 16 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_fs_interface·\-·Allegro·5·API | 5 | al_get_fs_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | const·ALLEGRO_FS_INTERFACE·*al_get_fs_interface(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·in·effect | 12 | Return·a·pointer·to·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·in·effect |
14 | for·the·calling·thread. | 13 | for·the·calling·thread. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_store_state(3alleg5),·al_restore_state(3alleg5). | 15 | al_store_state(3alleg5),·al_restore_state(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_glyph"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_glyph"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_glyph·\-·Allegro·5·API | 5 | al_get_glyph·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to | 12 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to |
14 | draw·it·yourself. | 13 | draw·it·yourself. |
15 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to | 14 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to |
16 | draw·and·is·used·for·kerning. | 15 | draw·and·is·used·for·kerning. |
17 | codepoint·is·the·character·you·want·to·get·info·about. | 16 | codepoint·is·the·character·you·want·to·get·info·about. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_glyph_advance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_glyph_advance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_glyph_advance·\-·Allegro·5·API | 5 | al_get_glyph_advance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for | 12 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for |
14 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 | 13 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 |
15 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the | 14 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the |
16 | next·to·be·drawn. | 15 | next·to·be·drawn. |
17 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph | 16 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_glyph_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_glyph_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_glyph_dimensions·\-·Allegro·5·API | 5 | al_get_glyph_dimensions·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, | ||
11 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Sometimes,·the·al_get_glyph_width(3alleg5)·or | 12 | Sometimes,·the·al_get_glyph_width(3alleg5)·or |
15 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph | 13 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph |
16 | placement,·so·this·function·returns·some·additional·information, | 14 | placement,·so·this·function·returns·some·additional·information, |
17 | particularly·if·you·want·to·draw·the·font·vertically. | 15 | particularly·if·you·want·to·draw·the·font·vertically. |
18 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_glyph_width"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_glyph_width"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_glyph_width·\-·Allegro·5·API | 5 | al_get_glyph_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds | 12 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds |
14 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. | 13 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. |
15 | Returns·zero·if·the·font·does·not·have·such·a·glyph. | 14 | Returns·zero·if·the·font·does·not·have·such·a·glyph. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.12 | 16 | 5.1.12 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_index_buffer_size"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_index_buffer_size"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_index_buffer_size·\-·Allegro·5·API | 5 | al_get_index_buffer_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·size·of·the·index·buffer | 12 | Returns·the·size·of·the·index·buffer |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.8 | 14 | 5.1.8 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_INDEX_BUFFER(3alleg5) | 16 | ALLEGRO_INDEX_BUFFER(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_menu_item_caption"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_menu_item_caption"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_menu_item_caption·\-·Allegro·5·API | 5 | al_get_menu_item_caption·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·caption·associated·with·the·menu·item. | 12 | Returns·the·caption·associated·with·the·menu·item. |
14 | It·is·valid·as·long·as·the·caption·is·not·modified. | 13 | It·is·valid·as·long·as·the·caption·is·not·modified. |
15 | .PP | 14 | .PP |
16 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. | 15 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_menu_item_flags·\-·Allegro·5·API | 5 | al_get_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·currently·set·flags. | 12 | Returns·the·currently·set·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 13 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 14 | flags. |
16 | .PP | 15 | .PP |
17 | Returns·\-1·if·the·item·was·not·found. | 16 | Returns·\-1·if·the·item·was·not·found. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_menu_item_icon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_menu_item_icon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_menu_item_icon·\-·Allegro·5·API | 5 | al_get_menu_item_icon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·icon·associated·with·the·menu. | 12 | Returns·the·icon·associated·with·the·menu. |
14 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call | 13 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call |
15 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. | 14 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. |
16 | .PP | 15 | .PP |
17 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. | 16 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_mixer_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_attached·\-·Allegro·5·API | 5 | al_get_mixer_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·true·if·the·mixer·is·attached·to·something. | 12 | Return·true·if·the·mixer·is·attached·to·something. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_mixer_has_attachments(3alleg5), | 14 | al_mixer_has_attachments(3alleg5), |
16 | al_attach_sample_instance_to_mixer(3alleg5), | 15 | al_attach_sample_instance_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_mixer(3alleg5), | 16 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_mixer_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_channels·\-·Allegro·5·API | 5 | al_get_mixer_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·mixer·channel·configuration. | 12 | Return·the·mixer·channel·configuration. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5). | 14 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_mixer_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_depth·\-·Allegro·5·API | 5 | al_get_mixer_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·mixer·audio·depth. | 12 | Return·the·mixer·audio·depth. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_mixer_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_frequency·\-·Allegro·5·API | 5 | al_get_mixer_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·mixer·frequency·(in·Hz). | 12 | Return·the·mixer·frequency·(in·Hz). |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_mixer_frequency(3alleg5) | 14 | al_set_mixer_frequency(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_mixer_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_gain·\-·Allegro·5·API | 5 | al_get_mixer_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·mixer·gain·(amplification·factor). | 12 | Return·the·mixer·gain·(amplification·factor). |
14 | The·default·is·1.0. | 13 | The·default·is·1.0. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.0.6,·5.1.0 | 15 | 5.0.6,·5.1.0 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_mixer_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_playing·\-·Allegro·5·API | 5 | al_get_mixer_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·true·if·the·mixer·is·playing. | 12 | Return·true·if·the·mixer·is·playing. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_mixer_playing(3alleg5). | 14 | al_set_mixer_playing(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_mixer_quality"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_mixer_quality"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_mixer_quality·\-·Allegro·5·API | 5 | al_get_mixer_quality·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·mixer·quality. | 12 | Return·the·mixer·quality. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) | 14 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_get_native_file_dialog_count"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_native_file_dialog_count"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_native_file_dialog_count·\-·Allegro·5·API | 5 | al_get_native_file_dialog_count·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 12 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_native_file_dialog_path"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_native_file_dialog_path"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_native_file_dialog_path·\-·Allegro·5·API | 5 | al_get_native_file_dialog_path·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | const·char·*al_get_native_file_dialog_path( | ||
11 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. | 12 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. |
15 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of | 13 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of |
16 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. | 14 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. |
17 | .RS | 15 | .RS |
18 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_native_text_log_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_native_text_log_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_native_text_log_event_source·\-·Allegro·5·API | 5 | al_get_native_text_log_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( | ||
11 | ···ALLEGRO_TEXTLOG·*textlog) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Get·an·event·source·for·a·text·log·window. | 12 | Get·an·event·source·for·a·text·log·window. |
15 | The·possible·events·are: | 13 | The·possible·events·are: |
16 | .TP | 14 | .TP |
17 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE | 15 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE |
18 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close | 16 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_new_bitmap_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_bitmap_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_bitmap_depth·\-·Allegro·5·API | 5 | al_get_new_bitmap_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_bitmap_depth(void) | ||
11 | GETTER(new_bitmap_depth,·0) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Returns·the·value·currently·set·with·al_set_new_bitmap_depth(3alleg5)·on | 12 | Returns·the·value·currently·set·with·al_set_new_bitmap_depth(3alleg5)·on |
15 | the·current·thread·or·0·if·none·was·set. | 13 | the·current·thread·or·0·if·none·was·set. |
16 | .SH·SINCE | 14 | .SH·SINCE |
17 | 5.2.1 | 15 | 5.2.1 |
18 | .RS | 16 | .RS |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_new_bitmap_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_bitmap_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_bitmap_flags·\-·Allegro·5·API | 5 | al_get_new_bitmap_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_bitmap_flags(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·flags·used·for·newly·created·bitmaps. | 12 | Returns·the·flags·used·for·newly·created·bitmaps. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_new_bitmap_flags(3alleg5) | 14 | al_set_new_bitmap_flags(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_new_bitmap_format"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_bitmap_format"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_bitmap_format·\-·Allegro·5·API | 5 | al_get_new_bitmap_format·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_bitmap_format(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·format·used·for·newly·created·bitmaps. | 12 | Returns·the·format·used·for·newly·created·bitmaps. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_set_new_bitmap_format(3alleg5) | 14 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_set_new_bitmap_format(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_new_bitmap_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_bitmap_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_bitmap_samples·\-·Allegro·5·API | 5 | al_get_new_bitmap_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_bitmap_samples(void) | ||
11 | GETTER(new_bitmap_samples,·0) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Returns·the·value·currently·set·with·al_set_new_bitmap_samples(3alleg5) | 12 | Returns·the·value·currently·set·with·al_set_new_bitmap_samples(3alleg5) |
15 | on·the·current·thread·or·0·if·none·was·set. | 13 | on·the·current·thread·or·0·if·none·was·set. |
16 | .SH·SINCE | 14 | .SH·SINCE |
17 | 5.2.1 | 15 | 5.2.1 |
18 | .RS | 16 | .RS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_new_display_adapter"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_display_adapter"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_display_adapter·\-·Allegro·5·API | 5 | al_get_new_display_adapter·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_display_adapter(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the | 12 | Gets·the·video·adapter·index·where·new·displays·will·be·created·by·the |
14 | calling·thread,·if·previously·set·with | 13 | calling·thread,·if·previously·set·with |
15 | al_set_new_display_adapter(3alleg5). | 14 | al_set_new_display_adapter(3alleg5). |
16 | Otherwise·returns·\f[CR]ALLEGRO_DEFAULT_DISPLAY_ADAPTER\f[R]. | 15 | Otherwise·returns·\f[CR]ALLEGRO_DEFAULT_DISPLAY_ADAPTER\f[R]. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_new_display_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_display_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_display_flags·\-·Allegro·5·API | 5 | al_get_new_display_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_display_flags(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the | 12 | Get·the·display·flags·to·be·used·when·creating·new·displays·on·the |
14 | calling·thread. | 13 | calling·thread. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_new_display_flags(3alleg5),·al_set_display_flag(3alleg5) | 15 | al_set_new_display_flags(3alleg5),·al_set_display_flag(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_new_display_refresh_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_display_refresh_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_display_refresh_rate·\-·Allegro·5·API | 5 | al_get_new_display_refresh_rate·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_new_display_refresh_rate(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on | 12 | Get·the·requested·refresh·rate·to·be·used·when·creating·new·displays·on |
14 | the·calling·thread. | 13 | the·calling·thread. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_new_display_refresh_rate(3alleg5) | 15 | al_set_new_display_refresh_rate(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_new_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_file_interface·\-·Allegro·5·API | 5 | al_get_new_file_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | const·ALLEGRO_FILE_INTERFACE·*al_get_new_file_interface(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·a·pointer·to·the·ALLEGRO_FILE_INTERFACE(3alleg5)·table·in·effect | 12 | Return·a·pointer·to·the·ALLEGRO_FILE_INTERFACE(3alleg5)·table·in·effect |
14 | for·the·calling·thread. | 13 | for·the·calling·thread. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_store_state(3alleg5),·al_restore_state(3alleg5). | 15 | al_store_state(3alleg5),·al_restore_state(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_new_window_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_window_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_window_position·\-·Allegro·5·API | 5 | al_get_new_window_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_get_new_window_position(int·*x,·int·*y) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·position·where·new·non\-fullscreen·displays·created·by·the | 12 | Get·the·position·where·new·non\-fullscreen·displays·created·by·the |
14 | calling·thread·will·be·placed. | 13 | calling·thread·will·be·placed. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_new_window_position(3alleg5) | 15 | al_set_new_window_position(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_new_window_title"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_new_window_title"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_new_window_title·\-·Allegro·5·API | 5 | al_get_new_window_title·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | const·char·*al_get_new_window_title(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·title·that·will·be·used·when·a·new·display·is·created. | 12 | Returns·the·title·that·will·be·used·when·a·new·display·is·created. |
14 | This·returns·the·value·that·al_set_window_title(3alleg5)·was·called | 13 | This·returns·the·value·that·al_set_window_title(3alleg5)·was·called |
15 | with. | 14 | with. |
16 | If·that·function·wasn\[cq]t·called·yet,·the·value·of | 15 | If·that·function·wasn\[cq]t·called·yet,·the·value·of |
17 | al_get_app_name(3alleg5)·is·returned·as·a·default. | 16 | al_get_app_name(3alleg5)·is·returned·as·a·default. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_num_audio_output_devices"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_num_audio_output_devices"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_num_audio_output_devices·\-·Allegro·5·API | 5 | al_get_num_audio_output_devices·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | int·al_get_num_audio_output_devices() | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·number·of·available·audio·output·devices·on·the·system. | 12 | Get·the·number·of·available·audio·output·devices·on·the·system. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.8 | 14 | 5.2.8 |
16 | .PP | 15 | .PP |
17 | return·\-1·for·unsupported·drivers. | 16 | return·\-1·for·unsupported·drivers. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_pixel_block_height"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_pixel_block_height"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_pixel_block_height·\-·Allegro·5·API | 5 | al_get_pixel_block_height·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_pixel_block_height(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·height·of·the·the·pixel·block·for·this·format. | 12 | Return·the·height·of·the·the·pixel·block·for·this·format. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.9. | 14 | 5.1.9. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_block_size(3alleg5), | 16 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_block_size(3alleg5), |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_pixel_block_size"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_pixel_block_size"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_pixel_block_size·\-·Allegro·5·API | 5 | al_get_pixel_block_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_pixel_block_size(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·number·of·bytes·that·a·block·of·pixels·with·this·format | 12 | Return·the·number·of·bytes·that·a·block·of·pixels·with·this·format |
14 | occupies. | 13 | occupies. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.9. | 15 | 5.1.9. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_pixel_block_width"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_pixel_block_width"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_pixel_block_width·\-·Allegro·5·API | 5 | al_get_pixel_block_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_pixel_block_width(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·width·of·the·the·pixel·block·for·this·format. | 12 | Return·the·width·of·the·the·pixel·block·for·this·format. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.9. | 14 | 5.1.9. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_block_size(3alleg5), | 16 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_block_size(3alleg5), |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_pixel_format_bits"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_pixel_format_bits"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_pixel_format_bits·\-·Allegro·5·API | 5 | al_get_pixel_format_bits·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_pixel_format_bits(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·number·of·bits·that·a·pixel·of·the·given·format·occupies. | 12 | Return·the·number·of·bits·that·a·pixel·of·the·given·format·occupies. |
14 | For·blocked·pixel·formats·(e.g.\·compressed·formats),·this·returns·0. | 13 | For·blocked·pixel·formats·(e.g.\·compressed·formats),·this·returns·0. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_size(3alleg5) | 15 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_size(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_pixel_size"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_pixel_size"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_pixel_size·\-·Allegro·5·API | 5 | al_get_pixel_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | int·al_get_pixel_size(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. | 12 | Return·the·number·of·bytes·that·a·pixel·of·the·given·format·occupies. |
14 | For·blocked·pixel·formats·(e.g.\·compressed·formats),·this·returns·0. | 13 | For·blocked·pixel·formats·(e.g.\·compressed·formats),·this·returns·0. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_format_bits(3alleg5) | 15 | ALLEGRO_PIXEL_FORMAT(3alleg5),·al_get_pixel_format_bits(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample·\-·Allegro·5·API | 5 | al_get_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·sample·data·that·the·sample·instance·plays. | 12 | Return·the·sample·data·that·the·sample·instance·plays. |
14 | .PP | 13 | .PP |
15 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the | 14 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the |
16 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to | 15 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to |
17 | al_set_sample(3alleg5). | 16 | al_set_sample(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_sample_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_channels·\-·Allegro·5·API | 5 | al_get_sample_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·channel·configuration·of·the·sample. | 12 | Return·the·channel·configuration·of·the·sample. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), | 14 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 15 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
17 | al_get_sample_data(3alleg5) | 16 | al_get_sample_data(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_data"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_data"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_data·\-·Allegro·5·API | 5 | al_get_sample_data·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·a·pointer·to·the·raw·sample·data. | 12 | Return·a·pointer·to·the·raw·sample·data. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 14 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) | 15 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_sample_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_depth·\-·Allegro·5·API | 5 | al_get_sample_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·sample. | 12 | Return·the·audio·depth·of·the·sample. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 15 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
17 | al_get_sample_data(3alleg5) | 16 | al_get_sample_data(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_frequency·\-·Allegro·5·API | 5 | al_get_sample_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·frequency·(in·Hz)·of·the·sample. | 12 | Return·the·frequency·(in·Hz)·of·the·sample. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 14 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) | 15 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_sample_instance_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_attached"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_attached·\-·Allegro·5·API | 5 | al_get_sample_instance_attached·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·whether·the·sample·instance·is·attached·to·something. | 12 | Return·whether·the·sample·instance·is·attached·to·something. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_sample_instance_to_mixer(3alleg5), | 14 | al_attach_sample_instance_to_mixer(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 15 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_detach_sample_instance(3alleg5) | 16 | al_detach_sample_instance(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_instance_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_channels·\-·Allegro·5·API | 5 | al_get_sample_instance_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( | ||
11 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample | 12 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample |
15 | data. | 13 | data. |
16 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
17 | ALLEGRO_CHANNEL_CONF(3alleg5). | 15 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_depth·\-·Allegro·5·API | 5 | al_get_sample_instance_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. | 12 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_get_sample_instance_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_frequency·\-·Allegro·5·API | 5 | al_get_sample_instance_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. | 12 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_gain·\-·Allegro·5·API | 5 | al_get_sample_instance_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·playback·gain·of·the·sample·instance. | 12 | Return·the·playback·gain·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_sample_instance_gain(3alleg5) | 14 | al_set_sample_instance_gain(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_sample_instance_length"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_length"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_length·\-·Allegro·5·API | 5 | al_get_sample_instance_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·instance·in·sample·values. | 12 | Return·the·length·of·the·sample·instance·in·sample·values. |
14 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample | 13 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample |
15 | data. | 14 | data. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_sample_instance_length(3alleg5), | 16 | al_set_sample_instance_length(3alleg5), |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_pan·\-·Allegro·5·API | 5 | al_get_sample_instance_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·pan·value·of·the·sample·instance. | 12 | Get·the·pan·value·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_sample_instance_pan(3alleg5). | 14 | al_set_sample_instance_pan(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_instance_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_playing·\-·Allegro·5·API | 5 | al_get_sample_instance_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·true·if·the·sample·instance·is·in·the·playing·state. | 12 | Return·true·if·the·sample·instance·is·in·the·playing·state. |
14 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. | 13 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_sample_instance_playing(3alleg5) | 15 | al_set_sample_instance_playing(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_playmode·\-·Allegro·5·API | 5 | al_get_sample_instance_playmode·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·playback·mode·of·the·sample·instance. | 12 | Return·the·playback·mode·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) | 14 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_position·\-·Allegro·5·API | 5 | al_get_sample_instance_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·the·playback·position·of·a·sample·instance. | 12 | Get·the·playback·position·of·a·sample·instance. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_sample_instance_position(3alleg5) | 14 | al_set_sample_instance_position(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_sample_instance_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_speed·\-·Allegro·5·API | 5 | al_get_sample_instance_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·relative·playback·speed·of·the·sample·instance. | 12 | Return·the·relative·playback·speed·of·the·sample·instance. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_sample_instance_speed(3alleg5) | 14 | al_set_sample_instance_speed(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_instance_time"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_instance_time"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_instance_time·\-·Allegro·5·API | 5 | al_get_sample_instance_time·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback | 12 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback |
14 | speed·of·1.0. | 13 | speed·of·1.0. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_sample_instance_length(3alleg5) | 15 | al_get_sample_instance_length(3alleg5) |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_sample_length"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_sample_length"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_sample_length·\-·Allegro·5·API | 5 | al_get_sample_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·length·of·the·sample·in·sample·values. | 12 | Return·the·length·of·the·sample·in·sample·values. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 14 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
16 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) | 15 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_separate_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_separate_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_separate_blender·\-·Allegro·5·API | 5 | al_get_separate_blender·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_get_separate_blender(int·*op,·int·*src,·int·*dst, | ||
11 | ···int·*alpha_op,·int·*alpha_src,·int·*alpha_dst) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Returns·the·active·blender·for·the·current·thread. | 12 | Returns·the·active·blender·for·the·current·thread. |
15 | You·can·pass·NULL·for·values·you·are·not·interested·in. | 13 | You·can·pass·NULL·for·values·you·are·not·interested·in. |
16 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
17 | al_set_separate_blender(3alleg5),·al_get_blender(3alleg5) | 15 | al_set_separate_blender(3alleg5),·al_get_blender(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_target_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_target_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_target_bitmap·\-·Allegro·5·API | 5 | al_get_target_bitmap·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_BITMAP·*al_get_target_bitmap(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·target·bitmap·of·the·calling·thread. | 12 | Return·the·target·bitmap·of·the·calling·thread. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_target_bitmap(3alleg5) | 14 | al_set_target_bitmap(3alleg5) |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_text_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_text_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_text_dimensions·\-·Allegro·5·API | 5 | al_get_text_dimensions·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, | ||
11 | ···char·const·*text, | ||
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Sometimes,·the·al_get_text_width(3alleg5)·and | 12 | Sometimes,·the·al_get_text_width(3alleg5)·and |
16 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text | 13 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text |
17 | placement,·so·this·function·returns·some·additional·information. | 14 | placement,·so·this·function·returns·some·additional·information. |
18 | .PP | 15 | .PP |
19 | Returned·variables·(all·in·pixels): | 16 | Returned·variables·(all·in·pixels): |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_text_width"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_text_width"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_text_width·\-·Allegro·5·API | 5 | al_get_text_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 12 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), | 14 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), |
16 | al_get_text_dimensions(3alleg5) | 15 | al_get_text_dimensions(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_ustr_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_ustr_dimensions"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_ustr_dimensions·\-·Allegro·5·API | 5 | al_get_ustr_dimensions·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, | ||
11 | ···ALLEGRO_USTR·const·*ustr, | ||
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an | 12 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an |
16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 13 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
17 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
18 | al_get_text_dimensions(3alleg5) | 15 | al_get_text_dimensions(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_ustr_width"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_ustr_width"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_ustr_width·\-·Allegro·5·API | 5 | al_get_ustr_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. | 12 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) | 14 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_vertex_buffer_size"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_vertex_buffer_size"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_vertex_buffer_size·\-·Allegro·5·API | 5 | al_get_vertex_buffer_size·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·size·of·the·vertex·buffer | 12 | Returns·the·size·of·the·vertex·buffer |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.8 | 14 | 5.1.8 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_VERTEX_BUFFER(3alleg5) | 16 | ALLEGRO_VERTEX_BUFFER(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_video_audio_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_audio_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_audio_rate·\-·Allegro·5·API | 5 | al_get_video_audio_rate·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·audio·rate·of·the·video,·in·Hz. | 12 | Returns·the·audio·rate·of·the·video,·in·Hz. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.0 | 14 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_video_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_event_source"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_event_source·\-·Allegro·5·API | 5 | al_get_video_event_source·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Get·an·event·source·for·the·video. | 12 | Get·an·event·source·for·the·video. |
14 | The·possible·events·are·described·under | 13 | The·possible·events·are·described·under |
15 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). | 14 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_get_video_fps"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_fps"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_fps·\-·Allegro·5·API | 5 | al_get_video_fps·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·speed·of·the·video·in·frames·per·second. | 12 | Returns·the·speed·of·the·video·in·frames·per·second. |
14 | Often·this·will·not·be·an·integer·value. | 13 | Often·this·will·not·be·an·integer·value. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_video_frame"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_frame"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_frame·\-·Allegro·5·API | 5 | al_get_video_frame·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·current·video·frame. | 12 | Returns·the·current·video·frame. |
14 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. | 13 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. |
15 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. | 14 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. |
16 | .PP | 15 | .PP |
17 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a | 16 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_video_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_position·\-·Allegro·5·API | 5 | al_get_video_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the | 12 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the |
14 | beginning. | 13 | beginning. |
15 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) | 14 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) |
16 | constants. | 15 | constants. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_video_scaled_height"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_scaled_height"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_scaled_height·\-·Allegro·5·API | 5 | al_get_video_scaled_height·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·height·with·which·the·video·frame·should·be·drawn. | 12 | Returns·the·height·with·which·the·video·frame·should·be·drawn. |
14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 13 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
15 | larger·than·the·height·of·the·frame·bitmap. | 14 | larger·than·the·height·of·the·frame·bitmap. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_video_frame(3alleg5) | 16 | al_get_video_frame(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_video_scaled_width"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_video_scaled_width"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_video_scaled_width·\-·Allegro·5·API | 5 | al_get_video_scaled_width·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·the·width·with·which·the·video·frame·should·be·drawn. | 12 | Returns·the·width·with·which·the·video·frame·should·be·drawn. |
14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 13 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
15 | larger·than·the·width·of·the·frame·bitmap. | 14 | larger·than·the·width·of·the·frame·bitmap. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.12 | 16 | 5.1.12 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_voice_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_voice_channels"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_voice_channels·\-·Allegro·5·API | 5 | al_get_voice_channels·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·channel·configuration·of·the·voice. | 12 | Return·the·channel·configuration·of·the·voice. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_CHANNEL_CONF(3alleg5). | 14 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_voice_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_voice_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_voice_depth·\-·Allegro·5·API | 5 | al_get_voice_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·audio·depth·of·the·voice. | 12 | Return·the·audio·depth·of·the·voice. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 14 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 3, 12 lines modified | Offset 3, 10 lines modified | ||
3 | .TH·"al_get_voice_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_voice_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_voice_frequency·\-·Allegro·5·API | 5 | al_get_voice_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_voice_frequency(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. | 12 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_get_voice_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_voice_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_voice_playing·\-·Allegro·5·API | 5 | al_get_voice_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·true·if·the·voice·is·currently·playing. | 12 | Return·true·if·the·voice·is·currently·playing. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_voice_playing(3alleg5) | 14 | al_set_voice_playing(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_get_voice_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_get_voice_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_get_voice_position·\-·Allegro·5·API | 5 | al_get_voice_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a | 12 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a |
14 | sample,·returns·the·voice\[cq]s·current·sample·position. | 13 | sample,·returns·the·voice\[cq]s·current·sample·position. |
15 | Otherwise,·returns·zero. | 14 | Otherwise,·returns·zero. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_voice_position(3alleg5). | 16 | al_set_voice_position(3alleg5). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_grab_font_from_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_grab_font_from_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_grab_font_from_bitmap·\-·Allegro·5·API | 5 | al_grab_font_from_bitmap·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, | ||
11 | ···int·ranges_n,·const·int·ranges[]) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Creates·a·new·font·from·an·Allegro·bitmap. | 12 | Creates·a·new·font·from·an·Allegro·bitmap. |
15 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will | 13 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will |
16 | contain·a·copy·for·itself. | 14 | contain·a·copy·for·itself. |
17 | .PP | 15 | .PP |
18 | Parameters: | 16 | Parameters: |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_identify_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_identify_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_identify_sample·\-·Allegro·5·API | 5 | al_identify_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | char·const·*al_identify_sample(char·const·*filename) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the | 12 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the |
14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 13 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 14 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
16 | \-·only·the·file·contents. | 15 | \-·only·the·file·contents. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_identify_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_identify_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_identify_sample_f·\-·Allegro·5·API | 5 | al_identify_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading | 12 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading |
14 | the·first·few·bytes. | 13 | the·first·few·bytes. |
15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 14 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
16 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can | 15 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can |
17 | read. | 16 | read. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_identify_video"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_identify_video"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_identify_video·\-·Allegro·5·API | 5 | al_identify_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | char·const·*al_identify_video(char·const·*filename) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the | 12 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the |
14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 13 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 14 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
16 | \-·only·the·file·contents. | 15 | \-·only·the·file·contents. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_identify_video_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_identify_video_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_identify_video_f·\-·Allegro·5·API | 5 | al_identify_video_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading | 12 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading |
14 | the·first·few·bytes. | 13 | the·first·few·bytes. |
15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 14 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
16 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can | 15 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can |
17 | read. | 16 | read. |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_inhibit_screensaver"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_inhibit_screensaver"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_inhibit_screensaver·\-·Allegro·5·API | 5 | al_inhibit_screensaver·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | bool·al_inhibit_screensaver(bool·inhibit) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·allows·the·user·to·stop·the·system·screensaver·from | 12 | This·function·allows·the·user·to·stop·the·system·screensaver·from |
14 | starting·up·if·true·is·passed,·or·resets·the·system·back·to·the·default | 13 | starting·up·if·true·is·passed,·or·resets·the·system·back·to·the·default |
15 | state·(the·state·at·program·start)·if·false·is·passed. | 14 | state·(the·state·at·program·start)·if·false·is·passed. |
16 | It·returns·true·if·the·state·was·set·successfully,·otherwise·false. | 15 | It·returns·true·if·the·state·was·set·successfully,·otherwise·false. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init·\-·Allegro·5·API | 5 | al_init·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version | 12 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version |
14 | and·uses·the·atexit·function·visible·in·the·current·binary. | 13 | and·uses·the·atexit·function·visible·in·the·current·binary. |
15 | .RS | 14 | .RS |
16 | .PP | 15 | .PP |
17 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 16 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_acodec_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_acodec_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_acodec_addon·\-·Allegro·5·API | 5 | al_init_acodec_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_acodec.h> | 9 | #include·<allegro5/allegro_acodec.h> |
10 | bool·al_init_acodec_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·registers·all·the·known·audio·file·type·handlers·for | 12 | This·function·registers·all·the·known·audio·file·type·handlers·for |
14 | al_load_sample(3alleg5),·al_save_sample(3alleg5), | 13 | al_load_sample(3alleg5),·al_save_sample(3alleg5), |
15 | al_load_audio_stream(3alleg5),·etc. | 14 | al_load_audio_stream(3alleg5),·etc. |
16 | .PP | 15 | .PP |
17 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 16 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_font_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_font_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_font_addon·\-·Allegro·5·API | 5 | al_init_font_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_init_font_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Initialise·the·font·addon. | 12 | Initialise·the·font·addon. |
14 | .PP | 13 | .PP |
15 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 14 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
16 | initialise·allegro_image·separately·(unless·you·are·using·another | 15 | initialise·allegro_image·separately·(unless·you·are·using·another |
17 | library·to·load·images). | 16 | library·to·load·images). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_image_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_image_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_image_addon·\-·Allegro·5·API | 5 | al_init_image_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | bool·al_init_image_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Initializes·the·image·addon. | 12 | Initializes·the·image·addon. |
14 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), | 13 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), |
15 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), | 14 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), |
16 | al_save_bitmap_f(3alleg5). | 15 | al_save_bitmap_f(3alleg5). |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_native_dialog_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_native_dialog_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_native_dialog_addon·\-·Allegro·5·API | 5 | al_init_native_dialog_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_init_native_dialog_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Initialise·the·native·dialog·addon. | 12 | Initialise·the·native·dialog·addon. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·error. | 14 | Returns·true·on·success,·false·on·error. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.0.9,·5.1.0 | 16 | 5.0.9,·5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_primitives_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_primitives_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_primitives_addon·\-·Allegro·5·API | 5 | al_init_primitives_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_init_primitives_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Initializes·the·primitives·addon. | 12 | Initializes·the·primitives·addon. |
14 | .PP | 13 | .PP |
15 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. | 14 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_shutdown_primitives_addon(3alleg5) | 16 | al_shutdown_primitives_addon(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_init_ttf_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_ttf_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_ttf_addon·\-·Allegro·5·API | 5 | al_init_ttf_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_init_ttf_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Call·this·after·al_init_font_addon(3alleg5)·to·make | 12 | Call·this·after·al_init_font_addon(3alleg5)·to·make |
14 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats | 13 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats |
15 | supported·by·al_load_ttf_font(3alleg5). | 14 | supported·by·al_load_ttf_font(3alleg5). |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_init_video_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_init_video_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_init_video_addon·\-·Allegro·5·API | 5 | al_init_video_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_init_video_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Initializes·the·video·addon. | 12 | Initializes·the·video·addon. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.12 | 14 | 5.1.12 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_insert_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_insert_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_insert_menu_item·\-·Allegro·5·API | 5 | al_insert_menu_item·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_insert_menu_item(ALLEGRO_MENU·*parent,·int·pos,·char·const·*title, | ||
11 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Inserts·a·menu·item·at·the·spot·specified. | 12 | Inserts·a·menu·item·at·the·spot·specified. |
15 | See·the·introductory·text·for·a·detailed·explanation·of·how·the | 13 | See·the·introductory·text·for·a·detailed·explanation·of·how·the |
16 | \f[CR]pos\f[R]·parameter·is·interpreted. | 14 | \f[CR]pos\f[R]·parameter·is·interpreted. |
17 | .PP | 15 | .PP |
18 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. | 16 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_install_audio"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_install_audio"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_install_audio·\-·Allegro·5·API | 5 | al_install_audio·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_install_audio(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Install·the·audio·subsystem. | 12 | Install·the·audio·subsystem. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_is_acodec_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_acodec_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_acodec_addon_initialized·\-·Allegro·5·API | 5 | al_is_acodec_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_acodec.h> | 9 | #include·<allegro5/allegro_acodec.h> |
10 | bool·al_is_acodec_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 12 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
14 | false. | 13 | false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_is_audio_installed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_audio_installed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_audio_installed·\-·Allegro·5·API | 5 | al_is_audio_installed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_is_audio_installed(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and | 12 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and |
14 | returned·successfully. | 13 | returned·successfully. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_is_audio_recorder_recording"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_audio_recorder_recording"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_audio_recorder_recording·\-·Allegro·5·API | 5 | al_is_audio_recorder_recording·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and | 12 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and |
14 | generating·events. | 13 | generating·events. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.1 | 15 | 5.1.1 |
17 | .RS | 16 | .RS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_is_font_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_font_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_font_addon_initialized·\-·Allegro·5·API | 5 | al_is_font_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_is_font_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 12 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.6 | 14 | 5.2.6 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) | 16 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_is_image_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_image_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_image_addon_initialized·\-·Allegro·5·API | 5 | al_is_image_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | bool·al_is_image_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 12 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.6 | 14 | 5.2.6 |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_is_native_dialog_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_native_dialog_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_native_dialog_addon_initialized·\-·Allegro·5·API | 5 | al_is_native_dialog_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_is_native_dialog_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 12 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
14 | returns·false. | 13 | returns·false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_is_primitives_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_primitives_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_primitives_addon_initialized·\-·Allegro·5·API | 5 | al_is_primitives_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_is_primitives_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns | 12 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns |
14 | false. | 13 | false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_is_ttf_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_ttf_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_ttf_addon_initialized·\-·Allegro·5·API | 5 | al_is_ttf_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | bool·al_is_ttf_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. | 12 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.6 | 14 | 5.2.6 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) | 16 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_is_video_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_video_addon_initialized"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_video_addon_initialized·\-·Allegro·5·API | 5 | al_is_video_addon_initialized·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_is_video_addon_initialized(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 12 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.2.6 | 14 | 5.2.6 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_is_video_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_is_video_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_is_video_playing·\-·Allegro·5·API | 5 | al_is_video_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·video·is·currently·playing. | 12 | Returns·true·if·the·video·is·currently·playing. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.12 | 14 | 5.1.12 |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_audio_stream·\-·Allegro·5·API | 5 | al_load_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, | ||
11 | ···size_t·buffer_count,·unsigned·int·samples) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Loads·an·audio·file·from·disk·as·it·is·needed. | 12 | Loads·an·audio·file·from·disk·as·it·is·needed. |
15 | .PP | 13 | .PP |
16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 14 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 15 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
18 | it·is·needed. | 16 | it·is·needed. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_audio_stream_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_audio_stream_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_audio_stream_f·\-·Allegro·5·API | 5 | al_load_audio_stream_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, | ||
11 | ···size_t·buffer_count,·unsigned·int·samples) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. | 12 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. |
15 | .PP | 13 | .PP |
16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 14 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 15 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
18 | it·is·needed. | 16 | it·is·needed. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_bitmap_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_bitmap_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_bitmap_font·\-·Allegro·5·API | 5 | al_load_bitmap_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Load·a·bitmap·font·from·a·file. | 12 | Load·a·bitmap·font·from·a·file. |
14 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then | 13 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then |
15 | al_grab_font_from_bitmap(3alleg5). | 14 | al_grab_font_from_bitmap(3alleg5). |
16 | .PP | 15 | .PP |
17 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to | 16 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_bitmap_font_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_bitmap_font_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_bitmap_font_flags·\-·Allegro·5·API | 5 | al_load_bitmap_font_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags | 12 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags |
14 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: | 13 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: |
15 | .TP | 14 | .TP |
16 | ALLEGRO_NO_PREMULTIPLIED_ALPHA | 15 | ALLEGRO_NO_PREMULTIPLIED_ALPHA |
17 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). | 16 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_font·\-·Allegro·5·API | 5 | al_load_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·a·font·from·disk. | 12 | Loads·a·font·from·disk. |
14 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of | 13 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of |
15 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). | 14 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). |
16 | .PP | 15 | .PP |
17 | The·flags·parameter·is·passed·through·to·either·of·those·functions. | 16 | The·flags·parameter·is·passed·through·to·either·of·those·functions. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_sample·\-·Allegro·5·API | 5 | al_load_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·a·few·different·audio·file·formats·based·on·their·extension. | 12 | Loads·a·few·different·audio·file·formats·based·on·their·extension. |
14 | .PP | 13 | .PP |
15 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be | 14 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be |
16 | time·consuming. | 15 | time·consuming. |
17 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or | 16 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_sample_f·\-·Allegro·5·API | 5 | al_load_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an | 12 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an |
14 | ALLEGRO_SAMPLE(3alleg5). | 13 | ALLEGRO_SAMPLE(3alleg5). |
15 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a | 14 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a |
16 | file·name·extension·including·the·leading·dot. | 15 | file·name·extension·including·the·leading·dot. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_ttf_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_ttf_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_ttf_font·\-·Allegro·5·API | 5 | al_load_ttf_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. | 12 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. |
14 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font | 13 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font |
15 | formats: | 14 | formats: |
16 | .PP | 15 | .PP |
17 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and | 16 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_ttf_font_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_ttf_font_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_ttf_font_f·\-·Allegro·5·API | 5 | al_load_ttf_font_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, | ||
11 | ····char·const·*filename,·int·size,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file | 12 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file |
15 | handle. | 13 | handle. |
16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 14 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
17 | font·file. | 15 | font·file. |
18 | .RS | 16 | .RS |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_ttf_font_stretch"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_ttf_font_stretch"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_ttf_font_stretch·\-·Allegro·5·API | 5 | al_load_ttf_font_stretch·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, | ||
11 | ···int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and | 12 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and |
15 | height·parameters·instead·of·a·single·size·parameter. | 13 | height·parameters·instead·of·a·single·size·parameter. |
16 | .PP | 14 | .PP |
17 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then | 15 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then |
18 | font·will·be·stretched·according·to·those·parameters. | 16 | font·will·be·stretched·according·to·those·parameters. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_load_ttf_font_stretch_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_load_ttf_font_stretch_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_load_ttf_font_stretch_f·\-·Allegro·5·API | 5 | al_load_ttf_font_stretch_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, | ||
11 | ····char·const·*filename,·int·w,·int·h,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the | 12 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the |
15 | file·handle. | 13 | file·handle. |
16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 14 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
17 | font·file. | 15 | font·file. |
18 | .RS | 16 | .RS |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_lock_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_lock_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_lock_index_buffer·\-·Allegro·5·API | 5 | al_lock_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, | ||
11 | ····int·length,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Locks·a·index·buffer·so·you·can·access·its·data. | 12 | Locks·a·index·buffer·so·you·can·access·its·data. |
15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 13 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
16 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. | 14 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_lock_sample_id"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_lock_sample_id"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_lock_sample_id·\-·Allegro·5·API | 5 | al_lock_sample_id·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying | 12 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying |
14 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). | 13 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). |
15 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such | 14 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such |
16 | as·volume,·pan,·etc)·while·the·sound·is·playing. | 15 | as·volume,·pan,·etc)·while·the·sound·is·playing. |
17 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_lock_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_lock_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_lock_vertex_buffer·\-·Allegro·5·API | 5 | al_lock_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, | ||
11 | ···int·length,·int·flags) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Locks·a·vertex·buffer·so·you·can·access·its·data. | 12 | Locks·a·vertex·buffer·so·you·can·access·its·data. |
15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 13 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
16 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. | 14 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_malloc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_malloc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_malloc·\-·Allegro·5·API | 5 | al_malloc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_malloc(n)·\[rs] | ||
11 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 12 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 13 | overridden. |
16 | .PP | 14 | .PP |
17 | This·is·a·macro. | 15 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_map_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_map_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_map_rgb·\-·Allegro·5·API | 5 | al_map_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_map_rgb( | ||
11 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·r,·g,·b·(ranging·from·0\-255)·into·an·ALLEGRO_COLOR(3alleg5), | 12 | Convert·r,·g,·b·(ranging·from·0\-255)·into·an·ALLEGRO_COLOR(3alleg5), |
15 | using·255·for·alpha. | 13 | using·255·for·alpha. |
16 | .PP | 14 | .PP |
17 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_map_rgb_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_map_rgb_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_map_rgb_f·\-·Allegro·5·API | 5 | al_map_rgb_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_map_rgb_f(float·r,·float·g,·float·b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·r,·g,·b,·(ranging·from·0.0f\-1.0f)·into·an | 12 | Convert·r,·g,·b,·(ranging·from·0.0f\-1.0f)·into·an |
14 | ALLEGRO_COLOR(3alleg5),·using·1.0f·for·alpha. | 13 | ALLEGRO_COLOR(3alleg5),·using·1.0f·for·alpha. |
15 | .PP | 14 | .PP |
16 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_map_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_map_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_map_rgba·\-·Allegro·5·API | 5 | al_map_rgba·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_map_rgba( | ||
11 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Convert·r,·g,·b,·a·(ranging·from·0\-255)·into·an·ALLEGRO_COLOR(3alleg5). | 12 | Convert·r,·g,·b,·a·(ranging·from·0\-255)·into·an·ALLEGRO_COLOR(3alleg5). |
15 | .PP | 13 | .PP |
16 | This·function·can·be·called·before·Allegro·is·initialized. | 14 | This·function·can·be·called·before·Allegro·is·initialized. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_map_rgb(3alleg5),·al_premul_rgba(3alleg5),·al_map_rgb_f(3alleg5) | 16 | al_map_rgb(3alleg5),·al_premul_rgba(3alleg5),·al_map_rgb_f(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_map_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_map_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_map_rgba_f·\-·Allegro·5·API | 5 | al_map_rgba_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_map_rgba_f(float·r,·float·g,·float·b,·float·a) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Convert·r,·g,·b,·a·(ranging·from·0.0f\-1.0f)·into·an | 12 | Convert·r,·g,·b,·a·(ranging·from·0.0f\-1.0f)·into·an |
14 | ALLEGRO_COLOR(3alleg5). | 13 | ALLEGRO_COLOR(3alleg5). |
15 | .PP | 14 | .PP |
16 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_mixer_has_attachments"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_mixer_has_attachments"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_mixer_has_attachments·\-·Allegro·5·API | 5 | al_mixer_has_attachments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·mixer·has·something·attached·to·it. | 12 | Returns·true·if·the·mixer·has·something·attached·to·it. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_get_mixer_attached(3alleg5), | 14 | al_get_mixer_attached(3alleg5), |
16 | al_attach_sample_instance_to_mixer(3alleg5), | 15 | al_attach_sample_instance_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_mixer(3alleg5), | 16 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_open_memfile"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_open_memfile"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_open_memfile·\-·Allegro·5·API | 5 | al_open_memfile·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_memfile.h> | 9 | #include·<allegro5/allegro_memfile.h> |
10 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·a·file·handle·to·the·block·of·memory. | 12 | Returns·a·file·handle·to·the·block·of·memory. |
14 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must | 13 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must |
15 | not·be·freed·while·the·file·remains·open. | 14 | not·be·freed·while·the·file·remains·open. |
16 | .PP | 15 | .PP |
17 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and | 16 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_open_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_open_native_text_log"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_open_native_text_log·\-·Allegro·5·API | 5 | al_open_native_text_log·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Opens·a·window·to·which·you·can·append·log·messages·with | 12 | Opens·a·window·to·which·you·can·append·log·messages·with |
14 | al_append_native_text_log(3alleg5). | 13 | al_append_native_text_log(3alleg5). |
15 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a | 14 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a |
16 | console·being·available. | 15 | console·being·available. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_open_video"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_open_video"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_open_video·\-·Allegro·5·API | 5 | al_open_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Reads·a·video·file. | 12 | Reads·a·video·file. |
14 | This·does·not·start·playing·yet·but·reads·the·meta·info·so·you·can·query | 13 | This·does·not·start·playing·yet·but·reads·the·meta·info·so·you·can·query |
15 | e.g.\·the·size·or·audio·rate. | 14 | e.g.\·the·size·or·audio·rate. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_play_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_play_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_play_audio_stream·\-·Allegro·5·API | 5 | al_play_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed. | 12 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed. |
14 | This·API·can·only·play·one·audio·stream·at·a·time. | 13 | This·API·can·only·play·one·audio·stream·at·a·time. |
15 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via | 14 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via |
16 | al_reserve_samples(3alleg5),·but·can·also·be·done·via | 15 | al_reserve_samples(3alleg5),·but·can·also·be·done·via |
17 | al_set_default_mixer(3alleg5). | 16 | al_set_default_mixer(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_play_audio_stream_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_play_audio_stream_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_play_audio_stream_f·\-·Allegro·5·API | 5 | al_play_audio_stream_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, | 12 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, |
14 | streaming·it·is·needed. | 13 | streaming·it·is·needed. |
15 | This·API·can·only·play·one·audio·stream·at·a·time. | 14 | This·API·can·only·play·one·audio·stream·at·a·time. |
16 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via | 15 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via |
17 | al_reserve_samples(3alleg5),·but·can·also·be·done·via | 16 | al_reserve_samples(3alleg5),·but·can·also·be·done·via |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_play_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_play_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_play_sample·\-·Allegro·5·API | 5 | al_play_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | ||
11 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Plays·a·sample·on·one·of·the·sample·instances·created·by | 12 | Plays·a·sample·on·one·of·the·sample·instances·created·by |
15 | al_reserve_samples(3alleg5). | 13 | al_reserve_samples(3alleg5). |
16 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
17 | Playback·may·fail·because·all·the·reserved·sample·instances·are | 15 | Playback·may·fail·because·all·the·reserved·sample·instances·are |
18 | currently·used. | 16 | currently·used. |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_play_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_play_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_play_sample_instance·\-·Allegro·5·API | 5 | al_play_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Play·the·sample·instance. | 12 | Play·the·sample·instance. |
14 | Returns·true·on·success,·false·on·failure. | 13 | Returns·true·on·success,·false·on·failure. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_stop_sample_instance(3alleg5) | 15 | al_stop_sample_instance(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_popup_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_popup_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_popup_menu·\-·Allegro·5·API | 5 | al_popup_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Displays·a·context·menu·next·to·the·mouse·cursor. | 12 | Displays·a·context·menu·next·to·the·mouse·cursor. |
14 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). | 13 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). |
15 | It·generates·events·just·like·a·regular·display·menu·does. | 14 | It·generates·events·just·like·a·regular·display·menu·does. |
16 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection | 15 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection |
17 | being·made. | 16 | being·made. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_premul_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_premul_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_premul_rgba·\-·Allegro·5·API | 5 | al_premul_rgba·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_premul_rgba( | ||
11 | ···unsigned·char·r,·unsigned·char·g,·unsigned·char·b,·unsigned·char·a) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | This·is·a·shortcut·for·al_map_rgba(3alleg5)(r·*·a·/·255,·g·*·a·/·255,·b | 12 | This·is·a·shortcut·for·al_map_rgba(3alleg5)(r·*·a·/·255,·g·*·a·/·255,·b |
15 | *·a·/·255,·a). | 13 | *·a·/·255,·a). |
16 | .PP | 14 | .PP |
17 | By·default·Allegro·uses·pre\-multiplied·alpha·for·transparent·blending | 15 | By·default·Allegro·uses·pre\-multiplied·alpha·for·transparent·blending |
18 | of·bitmaps·and·primitives·(see·al_load_bitmap_flags(3alleg5)·for·a | 16 | of·bitmaps·and·primitives·(see·al_load_bitmap_flags(3alleg5)·for·a |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_premul_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_premul_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_premul_rgba_f·\-·Allegro·5·API | 5 | al_premul_rgba_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | ALLEGRO_COLOR·al_premul_rgba_f(float·r,·float·g,·float·b,·float·a) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·is·a·shortcut·for·al_map_rgba_f(3alleg5)(r·*·a,·g·*·a,·b·*·a,·a). | 12 | This·is·a·shortcut·for·al_map_rgba_f(3alleg5)(r·*·a,·g·*·a,·b·*·a,·a). |
14 | .PP | 13 | .PP |
15 | By·default·Allegro·uses·pre\-multiplied·alpha·for·transparent·blending | 14 | By·default·Allegro·uses·pre\-multiplied·alpha·for·transparent·blending |
16 | of·bitmaps·and·primitives·(see·al_load_bitmap_flags(3alleg5)·for·a | 15 | of·bitmaps·and·primitives·(see·al_load_bitmap_flags(3alleg5)·for·a |
17 | discussion·of·that·feature). | 16 | discussion·of·that·feature). |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_realloc"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_realloc"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_realloc·\-·Allegro·5·API | 5 | al_realloc·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | #define·al_realloc(p,·n)·\[rs] | ||
11 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 12 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
15 | overridden. | 13 | overridden. |
16 | .PP | 14 | .PP |
17 | This·is·a·macro. | 15 | This·is·a·macro. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_audio_stream_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_audio_stream_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_audio_stream_loader·\-·Allegro·5·API | 5 | al_register_audio_stream_loader·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_audio_stream_loader(const·char·*ext, | ||
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, | ||
12 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and | 12 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and |
16 | al_play_audio_stream(3alleg5). | 13 | al_play_audio_stream(3alleg5). |
17 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 14 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
18 | given·extension. | 15 | given·extension. |
19 | .PP | 16 | .PP |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_audio_stream_loader_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_audio_stream_loader_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_audio_stream_loader_f·\-·Allegro·5·API | 5 | al_register_audio_stream_loader_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_audio_stream_loader_f(const·char·*ext, | ||
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, | ||
12 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and | 12 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and |
16 | al_play_audio_stream_f(3alleg5). | 13 | al_play_audio_stream_f(3alleg5). |
17 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 14 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
18 | given·extension. | 15 | given·extension. |
19 | .PP | 16 | .PP |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_font_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_font_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_font_loader·\-·Allegro·5·API | 5 | al_register_font_loader·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | bool·al_register_font_loader(char·const·*extension, | ||
11 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of | 12 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of |
15 | this·format. | 13 | this·format. |
16 | .PP | 14 | .PP |
17 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. | 15 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. |
18 | It·will·be·matched·case\-insensitively. | 16 | It·will·be·matched·case\-insensitively. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_sample_identifier"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_sample_identifier"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_sample_identifier·\-·Allegro·5·API | 5 | al_register_sample_identifier·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_identifier(const·char·*ext, | ||
11 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Register·an·identify·handler·for·al_identify_sample(3alleg5). | 12 | Register·an·identify·handler·for·al_identify_sample(3alleg5). |
15 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. | 13 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. |
16 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) | 14 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) |
17 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte | 15 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte |
18 | of·the·file. | 16 | of·the·file. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_sample_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_sample_loader"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_sample_loader·\-·Allegro·5·API | 5 | al_register_sample_loader·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_loader(const·char·*ext, | ||
11 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_load_sample(3alleg5). | 12 | Register·a·handler·for·al_load_sample(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 13 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
16 | with·the·given·extension. | 14 | with·the·given·extension. |
17 | .PP | 15 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 16 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_sample_loader_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_sample_loader_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_sample_loader_f·\-·Allegro·5·API | 5 | al_register_sample_loader_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_loader_f(const·char·*ext, | ||
11 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_load_sample_f(3alleg5). | 12 | Register·a·handler·for·al_load_sample_f(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 13 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
16 | with·the·given·extension. | 14 | with·the·given·extension. |
17 | .PP | 15 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 16 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_sample_saver"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_sample_saver"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_sample_saver·\-·Allegro·5·API | 5 | al_register_sample_saver·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_saver(const·char·*ext, | ||
11 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_save_sample(3alleg5). | 12 | Register·a·handler·for·al_save_sample(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 13 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
16 | with·the·given·extension. | 14 | with·the·given·extension. |
17 | .PP | 15 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 16 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_register_sample_saver_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_register_sample_saver_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_register_sample_saver_f·\-·Allegro·5·API | 5 | al_register_sample_saver_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_register_sample_saver_f(const·char·*ext, | ||
11 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Register·a·handler·for·al_save_sample_f(3alleg5). | 12 | Register·a·handler·for·al_save_sample_f(3alleg5). |
15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 13 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
16 | with·the·given·extension. | 14 | with·the·given·extension. |
17 | .PP | 15 | .PP |
18 | The·extension·should·include·the·leading·dot·(`.')·character. | 16 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_remove_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_remove_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_remove_display_menu·\-·Allegro·5·API | 5 | al_remove_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Detaches·the·menu·associated·with·the·display·and·returns·it. | 12 | Detaches·the·menu·associated·with·the·display·and·returns·it. |
14 | The·menu·can·then·be·used·on·a·different·display. | 13 | The·menu·can·then·be·used·on·a·different·display. |
15 | .PP | 14 | .PP |
16 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call | 15 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call |
17 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. | 16 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_remove_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_remove_menu_item"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_remove_menu_item·\-·Allegro·5·API | 5 | al_remove_menu_item·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Removes·the·specified·item·from·the·menu·and·destroys·it. | 12 | Removes·the·specified·item·from·the·menu·and·destroys·it. |
14 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. | 13 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. |
15 | Any·references·to·it·are·invalidated. | 14 | Any·references·to·it·are·invalidated. |
16 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy | 15 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy |
17 | with·al_clone_menu(3alleg5). | 16 | with·al_clone_menu(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_reserve_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_reserve_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_reserve_samples·\-·Allegro·5·API | 5 | al_reserve_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_reserve_samples(int·reserve_samples) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 12 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
14 | mixer. | 13 | mixer. |
15 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will | 14 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will |
16 | create·one·and·attach·it·to·the·default·voice. | 15 | create·one·and·attach·it·to·the·default·voice. |
17 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. | 16 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_restore_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_restore_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_restore_default_mixer·\-·Allegro·5·API | 5 | al_restore_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_restore_default_mixer(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default | 12 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default |
14 | voice. | 13 | voice. |
15 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. | 14 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. |
16 | If·the·default·voice·hasn\[cq]t·been·set·via | 15 | If·the·default·voice·hasn\[cq]t·been·set·via |
17 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be | 16 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_rewind_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_rewind_audio_stream"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_rewind_audio_stream·\-·Allegro·5·API | 5 | al_rewind_audio_stream·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·streaming·file·playing·position·to·the·beginning. | 12 | Set·the·streaming·file·playing·position·to·the·beginning. |
14 | Returns·true·on·success. | 13 | Returns·true·on·success. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 14 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 15 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 16 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_save_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_save_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_save_sample·\-·Allegro·5·API | 5 | al_save_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Writes·a·sample·into·a·file. | 12 | Writes·a·sample·into·a·file. |
14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 13 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
15 | \[lq].wav\[rq]. | 14 | \[lq].wav\[rq]. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·error. | 16 | Returns·true·on·success,·false·on·error. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_save_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_save_sample_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_save_sample_f·\-·Allegro·5·API | 5 | al_save_sample_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. | 12 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. |
14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 13 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
15 | \[lq].wav\[rq]. | 14 | \[lq].wav\[rq]. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·error. | 16 | Returns·true·on·success,·false·on·error. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_seek_audio_stream_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_seek_audio_stream_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_seek_audio_stream_secs·\-·Allegro·5·API | 5 | al_seek_audio_stream_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·streaming·file·playing·position·to·time. | 12 | Set·the·streaming·file·playing·position·to·time. |
14 | Returns·true·on·success. | 13 | Returns·true·on·success. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 14 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 15 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 16 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_seek_video"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_seek_video"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_seek_video·\-·Allegro·5·API | 5 | al_seek_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Seek·to·a·different·position·in·the·video. | 12 | Seek·to·a·different·position·in·the·video. |
14 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. | 13 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_fragment"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_fragment"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_fragment·\-·Allegro·5·API | 5 | al_set_audio_stream_fragment·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·needs·to·be·called·for·every·successful·call·of | 12 | This·function·needs·to·be·called·for·every·successful·call·of |
14 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer | 13 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer |
15 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. | 14 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_audio_stream_fragment(3alleg5) | 16 | al_get_audio_stream_fragment(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_gain·\-·Allegro·5·API | 5 | al_set_audio_stream_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·playback·gain·of·the·stream. | 12 | Set·the·playback·gain·of·the·stream. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. | 15 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_set_audio_stream_loop_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_loop_secs"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_loop_secs·\-·Allegro·5·API | 5 | al_set_audio_stream_loop_secs·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, | ||
11 | ···double·start,·double·end) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Sets·the·loop·points·for·the·stream·in·seconds. | 12 | Sets·the·loop·points·for·the·stream·in·seconds. |
15 | Currently·this·can·only·be·called·on·streams·created·with | 13 | Currently·this·can·only·be·called·on·streams·created·with |
16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 14 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 15 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_pan·\-·Allegro·5·API | 5 | al_set_audio_stream_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·pan·value·on·an·audio·stream. | 12 | Set·the·pan·value·on·an·audio·stream. |
14 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; | 13 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; |
15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 14 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
16 | centre·balanced. | 15 | centre·balanced. |
17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 16 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_playing·\-·Allegro·5·API | 5 | al_set_audio_stream_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Change·whether·the·stream·is·playing. | 12 | Change·whether·the·stream·is·playing. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_audio_stream_playing(3alleg5) | 16 | al_get_audio_stream_playing(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_playmode·\-·Allegro·5·API | 5 | al_set_audio_stream_playmode·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, | ||
11 | ···ALLEGRO_PLAYMODE·val) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Set·the·playback·mode·of·the·stream. | 12 | Set·the·playback·mode·of·the·stream. |
15 | .PP | 13 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). | 16 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_audio_stream_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_audio_stream_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_audio_stream_speed·\-·Allegro·5·API | 5 | al_set_audio_stream_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·relative·playback·speed·of·the·stream. | 12 | Set·the·relative·playback·speed·of·the·stream. |
14 | 1.0·means·normal·speed. | 13 | 1.0·means·normal·speed. |
15 | .PP | 14 | .PP |
16 | Return·true·on·success,·false·on·failure. | 15 | Return·true·on·success,·false·on·failure. |
17 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. | 16 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_blend_color"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_blend_color"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_blend_color·\-·Allegro·5·API | 5 | al_set_blend_color·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_blend_color(ALLEGRO_COLOR·color) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·color·to·use·for·blending·when·using·the·ALLEGRO_CONST_COLOR·or | 12 | Sets·the·color·to·use·for·blending·when·using·the·ALLEGRO_CONST_COLOR·or |
14 | ALLEGRO_INVERSE_CONST_COLOR·blend·functions. | 13 | ALLEGRO_INVERSE_CONST_COLOR·blend·functions. |
15 | See·al_set_blender(3alleg5)·for·more·information. | 14 | See·al_set_blender(3alleg5)·for·more·information. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_blender(3alleg5),·al_get_blend_color(3alleg5) | 16 | al_set_blender(3alleg5),·al_get_blend_color(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_blender·\-·Allegro·5·API | 5 | al_set_blender·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_blender(int·op,·int·src,·int·dst) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·function·to·use·for·blending·for·the·current·thread. | 12 | Sets·the·function·to·use·for·blending·for·the·current·thread. |
14 | .PP | 13 | .PP |
15 | Blending·means,·the·source·and·destination·colors·are·combined·in | 14 | Blending·means,·the·source·and·destination·colors·are·combined·in |
16 | drawing·operations. | 15 | drawing·operations. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_default_mixer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_default_mixer·\-·Allegro·5·API | 5 | al_set_default_mixer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·default·mixer. | 12 | Sets·the·default·mixer. |
14 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all | 13 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all |
15 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be | 14 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be |
16 | invalidated. | 15 | invalidated. |
17 | If·you·are·using·your·own·mixer,·this·should·be·called·before | 16 | If·you·are·using·your·own·mixer,·this·should·be·called·before |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_default_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_default_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_default_voice·\-·Allegro·5·API | 5 | al_set_default_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the | 12 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the |
14 | voice·which·should·be·used. | 13 | voice·which·should·be·used. |
15 | Any·previous·voice·will·be·destroyed. | 14 | Any·previous·voice·will·be·destroyed. |
16 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. | 15 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_display_menu"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_display_menu·\-·Allegro·5·API | 5 | al_set_display_menu·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. | 12 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. |
14 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be | 13 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be |
15 | destroyed. | 14 | destroyed. |
16 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu | 15 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu |
17 | with·al_remove_display_menu(3alleg5). | 16 | with·al_remove_display_menu(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_fallback_font"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_fallback_font"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_fallback_font·\-·Allegro·5·API | 5 | al_set_fallback_font·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. | 12 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. |
14 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 13 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
15 | application! | 14 | application! |
16 | Pass·NULL·to·remove·a·fallback·font·again. | 15 | Pass·NULL·to·remove·a·fallback·font·again. |
17 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_set_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_fs_interface·\-·Allegro·5·API | 5 | al_set_fs_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_fs_interface(const·ALLEGRO_FS_INTERFACE·*fs_interface) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·for·the·calling·thread. | 12 | Set·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·for·the·calling·thread. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_standard_fs_interface(3alleg5),·al_store_state(3alleg5), | 14 | al_set_standard_fs_interface(3alleg5),·al_store_state(3alleg5), |
16 | al_restore_state(3alleg5). | 15 | al_restore_state(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_menu_item_caption"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_menu_item_caption"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_menu_item_caption·\-·Allegro·5·API | 5 | al_set_menu_item_caption·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. | 12 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. |
14 | This·will·invalidate·any·previous·calls·to | 13 | This·will·invalidate·any·previous·calls·to |
15 | al_get_menu_item_caption(3alleg5). | 14 | al_get_menu_item_caption(3alleg5). |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_menu_item_flags·\-·Allegro·5·API | 5 | al_set_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Updates·the·menu·item\[cq]s·flags. | 12 | Updates·the·menu·item\[cq]s·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 13 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 14 | flags. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_menu_item_icon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_menu_item_icon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_menu_item_icon·\-·Allegro·5·API | 5 | al_set_menu_item_icon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·icon·for·the·specified·menu·item. | 12 | Sets·the·icon·for·the·specified·menu·item. |
14 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may | 13 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may |
15 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue | 14 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue |
16 | using·it. | 15 | using·it. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_mixer_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_mixer_frequency"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_mixer_frequency·\-·Allegro·5·API | 5 | al_set_mixer_frequency·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·mixer·frequency·(in·Hz). | 12 | Set·the·mixer·frequency·(in·Hz). |
14 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. | 13 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_mixer_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_mixer_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_mixer_gain·\-·Allegro·5·API | 5 | al_set_mixer_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·mixer·gain·(amplification·factor). | 12 | Set·the·mixer·gain·(amplification·factor). |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.0.6,·5.1.0 | 16 | 5.0.6,·5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_mixer_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_mixer_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_mixer_playing·\-·Allegro·5·API | 5 | al_set_mixer_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Change·whether·the·mixer·is·playing. | 12 | Change·whether·the·mixer·is·playing. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_mixer_playing(3alleg5). | 16 | al_get_mixer_playing(3alleg5). |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_mixer_postprocess_callback"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_mixer_postprocess_callback"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_mixer_postprocess_callback·\-·Allegro·5·API | 5 | al_set_mixer_postprocess_callback·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, | ||
11 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), | ||
12 | ···void·*pp_callback_userdata) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the | 12 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the |
16 | attached·streams·have·been·mixed. | 13 | attached·streams·have·been·mixed. |
17 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. | 14 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. |
18 | The·sample·count·and·user\-data·pointer·is·also·passed. | 15 | The·sample·count·and·user\-data·pointer·is·also·passed. |
19 | .RS | 16 | .RS |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_mixer_quality"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_mixer_quality"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_mixer_quality·\-·Allegro·5·API | 5 | al_set_mixer_quality·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·mixer·quality. | 12 | Set·the·mixer·quality. |
14 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to | 13 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to |
15 | it. | 14 | it. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_bitmap_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_bitmap_depth"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_bitmap_depth·\-·Allegro·5·API | 5 | al_set_new_bitmap_depth·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_bitmap_depth(int·depth) | ||
11 | SETTER(new_bitmap_depth,·depth) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Sets·the·depthbuffer·depth·used·by·newly·created·bitmaps·(on·the·current | 12 | Sets·the·depthbuffer·depth·used·by·newly·created·bitmaps·(on·the·current |
15 | thread)·if·they·are·used·with·al_set_target_bitmap(3alleg5). | 13 | thread)·if·they·are·used·with·al_set_target_bitmap(3alleg5). |
16 | 0·means·no·depth\-buffer·will·be·created·when·drawing·into·the·bitmap, | 14 | 0·means·no·depth\-buffer·will·be·created·when·drawing·into·the·bitmap, |
17 | which·is·the·default. | 15 | which·is·the·default. |
18 | .SH·SINCE | 16 | .SH·SINCE |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_bitmap_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_bitmap_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_bitmap_flags·\-·Allegro·5·API | 5 | al_set_new_bitmap_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_bitmap_flags(int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·flags·to·use·for·newly·created·bitmaps. | 12 | Sets·the·flags·to·use·for·newly·created·bitmaps. |
14 | Valid·flags·are: | 13 | Valid·flags·are: |
15 | .TP | 14 | .TP |
16 | ALLEGRO_MEMORY_BITMAP | 15 | ALLEGRO_MEMORY_BITMAP |
17 | Create·a·bitmap·residing·in·system·memory. | 16 | Create·a·bitmap·residing·in·system·memory. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_bitmap_format"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_bitmap_format"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_bitmap_format·\-·Allegro·5·API | 5 | al_set_new_bitmap_format·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_bitmap_format(int·format) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·pixel·format·(ALLEGRO_PIXEL_FORMAT(3alleg5))·for·newly·created | 12 | Sets·the·pixel·format·(ALLEGRO_PIXEL_FORMAT(3alleg5))·for·newly·created |
14 | bitmaps. | 13 | bitmaps. |
15 | The·default·format·is·0·and·means·the·display·driver·will·choose·the | 14 | The·default·format·is·0·and·means·the·display·driver·will·choose·the |
16 | best·format. | 15 | best·format. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_bitmap_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_bitmap_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_bitmap_samples·\-·Allegro·5·API | 5 | al_set_new_bitmap_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_bitmap_samples(int·samples) | ||
11 | SETTER(new_bitmap_samples,·samples) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Sets·the·multi\-sampling·samples·used·by·newly·created·bitmaps·(on·the | 12 | Sets·the·multi\-sampling·samples·used·by·newly·created·bitmaps·(on·the |
15 | current·thread)·if·they·are·used·with·al_set_target_bitmap(3alleg5). | 13 | current·thread)·if·they·are·used·with·al_set_target_bitmap(3alleg5). |
16 | 0·means·multi\-sampling·will·not·be·used·when·drawing·into·the·bitmap, | 14 | 0·means·multi\-sampling·will·not·be·used·when·drawing·into·the·bitmap, |
17 | which·is·the·default. | 15 | which·is·the·default. |
18 | 1·means·multi\-sampling·will·be·used·but·only·using·a·single·sample·per | 16 | 1·means·multi\-sampling·will·be·used·but·only·using·a·single·sample·per |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_bitmap_wrap"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_bitmap_wrap"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_bitmap_wrap·\-·Allegro·5·API | 5 | al_set_new_bitmap_wrap·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_bitmap_wrap(ALLEGRO_BITMAP_WRAP·u,·ALLEGRO_BITMAP_WRAP·v) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·texture·wrapping·settings·for·newly·created·bitmaps·(on·the | 12 | Sets·the·texture·wrapping·settings·for·newly·created·bitmaps·(on·the |
14 | current·thread). | 13 | current·thread). |
15 | Typically·you·take·advantage·of·this·feature·either·via·the·primitives | 14 | Typically·you·take·advantage·of·this·feature·either·via·the·primitives |
16 | addon·(see·al_draw_prim(3alleg5)·and·others)·or·via·custom·shaders·(see | 15 | addon·(see·al_draw_prim(3alleg5)·and·others)·or·via·custom·shaders·(see |
17 | ALLEGRO_SHADER(3alleg5)). | 16 | ALLEGRO_SHADER(3alleg5)). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_display_adapter"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_display_adapter"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_display_adapter·\-·Allegro·5·API | 5 | al_set_new_display_adapter·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_display_adapter(int·adapter) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread. | 12 | Sets·the·adapter·to·use·for·new·displays·created·by·the·calling·thread. |
14 | The·adapter·has·a·monitor·attached·to·it. | 13 | The·adapter·has·a·monitor·attached·to·it. |
15 | Information·about·the·monitor·can·be·gotten·using | 14 | Information·about·the·monitor·can·be·gotten·using |
16 | al_get_num_video_adapters(3alleg5)·and·al_get_monitor_info(3alleg5). | 15 | al_get_num_video_adapters(3alleg5)·and·al_get_monitor_info(3alleg5). |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_display_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_display_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_display_flags·\-·Allegro·5·API | 5 | al_set_new_display_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_display_flags(int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·various·flags·to·be·used·when·creating·new·displays·on·the·calling | 12 | Sets·various·flags·to·be·used·when·creating·new·displays·on·the·calling |
14 | thread. | 13 | thread. |
15 | flags·is·a·bitfield·containing·any·reasonable·combination·of·the | 14 | flags·is·a·bitfield·containing·any·reasonable·combination·of·the |
16 | following: | 15 | following: |
17 | .TP | 16 | .TP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_display_refresh_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_display_refresh_rate"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_display_refresh_rate·\-·Allegro·5·API | 5 | al_set_new_display_refresh_rate·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_display_refresh_rate(int·refresh_rate) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling | 12 | Sets·the·refresh·rate·to·use·when·creating·new·displays·on·the·calling |
14 | thread. | 13 | thread. |
15 | If·the·refresh·rate·is·not·available,·al_create_display(3alleg5)·will | 14 | If·the·refresh·rate·is·not·available,·al_create_display(3alleg5)·will |
16 | fail. | 15 | fail. |
17 | A·list·of·modes·with·refresh·rates·can·be·found·with | 16 | A·list·of·modes·with·refresh·rates·can·be·found·with |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_file_interface·\-·Allegro·5·API | 5 | al_set_new_file_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_file_interface(const·ALLEGRO_FILE_INTERFACE·*file_interface) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·ALLEGRO_FILE_INTERFACE(3alleg5)·table·for·the·calling·thread. | 12 | Set·the·ALLEGRO_FILE_INTERFACE(3alleg5)·table·for·the·calling·thread. |
14 | This·will·change·the·handler·for·later·calls·to·al_fopen(3alleg5). | 13 | This·will·change·the·handler·for·later·calls·to·al_fopen(3alleg5). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_standard_file_interface(3alleg5),·al_store_state(3alleg5), | 15 | al_set_standard_file_interface(3alleg5),·al_store_state(3alleg5), |
17 | al_restore_state(3alleg5). | 16 | al_restore_state(3alleg5). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_window_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_window_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_window_position·\-·Allegro·5·API | 5 | al_set_new_window_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_window_position(int·x,·int·y) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created | 12 | Sets·where·the·top·left·pixel·of·the·client·area·of·newly·created |
14 | windows·(non\-fullscreen)·will·be·on·screen,·for·displays·created·by·the | 13 | windows·(non\-fullscreen)·will·be·on·screen,·for·displays·created·by·the |
15 | calling·thread. | 14 | calling·thread. |
16 | Negative·values·are·allowed·on·some·multihead·systems. | 15 | Negative·values·are·allowed·on·some·multihead·systems. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_new_window_title"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_new_window_title"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_new_window_title·\-·Allegro·5·API | 5 | al_set_new_window_title·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_new_window_title(const·char·*title) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·title·that·will·be·used·when·a·new·display·is·created. | 12 | Set·the·title·that·will·be·used·when·a·new·display·is·created. |
14 | Allegro·uses·a·static·buffer·of | 13 | Allegro·uses·a·static·buffer·of |
15 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE(3alleg5)·to·store·this,·so·the·length | 14 | ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE(3alleg5)·to·store·this,·so·the·length |
16 | of·the·titme·you·set·must·be·less·than·this. | 15 | of·the·titme·you·set·must·be·less·than·this. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_physfs_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_physfs_file_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_physfs_file_interface·\-·Allegro·5·API | 5 | al_set_physfs_file_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_physfs.h> | 9 | #include·<allegro5/allegro_physfs.h> |
10 | void·al_set_physfs_file_interface(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) | 12 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) |
14 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. | 13 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. |
15 | .PP | 14 | .PP |
16 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be | 15 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be |
17 | handled·by·PHYSFS_open(). | 16 | handled·by·PHYSFS_open(). |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample·\-·Allegro·5·API | 5 | al_set_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Change·the·sample·data·that·a·sample·instance·plays. | 12 | Change·the·sample·data·that·a·sample·instance·plays. |
14 | This·can·be·quite·an·involved·process. | 13 | This·can·be·quite·an·involved·process. |
15 | .PP | 14 | .PP |
16 | First,·the·sample·is·stopped·if·it·is·not·already. | 15 | First,·the·sample·is·stopped·if·it·is·not·already. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_channel_matrix"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_channel_matrix"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_channel_matrix·\-·Allegro·5·API | 5 | al_set_sample_instance_channel_matrix·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into | 12 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into |
14 | the·mixer·it·is·attached·to. | 13 | the·mixer·it·is·attached·to. |
15 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan | 14 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan |
16 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the | 15 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the |
17 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default | 16 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_gain"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_gain·\-·Allegro·5·API | 5 | al_set_sample_instance_gain·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·playback·gain·of·the·sample·instance. | 12 | Set·the·playback·gain·of·the·sample·instance. |
14 | .PP | 13 | .PP |
15 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
16 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. | 15 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_length"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_length"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_length·\-·Allegro·5·API | 5 | al_set_sample_instance_length·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
11 | ···unsigned·int·val) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Set·the·length·of·the·sample·instance·in·sample·values. | 12 | Set·the·length·of·the·sample·instance·in·sample·values. |
15 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. | 13 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. |
16 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. | 14 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. |
17 | .PP | 15 | .PP |
18 | Return·true·on·success,·false·on·failure. | 16 | Return·true·on·success,·false·on·failure. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_pan"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_pan·\-·Allegro·5·API | 5 | al_set_sample_instance_pan·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·pan·value·on·a·sample·instance. | 12 | Set·the·pan·value·on·a·sample·instance. |
14 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; | 13 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; |
15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 14 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
16 | centre·balanced. | 15 | centre·balanced. |
17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 16 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_playing·\-·Allegro·5·API | 5 | al_set_sample_instance_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Change·whether·the·sample·instance·is·playing. | 12 | Change·whether·the·sample·instance·is·playing. |
14 | .PP | 13 | .PP |
15 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). | 14 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_playmode"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_playmode·\-·Allegro·5·API | 5 | al_set_sample_instance_playmode·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
11 | ···ALLEGRO_PLAYMODE·val) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Set·the·playback·mode·of·the·sample·instance. | 12 | Set·the·playback·mode·of·the·sample·instance. |
15 | .PP | 13 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) | 16 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_position·\-·Allegro·5·API | 5 | al_set_sample_instance_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
11 | ···unsigned·int·val) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Set·the·playback·position·of·a·sample·instance. | 12 | Set·the·playback·position·of·a·sample·instance. |
15 | .PP | 13 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 14 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_get_sample_instance_position(3alleg5) | 16 | al_get_sample_instance_position(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_sample_instance_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_sample_instance_speed"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_sample_instance_speed·\-·Allegro·5·API | 5 | al_set_sample_instance_speed·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·relative·playback·speed·of·the·sample·instance. | 12 | Set·the·relative·playback·speed·of·the·sample·instance. |
14 | 1.0·means·normal·speed. | 13 | 1.0·means·normal·speed. |
15 | .PP | 14 | .PP |
16 | Return·true·on·success,·false·on·failure. | 15 | Return·true·on·success,·false·on·failure. |
17 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. | 16 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_separate_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_separate_blender"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_separate_blender·\-·Allegro·5·API | 5 | al_set_separate_blender·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_separate_blender(int·op,·int·src,·int·dst, | ||
11 | ···int·alpha_op,·int·alpha_src,·int·alpha_dst) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Like·al_set_blender(3alleg5),·but·allows·specifying·a·separate·blending | 12 | Like·al_set_blender(3alleg5),·but·allows·specifying·a·separate·blending |
15 | operation·for·the·alpha·channel. | 13 | operation·for·the·alpha·channel. |
16 | This·is·useful·if·your·target·bitmap·also·has·an·alpha·channel·and·the | 14 | This·is·useful·if·your·target·bitmap·also·has·an·alpha·channel·and·the |
17 | two·alpha·channels·need·to·be·combined·in·a·different·way·than·the·color | 15 | two·alpha·channels·need·to·be·combined·in·a·different·way·than·the·color |
18 | components. | 16 | components. |
Offset 3, 15 lines modified | Offset 3, 13 lines modified | ||
3 | .TH·"al_set_standard_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_standard_fs_interface"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_standard_fs_interface·\-·Allegro·5·API | 5 | al_set_standard_fs_interface·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_standard_fs_interface(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Return·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·to·the·default,·for·the | 12 | Return·the·ALLEGRO_FS_INTERFACE(3alleg5)·table·to·the·default,·for·the |
14 | calling·thread. | 13 | calling·thread. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_fs_interface(3alleg5). | 15 | al_set_fs_interface(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_set_target_backbuffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_target_backbuffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_target_backbuffer·\-·Allegro·5·API | 5 | al_set_target_backbuffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_target_backbuffer(ALLEGRO_DISPLAY·*display) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Same·as·\f[CR]al_set_target_bitmap(al_get_backbuffer(display));\f[R] | 12 | Same·as·\f[CR]al_set_target_bitmap(al_get_backbuffer(display));\f[R] |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_set_target_bitmap(3alleg5),·al_get_backbuffer(3alleg5) | 14 | al_set_target_bitmap(3alleg5),·al_get_backbuffer(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_target_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_target_bitmap"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_target_bitmap·\-·Allegro·5·API | 5 | al_set_target_bitmap·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_set_target_bitmap(ALLEGRO_BITMAP·*bitmap) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | This·function·selects·the·bitmap·to·which·all·subsequent·drawing | 12 | This·function·selects·the·bitmap·to·which·all·subsequent·drawing |
14 | operations·in·the·calling·thread·will·draw·to. | 13 | operations·in·the·calling·thread·will·draw·to. |
15 | To·return·to·drawing·to·a·display,·set·the·backbuffer·of·the·display·as | 14 | To·return·to·drawing·to·a·display,·set·the·backbuffer·of·the·display·as |
16 | the·target·bitmap,·using·al_get_backbuffer(3alleg5). | 15 | the·target·bitmap,·using·al_get_backbuffer(3alleg5). |
17 | As·a·convenience,·you·may·also·use·al_set_target_backbuffer(3alleg5). | 16 | As·a·convenience,·you·may·also·use·al_set_target_backbuffer(3alleg5). |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_set_video_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_video_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_video_playing·\-·Allegro·5·API | 5 | al_set_video_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Paused·or·resumes·playback. | 12 | Paused·or·resumes·playback. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.12 | 14 | 5.1.12 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_voice_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_voice_playing"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_voice_playing·\-·Allegro·5·API | 5 | al_set_voice_playing·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Change·whether·a·voice·is·playing·or·not. | 12 | Change·whether·a·voice·is·playing·or·not. |
14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 13 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
15 | it,·e.g.\·a·sample·instance. | 14 | it,·e.g.\·a·sample·instance. |
16 | On·success·the·voice\[cq]s·current·sample·position·is·reset. | 15 | On·success·the·voice\[cq]s·current·sample·position·is·reset. |
17 | .PP | 16 | .PP |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_set_voice_position"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_set_voice_position"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_set_voice_position·\-·Allegro·5·API | 5 | al_set_voice_position·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Set·the·voice·position. | 12 | Set·the·voice·position. |
14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 13 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
15 | it,·e.g.\·a·sample·instance. | 14 | it,·e.g.\·a·sample·instance. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_show_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_show_native_file_dialog"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_show_native_file_dialog·\-·Allegro·5·API | 5 | al_show_native_file_dialog·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
11 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Show·the·dialog·window. | 12 | Show·the·dialog·window. |
15 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 13 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
16 | parent·if·possible. | 14 | parent·if·possible. |
17 | .PP | 15 | .PP |
18 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 16 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_show_native_message_box"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_show_native_message_box"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_show_native_message_box·\-·Allegro·5·API | 5 | al_show_native_message_box·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
11 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
12 | ···char·const·*buttons,·int·flags) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Show·a·native·GUI·message·box. | 12 | Show·a·native·GUI·message·box. |
16 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of | 13 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of |
17 | an·initial·display·fails. | 14 | an·initial·display·fails. |
18 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 15 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
19 | parent·if·possible. | 16 | parent·if·possible. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_shutdown_font_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_font_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_font_addon·\-·Allegro·5·API | 5 | al_shutdown_font_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_font.h> | 9 | #include·<allegro5/allegro_font.h> |
10 | void·al_shutdown_font_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Shut·down·the·font·addon. | 12 | Shut·down·the·font·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 13 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 14 | the·user·wishes·as·well. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_font_addon(3alleg5) | 16 | al_init_font_addon(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_shutdown_image_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_image_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_image_addon·\-·Allegro·5·API | 5 | al_shutdown_image_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_image.h> | 9 | #include·<allegro5/allegro_image.h> |
10 | void·al_shutdown_image_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Shut·down·the·image·addon. | 12 | Shut·down·the·image·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 13 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 14 | the·user·wishes·as·well. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_shutdown_native_dialog_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_native_dialog_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_native_dialog_addon·\-·Allegro·5·API | 5 | al_shutdown_native_dialog_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | void·al_shutdown_native_dialog_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Shut·down·the·native·dialog·addon. | 12 | Shut·down·the·native·dialog·addon. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.0.9,·5.1.5 | 14 | 5.0.9,·5.1.5 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_native_dialog_addon(3alleg5) | 16 | al_init_native_dialog_addon(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_shutdown_primitives_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_primitives_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_primitives_addon·\-·Allegro·5·API | 5 | al_shutdown_primitives_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_shutdown_primitives_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Shut·down·the·primitives·addon. | 12 | Shut·down·the·primitives·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 13 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 14 | the·user·wishes·as·well. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_init_primitives_addon(3alleg5) | 16 | al_init_primitives_addon(3alleg5) |
Offset 3, 13 lines modified | Offset 3, 11 lines modified | ||
3 | .TH·"al_shutdown_ttf_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_ttf_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_ttf_addon·\-·Allegro·5·API | 5 | al_shutdown_ttf_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_ttf.h> | 9 | #include·<allegro5/allegro_ttf.h> |
10 | void·al_shutdown_ttf_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Unloads·the·ttf·addon·again. | 12 | Unloads·the·ttf·addon·again. |
14 | You·normally·don\[cq]t·need·to·call·this. | 13 | You·normally·don\[cq]t·need·to·call·this. |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_shutdown_video_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_shutdown_video_addon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_shutdown_video_addon·\-·Allegro·5·API | 5 | al_shutdown_video_addon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_shutdown_video_addon(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Shut·down·the·video·addon. | 12 | Shut·down·the·video·addon. |
14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 13 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
15 | the·user·wishes·as·well. | 14 | the·user·wishes·as·well. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.12 | 16 | 5.1.12 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_start_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_start_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_start_audio_recorder·\-·Allegro·5·API | 5 | al_start_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Begin·recording·into·the·fragment·buffer. | 12 | Begin·recording·into·the·fragment·buffer. |
14 | Once·a·complete·fragment·has·been·captured·(as·specified·in | 13 | Once·a·complete·fragment·has·been·captured·(as·specified·in |
15 | al_create_audio_recorder(3alleg5)),·an | 14 | al_create_audio_recorder(3alleg5)),·an |
16 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. | 15 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. |
17 | .PP | 16 | .PP |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_start_video"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_start_video"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_start_video·\-·Allegro·5·API | 5 | al_start_video·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Starts·playing·the·video·from·the·beginning. | 12 | Starts·playing·the·video·from·the·beginning. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.0 | 14 | 5.1.0 |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_start_video_with_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_start_video_with_voice"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_start_video_with_voice·\-·Allegro·5·API | 5 | al_start_video_with_voice·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_video.h> | 9 | #include·<allegro5/allegro_video.h> |
10 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. | 12 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.0 | 14 | 5.1.0 |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_stop_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_stop_audio_recorder"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_stop_audio_recorder·\-·Allegro·5·API | 5 | al_stop_audio_recorder·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Stop·capturing·audio·data. | 12 | Stop·capturing·audio·data. |
14 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so | 13 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so |
15 | if·you·are·finished·recording·you·should·destroy·it·with | 14 | if·you·are·finished·recording·you·should·destroy·it·with |
16 | al_destroy_audio_recorder(3alleg5). | 15 | al_destroy_audio_recorder(3alleg5). |
17 | .PP | 16 | .PP |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_stop_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_stop_sample"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_stop_sample·\-·Allegro·5·API | 5 | al_stop_sample·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Stop·the·sample·started·by·al_play_sample(3alleg5). | 12 | Stop·the·sample·started·by·al_play_sample(3alleg5). |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_stop_samples(3alleg5) | 14 | al_stop_samples(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_stop_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_stop_sample_instance"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_stop_sample_instance·\-·Allegro·5·API | 5 | al_stop_sample_instance·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Stop·an·sample·instance·playing. | 12 | Stop·an·sample·instance·playing. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_play_sample_instance(3alleg5) | 14 | al_play_sample_instance(3alleg5) |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_stop_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_stop_samples"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_stop_samples·\-·Allegro·5·API | 5 | al_stop_samples·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_stop_samples(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Stop·all·samples·started·by·al_play_sample(3alleg5). | 12 | Stop·all·samples·started·by·al_play_sample(3alleg5). |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_stop_sample(3alleg5) | 14 | al_stop_sample(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_toggle_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_toggle_menu_item_flags"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_toggle_menu_item_flags·\-·Allegro·5·API | 5 | al_toggle_menu_item_flags·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Toggles·the·specified·menu·item\[cq]s·flags. | 12 | Toggles·the·specified·menu·item\[cq]s·flags. |
14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 13 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
15 | flags. | 14 | flags. |
16 | .PP | 15 | .PP |
17 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the | 16 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the |
Offset 3, 18 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_triangulate_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_triangulate_polygon"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_triangulate_polygon·\-·Allegro·5·API | 5 | al_triangulate_polygon·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | bool·al_triangulate_polygon( | ||
11 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, | ||
12 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) | ||
13 | .EE | 10 | .EE |
14 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
15 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple | 12 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple |
16 | polygons·subtracted·from·it·\-·the·holes. | 13 | polygons·subtracted·from·it·\-·the·holes. |
17 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main | 14 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main |
18 | polygon. | 15 | polygon. |
19 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be | 16 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be |
Offset 3, 14 lines modified | Offset 3, 12 lines modified | ||
3 | .TH·"al_uninstall_audio"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_uninstall_audio"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_uninstall_audio·\-·Allegro·5·API | 5 | al_uninstall_audio·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_uninstall_audio(void) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Uninstalls·the·audio·subsystem. | 12 | Uninstalls·the·audio·subsystem. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_install_audio(3alleg5) | 14 | al_install_audio(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unlock_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unlock_index_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unlock_index_buffer·\-·Allegro·5·API | 5 | al_unlock_index_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Unlocks·a·previously·locked·index·buffer. | 12 | Unlocks·a·previously·locked·index·buffer. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.8 | 14 | 5.1.8 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) | 16 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unlock_sample_id"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unlock_sample_id"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unlock_sample_id·\-·Allegro·5·API | 5 | al_unlock_sample_id·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to | 12 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to |
14 | al_play_sample(3alleg5)·to·reuse·it·if·possible. | 13 | al_play_sample(3alleg5)·to·reuse·it·if·possible. |
15 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) | 14 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) |
16 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly | 15 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly |
17 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking | 16 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unlock_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unlock_vertex_buffer"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unlock_vertex_buffer·\-·Allegro·5·API | 5 | al_unlock_vertex_buffer·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_primitives.h> | 9 | #include·<allegro5/allegro_primitives.h> |
10 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Unlocks·a·previously·locked·vertex·buffer. | 12 | Unlocks·a·previously·locked·vertex·buffer. |
14 | .SH·SINCE | 13 | .SH·SINCE |
15 | 5.1.3 | 14 | 5.1.3 |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) | 16 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unmap_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unmap_rgb"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unmap_rgb·\-·Allegro·5·API | 5 | al_unmap_rgb·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_unmap_rgb(ALLEGRO_COLOR·color, | ||
11 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha. | 12 | Retrieves·components·of·an·ALLEGRO_COLOR,·ignoring·alpha. |
15 | Components·will·range·from·0\-255. | 13 | Components·will·range·from·0\-255. |
16 | .PP | 14 | .PP |
17 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unmap_rgb_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unmap_rgb_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unmap_rgb_f·\-·Allegro·5·API | 5 | al_unmap_rgb_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_unmap_rgb_f(ALLEGRO_COLOR·color,·float·*r,·float·*g,·float·*b) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5),·ignoring·alpha. | 12 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5),·ignoring·alpha. |
14 | Components·will·range·from·0.0f\-1.0f. | 13 | Components·will·range·from·0.0f\-1.0f. |
15 | .PP | 14 | .PP |
16 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unmap_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unmap_rgba"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unmap_rgba·\-·Allegro·5·API | 5 | al_unmap_rgba·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_unmap_rgba(ALLEGRO_COLOR·color, | ||
11 | ···unsigned·char·*r,·unsigned·char·*g,·unsigned·char·*b,·unsigned·char·*a) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5). | 12 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5). |
15 | Components·will·range·from·0\-255. | 13 | Components·will·range·from·0\-255. |
16 | .PP | 14 | .PP |
17 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 17 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_unmap_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_unmap_rgba_f"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_unmap_rgba_f·\-·Allegro·5·API | 5 | al_unmap_rgba_f·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro.h> | 9 | #include·<allegro5/allegro.h> |
10 | void·al_unmap_rgba_f(ALLEGRO_COLOR·color, | ||
11 | ···float·*r,·float·*g,·float·*b,·float·*a) | ||
12 | .EE | 10 | .EE |
13 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
14 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5). | 12 | Retrieves·components·of·an·ALLEGRO_COLOR(3alleg5). |
15 | Components·will·range·from·0.0f\-1.0f. | 13 | Components·will·range·from·0.0f\-1.0f. |
16 | .PP | 14 | .PP |
17 | This·function·can·be·called·before·Allegro·is·initialized. | 15 | This·function·can·be·called·before·Allegro·is·initialized. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
Offset 3, 16 lines modified | Offset 3, 14 lines modified | ||
3 | .TH·"al_voice_has_attachments"·"3alleg5"·""·"Allegro·reference·manual"·"" | 3 | .TH·"al_voice_has_attachments"·"3alleg5"·""·"Allegro·reference·manual"·"" |
4 | .SH·NAME | 4 | .SH·NAME |
5 | al_voice_has_attachments·\-·Allegro·5·API | 5 | al_voice_has_attachments·\-·Allegro·5·API |
6 | .SH·SYNOPSIS | 6 | .SH·SYNOPSIS |
7 | .IP | 7 | .IP |
8 | .EX | 8 | .EX |
9 | #include·<allegro5/allegro_audio.h> | 9 | #include·<allegro5/allegro_audio.h> |
10 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Returns·true·if·the·voice·has·something·attached·to·it. | 12 | Returns·true·if·the·voice·has·something·attached·to·it. |
14 | .SH·SEE·ALSO | 13 | .SH·SEE·ALSO |
15 | al_attach_mixer_to_voice(3alleg5), | 14 | al_attach_mixer_to_voice(3alleg5), |
16 | al_attach_sample_instance_to_voice(3alleg5), | 15 | al_attach_sample_instance_to_voice(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5) | 16 | al_attach_audio_stream_to_voice(3alleg5) |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-01-09·13:52:42.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3428·2025-01-09·13:52:42.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3428·2025-01-09·13:52:42.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···1134 | 3 | -rw-r--r--···0········0········0···113412·2025-01-09·13:52:42.000000·data.tar.xz |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/ | 93 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/ |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)·····3996·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/alplatf.h | 95 | -rw-r--r--···0·root·········(0)·root·········(0)·····3996·2025-01-09·13:52:42.000000·./usr/include/x86_64-linux-gnu/allegro5/platform/alplatf.h |
96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/ | 96 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/ |
97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/ | 97 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/ |
98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/ | 98 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/ |
99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/ | 99 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/ |
100 | -rw-r--r--···0·root·········(0)·root·········(0)·····160 | 100 | -rw-r--r--···0·root·········(0)·root·········(0)·····1609·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfig.cmake |
101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfigVersion.cmake | 101 | -rw-r--r--···0·root·········(0)·root·········(0)·····1862·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroConfigVersion.cmake |
102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7642·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets-none.cmake | 102 | -rw-r--r--···0·root·········(0)·root·········(0)·····7642·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets-none.cmake |
103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9526·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets.cmake | 103 | -rw-r--r--···0·root·········(0)·root·········(0)·····9526·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/cmake/allegro/AllegroTargets.cmake |
104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/ | 104 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/ |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······315·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro-5.pc | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······315·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro-5.pc |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_color-5.pc | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_color-5.pc |
107 | -rw-r--r--···0·root·········(0)·root·········(0)······374·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_font-5.pc | 107 | -rw-r--r--···0·root·········(0)·root·········(0)······374·2025-01-09·13:52:42.000000·./usr/lib/x86_64-linux-gnu/pkgconfig/allegro_font-5.pc |
Offset 31, 11 lines modified | Offset 31, 11 lines modified | ||
31 | set(ALLEGRO_PKG_VERSION_PATCH·10) | 31 | set(ALLEGRO_PKG_VERSION_PATCH·10) |
32 | set(ALLEGRO_PKG_VERSION·5.2.10) | 32 | set(ALLEGRO_PKG_VERSION·5.2.10) |
33 | #·Architecture,·compiler·and·other·low·level·flags | 33 | #·Architecture,·compiler·and·other·low·level·flags |
34 | set(ALLEGRO_PKG_LIBRARY_ARCHITECTURE·"x86_64-linux-gnu") | 34 | set(ALLEGRO_PKG_LIBRARY_ARCHITECTURE·"x86_64-linux-gnu") |
35 | set(ALLEGRO_PKG_COMPILER·"GNU") | 35 | set(ALLEGRO_PKG_COMPILER·"GNU") |
36 | set(ALLEGRO_PKG_COMPILER_VERSION·"14.2.0") | 36 | set(ALLEGRO_PKG_COMPILER_VERSION·"14.2.0") |
37 | set(ALLEGRO_PKG_HOST_SYSTEM·"Linux-6.1. | 37 | set(ALLEGRO_PKG_HOST_SYSTEM·"Linux-6.12.22+bpo-amd64") |
38 | #·Targets | 38 | #·Targets |
39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") | 39 | include("${CMAKE_CURRENT_LIST_DIR}/AllegroTargets.cmake") |