Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | · | 1 | ·1dbdc9bb58612e5838707c4338f42e6c·1394376·doc·optional·allegro5-doc_5.2.9.1+dfsg-2_all.deb |
2 | ·6b00acf5f9eee09980ae3253a40edfc8·18612·libdevel·optional·liballegro-acodec5-dev_5.2.9.1+dfsg-2_arm64.deb | 2 | ·6b00acf5f9eee09980ae3253a40edfc8·18612·libdevel·optional·liballegro-acodec5-dev_5.2.9.1+dfsg-2_arm64.deb |
3 | ·edb760eb4d4de71446910b1db7e7520c·61904·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.9.1+dfsg-2_arm64.deb | 3 | ·edb760eb4d4de71446910b1db7e7520c·61904·debug·optional·liballegro-acodec5.2t64-dbgsym_5.2.9.1+dfsg-2_arm64.deb |
4 | ·ed1646f7ef04d546ad16fe409e8d88a7·36540·libs·optional·liballegro-acodec5.2t64_5.2.9.1+dfsg-2_arm64.deb | 4 | ·ed1646f7ef04d546ad16fe409e8d88a7·36540·libs·optional·liballegro-acodec5.2t64_5.2.9.1+dfsg-2_arm64.deb |
5 | ·487239f6fd08d199d31715ab1d1e644a·21416·libdevel·optional·liballegro-audio5-dev_5.2.9.1+dfsg-2_arm64.deb | 5 | ·487239f6fd08d199d31715ab1d1e644a·21416·libdevel·optional·liballegro-audio5-dev_5.2.9.1+dfsg-2_arm64.deb |
6 | ·5b9d9c6676fe5102f6055d7b751e714d·106764·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.9.1+dfsg-2_arm64.deb | 6 | ·5b9d9c6676fe5102f6055d7b751e714d·106764·debug·optional·liballegro-audio5.2t64-dbgsym_5.2.9.1+dfsg-2_arm64.deb |
7 | ·c9beb6da55609180fc76853d8b2d2d5a·56272·libs·optional·liballegro-audio5.2t64_5.2.9.1+dfsg-2_arm64.deb | 7 | ·c9beb6da55609180fc76853d8b2d2d5a·56272·libs·optional·liballegro-audio5.2t64_5.2.9.1+dfsg-2_arm64.deb |
8 | ·9f846c7116745f5fec3095fc8a1bb437·19656·libdevel·optional·liballegro-dialog5-dev_5.2.9.1+dfsg-2_arm64.deb | 8 | ·9f846c7116745f5fec3095fc8a1bb437·19656·libdevel·optional·liballegro-dialog5-dev_5.2.9.1+dfsg-2_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-05-03·10:28:35.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-05-03·10:28:35.000000·debian-binary |
2 | -rw-r--r--···0········0········0····315 | 2 | -rw-r--r--···0········0········0····31556·2024-05-03·10:28:35.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··13 | 3 | -rw-r--r--···0········0········0··1362628·2024-05-03·10:28:35.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.9.1+dfsg-2 | 3 | Version:·2:5.2.9.1+dfsg-2 |
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:·5603 |
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, 401 lines modified | Offset 198, 401 lines modified | ||
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····5396·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_maximized.c |
199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c | 199 | -rw-r--r--···0·root·········(0)·root·········(0)·····2660·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_window_title.c |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6446·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6446·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_windows.c |
201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c | 201 | -rw-r--r--···0·root·········(0)·root·········(0)·····1674·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/ex_winfull.c |
202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp | 202 | -rw-r--r--···0·root·········(0)·root·········(0)····19521·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.cpp |
203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp | 203 | -rw-r--r--···0·root·········(0)·root·········(0)·····6456·2024-01-20·03:16:21.000000·./usr/share/doc/allegro5-doc/examples/nihgui.hpp |
204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/ | 204 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.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)····11781·2024-05-03·10:28:35.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)···231960·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/audio.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····36350·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/autosuggest.js |
208 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····66986·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/color.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····37787·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/config.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17711·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17711·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/direct3d.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)····85 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)····85624·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/display.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····8 | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····81432·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/events.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····62 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····62307·2024-05-03·10:28:35.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)····56555·2024-05-03·10:28:35.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)····95348·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/font.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····42368·2024-05-03·10:28:35.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)····13487·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/fullscreen_mode.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)····17054·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html | 218 | -rw-r--r--···0·root·········(0)·root·········(0)····17054·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/getting_started.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)···22 | 219 | -rw-r--r--···0·root·········(0)·root·········(0)···223208·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/graphics.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····69779·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/haptic.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····12422·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/image.html |
222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/ | 222 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/ |
223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png | 223 | -rw-r--r--···0·root·········(0)·root·········(0)····21480·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_CAP.png |
224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png | 224 | -rw-r--r--···0·root·········(0)·root·········(0)····15893·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/LINE_JOIN.png |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····65065·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/audio.png |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····16058·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/primitives1.png |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····25805·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/images/primitives2.png |
228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6772·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/index.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)·····6772·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/index.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)···110368·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/index_all.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)···110368·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/index_all.html |
230 | -rw-r--r--···0·root·········(0)·root·········(0)····35 | 230 | -rw-r--r--···0·root·········(0)·root·········(0)····35288·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/joystick.html |
231 | -rw-r--r--···0·root·········(0)·root·········(0)····24 | 231 | -rw-r--r--···0·root·········(0)·root·········(0)····24123·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/keyboard.html |
232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9012·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/main.html | 232 | -rw-r--r--···0·root·········(0)·root·········(0)·····9012·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/main.html |
233 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 233 | -rw-r--r--···0·root·········(0)·root·········(0)····10520·2024-05-03·10:28:35.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)····24141·2024-05-03·10:28:35.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)····10393·2024-05-03·10:28:35.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)····17870·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/monitor.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····41 | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····41698·2024-05-03·10:28:35.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)····78259·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/native_dialog.html |
239 | -rw-r--r--···0·root·········(0)·root·········(0)····27232·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/opengl.html | 239 | -rw-r--r--···0·root·········(0)·root·········(0)····27232·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/opengl.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····3973·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/pandoc.css |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····38118·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/path.html | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····38118·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/path.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····11853·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/physfs.html |
243 | -rw-r--r--···0·root·········(0)·root·········(0)····26616·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/platform.html | 243 | -rw-r--r--···0·root·········(0)·root·········(0)····26616·2024-05-03·10:28:35.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)···145969·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/primitives.html |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····72016·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/search_index.js | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····72016·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/search_index.js |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····45919·2024-05-03·10:28:35.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)····15870·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/state.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)····71 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)····71004·2024-05-03·10:28:35.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)····35451·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/threads.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)····12 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)····12631·2024-05-03·10:28:35.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)····26614·2024-05-03·10:28:35.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)····22266·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/touch.html |
253 | -rw-r--r--···0·root·········(0)·root·········(0)····82 | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····82432·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/transformations.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)···103 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)···103250·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/utf8.html |
255 | -rw-r--r--···0·root·········(0)·root·········(0)····3 | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····31894·2024-05-03·10:28:35.000000·./usr/share/doc/allegro5-doc/refman/video.html |
256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/doc-base/ | 256 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/doc-base/ |
257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-03-20·15:11:29.000000·./usr/share/doc-base/allegro5-doc.allegro5 | 257 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-03-20·15:11:29.000000·./usr/share/doc-base/allegro5-doc.allegro5 |
258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/man/ | 258 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/man/ |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/man/man3/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-05-03·10:28:35.000000·./usr/share/man/man3/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)······40 | 260 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEPTH.3alleg5.gz |
261 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 261 | -rw-r--r--···0·root·········(0)·root·········(0)······254·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_DEVICE.3alleg5.gz |
262 | -rw-r--r--···0·root·········(0)·root·········(0)······55 | 262 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_EVENT_TYPE.3alleg5.gz |
263 | -rw-r--r--···0·root·········(0)·root·········(0)······55 | 263 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_PAN_NONE.3alleg5.gz |
264 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 264 | -rw-r--r--···0·root·········(0)·root·········(0)······316·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER.3alleg5.gz |
265 | -rw-r--r--···0·root·········(0)·root·········(0)······47 | 265 | -rw-r--r--···0·root·········(0)·root·········(0)······474·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.gz |
266 | -rw-r--r--···0·root·········(0)·root·········(0)······9 | 266 | -rw-r--r--···0·root·········(0)·root·········(0)······947·2024-05-03·10:28:35.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)······247·2024-05-03·10:28:35.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)······459·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_BITMAP_WRAP.3alleg5.gz |
269 | -rw-r--r--···0·root·········(0)·root·········(0)······25 | 269 | -rw-r--r--···0·root·········(0)·root·········(0)······250·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_BPM_TO_SECS.3alleg5.gz |
270 | -rw-r--r--···0·root·········(0)·root·········(0)······24 | 270 | -rw-r--r--···0·root·········(0)·root·········(0)······245·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_BPS_TO_SECS.3alleg5.gz |
271 | -rw-r--r--···0·root·········(0)·root·········(0)······28 | 271 | -rw-r--r--···0·root·········(0)·root·········(0)······281·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_CHANNEL_CONF.3alleg5.gz |
272 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 272 | -rw-r--r--···0·root·········(0)·root·········(0)······313·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_COLOR.3alleg5.gz |
273 | -rw-r--r--···0·root·········(0)·root·········(0)······24 | 273 | -rw-r--r--···0·root·········(0)·root·········(0)······244·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_COND.3alleg5.gz |
274 | -rw-r--r--···0·root·········(0)·root·········(0)······23 | 274 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_CONFIG.3alleg5.gz |
275 | -rw-r--r--···0·root·········(0)·root·········(0)······30 | 275 | -rw-r--r--···0·root·········(0)·root·········(0)······303·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_CONFIG_ENTRY.3alleg5.gz |
276 | -rw-r--r--···0·root·········(0)·root·········(0)······30 | 276 | -rw-r--r--···0·root·········(0)·root·········(0)······300·2024-05-03·10:28:35.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)······247·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_DISPLAY.3alleg5.gz |
278 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)······458·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_DISPLAY_MODE.3alleg5.gz |
279 | -rw-r--r--···0·root·········(0)·root·········(0)·····501 | 279 | -rw-r--r--···0·root·········(0)·root·········(0)·····5011·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_EVENT.3alleg5.gz |
280 | -rw-r--r--···0·root·········(0)·root·········(0)······36 | 280 | -rw-r--r--···0·root·········(0)·root·········(0)······364·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_EVENT_QUEUE.3alleg5.gz |
281 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 281 | -rw-r--r--···0·root·········(0)·root·········(0)······398·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_EVENT_SOURCE.3alleg5.gz |
282 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 282 | -rw-r--r--···0·root·········(0)·root·········(0)······295·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_EVENT_TYPE.3alleg5.gz |
283 | -rw-r--r--···0·root·········(0)·root·········(0)······3 | 283 | -rw-r--r--···0·root·········(0)·root·········(0)······307·2024-05-03·10:28:35.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)······268·2024-05-03·10:28:35.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)······248·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_FILECHOOSER.3alleg5.gz |
286 | -rw-r--r--···0·root·········(0)·root·········(0)······77 | 286 | -rw-r--r--···0·root·········(0)·root·········(0)······772·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_FILE_INTERFACE.3alleg5.gz |
287 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 287 | -rw-r--r--···0·root·········(0)·root·········(0)······312·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_FILE_MODE.3alleg5.gz |
288 | -rw-r--r--···0·root·········(0)·root·········(0)······4 | 288 | -rw-r--r--···0·root·········(0)·root·········(0)······409·2024-05-03·10:28:35.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)······418·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_FOR_EACH_FS_ENTRY_RESULT.3alleg5.gz |
290 | -rw-r--r--···0·root·········(0)·root·········(0)······31 | 290 | -rw-r--r--···0·root·········(0)·root·········(0)······314·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_FS_ENTRY.3alleg5.gz |
291 | -rw-r--r--···0·root·········(0)·root·········(0)······5 | 291 | -rw-r--r--···0·root·········(0)·root·········(0)······509·2024-05-03·10:28:35.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)······689·2024-05-03·10:28:35.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)······786·2024-05-03·10:28:35.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)······426·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_HAPTIC.3alleg5.gz |
295 | -rw-r--r--···0·root·········(0)·root·········(0)······81 | 295 | -rw-r--r--···0·root·········(0)·root·········(0)······813·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_CONSTANTS.3alleg5.gz |
296 | -rw-r--r--···0·root·········(0)·root·········(0)·····314 | 296 | -rw-r--r--···0·root·········(0)·root·········(0)·····3142·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT.3alleg5.gz |
297 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 297 | -rw-r--r--···0·root·········(0)·root·········(0)······453·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_HAPTIC_EFFECT_ID.3alleg5.gz |
298 | -rw-r--r--···0·root·········(0)·root·········(0)······36 | 298 | -rw-r--r--···0·root·········(0)·root·········(0)······362·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_INDEX_BUFFER.3alleg5.gz |
299 | -rw-r--r--···0·root·········(0)·root·········(0)······33 | 299 | -rw-r--r--···0·root·········(0)·root·········(0)······335·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_JOYFLAGS.3alleg5.gz |
300 | -rw-r--r--···0·root·········(0)·root·········(0)······27 | 300 | -rw-r--r--···0·root·········(0)·root·········(0)······275·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK.3alleg5.gz |
301 | -rw-r--r--···0·root·········(0)·root·········(0)······41 | 301 | -rw-r--r--···0·root·········(0)·root·········(0)······413·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_JOYSTICK_STATE.3alleg5.gz |
302 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 302 | -rw-r--r--···0·root·········(0)·root·········(0)······453·2024-05-03·10:28:35.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)······428·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_LINE_CAP.3alleg5.gz |
304 | -rw-r--r--···0·root·········(0)·root·········(0)······40 | 304 | -rw-r--r--···0·root·········(0)·root·········(0)······404·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_LINE_JOIN.3alleg5.gz |
305 | -rw-r--r--···0·root·········(0)·root·········(0)······79 | 305 | -rw-r--r--···0·root·········(0)·root·········(0)······794·2024-05-03·10:28:35.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)······368·2024-05-03·10:28:35.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)······289·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MENU.3alleg5.gz |
308 | -rw-r--r--···0·root·········(0)·root·········(0)······70 | 308 | -rw-r--r--···0·root·········(0)·root·········(0)······706·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MENU_INFO.3alleg5.gz |
309 | -rw-r--r--···0·root·········(0)·root·········(0)······50 | 309 | -rw-r--r--···0·root·········(0)·root·········(0)······502·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MIXER.3alleg5.gz |
310 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 310 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MIXER_QUALITY.3alleg5.gz |
311 | -rw-r--r--···0·root·········(0)·root·········(0)······46 | 311 | -rw-r--r--···0·root·········(0)·root·········(0)······461·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MONITOR_INFO.3alleg5.gz |
312 | -rw-r--r--···0·root·········(0)·root·········(0)······44 | 312 | -rw-r--r--···0·root·········(0)·root·········(0)······445·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MOUSE_EMULATION_MODE.3alleg5.gz |
313 | -rw-r--r--···0·root·········(0)·root·········(0)······45 | 313 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MOUSE_STATE.3alleg5.gz |
314 | -rw-r--r--···0·root·········(0)·root·········(0)······24 | 314 | -rw-r--r--···0·root·········(0)·root·········(0)······243·2024-05-03·10:28:35.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)······236·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_MUTEX.3alleg5.gz |
316 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 316 | -rw-r--r--···0·root·········(0)·root·········(0)······298·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE.3alleg5.gz |
317 | -rw-r--r--···0·root·········(0)·root·········(0)······29 | 317 | -rw-r--r--···0·root·········(0)·root·········(0)······290·2024-05-03·10:28:35.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)·····2159·2024-05-03·10:28:35.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)······467·2024-05-03·10:28:35.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)·····1138·2024-05-03·10:28:35.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)······568·2024-05-03·10:28:35.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)······358·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_PRIM_QUALITY.3alleg5.gz |
323 | -rw-r--r--···0·root·········(0)·root·········(0)······90 | 323 | -rw-r--r--···0·root·········(0)·root·········(0)······902·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_PRIM_STORAGE.3alleg5.gz |
324 | -rw-r--r--···0·root·········(0)·root·········(0)······48 | 324 | -rw-r--r--···0·root·········(0)·root·········(0)······484·2024-05-03·10:28:35.000000·./usr/share/man/man3/ALLEGRO_PRIM_TYPE.3alleg5.gz |
Max diff block lines reached; 167425/207817 bytes (80.56%) of diff not shown. |
Offset 181, 16 lines modified | Offset 181, 15 lines modified | ||
181 | id="toc-al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> | 181 | id="toc-al_get_allegro_acodec_version">al_get_allegro_acodec_version</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
185 | allegro_acodec.</p> | 185 | allegro_acodec.</p> |
186 | <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_acodec.h></span></span></code></pre></div> | 186 | <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_acodec.h></span></span></code></pre></div> |
187 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> | 187 | <h1·id="al_init_acodec_addon">al_init_acodec_addon</h1> |
188 | <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="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 188 | <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="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
189 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_acodec_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
190 | <p><a | 189 | <p><a |
191 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source | 190 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L21">Source |
192 | Code</a></p> | 191 | Code</a></p> |
193 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a | 192 | <p>This·function·registers·all·the·known·audio·file·type·handlers·for·<a |
194 | href="audio.html#al_load_sample">al_load_sample</a>,·<a | 193 | href="audio.html#al_load_sample">al_load_sample</a>,·<a |
195 | href="audio.html#al_save_sample">al_save_sample</a>,·<a | 194 | href="audio.html#al_save_sample">al_save_sample</a>,·<a |
196 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>, | 195 | href="audio.html#al_load_audio_stream">al_load_audio_stream</a>, |
Offset 221, 25 lines modified | Offset 220, 27 lines modified | ||
221 | <li><a | 220 | <li><a |
222 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> | 221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L39">ex_acodec_multi.c</a></li> |
223 | <li><a | 222 | <li><a |
224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> | 223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L30">ex_kcm_direct.c</a></li> |
225 | </ul> | 224 | </ul> |
226 | <h1 | 225 | <h1 |
227 | 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> |
228 | <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> | 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> |
229 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
230 | <p><a | 228 | <p><a |
231 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L83">Source | 229 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L83">Source |
232 | Code</a></p> | 230 | Code</a></p> |
233 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 231 | <p>Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
234 | false.</p> | 232 | false.</p> |
235 | <p>Since:·5.2.6</p> | 233 | <p>Since:·5.2.6</p> |
236 | <h1 | 234 | <h1 |
237 | id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> | 235 | id="al_get_allegro_acodec_version">al_get_allegro_acodec_version</h1> |
238 | <p><a·href=""> | 236 | <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">uint32_t</span>·al_get_allegro_acodec_version<span·class="op">(</span><span·class="[·...·truncated·by·diffoscope;·len:·65,·SHA:·814e7950d574ff9b6bcb44f3747e097c7f6881c7b246b9f04063f1bdd6bb63f8·...·]> |
237 | <p><a | ||
238 | href="https://github.com/liballeg/allegro5/blob/master/addons/acodec/acodec.c#L13">Source | ||
239 | Code</a></p> | ||
239 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 240 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
240 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 241 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
241 | <p·class="timestamp"> | 242 | <p·class="timestamp"> |
242 | Allegro·version·5.2.9 | 243 | Allegro·version·5.2.9 |
243 | ·-·Last·updated:·2024-05-03·10:28:35·UTC | 244 | ·-·Last·updated:·2024-05-03·10:28:35·UTC |
244 | </p> | 245 | </p> |
245 | </div> | 246 | </div> |
Offset 47, 15 lines modified | Offset 47, 14 lines modified | ||
47 | ····*·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8i_\x8z_\x8e_\x8d | 47 | ····*·_\x8a_\x8l_\x8__\x8i_\x8s_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8a_\x8d_\x8d_\x8o_\x8n_\x8__\x8i_\x8n_\x8i_\x8t_\x8i_\x8a_\x8l_\x8i_\x8z_\x8e_\x8d |
48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
49 | These·functions·are·declared·in·the·following·header·file.·Link·with | 49 | These·functions·are·declared·in·the·following·header·file.·Link·with |
50 | allegro_acodec. | 50 | allegro_acodec. |
51 | ·#include·<allegro5/allegro_acodec.h> | 51 | ·#include·<allegro5/allegro_acodec.h> |
52 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_a\x8ac\x8co\x8od\x8de\x8ec\x8c_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
53 | bool·al_init_acodec_addon(void) | 53 | bool·al_init_acodec_addon(void) |
54 | bool·al_init_acodec_addon(void) | ||
55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
56 | This·function·registers·all·the·known·audio·file·type·handlers·for | 55 | This·function·registers·all·the·known·audio·file·type·handlers·for |
57 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m,·etc. | 56 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m,·etc. |
58 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 57 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
59 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. | 58 | extensions·is:·.wav,·.flac,·.ogg,·.opus,·.it,·.mod,·.s3m,·.xm,·.voc. |
60 | L\x8Li\x8im\x8mi\x8it\x8ta\x8at\x8ti\x8io\x8on\x8ns\x8s:\x8: | 59 | L\x8Li\x8im\x8mi\x8it\x8ta\x8at\x8ti\x8io\x8on\x8ns\x8s:\x8: |
61 | ····*·Saving·is·only·supported·for·wav·files. | 60 | ····*·Saving·is·only·supported·for·wav·files. |
Offset 71, 16 lines modified | Offset 70, 16 lines modified | ||
71 | Return·true·on·success. | 70 | Return·true·on·success. |
72 | Examples: | 71 | Examples: |
73 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 72 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
74 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 73 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c |
75 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | 74 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c |
76 | *\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* |
77 | bool·al_is_acodec_addon_initialized(void) | 76 | bool·al_is_acodec_addon_initialized(void) |
78 | bool·al_is_acodec_addon_initialized(void) | ||
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns·false. |
81 | Since:·5.2.6 | 79 | Since:·5.2.6 |
82 | *\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* |
83 | 81 | uint32_t·al_get_allegro_acodec_version(void) | |
82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | ||
84 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 83 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
85 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 84 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
86 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC | 85 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC |
Offset 554, 16 lines modified | Offset 554, 15 lines modified | ||
554 | <p>If·you·want·to·play·large·audio·files·(e.g. background·music)·without | 554 | <p>If·you·want·to·play·large·audio·files·(e.g. background·music)·without |
555 | loading·the·whole·file·at·once·you·can·use·<a | 555 | loading·the·whole·file·at·once·you·can·use·<a |
556 | href="audio.html#al_play_audio_stream">al_play_audio_stream</a>·(after | 556 | href="audio.html#al_play_audio_stream">al_play_audio_stream</a>·(after |
557 | calling·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>). | 557 | calling·<a·href="audio.html#al_reserve_samples">al_reserve_samples</a>). |
558 | This·will·load·and·play·an·<code>ALLEGRO_AUDIO_STREAM</code>.·Note·that | 558 | This·will·load·and·play·an·<code>ALLEGRO_AUDIO_STREAM</code>.·Note·that |
559 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once.</p> | 559 | the·basic·API·only·supports·one·such·audio·stream·playing·at·once.</p> |
560 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> | 560 | <h2·id="allegro_sample_id">ALLEGRO_SAMPLE_ID</h2> |
561 | <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_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span> | 561 | <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_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span></code></pre></div> |
562 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID<span·class="op">;</span></span></code></pre></div> | ||
563 | <p><a | 562 | <p><a |
564 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L151">Source | 563 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/allegro5/allegro_audio.h#L151">Source |
565 | Code</a></p> | 564 | Code</a></p> |
566 | <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 |
567 | 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 |
568 | later·stop·the·sample·with·<a | 567 | later·stop·the·sample·with·<a |
569 | 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 |
Offset 571, 16 lines modified | Offset 570, 15 lines modified | ||
571 | 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> |
572 | <p>Examples:</p> | 571 | <p>Examples:</p> |
573 | <ul> | 572 | <ul> |
574 | <li><a | 573 | <li><a |
575 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> | 574 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_simple.c#L33">ex_audio_simple.c</a></li> |
576 | </ul> | 575 | </ul> |
577 | <h2·id="al_install_audio">al_install_audio</h2> | 576 | <h2·id="al_install_audio">al_install_audio</h2> |
578 | <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> | 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> |
579 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
580 | <p><a | 578 | <p><a |
581 | 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 |
582 | Code</a></p> | 580 | Code</a></p> |
583 | <p>Install·the·audio·subsystem.</p> | 581 | <p>Install·the·audio·subsystem.</p> |
584 | <p>Returns·true·on·success,·false·on·failure.</p> | 582 | <p>Returns·true·on·success,·false·on·failure.</p> |
585 | <blockquote> | 583 | <blockquote> |
586 | <p>Note:·most·users·will·call·<a | 584 | <p>Note:·most·users·will·call·<a |
Offset 599, 16 lines modified | Offset 597, 15 lines modified | ||
599 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> | 597 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_devices.c#L20">ex_audio_devices.c</a></li> |
600 | <li><a | 598 | <li><a |
601 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L94">ex_saw.c</a></li> | 599 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L94">ex_saw.c</a></li> |
602 | <li><a | 600 | <li><a |
603 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> | 601 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L53">ex_stream_file.c</a></li> |
604 | </ul> | 602 | </ul> |
605 | <h2·id="al_uninstall_audio">al_uninstall_audio</h2> | 603 | <h2·id="al_uninstall_audio">al_uninstall_audio</h2> |
606 | <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> | 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> |
607 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
608 | <p><a | 605 | <p><a |
609 | 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 |
610 | Code</a></p> | 607 | Code</a></p> |
611 | <p>Uninstalls·the·audio·subsystem.</p> | 608 | <p>Uninstalls·the·audio·subsystem.</p> |
612 | <p>See·also:·<a | 609 | <p>See·also:·<a |
613 | href="audio.html#al_install_audio">al_install_audio</a></p> | 610 | href="audio.html#al_install_audio">al_install_audio</a></p> |
614 | <p>Examples:</p> | 611 | <p>Examples:</p> |
Offset 617, 25 lines modified | Offset 614, 23 lines modified | ||
617 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L116">ex_saw.c</a></li> | 614 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L116">ex_saw.c</a></li> |
618 | <li><a | 615 | <li><a |
619 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> | 616 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L133">ex_stream_file.c</a></li> |
620 | <li><a | 617 | <li><a |
621 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> | 618 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L134">ex_acodec_multi.c</a></li> |
622 | </ul> | 619 | </ul> |
623 | <h2·id="al_is_audio_installed">al_is_audio_installed</h2> | 620 | <h2·id="al_is_audio_installed">al_is_audio_installed</h2> |
624 | <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> | 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> |
625 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
626 | <p><a | 622 | <p><a |
627 | 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 |
628 | Code</a></p> | 624 | Code</a></p> |
629 | <p>Returns·true·if·<a | 625 | <p>Returns·true·if·<a |
630 | 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 |
631 | previously·and·returned·successfully.</p> | 627 | previously·and·returned·successfully.</p> |
632 | <h2·id="al_reserve_samples">al_reserve_samples</h2> | 628 | <h2·id="al_reserve_samples">al_reserve_samples</h2> |
633 | <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_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span> | 629 | <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_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span></code></pre></div> |
634 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_reserve_samples<span·class="op">(</span><span·class="dt">int</span>·reserve_samples<span·class="op">)</span></span></code></pre></div> | ||
635 | <p><a | 630 | <p><a |
636 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L207">Source | 631 | href="https://github.com/liballeg/allegro5/blob/master/addons/audio/kcm_sample.c#L207">Source |
637 | Code</a></p> | 632 | Code</a></p> |
638 | <p>Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 633 | <p>Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
639 | mixer.·If·no·default·mixer·is·set·when·this·function·is·called,·then·it | 634 | mixer.·If·no·default·mixer·is·set·when·this·function·is·called,·then·it |
640 | will·create·one·and·attach·it·to·the·default·voice.·If·no·default·voice | 635 | will·create·one·and·attach·it·to·the·default·voice.·If·no·default·voice |
641 | has·been·set,·it,·too,·will·be·created.</p> | 636 | has·been·set,·it,·too,·will·be·created.</p> |
Offset 663, 17 lines modified | Offset 658, 15 lines modified | ||
663 | <li><a | 658 | <li><a |
664 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> | 659 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L167">ex_audio_props.cpp</a></li> |
665 | <li><a | 660 | <li><a |
666 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> | 661 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resample_test.c#L182">ex_resample_test.c</a></li> |
667 | </ul> | 662 | </ul> |
668 | <h2·id="al_play_sample">al_play_sample</h2> | 663 | <h2·id="al_play_sample">al_play_sample</h2> |
669 | <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> |
670 | <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> | ||
671 | <span·id="cb8-3"><a·href="#cb8-3"·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> | ||
672 | <span·id="cb8- | 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> |
673 | <p><a | 666 | <p><a |
674 | 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 |
675 | Code</a></p> | 668 | Code</a></p> |
676 | <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 |
677 | href="audio.html#al_reserve_samples">al_reserve_samples</a>.·Returns | 670 | href="audio.html#al_reserve_samples">al_reserve_samples</a>.·Returns |
678 | true·on·success,·false·on·failure.·Playback·may·fail·because·all·the | 671 | true·on·success,·false·on·failure.·Playback·may·fail·because·all·the |
679 | reserved·sample·instances·are·currently·used.</p> | 672 | reserved·sample·instances·are·currently·used.</p> |
Offset 706, 16 lines modified | Offset 699, 15 lines modified | ||
706 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> | 699 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107">ex_acodec_multi.c</a></li> |
707 | <li><a | 700 | <li><a |
708 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> | 701 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L80">ex_kcm_direct.c</a></li> |
709 | <li><a | 702 | <li><a |
710 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> | 703 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L90">ex_mixer_chain.c</a></li> |
711 | </ul> | 704 | </ul> |
712 | <h2·id="al_stop_sample">al_stop_sample</h2> | 705 | <h2·id="al_stop_sample">al_stop_sample</h2> |
713 | <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> | 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> |
714 | <span·id="cb9-2"><a·href="#cb9-2"·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> | ||
715 | <p><a | 707 | <p><a |
716 | 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 |
717 | Code</a></p> | 709 | Code</a></p> |
718 | <p>Stop·the·sample·started·by·<a | 710 | <p>Stop·the·sample·started·by·<a |
719 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 711 | href="audio.html#al_play_sample">al_play_sample</a>.</p> |
720 | <p>See·also:·<a | 712 | <p>See·also:·<a |
721 | href="audio.html#al_stop_samples">al_stop_samples</a></p> | 713 | href="audio.html#al_stop_samples">al_stop_samples</a></p> |
Offset 725, 30 lines modified | Offset 717, 28 lines modified | ||
725 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> | 717 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L123">ex_acodec_multi.c</a></li> |
726 | <li><a | 718 | <li><a |
727 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> | 719 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88">ex_kcm_direct.c</a></li> |
728 | <li><a | 720 | <li><a |
729 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> | 721 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mixer_chain.c#L108">ex_mixer_chain.c</a></li> |
730 | </ul> | 722 | </ul> |
731 | <h2·id="al_stop_samples">al_stop_samples</h2> | 723 | <h2·id="al_stop_samples">al_stop_samples</h2> |
732 | <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> | 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> |
733 | <span·id="cb10-2"><a·href="#cb10-2"·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> | ||
734 | <p><a | 725 | <p><a |
735 | 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 |
736 | Code</a></p> | 727 | Code</a></p> |
737 | <p>Stop·all·samples·started·by·<a | 728 | <p>Stop·all·samples·started·by·<a |
738 | href="audio.html#al_play_sample">al_play_sample</a>.</p> | 729 | href="audio.html#al_play_sample">al_play_sample</a>.</p> |
739 | <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; 243571/256278 bytes (95.04%) of diff not shown. |
Offset 228, 54 lines modified | Offset 228, 49 lines modified | ||
228 | samples,·you·can·use·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D·that·al_play_sample·returns. | 228 | samples,·you·can·use·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8A_\x8M_\x8P_\x8L_\x8E_\x8__\x8I_\x8D·that·al_play_sample·returns. |
229 | If·you·want·to·play·large·audio·files·(e.g. background·music)·without·loading | 229 | If·you·want·to·play·large·audio·files·(e.g. background·music)·without·loading |
230 | the·whole·file·at·once·you·can·use·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·(after·calling | 230 | the·whole·file·at·once·you·can·use·_\x8a_\x8l_\x8__\x8p_\x8l_\x8a_\x8y_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m·(after·calling |
231 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s).·This·will·load·and·play·an·ALLEGRO_AUDIO_STREAM.·Note·that | 231 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s).·This·will·load·and·play·an·ALLEGRO_AUDIO_STREAM.·Note·that |
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 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
236 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
237 | 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 |
238 | 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 |
239 | 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. |
240 | Examples: | 239 | Examples: |
241 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 240 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
242 | *\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* |
243 | bool·al_install_audio(void) | 242 | bool·al_install_audio(void) |
244 | bool·al_install_audio(void) | ||
245 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
246 | Install·the·audio·subsystem. | 244 | Install·the·audio·subsystem. |
247 | Returns·true·on·success,·false·on·failure. | 245 | Returns·true·on·success,·false·on·failure. |
248 | ·····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 |
249 | ·····_\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. |
250 | 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, |
251 | _\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 |
252 | Examples: | 250 | Examples: |
253 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c | 251 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8d_\x8e_\x8v_\x8i_\x8c_\x8e_\x8s_\x8._\x8c |
254 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 252 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
255 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 253 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
256 | *\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* |
257 | void·al_uninstall_audio(void) | 255 | void·al_uninstall_audio(void) |
258 | void·al_uninstall_audio(void) | ||
259 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 256 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
260 | Uninstalls·the·audio·subsystem. | 257 | Uninstalls·the·audio·subsystem. |
261 | 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 |
262 | Examples: | 259 | Examples: |
263 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 260 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
264 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 261 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
265 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 262 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c |
266 | *\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* |
267 | bool·al_is_audio_installed(void) | 264 | bool·al_is_audio_installed(void) |
268 | bool·al_is_audio_installed(void) | ||
269 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
270 | 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 |
271 | successfully. | 267 | successfully. |
272 | *\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* |
273 | bool·al_reserve_samples(int·reserve_samples) | 269 | bool·al_reserve_samples(int·reserve_samples) |
274 | bool·al_reserve_samples(int·reserve_samples) | ||
275 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 270 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
276 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default·mixer.·If | 271 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default·mixer.·If |
277 | no·default·mixer·is·set·when·this·function·is·called,·then·it·will·create·one | 272 | no·default·mixer·is·set·when·this·function·is·called,·then·it·will·create·one |
278 | and·attach·it·to·the·default·voice.·If·no·default·voice·has·been·set,·it,·too, | 273 | and·attach·it·to·the·default·voice.·If·no·default·voice·has·been·set,·it,·too, |
279 | will·be·created. | 274 | will·be·created. |
280 | If·you·call·this·function·a·second·time·with·a·smaller·number·of·samples,·then | 275 | If·you·call·this·function·a·second·time·with·a·smaller·number·of·samples,·then |
281 | the·excess·internal·sample·instances·will·be·destroyed·causing·some·sounds·to | 276 | the·excess·internal·sample·instances·will·be·destroyed·causing·some·sounds·to |
Offset 292, 16 lines modified | Offset 287, 14 lines modified | ||
292 | Examples: | 287 | Examples: |
293 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c | 288 | ····*·_\x8e_\x8x_\x8__\x8s_\x8a_\x8w_\x8._\x8c |
294 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p | 289 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8p_\x8r_\x8o_\x8p_\x8s_\x8._\x8c_\x8p_\x8p |
295 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 290 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
296 | *\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* |
297 | 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, |
298 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 293 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
299 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | ||
300 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | ||
301 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
302 | 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. |
303 | 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 |
304 | reserved·sample·instances·are·currently·used. | 297 | reserved·sample·instances·are·currently·used. |
305 | Parameters: | 298 | Parameters: |
306 | ····*·gain·-·relative·volume·at·which·the·sample·is·played;·1.0·is·normal. | 299 | ····*·gain·-·relative·volume·at·which·the·sample·is·played;·1.0·is·normal. |
307 | ····*·pan·-·0.0·is·centred,·-1.0·is·left,·1.0·is·right,·or | 300 | ····*·pan·-·0.0·is·centred,·-1.0·is·left,·1.0·is·right,·or |
Offset 317, 33 lines modified | Offset 310, 30 lines modified | ||
317 | _\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. |
318 | Examples: | 311 | Examples: |
319 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 312 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c |
320 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | 313 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c |
321 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c | 314 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c |
322 | *\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* |
323 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | 316 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) |
324 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | ||
325 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 317 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
326 | 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. |
327 | 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 |
328 | Examples: | 320 | Examples: |
329 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c | 321 | ····*·_\x8e_\x8x_\x8__\x8a_\x8c_\x8o_\x8d_\x8e_\x8c_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8._\x8c |
330 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c | 322 | ····*·_\x8e_\x8x_\x8__\x8k_\x8c_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8._\x8c |
331 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c | 323 | ····*·_\x8e_\x8x_\x8__\x8m_\x8i_\x8x_\x8e_\x8r_\x8__\x8c_\x8h_\x8a_\x8i_\x8n_\x8._\x8c |
332 | *\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* |
333 | void·al_stop_samples(void) | 325 | void·al_stop_samples(void) |
334 | void·al_stop_samples(void) | ||
335 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 326 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
336 | 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. |
337 | 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 |
338 | Examples: | 329 | Examples: |
339 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 330 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
340 | *\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* |
341 | 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) |
342 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
343 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 333 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
344 | 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. |
345 | 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 |
346 | volume,·pan,·etc)·while·the·sound·is·playing. | 336 | volume,·pan,·etc)·while·the·sound·is·playing. |
347 | 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 |
348 | longer·playing. | 338 | longer·playing. |
349 | 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 |
Offset 353, 28 lines modified | Offset 343, 26 lines modified | ||
353 | 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 |
354 | Since:·5.2.3 | 344 | Since:·5.2.3 |
355 | ·····_\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. |
356 | Examples: | 346 | Examples: |
357 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 347 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
358 | *\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* |
359 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | 349 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
360 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
361 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 350 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
362 | 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 |
363 | 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 |
364 | 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 |
365 | 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. |
366 | 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 |
367 | Since:·5.2.3 | 356 | Since:·5.2.3 |
368 | ·····_\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. |
369 | Examples: | 358 | Examples: |
370 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 359 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8s_\x8i_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
371 | *\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* |
372 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | 361 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) |
373 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | ||
Max diff block lines reached; 105102/112878 bytes (93.11%) of diff not shown. |
Offset 263, 16 lines modified | Offset 263, 15 lines modified | ||
263 | between·the·three·color·channels·into·account·as·well.·In·general,·most | 263 | between·the·three·color·channels·into·account·as·well.·In·general,·most |
264 | monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if | 264 | monitors·nowadays·try·to·be·close·to·the·sRGB·specification.·And·so·if |
265 | in·an·Allegro·game·you·display·something·with·color</p> | 265 | in·an·Allegro·game·you·display·something·with·color</p> |
266 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> | 266 | <p>al_map_rgb_f(0.5,·0.5,·0,5)</p> |
267 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual | 267 | <p>then·it·will·appear·at·about·half·brightness·(even·though·the·actual |
268 | brightness·output·of·the·monitor·will·be·less·than·half).</p> | 268 | brightness·output·of·the·monitor·will·be·less·than·half).</p> |
269 | <h1·id="al_color_cmyk">al_color_cmyk</h1> | 269 | <h1·id="al_color_cmyk">al_color_cmyk</h1> |
270 | <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>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span> | 270 | <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>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span></code></pre></div> |
271 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_COLOR·al_color_cmyk<span·class="op">(</span><span·class="dt">float</span>·c<span·class="op">,</span>·<span·class="dt">float</span>·m<span·class="op">,</span>·<span·class="dt">float</span>·y<span·class="op">,</span>·<span·class="dt">float</span>·k<span·class="op">)</span></span></code></pre></div> | ||
272 | <p><a | 271 | <p><a |
273 | 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 |
274 | Code</a></p> | 273 | Code</a></p> |
275 | <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> |
276 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> | 275 | structure·from·CMYK·values·(cyan,·magenta,·yellow,·black).</p> |
277 | <p>See·also:·<a | 276 | <p>See·also:·<a |
278 | 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 |
Offset 280, 31 lines modified | Offset 279, 28 lines modified | ||
280 | <p>Examples:</p> | 279 | <p>Examples:</p> |
281 | <ul> | 280 | <ul> |
282 | <li><a | 281 | <li><a |
283 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | 282 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> |
284 | </ul> | 283 | </ul> |
285 | <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> |
286 | <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> |
287 | <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> | ||
288 | <span·id="cb3-3"><a·href="#cb3-3"·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> | ||
289 | <span·id="cb3- | 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> |
290 | <p><a | 287 | <p><a |
291 | 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 |
292 | Code</a></p> | 289 | Code</a></p> |
293 | <p>Convert·CMYK·values·to·RGB·values.</p> | 290 | <p>Convert·CMYK·values·to·RGB·values.</p> |
294 | <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 |
295 | 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> |
296 | <p>Examples:</p> | 293 | <p>Examples:</p> |
297 | <ul> | 294 | <ul> |
298 | <li><a | 295 | <li><a |
299 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> | 296 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L124">ex_color.cpp</a></li> |
300 | </ul> | 297 | </ul> |
301 | <h1·id="al_color_hsl">al_color_hsl</h1> | 298 | <h1·id="al_color_hsl">al_color_hsl</h1> |
302 | <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> | 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> |
303 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
304 | <p><a | 300 | <p><a |
305 | 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 |
306 | Code</a></p> | 302 | Code</a></p> |
307 | <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> |
308 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> | 304 | structure·from·HSL·(hue,·saturation,·lightness)·values.</p> |
309 | <p>Parameters:</p> | 305 | <p>Parameters:</p> |
310 | <ul> | 306 | <ul> |
Offset 322, 17 lines modified | Offset 318, 15 lines modified | ||
322 | <li><a | 318 | <li><a |
323 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> | 319 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_clip.c#L50">ex_clip.c</a></li> |
324 | <li><a | 320 | <li><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | 321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> |
326 | </ul> | 322 | </ul> |
327 | <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> |
328 | <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> |
329 | <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> | ||
330 | <span·id="cb5-3"><a·href="#cb5-3"·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> | ||
331 | <span·id="cb5- | 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> |
332 | <p><a | 326 | <p><a |
333 | 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 |
334 | Code</a></p> | 328 | Code</a></p> |
335 | <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> |
336 | <p>Parameters:</p> | 330 | <p>Parameters:</p> |
337 | <ul> | 331 | <ul> |
338 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 332 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
Offset 348, 16 lines modified | Offset 342, 15 lines modified | ||
348 | <ul> | 342 | <ul> |
349 | <li><a | 343 | <li><a |
350 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> | 344 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L101">ex_color.cpp</a></li> |
351 | <li><a | 345 | <li><a |
352 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> | 346 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_palette.c#L89">ex_palette.c</a></li> |
353 | </ul> | 347 | </ul> |
354 | <h1·id="al_color_hsv">al_color_hsv</h1> | 348 | <h1·id="al_color_hsv">al_color_hsv</h1> |
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>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> | 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> |
356 | <span·id="cb6-2"><a·href="#cb6-2"·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> | ||
357 | <p><a | 350 | <p><a |
358 | 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 |
359 | Code</a></p> | 352 | Code</a></p> |
360 | <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> |
361 | structure·from·HSV·(hue,·saturation,·value)·values.</p> | 354 | structure·from·HSV·(hue,·saturation,·value)·values.</p> |
362 | <p>Parameters:</p> | 355 | <p>Parameters:</p> |
363 | <ul> | 356 | <ul> |
Offset 375, 17 lines modified | Offset 368, 15 lines modified | ||
375 | <li><a | 368 | <li><a |
376 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | 369 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> |
377 | <li><a | 370 | <li><a |
378 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> | 371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L95">ex_multisample.c</a></li> |
379 | </ul> | 372 | </ul> |
380 | <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> |
381 | <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> |
382 | <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> | ||
383 | <span·id="cb7-3"><a·href="#cb7-3"·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> | ||
384 | <span·id="cb7- | 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> |
385 | <p><a | 376 | <p><a |
386 | 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 |
387 | Code</a></p> | 378 | Code</a></p> |
388 | <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> |
389 | <p>Parameters:</p> | 380 | <p>Parameters:</p> |
390 | <ul> | 381 | <ul> |
391 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> | 382 | <li>hue·-·Color·hue·angle·in·the·range·0..360</li> |
Offset 399, 16 lines modified | Offset 390, 15 lines modified | ||
399 | 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> |
400 | <p>Examples:</p> | 391 | <p>Examples:</p> |
401 | <ul> | 392 | <ul> |
402 | <li><a | 393 | <li><a |
403 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> | 394 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_color.cpp#L92">ex_color.cpp</a></li> |
404 | </ul> | 395 | </ul> |
405 | <h1·id="al_color_html">al_color_html</h1> | 396 | <h1·id="al_color_html">al_color_html</h1> |
406 | <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> | 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> |
407 | <span·id="cb8-2"><a·href="#cb8-2"·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> | ||
408 | <p><a | 398 | <p><a |
409 | 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 |
410 | Code</a></p> | 400 | Code</a></p> |
411 | <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 |
412 | accepted·format·is·the·same·as·<a | 402 | accepted·format·is·the·same·as·<a |
413 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> | 403 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>.</p> |
414 | <p>Returns·the·interpreted·color,·or | 404 | <p>Returns·the·interpreted·color,·or |
Offset 419, 17 lines modified | Offset 409, 15 lines modified | ||
419 | Allegro·5.0.x.</p> | 409 | Allegro·5.0.x.</p> |
420 | </blockquote> | 410 | </blockquote> |
421 | <p>See·also:·<a | 411 | <p>See·also:·<a |
422 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a | 412 | href="color.html#al_color_html_to_rgb">al_color_html_to_rgb</a>,·<a |
423 | href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> | 413 | href="color.html#al_color_rgb_to_html">al_color_rgb_to_html</a></p> |
424 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> | 414 | <h1·id="al_color_html_to_rgb">al_color_html_to_rgb</h1> |
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">bool</span>·al_color_html_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">,</span></span> | 415 | <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">bool</span>·al_color_html_to_rgb<span·class="op">(</span><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>string<span·class="op">,</span></span> |
426 | <span·id="cb9-2"><a·href="#cb9-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> | ||
Max diff block lines reached; 62946/79014 bytes (79.66%) of diff not shown. |
Offset 99, 120 lines modified | Offset 99, 106 lines modified | ||
99 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you | 99 | try·to·be·close·to·the·sRGB·specification.·And·so·if·in·an·Allegro·game·you |
100 | display·something·with·color | 100 | display·something·with·color |
101 | al_map_rgb_f(0.5,·0.5,·0,5) | 101 | al_map_rgb_f(0.5,·0.5,·0,5) |
102 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness | 102 | then·it·will·appear·at·about·half·brightness·(even·though·the·actual·brightness |
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 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 106 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
108 | 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, |
109 | black). | 108 | black). |
110 | 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 |
111 | Examples: | 110 | Examples: |
112 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
113 | *\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* |
114 | 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, |
115 | ····float·key,·float·*red,·float·*green,·float·*blue) | 114 | ····float·key,·float·*red,·float·*green,·float·*blue) |
116 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
117 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 115 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | Convert·CMYK·values·to·RGB·values. | 116 | Convert·CMYK·values·to·RGB·values. |
120 | 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 |
121 | Examples: | 118 | Examples: |
122 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 119 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
123 | *\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* |
124 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | 121 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
125 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
127 | 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. |
128 | Parameters: | 124 | Parameters: |
129 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 125 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
130 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 126 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
131 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 127 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
132 | 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 |
133 | Examples: | 129 | Examples: |
134 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 130 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
135 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c | 131 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8._\x8c |
136 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | 132 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c |
137 | *\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* |
138 | 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, |
139 | ···float·*red,·float·*green,·float·*blue) | 135 | ···float·*red,·float·*green,·float·*blue) |
140 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
141 | ···float·*red,·float·*green,·float·*blue) | ||
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 137 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
144 | Parameters: | 138 | Parameters: |
145 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 139 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
146 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 140 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
147 | ····*·lightness·-·Color·lightness·in·the·range·0..1 | 141 | ····*·lightness·-·Color·lightness·in·the·range·0..1 |
148 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 142 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
149 | 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 |
150 | Examples: | 144 | Examples: |
151 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 145 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
152 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c | 146 | ····*·_\x8e_\x8x_\x8__\x8p_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e_\x8._\x8c |
153 | *\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* |
154 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | 148 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
155 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
156 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
157 | 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. |
158 | Parameters: | 151 | Parameters: |
159 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 152 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
160 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 153 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
161 | ····*·value·-·Color·value·in·the·range·0..1 | 154 | ····*·value·-·Color·value·in·the·range·0..1 |
162 | 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 |
163 | Examples: | 156 | Examples: |
164 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 157 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p |
165 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 158 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
166 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 159 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
167 | *\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* |
168 | 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, |
169 | ···float·*red,·float·*green,·float·*blue) | 162 | ···float·*red,·float·*green,·float·*blue) |
170 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
171 | ···float·*red,·float·*green,·float·*blue) | ||
172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
173 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 164 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
174 | Parameters: | 165 | Parameters: |
175 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 | 166 | ····*·hue·-·Color·hue·angle·in·the·range·0..360 |
176 | ····*·saturation·-·Color·saturation·in·the·range·0..1 | 167 | ····*·saturation·-·Color·saturation·in·the·range·0..1 |
177 | ····*·value·-·Color·value·in·the·range·0..1 | 168 | ····*·value·-·Color·value·in·the·range·0..1 |
178 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 | 169 | ····*·red,·green,·blue·-·returned·RGB·values·in·the·range·0..1 |
179 | 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 |
180 | Examples: | 171 | Examples: |
181 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 172 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
182 | *\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* |
183 | ALLEGRO_COLOR·al_color_html(char·const·*string) | 174 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
184 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
185 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
186 | 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 |
187 | 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. |
188 | 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 |
189 | not·be·parsed. | 179 | not·be·parsed. |
190 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 180 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
191 | ·····5.0.x. | 181 | ·····5.0.x. |
192 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l | 182 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l_\x8__\x8t_\x8o_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l |
193 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* | 183 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8co\x8ol\x8lo\x8or\x8r_\x8_h\x8ht\x8tm\x8ml\x8l_\x8_t\x8to\x8o_\x8_r\x8rg\x8gb\x8b·*\x8**\x8**\x8**\x8**\x8**\x8* |
194 | bool·al_color_html_to_rgb(char·const·*string, | 184 | bool·al_color_html_to_rgb(char·const·*string, |
195 | ···float·*red,·float·*green,·float·*blue) | 185 | ···float·*red,·float·*green,·float·*blue) |
196 | bool·al_color_html_to_rgb(char·const·*string, | ||
197 | ···float·*red,·float·*green,·float·*blue) | ||
198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 186 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only | 187 | Interprets·an·HTML-style·hex·number·(e.g. #00faff)·as·a·color.·The·only |
200 | accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal | 188 | accepted·formats·are·“#RRGGBB”·and·“RRGGBB”·where·R,·G,·B·are·hexadecimal |
201 | digits·[0-9A-Fa-f]. | 189 | digits·[0-9A-Fa-f]. |
202 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to | 190 | Returns·true·on·success,·false·on·failure.·On·failure·all·components·are·set·to |
203 | zero. | 191 | zero. |
204 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro | 192 | ·····N\x8No\x8ot\x8te\x8e:·the·behaviour·on·invalid·strings·is·different·from·Allegro |
205 | ·····5.0.x. | 193 | ·····5.0.x. |
206 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l | 194 | See·also:·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8h_\x8t_\x8m_\x8l,·_\x8a_\x8l_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8__\x8r_\x8g_\x8b_\x8__\x8t_\x8o_\x8__\x8h_\x8t_\x8m_\x8l |
207 | *\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\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 195 | *\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\x8ht\x8tm\x8ml\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
208 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | 196 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, |
209 | ····char·*string) | 197 | ····char·*string) |
210 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
211 | ····char·*string) | ||
212 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 198 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
213 | Create·an·HTML-style·string·representation·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·e.g. #00faff. | 199 | Create·an·HTML-style·string·representation·of·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8C_\x8O_\x8L_\x8O_\x8R,·e.g. #00faff. |
214 | Parameters: | 200 | Parameters: |
215 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. | 201 | ····*·red,·green,·blue·-·The·color·components·in·the·range·0..1. |
216 | ····*·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 |
217 | ······will·be·written·(including·the·NUL·terminator). | 203 | ······will·be·written·(including·the·NUL·terminator). |
218 | Example: | 204 | Example: |
Offset 220, 26 lines modified | Offset 206, 24 lines modified | ||
220 | al_color_rgb_to_html(1,·0,·0,·html); | 206 | al_color_rgb_to_html(1,·0,·0,·html); |
221 | Now·html·will·contain·“#ff0000”. | 207 | Now·html·will·contain·“#ff0000”. |
222 | 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 |
223 | Examples: | 209 | Examples: |
224 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p | 210 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8l_\x8o_\x8r_\x8._\x8c_\x8p_\x8p |
225 | *\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* |
Max diff block lines reached; 18759/25950 bytes (72.29%) of diff not shown. |
Offset 253, 32 lines modified | Offset 253, 30 lines modified | ||
253 | an·actual·program):</p> | 253 | an·actual·program):</p> |
254 | <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_CONFIG<span·class="op">*</span>·cfg·<span·class="op">=</span>·al_load_config_file<span·class="op">(</span><span·class="st">"test.cfg"</span><span·class="op">);</span></span> | 254 | <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_CONFIG<span·class="op">*</span>·cfg·<span·class="op">=</span>·al_load_config_file<span·class="op">(</span><span·class="st">"test.cfg"</span><span·class="op">);</span></span> |
255 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">""</span><span·class="op">,</span>·<span·class="st">"monster·name"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></span> | 255 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">""</span><span·class="op">,</span>·<span·class="st">"monster·name"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·Allegro·Developer·*/</span></span> |
256 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·0"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·443·*/</span></span> | 256 | <span·id="cb3-3"><a·href="#cb3-3"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·0"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·443·*/</span></span> |
257 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·1"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·503·*/</span></span> | 257 | <span·id="cb3-4"><a·href="#cb3-4"·aria-hidden="true"·tabindex="-1"></a>printf<span·class="op">(</span><span·class="st">"</span><span·class="sc">%s\n</span><span·class="st">"</span><span·class="op">,</span>·al_get_config_value<span·class="op">(</span>cfg<span·class="op">,</span>·<span·class="st">"weapon·1"</span><span·class="op">,</span>·<span·class="st">"damage"</span><span·class="op">));</span>·<span·class="co">/*·Prints:·503·*/</span></span> |
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> | 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 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
262 | <p><a | 261 | <p><a |
263 | 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 |
264 | Code</a></p> | 263 | Code</a></p> |
265 | <p>An·abstract·configuration·structure.</p> | 264 | <p>An·abstract·configuration·structure.</p> |
266 | <p>Examples:</p> | 265 | <p>Examples:</p> |
267 | <ul> | 266 | <ul> |
268 | <li><a | 267 | <li><a |
269 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> | 268 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L26">ex_config.c</a></li> |
270 | <li><a | 269 | <li><a |
271 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> | 270 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vsync.c#L14">ex_vsync.c</a></li> |
272 | <li><a | 271 | <li><a |
273 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> | 272 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_seek.c#L239">ex_stream_seek.c</a></li> |
274 | </ul> | 273 | </ul> |
275 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</h1> | 274 | <h1·id="allegro_config_section">ALLEGRO_CONFIG_SECTION</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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION<span·class="op">;</span></span> | 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> |
277 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
278 | <p><a | 276 | <p><a |
279 | 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 |
280 | Code</a></p> | 278 | Code</a></p> |
281 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a | 279 | <p>An·opaque·structure·used·for·iterating·across·sections·in·a |
282 | configuration·structure.</p> | 280 | configuration·structure.</p> |
283 | <p>See·also:·<a | 281 | <p>See·also:·<a |
284 | 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>, |
Offset 286, 16 lines modified | Offset 284, 15 lines modified | ||
286 | 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> |
287 | <p>Examples:</p> | 285 | <p>Examples:</p> |
288 | <ul> | 286 | <ul> |
289 | <li><a | 287 | <li><a |
290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> | 288 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_config.c#L28">ex_config.c</a></li> |
291 | </ul> | 289 | </ul> |
292 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> | 290 | <h1·id="allegro_config_entry">ALLEGRO_CONFIG_ENTRY</h1> |
293 | <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> | 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> |
294 | <span·id="cb6-2"><a·href="#cb6-2"·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> | ||
295 | <p><a | 292 | <p><a |
296 | 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 |
297 | Code</a></p> | 294 | Code</a></p> |
298 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a | 295 | <p>An·opaque·structure·used·for·iterating·across·entries·in·a |
299 | configuration·section.</p> | 296 | configuration·section.</p> |
300 | <p>See·also:·<a | 297 | <p>See·also:·<a |
301 | 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>, |
Offset 101, 33 lines modified | Offset 101, 30 lines modified | ||
101 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 | 101 | printf("%s\n",·al_get_config_value(cfg,·"weapon·0",·"damage"));·/*·Prints:·443 |
102 | */ | 102 | */ |
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 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
109 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
110 | An·abstract·configuration·structure. | 109 | An·abstract·configuration·structure. |
111 | Examples: | 110 | Examples: |
112 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 111 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
113 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c | 112 | ····*·_\x8e_\x8x_\x8__\x8v_\x8s_\x8y_\x8n_\x8c_\x8._\x8c |
114 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c | 113 | ····*·_\x8e_\x8x_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8__\x8s_\x8e_\x8e_\x8k_\x8._\x8c |
115 | *\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* |
116 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | 115 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
117 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration | 117 | An·opaque·structure·used·for·iterating·across·sections·in·a·configuration |
120 | structure. | 118 | structure. |
121 | 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 |
122 | Examples: | 120 | Examples: |
123 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 121 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
124 | *\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* |
125 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | 123 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
126 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
128 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 125 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
129 | section. | 126 | section. |
130 | 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 |
131 | Examples: | 128 | Examples: |
132 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c | 129 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g_\x8._\x8c |
133 | *\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* |
Offset 334, 16 lines modified | Offset 334, 15 lines modified | ||
334 | example.</p> | 334 | example.</p> |
335 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to | 335 | <p>In·order·to·write·a·well-behaved·application,·it·is·necessary·to |
336 | remember·that·displays·will·also·inform·you·about·important·<a | 336 | remember·that·displays·will·also·inform·you·about·important·<a |
337 | href="events.html#allegro_event_display_expose">events</a>·via·their·<a | 337 | href="events.html#allegro_event_display_expose">events</a>·via·their·<a |
338 | href="display.html#al_get_display_event_source">event·sources</a>.</p> | 338 | href="display.html#al_get_display_event_source">event·sources</a>.</p> |
339 | <h1·id="display-creation">Display·creation</h1> | 339 | <h1·id="display-creation">Display·creation</h1> |
340 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> | 340 | <h2·id="allegro_display">ALLEGRO_DISPLAY</h2> |
341 | <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> | 341 | <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> |
342 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
343 | <p><a | 342 | <p><a |
344 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source | 343 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L113">Source |
345 | Code</a></p> | 344 | Code</a></p> |
346 | <p>An·opaque·type·representing·an·open·display·or·window.</p> | 345 | <p>An·opaque·type·representing·an·open·display·or·window.</p> |
347 | <p>Examples:</p> | 346 | <p>Examples:</p> |
348 | <ul> | 347 | <ul> |
349 | <li><a | 348 | <li><a |
Offset 1390, 16 lines modified | Offset 1389, 15 lines modified | ||
1390 | <li><a | 1389 | <li><a |
1391 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L49">ex_window_title.c</a></li> | 1390 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L49">ex_window_title.c</a></li> |
1392 | <li><a | 1391 | <li><a |
1393 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L62">ex_windows.c</a></li> | 1392 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_windows.c#L62">ex_windows.c</a></li> |
1394 | </ul> | 1393 | </ul> |
1395 | <h2 | 1394 | <h2 |
1396 | id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> | 1395 | id="allegro_new_window_title_max_size">ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE</h2> |
1397 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb38-1"><a·href="#cb38-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span> | 1396 | <div·class="sourceCode"·id="cb38"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb38-1"><a·href="#cb38-1"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span></code></pre></div> |
1398 | <span·id="cb38-2"><a·href="#cb38-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·</span><span·class="dv">255</span></span></code></pre></div> | ||
1399 | <p><a | 1397 | <p><a |
1400 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L118">Source | 1398 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/display.h#L118">Source |
1401 | Code</a></p> | 1399 | Code</a></p> |
1402 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a | 1400 | <p>This·is·the·maximum·size·of·the·title·that·can·be·set·with·<a |
1403 | href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> | 1401 | href="display.html#al_set_new_window_title">al_set_new_window_title</a>.</p> |
1404 | <p>See·also:·<a | 1402 | <p>See·also:·<a |
1405 | href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> | 1403 | href="display.html#al_set_new_window_title">al_set_new_window_title</a></p> |
Offset 123, 15 lines modified | Offset 123, 14 lines modified | ||
123 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can | 123 | provides·integration·for·both·(see·the·OpenGL·/·Direct3D·sections),·so·you·can |
124 | retrieve·the·underlying·textures·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8Ps,·for·example. | 124 | retrieve·the·underlying·textures·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8Ps,·for·example. |
125 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that | 125 | In·order·to·write·a·well-behaved·application,·it·is·necessary·to·remember·that |
126 | 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. | 126 | 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. |
127 | *\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* | 127 | *\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* |
128 | *\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* | 128 | *\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* |
129 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | 129 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
130 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
132 | An·opaque·type·representing·an·open·display·or·window. | 131 | An·opaque·type·representing·an·open·display·or·window. |
133 | Examples: | 132 | Examples: |
134 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c | 133 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8i_\x8n_\x8f_\x8o_\x8._\x8c |
135 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p | 134 | ····*·_\x8e_\x8x_\x8__\x8d_\x83_\x8d_\x8._\x8c_\x8p_\x8p |
136 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 135 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c |
137 | *\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 | *\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* |
Offset 740, 15 lines modified | Offset 739, 14 lines modified | ||
740 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8N_\x8E_\x8W_\x8__\x8W_\x8I_\x8N_\x8D_\x8O_\x8W_\x8__\x8T_\x8I_\x8T_\x8L_\x8E_\x8__\x8M_\x8A_\x8X_\x8__\x8S_\x8I_\x8Z_\x8E | 739 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8N_\x8E_\x8W_\x8__\x8W_\x8I_\x8N_\x8D_\x8O_\x8W_\x8__\x8T_\x8I_\x8T_\x8L_\x8E_\x8__\x8M_\x8A_\x8X_\x8__\x8S_\x8I_\x8Z_\x8E |
741 | Since:·5.1.12 | 740 | Since:·5.1.12 |
742 | Examples: | 741 | Examples: |
743 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c | 742 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c |
744 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c | 743 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8s_\x8._\x8c |
745 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_N\x8NE\x8EW\x8W_\x8_W\x8WI\x8IN\x8ND\x8DO\x8OW\x8W_\x8_T\x8TI\x8IT\x8TL\x8LE\x8E_\x8_M\x8MA\x8AX\x8X_\x8_S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8**\x8* | 744 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_N\x8NE\x8EW\x8W_\x8_W\x8WI\x8IN\x8ND\x8DO\x8OW\x8W_\x8_T\x8TI\x8IT\x8TL\x8LE\x8E_\x8_M\x8MA\x8AX\x8X_\x8_S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8**\x8* |
746 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | 745 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 |
747 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
748 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 746 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
749 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 747 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
750 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e. | 748 | _\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e. |
751 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e | 749 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e |
752 | Since:·5.1.12 | 750 | Since:·5.1.12 |
753 | *\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_t\x8ti\x8it\x8tl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* | 751 | *\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_t\x8ti\x8it\x8tl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8* |
754 | const·char·*al_get_new_window_title(void) | 752 | const·char·*al_get_new_window_title(void) |
Offset 315, 16 lines modified | Offset 315, 15 lines modified | ||
315 | union·according·to·the·event·type.</p> | 315 | union·according·to·the·event·type.</p> |
316 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events | 316 | <p>In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events |
317 | send·by·the·addons,·see·<a | 317 | send·by·the·addons,·see·<a |
318 | href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a> | 318 | href="audio.html#allegro_audio_event_type">ALLEGRO_AUDIO_EVENT_TYPE</a> |
319 | and·<a | 319 | and·<a |
320 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> | 320 | href="video.html#allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</a>.</p> |
321 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> | 321 | <h1·id="allegro_event">ALLEGRO_EVENT</h1> |
322 | <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">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span> | 322 | <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">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span></code></pre></div> |
323 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">union</span>·ALLEGRO_EVENT·ALLEGRO_EVENT<span·class="op">;</span></span></code></pre></div> | ||
324 | <p><a | 323 | <p><a |
325 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L216">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L216">Source |
326 | Code</a></p> | 325 | Code</a></p> |
327 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it | 326 | <p>An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it |
328 | is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events | 327 | is·an·object·large·enough·to·hold·the·data·of·any·event·type.·All·events |
329 | have·the·following·fields·in·common:</p> | 328 | have·the·following·fields·in·common:</p> |
330 | <dl> | 329 | <dl> |
Offset 1006, 16 lines modified | Offset 1005, 15 lines modified | ||
1006 | <p>Since:·5.2.9</p> | 1005 | <p>Since:·5.2.9</p> |
1007 | <blockquote> | 1006 | <blockquote> |
1008 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1007 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1009 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works | 1008 | API</a>:</em>·This·is·an·experimental·feature·and·currently·only·works |
1010 | for·the·X11·backend.</p> | 1009 | for·the·X11·backend.</p> |
1011 | </blockquote> | 1010 | </blockquote> |
1012 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> | 1011 | <h1·id="allegro_user_event">ALLEGRO_USER_EVENT</h1> |
1013 | <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_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span> | 1012 | <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_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span></code></pre></div> |
1014 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT<span·class="op">;</span></span></code></pre></div> | ||
1015 | <p><a | 1013 | <p><a |
1016 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L188">Source | 1014 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L188">Source |
1017 | Code</a></p> | 1015 | Code</a></p> |
1018 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These | 1016 | <p>An·event·structure·that·can·be·emitted·by·user·event·sources.·These |
1019 | are·the·public·fields:</p> | 1017 | are·the·public·fields:</p> |
1020 | <ul> | 1018 | <ul> |
1021 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> | 1019 | <li>ALLEGRO_EVENT_SOURCE·*source;</li> |
Offset 1056, 16 lines modified | Offset 1054, 15 lines modified | ||
1056 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> | 1054 | href="events.html#al_init_user_event_source">al_init_user_event_source</a></p> |
1057 | <p>Examples:</p> | 1055 | <p>Examples:</p> |
1058 | <ul> | 1056 | <ul> |
1059 | <li><a | 1057 | <li><a |
1060 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> | 1058 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L37">ex_user_events.c</a></li> |
1061 | </ul> | 1059 | </ul> |
1062 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> | 1060 | <h1·id="allegro_event_queue">ALLEGRO_EVENT_QUEUE</h1> |
1063 | <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> | 1061 | <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> |
1064 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
1065 | <p><a | 1062 | <p><a |
1066 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source | 1063 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L258">Source |
1067 | Code</a></p> | 1064 | Code</a></p> |
1068 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources | 1065 | <p>An·event·queue·holds·events·that·have·been·generated·by·event·sources |
1069 | that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they | 1066 | that·are·registered·with·the·queue.·Events·are·stored·in·the·order·they |
1070 | are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out) | 1067 | are·generated.·Access·is·in·a·strictly·FIFO·(first-in-first-out) |
1071 | order.</p> | 1068 | order.</p> |
Offset 1078, 16 lines modified | Offset 1075, 15 lines modified | ||
1078 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> | 1075 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L18">ex_inject_events.c</a></li> |
1079 | <li><a | 1076 | <li><a |
1080 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> | 1077 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L189">ex_enet_server.c</a></li> |
1081 | <li><a | 1078 | <li><a |
1082 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> | 1079 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L24">ex_timer_pause.c</a></li> |
1083 | </ul> | 1080 | </ul> |
1084 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> | 1081 | <h1·id="allegro_event_source">ALLEGRO_EVENT_SOURCE</h1> |
1085 | <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> | 1082 | <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> |
1086 | <span·id="cb6-2"><a·href="#cb6-2"·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> | ||
1087 | <p><a | 1083 | <p><a |
1088 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source | 1084 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L74">Source |
1089 | Code</a></p> | 1085 | Code</a></p> |
1090 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, | 1086 | <p>An·event·source·is·any·object·which·can·generate·events.·For·example, |
1091 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 1087 | an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
1092 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a | 1088 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with·<a |
1093 | href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> | 1089 | href="display.html#al_get_display_event_source">al_get_display_event_source</a>.</p> |
Offset 1102, 26 lines modified | Offset 1098, 24 lines modified | ||
1102 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> | 1098 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_inject_events.c#L17">ex_inject_events.c</a></li> |
1103 | <li><a | 1099 | <li><a |
1104 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> | 1100 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L47">ex_user_events.c</a></li> |
1105 | <li><a | 1101 | <li><a |
1106 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> | 1102 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L364">nihgui.cpp</a></li> |
1107 | </ul> | 1103 | </ul> |
1108 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> | 1104 | <h1·id="allegro_event_type">ALLEGRO_EVENT_TYPE</h1> |
1109 | <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> | 1105 | <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> |
1110 | <span·id="cb7-2"><a·href="#cb7-2"·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> | ||
1111 | <p><a | 1106 | <p><a |
1112 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source | 1107 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L13">Source |
1113 | Code</a></p> | 1108 | Code</a></p> |
1114 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> | 1109 | <p>An·integer·used·to·distinguish·between·different·types·of·events.</p> |
1115 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a | 1110 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
1116 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a | 1111 | href="events.html#allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</a>,·<a |
1117 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 1112 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
1118 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> | 1113 | <h1·id="allegro_get_event_type">ALLEGRO_GET_EVENT_TYPE</h1> |
1119 | <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> | 1114 | <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> |
1120 | <span·id="cb8-2"><a·href="#cb8-2"·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> | ||
1121 | <p><a | 1115 | <p><a |
1122 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source | 1116 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L69">Source |
1123 | Code</a></p> | 1117 | Code</a></p> |
1124 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually, | 1118 | <p>Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually, |
1125 | but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes, | 1119 | but·not·necessarily,·this·will·be·made·from·four·8-bit·character·codes, |
1126 | for·example:</p> | 1120 | for·example:</p> |
1127 | <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> | 1121 | <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> |
Offset 1148, 16 lines modified | Offset 1142, 15 lines modified | ||
1148 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"·tabindex="-1"></a>···MEOW_EVENT<span·class="op">,</span></span> | 1142 | <span·id="cb10-9"><a·href="#cb10-9"·aria-hidden="true"·tabindex="-1"></a>···MEOW_EVENT<span·class="op">,</span></span> |
1149 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"·tabindex="-1"></a>···SQUAWK_EVENT</span> | 1143 | <span·id="cb10-10"><a·href="#cb10-10"·aria-hidden="true"·tabindex="-1"></a>···SQUAWK_EVENT</span> |
1150 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="op">};</span></span></code></pre></div> | 1144 | <span·id="cb10-11"><a·href="#cb10-11"·aria-hidden="true"·tabindex="-1"></a><span·class="op">};</span></span></code></pre></div> |
1151 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a | 1145 | <p>See·also:·<a·href="events.html#allegro_event">ALLEGRO_EVENT</a>,·<a |
1152 | href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a | 1146 | href="events.html#allegro_user_event">ALLEGRO_USER_EVENT</a>,·<a |
1153 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> | 1147 | href="events.html#allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</a></p> |
1154 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> | 1148 | <h1·id="allegro_event_type_is_user">ALLEGRO_EVENT_TYPE_IS_USER</h1> |
1155 | <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="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span> | 1149 | <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="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span></code></pre></div> |
1156 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_EVENT_TYPE_IS_USER</span><span·class="op">(</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">········</span><span·class="op">((</span><span·class="pp">t</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">>=</span><span·class="pp">·</span><span·class="dv">512</span><span·class="op">)</span></span></code></pre></div> | ||
1157 | <p><a | 1150 | <p><a |
1158 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L64">Source | 1151 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/events.h#L64">Source |
1159 | Code</a></p> | 1152 | Code</a></p> |
1160 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin | 1153 | <p>A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin |
1161 | event·type,·i.e. one·of·those·described·in·<a | 1154 | event·type,·i.e. one·of·those·described·in·<a |
1162 | href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> | 1155 | href="events.html#allegro_event_type">ALLEGRO_EVENT_TYPE</a>.</p> |
1163 | <h1·id="al_create_event_queue">al_create_event_queue</h1> | 1156 | <h1·id="al_create_event_queue">al_create_event_queue</h1> |
Offset 118, 15 lines modified | Offset 118, 14 lines modified | ||
118 | events·that·can·be·generated·by·user-defined·event·sources. | 118 | events·that·can·be·generated·by·user-defined·event·sources. |
119 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of | 119 | The·appropriate·reaction·to·an·event·is·determined·by·examining·the·fields·of |
120 | the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T·union·according·to·the·event·type. | 120 | the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T·union·according·to·the·event·type. |
121 | In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the | 121 | In·addition·to·the·events·sent·by·Allegro·core,·there’s·also·events·send·by·the |
122 | addons,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. | 122 | addons,·see·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8A_\x8U_\x8D_\x8I_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8V_\x8I_\x8D_\x8E_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
123 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 123 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
124 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | 124 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; |
125 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
127 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an | 126 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e. it·is·an |
128 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the | 127 | object·large·enough·to·hold·the·data·of·any·event·type.·All·events·have·the |
129 | following·fields·in·common: | 128 | following·fields·in·common: |
130 | ··type·(ALLEGRO_EVENT_TYPE) | 129 | ··type·(ALLEGRO_EVENT_TYPE) |
131 | ······Indicates·the·type·of·event. | 130 | ······Indicates·the·type·of·event. |
132 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) | 131 | ··any.source·(ALLEGRO_EVENT_SOURCE·*) |
Offset 489, 15 lines modified | Offset 488, 14 lines modified | ||
489 | ······action.·If·i\x8is\x8s_\x8_c\x8co\x8om\x8mp\x8pl\x8le\x8et\x8te\x8e·is·set·before·receiving·an·event·where·t\x8te\x8ex\x8xt\x8t·was | 488 | ······action.·If·i\x8is\x8s_\x8_c\x8co\x8om\x8mp\x8pl\x8le\x8et\x8te\x8e·is·set·before·receiving·an·event·where·t\x8te\x8ex\x8xt\x8t·was |
490 | ······not·NULL·it·means·the·user·aborted·the·drag&drop. | 489 | ······not·NULL·it·means·the·user·aborted·the·drag&drop. |
491 | Since:·5.2.9 | 490 | Since:·5.2.9 |
492 | ·····_\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 | 491 | ·····_\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 |
493 | ·····works·for·the·X11·backend. | 492 | ·····works·for·the·X11·backend. |
494 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8ER\x8R_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 493 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8SE\x8ER\x8R_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
495 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | 494 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; |
496 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
497 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 495 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
498 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the | 496 | An·event·structure·that·can·be·emitted·by·user·event·sources.·These·are·the |
499 | public·fields: | 497 | public·fields: |
500 | ····*·ALLEGRO_EVENT_SOURCE·*source; | 498 | ····*·ALLEGRO_EVENT_SOURCE·*source; |
501 | ····*·intptr_t·data1; | 499 | ····*·intptr_t·data1; |
502 | ····*·intptr_t·data2; | 500 | ····*·intptr_t·data2; |
503 | ····*·intptr_t·data3; | 501 | ····*·intptr_t·data3; |
Offset 525, 46 lines modified | Offset 523, 42 lines modified | ||
525 | 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 | 523 | 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 |
526 | assigning·identifiers. | 524 | assigning·identifiers. |
527 | 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 | 525 | 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 |
528 | Examples: | 526 | Examples: |
529 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 527 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
530 | *\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* | 528 | *\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* |
531 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | 529 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
532 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
533 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 530 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
534 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are | 531 | An·event·queue·holds·events·that·have·been·generated·by·event·sources·that·are |
535 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. | 532 | registered·with·the·queue.·Events·are·stored·in·the·order·they·are·generated. |
536 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. | 533 | Access·is·in·a·strictly·FIFO·(first-in-first-out)·order. |
537 | 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 | 534 | 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 |
538 | Examples: | 535 | Examples: |
539 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 536 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
540 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 537 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
541 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 538 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
542 | *\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* | 539 | *\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* |
543 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | 540 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
544 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
545 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 541 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
546 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an | 542 | An·event·source·is·any·object·which·can·generate·events.·For·example,·an |
547 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE | 543 | ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the·ALLEGRO_EVENT_SOURCE |
548 | 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. | 544 | 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. |
549 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. | 545 | You·may·create·your·own·“user”·event·sources·that·emit·custom·events. |
550 | 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 | 546 | 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 |
551 | Examples: | 547 | Examples: |
552 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 548 | ····*·_\x8e_\x8x_\x8__\x8i_\x8n_\x8j_\x8e_\x8c_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
553 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 549 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
554 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | 550 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
555 | *\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* | 551 | *\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* |
556 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | 552 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
557 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
558 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 553 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
559 | An·integer·used·to·distinguish·between·different·types·of·events. | 554 | An·integer·used·to·distinguish·between·different·types·of·events. |
560 | 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 | 555 | 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 |
561 | *\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* | 556 | *\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* |
562 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | 557 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
563 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
564 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 558 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
565 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not | 559 | Make·an·event·type·identifier,·which·is·a·32-bit·integer.·Usually,·but·not |
566 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: | 560 | necessarily,·this·will·be·made·from·four·8-bit·character·codes,·for·example: |
567 | Examples: | 561 | Examples: |
568 | *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ | 562 | *·[ex_user_events.c](https://github.com/liballeg/allegro5/blob/master/examples/ |
569 | ex_user_events.c#L10) | 563 | ex_user_events.c#L10) |
Offset 587, 15 lines modified | Offset 581, 14 lines modified | ||
587 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), | 581 | ···BARK_EVENT·=·ALLEGRO_GET_EVENT_TYPE('M','I','N','E'), |
588 | ···MEOW_EVENT, | 582 | ···MEOW_EVENT, |
589 | ···SQUAWK_EVENT | 583 | ···SQUAWK_EVENT |
590 | }; | 584 | }; |
591 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8E_\x8R_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\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 | 585 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8E_\x8R_\x8__\x8E_\x8V_\x8E_\x8N_\x8T,·_\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 |
592 | *\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_I\x8IS\x8S_\x8_U\x8US\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 586 | *\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_I\x8IS\x8S_\x8_U\x8US\x8SE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
593 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | 587 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) |
594 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
595 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 588 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
596 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, | 589 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event·type, |
597 | i.e. one·of·those·described·in·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. | 590 | i.e. one·of·those·described·in·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8E_\x8V_\x8E_\x8N_\x8T_\x8__\x8T_\x8Y_\x8P_\x8E. |
598 | *\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* | 591 | *\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 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) | 592 | ALLEGRO_EVENT_QUEUE·*al_create_event_queue(void) |
600 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 593 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
601 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created | 594 | Create·a·new,·empty·event·queue,·returning·a·pointer·to·the·newly·created |
Offset 236, 16 lines modified | Offset 236, 15 lines modified | ||
236 | id="toc-al_get_file_userdata">al_get_file_userdata</a></li> | 236 | id="toc-al_get_file_userdata">al_get_file_userdata</a></li> |
237 | </ul></li> | 237 | </ul></li> |
238 | </ul> | 238 | </ul> |
239 | </nav> | 239 | </nav> |
240 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 240 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
241 | <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> | 241 | <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> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
245 | <p><a | 244 | <p><a |
246 | 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 |
247 | Code</a></p> | 246 | Code</a></p> |
248 | <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 |
249 | on·disk·or·a·virtual·file.</p> | 248 | on·disk·or·a·virtual·file.</p> |
250 | <p>Examples:</p> | 249 | <p>Examples:</p> |
251 | <ul> | 250 | <ul> |
Offset 253, 16 lines modified | Offset 252, 15 lines modified | ||
253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> | 252 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_file.c#L23">ex_file.c</a></li> |
254 | <li><a | 253 | <li><a |
255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> | 254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L18">ex_dir.c</a></li> |
256 | <li><a | 255 | <li><a |
257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> | 256 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L19">ex_memfile.c</a></li> |
258 | </ul> | 257 | </ul> |
259 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> | 258 | <h1·id="allegro_file_interface">ALLEGRO_FILE_INTERFACE</h1> |
260 | <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> | 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> |
261 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FILE_INTERFACE</span></code></pre></div> | ||
262 | <p><a | 260 | <p><a |
263 | 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 |
264 | Code</a></p> | 262 | Code</a></p> |
265 | <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”, |
266 | real·or·virtual.·See·the·full·discussion·in·<a | 264 | real·or·virtual.·See·the·full·discussion·in·<a |
267 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 265 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
268 | <p>The·fields·are:</p> | 266 | <p>The·fields·are:</p> |
Offset 293, 16 lines modified | Offset 291, 15 lines modified | ||
293 | char·long·buffer·will·be·used.</p> | 291 | char·long·buffer·will·be·used.</p> |
294 | <p>Examples:</p> | 292 | <p>Examples:</p> |
295 | <ul> | 293 | <ul> |
296 | <li><a | 294 | <li><a |
297 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> | 295 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_curl.c#L65">ex_curl.c</a></li> |
298 | </ul> | 296 | </ul> |
299 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> | 297 | <h1·id="allegro_seek">ALLEGRO_SEEK</h1> |
300 | <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> | 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> |
301 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SEEK</span></code></pre></div> | ||
302 | <p><a | 299 | <p><a |
303 | 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 |
304 | Code</a></p> | 301 | Code</a></p> |
305 | <ul> | 302 | <ul> |
306 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> | 303 | <li>ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file</li> |
307 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> | 304 | <li>ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position</li> |
308 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> | 305 | <li>ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file</li> |
Offset 85, 25 lines modified | Offset 85, 23 lines modified | ||
85 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 85 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
86 | ··········o·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 86 | ··········o·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
87 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a | 87 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a |
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 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 92 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
94 | 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 |
95 | or·a·virtual·file. | 94 | or·a·virtual·file. |
96 | Examples: | 95 | Examples: |
97 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 96 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
98 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | 97 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c |
99 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 98 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
100 | *\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* |
101 | typedef·struct·ALLEGRO_FILE_INTERFACE | 100 | typedef·struct·ALLEGRO_FILE_INTERFACE |
102 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | 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 |
105 | 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. |
106 | The·fields·are: | 104 | The·fields·are: |
107 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); | 105 | void*·········(*fi_fopen)(const·char·*path,·const·char·*mode); |
108 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); | 106 | bool··········(*fi_fclose)(ALLEGRO_FILE·*f); |
109 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); | 107 | size_t········(*fi_fread)(ALLEGRO_FILE·*f,·void·*ptr,·size_t·size); |
Offset 126, 15 lines modified | Offset 124, 14 lines modified | ||
126 | 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. |
127 | 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 |
128 | buffer·will·be·used. | 126 | buffer·will·be·used. |
129 | Examples: | 127 | Examples: |
130 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c | 128 | ····*·_\x8e_\x8x_\x8__\x8c_\x8u_\x8r_\x8l_\x8._\x8c |
131 | *\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* |
132 | typedef·enum·ALLEGRO_SEEK | 130 | typedef·enum·ALLEGRO_SEEK |
133 | typedef·enum·ALLEGRO_SEEK | ||
134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
135 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file | 132 | ····*·ALLEGRO_SEEK_SET·-·seek·relative·to·beginning·of·file |
136 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position | 133 | ····*·ALLEGRO_SEEK_CUR·-·seek·relative·to·current·file·position |
137 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file | 134 | ····*·ALLEGRO_SEEK_END·-·seek·relative·to·end·of·file |
138 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k | 135 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8s_\x8e_\x8e_\x8k |
139 | Examples: | 136 | Examples: |
140 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 137 | ····*·_\x8e_\x8x_\x8__\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
Offset 202, 16 lines modified | Offset 202, 15 lines modified | ||
202 | <li><a·href="#al_fixhypot"·id="toc-al_fixhypot">al_fixhypot</a></li> | 202 | <li><a·href="#al_fixhypot"·id="toc-al_fixhypot">al_fixhypot</a></li> |
203 | </ul></li> | 203 | </ul></li> |
204 | </ul> | 204 | </ul> |
205 | </nav> | 205 | </nav> |
206 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 206 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
207 | <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> | 207 | <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> |
208 | <h1·id="al_fixed">al_fixed</h1> | 208 | <h1·id="al_fixed">al_fixed</h1> |
209 | <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="dt">int32_t</span>·al_fixed<span·class="op">;</span></span> | 209 | <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="dt">int32_t</span>·al_fixed<span·class="op">;</span></span></code></pre></div> |
210 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="dt">int32_t</span>·al_fixed<span·class="op">;</span></span></code></pre></div> | ||
211 | <p><a | 210 | <p><a |
212 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source | 211 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fixed.h#L30">Source |
213 | Code</a></p> | 212 | Code</a></p> |
214 | <p>A·fixed·point·number.</p> | 213 | <p>A·fixed·point·number.</p> |
215 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers, | 214 | <p>Allegro·provides·some·routines·for·working·with·fixed·point·numbers, |
216 | and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit | 215 | and·defines·the·type·<code>al_fixed</code>·to·be·a·signed·32-bit |
217 | integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for | 216 | integer.·The·high·word·is·used·for·the·integer·part·and·the·low·word·for |
Offset 66, 15 lines modified | Offset 66, 14 lines modified | ||
66 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8a_\x8t_\x8a_\x8n_\x82 | 66 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8a_\x8t_\x8a_\x8n_\x82 |
67 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8s_\x8q_\x8r_\x8t | 67 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8s_\x8q_\x8r_\x8t |
68 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8h_\x8y_\x8p_\x8o_\x8t | 68 | ··········o·_\x8a_\x8l_\x8__\x8f_\x8i_\x8x_\x8h_\x8y_\x8p_\x8o_\x8t |
69 | These·functions·are·declared·in·the·main·Allegro·header·file: | 69 | These·functions·are·declared·in·the·main·Allegro·header·file: |
70 | ·#include·<allegro5/allegro.h> | 70 | ·#include·<allegro5/allegro.h> |
71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xe\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_f\x8fi\x8ix\x8xe\x8ed\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
72 | typedef·int32_t·al_fixed; | 72 | typedef·int32_t·al_fixed; |
73 | typedef·int32_t·al_fixed; | ||
74 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
75 | A·fixed·point·number. | 74 | A·fixed·point·number. |
76 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 75 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
77 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used | 76 | defines·the·type·al_fixed·to·be·a·signed·32-bit·integer.·The·high·word·is·used |
78 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- | 77 | for·the·integer·part·and·the·low·word·for·the·fraction,·giving·a·range·of·- |
79 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed | 78 | 32768·to·32767·and·an·accuracy·of·about·four·or·five·decimal·places.·Fixed |
80 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted | 79 | point·numbers·can·be·assigned,·compared,·added,·subtracted,·negated·and·shifted |
Offset 283, 16 lines modified | Offset 283, 15 lines modified | ||
283 | </ul> | 283 | </ul> |
284 | </nav> | 284 | </nav> |
285 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 285 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
286 | allegro_font.</p> | 286 | allegro_font.</p> |
287 | <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_font.h></span></span></code></pre></div> | 287 | <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_font.h></span></span></code></pre></div> |
288 | <h1·id="general-font-routines">General·font·routines</h1> | 288 | <h1·id="general-font-routines">General·font·routines</h1> |
289 | <h2·id="allegro_font">ALLEGRO_FONT</h2> | 289 | <h2·id="allegro_font">ALLEGRO_FONT</h2> |
290 | <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_FONT·ALLEGRO_FONT<span·class="op">;</span></span> | 290 | <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_FONT·ALLEGRO_FONT<span·class="op">;</span></span></code></pre></div> |
291 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FONT·ALLEGRO_FONT<span·class="op">;</span></span></code></pre></div> | ||
292 | <p><a | 291 | <p><a |
293 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source | 292 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/allegro5/allegro_font.h#L48">Source |
294 | Code</a></p> | 293 | Code</a></p> |
295 | <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 |
296 | 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 |
297 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 296 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
298 | 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 |
Offset 305, 16 lines modified | Offset 304, 15 lines modified | ||
305 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> | 304 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L10">ex_disable_screensaver.c</a></li> |
306 | <li><a | 305 | <li><a |
307 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> | 306 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L17">ex_font_justify.cpp</a></li> |
308 | <li><a | 307 | <li><a |
309 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L26">ex_display_events.c</a></li> | 308 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L26">ex_display_events.c</a></li> |
310 | </ul> | 309 | </ul> |
311 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> | 310 | <h2·id="allegro_glyph">ALLEGRO_GLYPH</h2> |
312 | <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> | 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> |
313 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
314 | <p><a | 312 | <p><a |
315 | 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 |
316 | Code</a></p> | 314 | Code</a></p> |
317 | <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> |
318 | <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> |
319 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">;</span>···<span·class="co">//·the·bitmap·the·character·is·on</span></span> | 317 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a>···ALLEGRO_BITMAP·<span·class="op">*</span>bitmap<span·class="op">;</span>···<span·class="co">//·the·bitmap·the·character·is·on</span></span> |
320 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x<span·class="op">;</span>····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> | 318 | <span·id="cb4-3"><a·href="#cb4-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·x<span·class="op">;</span>····················<span·class="co">//·the·x·position·of·the·glyph·on·bitmap</span></span> |
Offset 345, 16 lines modified | Offset 343, 15 lines modified | ||
345 | <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> |
346 | <p>Examples:</p> | 344 | <p>Examples:</p> |
347 | <ul> | 345 | <ul> |
348 | <li><a | 346 | <li><a |
349 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> | 347 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_ttf.c#L91">ex_ttf.c</a></li> |
350 | </ul> | 348 | </ul> |
351 | <h2·id="al_init_font_addon">al_init_font_addon</h2> | 349 | <h2·id="al_init_font_addon">al_init_font_addon</h2> |
352 | <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> | 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> |
353 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
354 | <p><a | 351 | <p><a |
355 | 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 |
356 | Code</a></p> | 353 | Code</a></p> |
357 | <p>Initialise·the·font·addon.</p> | 354 | <p>Initialise·the·font·addon.</p> |
358 | <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 |
359 | initialise·allegro_image·separately·(unless·you·are·using·another | 356 | initialise·allegro_image·separately·(unless·you·are·using·another |
360 | library·to·load·images).</p> | 357 | library·to·load·images).</p> |
Offset 374, 38 lines modified | Offset 371, 35 lines modified | ||
374 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> | 371 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_disable_screensaver.c#L28">ex_disable_screensaver.c</a></li> |
375 | <li><a | 372 | <li><a |
376 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> | 373 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L104">ex_font_justify.cpp</a></li> |
377 | <li><a | 374 | <li><a |
378 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L40">ex_display_events.c</a></li> | 375 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_display_events.c#L40">ex_display_events.c</a></li> |
379 | </ul> | 376 | </ul> |
380 | <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> |
381 | <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> | 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> |
382 | <span·id="cb6-2"><a·href="#cb6-2"·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> | ||
383 | <p><a | 379 | <p><a |
384 | 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 |
385 | Code</a></p> | 381 | Code</a></p> |
386 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns | 382 | <p>Returns·true·if·the·font·addon·is·initialized,·otherwise·returns |
387 | false.</p> | 383 | false.</p> |
388 | <p>Since:·5.2.6</p> | 384 | <p>Since:·5.2.6</p> |
389 | <p>See·also:·<a | 385 | <p>See·also:·<a |
390 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a | 386 | href="font.html#al_init_font_addon">al_init_font_addon</a>,·<a |
391 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> | 387 | href="font.html#al_shutdown_font_addon">al_shutdown_font_addon</a></p> |
392 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> | 388 | <h2·id="al_shutdown_font_addon">al_shutdown_font_addon</h2> |
393 | <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_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 389 | <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_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
394 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_font_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
395 | <p><a | 390 | <p><a |
396 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source | 391 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L402">Source |
397 | Code</a></p> | 392 | Code</a></p> |
398 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit, | 393 | <p>Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit, |
399 | but·can·be·called·any·time·the·user·wishes·as·well.</p> | 394 | but·can·be·called·any·time·the·user·wishes·as·well.</p> |
400 | <p>See·also:·<a | 395 | <p>See·also:·<a |
401 | href="font.html#al_init_font_addon">al_init_font_addon</a></p> | 396 | href="font.html#al_init_font_addon">al_init_font_addon</a></p> |
402 | <h2·id="al_load_font">al_load_font</h2> | 397 | <h2·id="al_load_font">al_load_font</h2> |
403 | <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_FONT·<span·class="op">*</span>al_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> | 398 | <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_FONT·<span·class="op">*</span>al_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> |
404 | <span·id="cb8-2"><a·href="#cb8-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FONT·<span·class="op">*</span>al_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> | ||
405 | <p><a | 399 | <p><a |
406 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source | 400 | href="https://github.com/liballeg/allegro5/blob/master/addons/font/font.c#L450">Source |
407 | Code</a></p> | 401 | Code</a></p> |
408 | <p>Loads·a·font·from·disk.·This·will·use·<a | 402 | <p>Loads·a·font·from·disk.·This·will·use·<a |
409 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a> | 403 | href="font.html#al_load_bitmap_font_flags">al_load_bitmap_font_flags</a> |
410 | if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a | 404 | if·you·pass·the·name·of·a·known·bitmap·format,·or·else·<a |
411 | href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> | 405 | href="font.html#al_load_ttf_font">al_load_ttf_font</a>.</p> |
Offset 424, 16 lines modified | Offset 418, 15 lines modified | ||
424 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> | 418 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L116">ex_font_justify.cpp</a></li> |
425 | <li><a | 419 | <li><a |
426 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> | 420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_membmp.c#L104">ex_membmp.c</a></li> |
427 | <li><a | 421 | <li><a |
428 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> | 422 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_title.c#L60">ex_window_title.c</a></li> |
429 | </ul> | 423 | </ul> |
430 | <h2·id="al_destroy_font">al_destroy_font</h2> | 424 | <h2·id="al_destroy_font">al_destroy_font</h2> |
431 | <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> | 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> |
432 | <span·id="cb9-2"><a·href="#cb9-2"·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> | ||
433 | <p><a | 426 | <p><a |
434 | 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 |
435 | Code</a></p> | 428 | Code</a></p> |
436 | <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 |
437 | passed·NULL.</p> | 430 | passed·NULL.</p> |
438 | <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> |
439 | <p>Examples:</p> | 432 | <p>Examples:</p> |
Offset 443, 33 lines modified | Offset 436, 30 lines modified | ||
443 | <li><a | 436 | <li><a |
444 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> | 437 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_justify.cpp#L139">ex_font_justify.cpp</a></li> |
445 | <li><a | 438 | <li><a |
446 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> | 439 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L86">ex_cpu.c</a></li> |
447 | </ul> | 440 | </ul> |
448 | <h2·id="al_register_font_loader">al_register_font_loader</h2> | 441 | <h2·id="al_register_font_loader">al_register_font_loader</h2> |
449 | <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> |
450 | <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> | ||
451 | <span·id="cb10-3"><a·href="#cb10-3"·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> | ||
452 | <span·id="cb10- | 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> |
453 | <p><a | 444 | <p><a |
454 | 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 |
455 | Code</a></p> | 446 | Code</a></p> |
456 | <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 |
457 | of·this·format.</p> | 448 | of·this·format.</p> |
458 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’) | 449 | <p>The·<code>extension</code>·should·include·the·leading·dot·(‘.’) |
459 | character.·It·will·be·matched·case-insensitively.</p> | 450 | character.·It·will·be·matched·case-insensitively.</p> |
460 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an | 451 | <p>The·<code>load_font</code>·argument·may·be·NULL·to·unregister·an |
461 | entry.</p> | 452 | entry.</p> |
462 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if | 453 | <p>Returns·true·on·success,·false·on·error.·Returns·false·if |
Max diff block lines reached; 82431/96652 bytes (85.29%) of diff not shown. |
Offset 97, 28 lines modified | Offset 97, 26 lines modified | ||
97 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h | 97 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h |
98 | These·functions·are·declared·in·the·following·header·file.·Link·with | 98 | These·functions·are·declared·in·the·following·header·file.·Link·with |
99 | allegro_font. | 99 | allegro_font. |
100 | ·#include·<allegro5/allegro_font.h> | 100 | ·#include·<allegro5/allegro_font.h> |
101 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·f\x8fo\x8on\x8nt\x8t·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 101 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·f\x8fo\x8on\x8nt\x8t·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
102 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8ON\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8* | 102 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8ON\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8* |
103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | 103 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
104 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
105 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
106 | 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 |
107 | _\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 |
108 | 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 |
109 | 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 |
110 | 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. |
111 | Examples: | 110 | Examples: |
112 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | 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 |
113 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 112 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
114 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 113 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
115 | *\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* |
116 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | 115 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
117 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
118 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
119 | A·structure·containing·the·properties·of·a·character·in·a·font. | 117 | A·structure·containing·the·properties·of·a·character·in·a·font. |
120 | typedef·struct·ALLEGRO_GLYPH·{ | 118 | typedef·struct·ALLEGRO_GLYPH·{ |
121 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 119 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
122 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap | 120 | ···int·x;····················//·the·x·position·of·the·glyph·on·bitmap |
123 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap | 121 | ···int·y;····················//·the·y·position·of·the·glyph·on·bitmap |
124 | ···int·w;····················//·the·width·of·the·glyph·in·pixels | 122 | ···int·w;····················//·the·width·of·the·glyph·in·pixels |
Offset 141, 15 lines modified | Offset 139, 14 lines modified | ||
141 | Since:·5.2.1 | 139 | Since:·5.2.1 |
142 | ·····_\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. |
143 | 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 |
144 | Examples: | 142 | Examples: |
145 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 143 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
146 | *\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* |
147 | bool·al_init_font_addon(void) | 145 | bool·al_init_font_addon(void) |
148 | bool·al_init_font_addon(void) | ||
149 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
150 | Initialise·the·font·addon. | 147 | Initialise·the·font·addon. |
151 | 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 |
152 | 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). |
153 | 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 |
154 | _\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. |
155 | 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 |
Offset 159, 68 lines modified | Offset 156, 61 lines modified | ||
159 | 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 |
160 | Examples: | 157 | Examples: |
161 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | 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 |
162 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 159 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
163 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 160 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
164 | *\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* |
165 | bool·al_is_font_addon_initialized(void) | 162 | bool·al_is_font_addon_initialized(void) |
166 | bool·al_is_font_addon_initialized(void) | ||
167 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 163 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
168 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 164 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
169 | Since:·5.2.6 | 165 | Since:·5.2.6 |
170 | 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 |
171 | *\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* |
172 | void·al_shutdown_font_addon(void) | 168 | void·al_shutdown_font_addon(void) |
173 | void·al_shutdown_font_addon(void) | ||
174 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 169 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
175 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can | 170 | Shut·down·the·font·addon.·This·is·done·automatically·at·program·exit,·but·can |
176 | be·called·any·time·the·user·wishes·as·well. | 171 | be·called·any·time·the·user·wishes·as·well. |
177 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 172 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
178 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 173 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_l\x8lo\x8oa\x8ad\x8d_\x8_f\x8fo\x8on\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
179 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | 174 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) |
180 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
181 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 175 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
182 | 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 |
183 | 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. |
184 | 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 |
185 | 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 |
186 | loaded. | 180 | loaded. |
187 | 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, |
188 | _\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 |
189 | Examples: | 183 | Examples: |
190 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 184 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
191 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c | 185 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c |
192 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c | 186 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8t_\x8i_\x8t_\x8l_\x8e_\x8._\x8c |
193 | *\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* |
194 | void·al_destroy_font(ALLEGRO_FONT·*f) | 188 | void·al_destroy_font(ALLEGRO_FONT·*f) |
195 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
196 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 189 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
197 | 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. |
198 | 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 |
199 | Examples: | 192 | Examples: |
200 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8__\x8s_\x8c_\x8r_\x8e_\x8e_\x8n_\x8s_\x8a_\x8v_\x8e_\x8r_\x8._\x8c | 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 |
201 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 194 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
202 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | 195 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c |
203 | *\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* |
204 | bool·al_register_font_loader(char·const·*extension, | 197 | bool·al_register_font_loader(char·const·*extension, |
205 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 198 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
206 | bool·al_register_font_loader(char·const·*extension, | ||
207 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
208 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
209 | 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 |
210 | format. | 201 | format. |
211 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be | 202 | The·extension·should·include·the·leading·dot·(‘.’)·character.·It·will·be |
212 | matched·case-insensitively. | 203 | matched·case-insensitively. |
213 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. | 204 | The·load_font·argument·may·be·NULL·to·unregister·an·entry. |
214 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an | 205 | Returns·true·on·success,·false·on·error.·Returns·false·if·unregistering·an |
215 | entry·that·doesn’t·exist. | 206 | entry·that·doesn’t·exist. |
216 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 207 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
217 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8li\x8in\x8ne\x8e_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* | 208 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_f\x8fo\x8on\x8nt\x8t_\x8_l\x8li\x8in\x8ne\x8e_\x8_h\x8he\x8ei\x8ig\x8gh\x8ht\x8t·*\x8**\x8**\x8**\x8**\x8* |
218 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | 209 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) |
219 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
220 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 210 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
221 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap | 211 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font.·For·bitmap |
222 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is | 212 | fonts·this·is·simply·the·height·of·all·glyph·bitmaps.·For·truetype·fonts·it·is |
223 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be | 213 | whatever·the·font·file·specifies.·In·particular,·some·special·glyphs·may·be |
224 | higher·than·the·height·returned·here. | 214 | higher·than·the·height·returned·here. |
225 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and | 215 | If·the·X·is·the·position·you·specify·to·draw·text,·the·meaning·of·ascent·and |
226 | descent·and·the·line·height·is·like·in·the·figure·below. | 216 | descent·and·the·line·height·is·like·in·the·figure·below. |
Offset 238, 53 lines modified | Offset 228, 46 lines modified | ||
238 | 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 |
239 | Examples: | 229 | Examples: |
240 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 230 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
241 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c | 231 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8b_\x8m_\x8p_\x8._\x8c |
242 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | 232 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c |
243 | *\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* |
244 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | 234 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
245 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
246 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
247 | Returns·the·ascent·of·the·specified·font. | 236 | Returns·the·ascent·of·the·specified·font. |
248 | 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 |
249 | Examples: | 238 | Examples: |
250 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c | 239 | ····*·_\x8e_\x8x_\x8__\x8t_\x8t_\x8f_\x8._\x8c |
Max diff block lines reached; 29512/37325 bytes (79.07%) of diff not shown. |
Offset 242, 16 lines modified | Offset 242, 15 lines modified | ||
242 | </nav> | 242 | </nav> |
243 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 243 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
244 | <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> | 244 | <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> |
245 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be | 245 | <p>These·functions·allow·access·to·the·filesystem.·This·can·either·be |
246 | the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a | 246 | the·real·filesystem·like·your·harddrive,·or·a·virtual·filesystem·like·a |
247 | .zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> | 247 | .zip·archive·(or·whatever·else·you·or·an·addon·makes·it·do).</p> |
248 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> | 248 | <h1·id="allegro_fs_entry">ALLEGRO_FS_ENTRY</h1> |
249 | <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_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span> | 249 | <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_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span></code></pre></div> |
250 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY<span·class="op">;</span></span></code></pre></div> | ||
251 | <p><a | 250 | <p><a |
252 | 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 |
253 | Code</a></p> | 252 | Code</a></p> |
254 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory | 253 | <p>Opaque·filesystem·entry·object.·Represents·a·file·or·a·directory |
255 | (check·with·<a | 254 | (check·with·<a |
256 | 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 |
257 | are·no·user·accessible·member·variables.</p> | 256 | are·no·user·accessible·member·variables.</p> |
Offset 259, 16 lines modified | Offset 258, 15 lines modified | ||
259 | <ul> | 258 | <ul> |
260 | <li><a | 259 | <li><a |
261 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> | 260 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_dir.c#L6">ex_dir.c</a></li> |
262 | <li><a | 261 | <li><a |
263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> | 262 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L37">ex_physfs.c</a></li> |
264 | </ul> | 263 | </ul> |
265 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> | 264 | <h1·id="allegro_file_mode">ALLEGRO_FILE_MODE</h1> |
266 | <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> | 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> |
267 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FILE_MODE</span></code></pre></div> | ||
268 | <p><a | 266 | <p><a |
269 | 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 |
270 | Code</a></p> | 268 | Code</a></p> |
271 | <p>Filesystem·modes/types</p> | 269 | <p>Filesystem·modes/types</p> |
272 | <ul> | 270 | <ul> |
273 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> | 271 | <li>ALLEGRO_FILEMODE_READ·-·Readable</li> |
274 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> | 272 | <li>ALLEGRO_FILEMODE_WRITE·-·Writable</li> |
Offset 593, 16 lines modified | Offset 591, 15 lines modified | ||
593 | entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set | 591 | entry,·but·uses·the·appropriate·file·interface,·not·whatever·was·set |
594 | with·the·latest·call·to·<a | 592 | with·the·latest·call·to·<a |
595 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> | 593 | href="file.html#al_set_new_file_interface">al_set_new_file_interface</a>.</p> |
596 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> | 594 | <p>Returns·the·handle·on·success,·NULL·on·error.</p> |
597 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> | 595 | <p>See·also:·<a·href="file.html#al_fopen">al_fopen</a></p> |
598 | <h2 | 596 | <h2 |
599 | id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> | 597 | id="allegro_for_each_fs_entry_result">ALLEGRO_FOR_EACH_FS_ENTRY_RESULT</h2> |
600 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span> | 598 | <div·class="sourceCode"·id="cb24"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb24-1"><a·href="#cb24-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span></code></pre></div> |
601 | <span·id="cb24-2"><a·href="#cb24-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·<span·class="op">{</span></span></code></pre></div> | ||
602 | <p><a | 599 | <p><a |
603 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source | 600 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L124">Source |
604 | Code</a></p> | 601 | Code</a></p> |
605 | <p>Return·values·for·the·callbacks·of·<a | 602 | <p>Return·values·for·the·callbacks·of·<a |
606 | href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for | 603 | href="fshook.html#al_for_each_fs_entry">al_for_each_fs_entry</a>·and·for |
607 | that·function·itself.</p> | 604 | that·function·itself.</p> |
608 | <ul> | 605 | <ul> |
Offset 681, 16 lines modified | Offset 678, 15 lines modified | ||
681 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for | 678 | <p>By·default,·Allegro·uses·platform·specific·filesystem·functions·for |
682 | things·like·directory·access.·However·if·for·example·the·files·of·your | 679 | things·like·directory·access.·However·if·for·example·the·files·of·your |
683 | game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you | 680 | game·are·not·in·the·local·filesystem·but·inside·some·file·archive,·you |
684 | can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this | 681 | can·provide·your·own·set·of·functions·(or·use·an·addon·which·does·this |
685 | for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common | 682 | for·you,·for·example·our·physfs·addon·allows·access·to·the·most·common |
686 | archive·formats).</p> | 683 | archive·formats).</p> |
687 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> | 684 | <h2·id="allegro_fs_interface">ALLEGRO_FS_INTERFACE</h2> |
688 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span> | 685 | <div·class="sourceCode"·id="cb26"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb26-1"><a·href="#cb26-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span></code></pre></div> |
689 | <span·id="cb26-2"><a·href="#cb26-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE<span·class="op">;</span></span></code></pre></div> | ||
690 | <p><a | 686 | <p><a |
691 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source | 687 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fshook.h#L64">Source |
692 | Code</a></p> | 688 | Code</a></p> |
693 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They | 689 | <p>The·available·functions·you·can·provide·for·a·filesystem.·They |
694 | are:</p> | 690 | are:</p> |
695 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 691 | <pre><code>···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
696 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 692 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
Offset 76, 24 lines modified | Offset 76, 22 lines modified | ||
76 | These·functions·are·declared·in·the·main·Allegro·header·file: | 76 | These·functions·are·declared·in·the·main·Allegro·header·file: |
77 | ·#include·<allegro5/allegro.h> | 77 | ·#include·<allegro5/allegro.h> |
78 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real | 78 | These·functions·allow·access·to·the·filesystem.·This·can·either·be·the·real |
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 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
85 | 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 |
86 | _\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. |
87 | Examples: | 86 | Examples: |
88 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c | 87 | ····*·_\x8e_\x8x_\x8__\x8d_\x8i_\x8r_\x8._\x8c |
89 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | 88 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c |
90 | *\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* |
91 | typedef·enum·ALLEGRO_FILE_MODE | 90 | typedef·enum·ALLEGRO_FILE_MODE |
92 | typedef·enum·ALLEGRO_FILE_MODE | ||
93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
94 | Filesystem·modes/types | 92 | Filesystem·modes/types |
95 | ····*·ALLEGRO_FILEMODE_READ·-·Readable | 93 | ····*·ALLEGRO_FILEMODE_READ·-·Readable |
96 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable | 94 | ····*·ALLEGRO_FILEMODE_WRITE·-·Writable |
97 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable | 95 | ····*·ALLEGRO_FILEMODE_EXECUTE·-·Executable |
98 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden | 96 | ····*·ALLEGRO_FILEMODE_HIDDEN·-·Hidden |
99 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file | 97 | ····*·ALLEGRO_FILEMODE_ISFILE·-·Regular·file |
Offset 281, 15 lines modified | Offset 279, 14 lines modified | ||
281 | This·is·like·calling·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·with·the·name·of·the·filesystem·entry,·but·uses | 279 | This·is·like·calling·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·with·the·name·of·the·filesystem·entry,·but·uses |
282 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to | 280 | the·appropriate·file·interface,·not·whatever·was·set·with·the·latest·call·to |
283 | _\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. | 281 | _\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. |
284 | Returns·the·handle·on·success,·NULL·on·error. | 282 | Returns·the·handle·on·success,·NULL·on·error. |
285 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n | 283 | See·also:·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n |
286 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8OR\x8R_\x8_E\x8EA\x8AC\x8CH\x8H_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y_\x8_R\x8RE\x8ES\x8SU\x8UL\x8LT\x8T·*\x8**\x8**\x8**\x8**\x8* | 284 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FO\x8OR\x8R_\x8_E\x8EA\x8AC\x8CH\x8H_\x8_F\x8FS\x8S_\x8_E\x8EN\x8NT\x8TR\x8RY\x8Y_\x8_R\x8RE\x8ES\x8SU\x8UL\x8LT\x8T·*\x8**\x8**\x8**\x8**\x8* |
287 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | 285 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ |
288 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
289 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 286 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
290 | Return·values·for·the·callbacks·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y·and·for·that·function | 287 | Return·values·for·the·callbacks·of·_\x8a_\x8l_\x8__\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y·and·for·that·function |
291 | itself. | 288 | itself. |
292 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. | 289 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·-·An·error·ocurred. |
293 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into | 290 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_OK·-·Continue·normally·and·recurse·into |
294 | ······directories. | 291 | ······directories. |
295 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. | 292 | ····*·ALLEGRO_FOR_EACH_FS_ENTRY_SKIP·-·Continue·but·do·NOT·recusively·descend. |
Offset 336, 15 lines modified | Offset 333, 14 lines modified | ||
336 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like | 333 | By·default,·Allegro·uses·platform·specific·filesystem·functions·for·things·like |
337 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the | 334 | directory·access.·However·if·for·example·the·files·of·your·game·are·not·in·the |
338 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of | 335 | local·filesystem·but·inside·some·file·archive,·you·can·provide·your·own·set·of |
339 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs | 336 | functions·(or·use·an·addon·which·does·this·for·you,·for·example·our·physfs |
340 | addon·allows·access·to·the·most·common·archive·formats). | 337 | addon·allows·access·to·the·most·common·archive·formats). |
341 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8* | 338 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_F\x8FS\x8S_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8* |
342 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | 339 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; |
343 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
344 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 340 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
345 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: | 341 | The·available·functions·you·can·provide·for·a·filesystem.·They·are: |
346 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 342 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
347 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); | 343 | ···void················fs_destroy_entry··(ALLEGRO_FS_ENTRY·*e); |
348 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); | 344 | ···const·char·*········fs_entry_name·····(ALLEGRO_FS_ENTRY·*e); |
349 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); | 345 | ···bool················fs_update_entry···(ALLEGRO_FS_ENTRY·*e); |
350 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); | 346 | ···uint32_t············fs_entry_mode·····(ALLEGRO_FS_ENTRY·*e); |
Offset 180, 16 lines modified | Offset 180, 15 lines modified | ||
180 | <li><a·href="#al_get_num_display_modes" | 180 | <li><a·href="#al_get_num_display_modes" |
181 | id="toc-al_get_num_display_modes">al_get_num_display_modes</a></li> | 181 | id="toc-al_get_num_display_modes">al_get_num_display_modes</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
185 | <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> | 185 | <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> |
186 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> | 186 | <h1·id="allegro_display_mode">ALLEGRO_DISPLAY_MODE</h1> |
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_DISPLAY_MODE</span> | 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_DISPLAY_MODE</span></code></pre></div> |
188 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_DISPLAY_MODE</span></code></pre></div> | ||
189 | <p><a | 188 | <p><a |
190 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source | 189 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/fullscreen_mode.h#L13">Source |
191 | Code</a></p> | 190 | Code</a></p> |
192 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a | 191 | <p>Used·for·fullscreen·mode·queries.·Contains·information·about·a |
193 | supported·fullscreen·modes.</p> | 192 | supported·fullscreen·modes.</p> |
194 | <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_DISPLAY_MODE·<span·class="op">{</span></span> | 193 | <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_DISPLAY_MODE·<span·class="op">{</span></span> |
195 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·width<span·class="op">;</span>··········<span·class="co">//·Screen·width</span></span> | 194 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·width<span·class="op">;</span>··········<span·class="co">//·Screen·width</span></span> |
Offset 46, 15 lines modified | Offset 46, 14 lines modified | ||
46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8M_\x8O_\x8D_\x8E | 46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y_\x8__\x8M_\x8O_\x8D_\x8E |
47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e | 47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e |
48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s | 48 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8n_\x8u_\x8m_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8o_\x8d_\x8e_\x8s |
49 | These·functions·are·declared·in·the·main·Allegro·header·file: | 49 | These·functions·are·declared·in·the·main·Allegro·header·file: |
50 | ·#include·<allegro5/allegro.h> | 50 | ·#include·<allegro5/allegro.h> |
51 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 51 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_D\x8DI\x8IS\x8SP\x8PL\x8LA\x8AY\x8Y_\x8_M\x8MO\x8OD\x8DE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
52 | typedef·struct·ALLEGRO_DISPLAY_MODE | 52 | typedef·struct·ALLEGRO_DISPLAY_MODE |
53 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 53 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
55 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported | 54 | Used·for·fullscreen·mode·queries.·Contains·information·about·a·supported |
56 | fullscreen·modes. | 55 | fullscreen·modes. |
57 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 56 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
58 | ···int·width;··········//·Screen·width | 57 | ···int·width;··········//·Screen·width |
59 | ···int·height;·········//·Screen·height | 58 | ···int·height;·········//·Screen·height |
60 | ···int·format;·········//·The·pixel·format·of·the·mode | 59 | ···int·format;·········//·The·pixel·format·of·the·mode |
Offset 439, 16 lines modified | Offset 439, 15 lines modified | ||
439 | </ul></li> | 439 | </ul></li> |
440 | </ul> | 440 | </ul> |
441 | </nav> | 441 | </nav> |
442 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 442 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
443 | <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> | 443 | <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> |
444 | <h1·id="colors">Colors</h1> | 444 | <h1·id="colors">Colors</h1> |
445 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> | 445 | <h2·id="allegro_color">ALLEGRO_COLOR</h2> |
446 | <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_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span> | 446 | <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_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span></code></pre></div> |
447 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_COLOR·ALLEGRO_COLOR<span·class="op">;</span></span></code></pre></div> | ||
448 | <p><a | 447 | <p><a |
449 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source | 448 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L13">Source |
450 | Code</a></p> | 449 | Code</a></p> |
451 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 450 | <p>An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
452 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a | 451 | way.·Use·<a·href="graphics.html#al_map_rgb">al_map_rgb</a>·et·al. and·<a |
453 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate | 452 | href="graphics.html#al_unmap_rgb">al_unmap_rgb</a>·et·al. to·translate |
454 | from·and·to·various·color·representations.</p> | 453 | from·and·to·various·color·representations.</p> |
Offset 676, 16 lines modified | Offset 675, 15 lines modified | ||
676 | <li><a | 675 | <li><a |
677 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> | 676 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_test.c#L16">ex_blend_test.c</a></li> |
678 | <li><a | 677 | <li><a |
679 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L138">ex_logo.c</a></li> | 678 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_logo.c#L138">ex_logo.c</a></li> |
680 | </ul> | 679 | </ul> |
681 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> | 680 | <h1·id="locking-and-pixel-formats">Locking·and·pixel·formats</h1> |
682 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> | 681 | <h2·id="allegro_locked_region">ALLEGRO_LOCKED_REGION</h2> |
683 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span> | 682 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span></code></pre></div> |
684 | <span·id="cb15-2"><a·href="#cb15-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION<span·class="op">;</span></span></code></pre></div> | ||
685 | <p><a | 683 | <p><a |
686 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source | 684 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap_lock.h#L23">Source |
687 | Code</a></p> | 685 | Code</a></p> |
688 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 686 | <p>Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
689 | lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked | 687 | lock·it·first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked |
690 | region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including | 688 | region·of·the·bitmap.·This·call·will·work·with·any·bitmap,·including |
691 | memory·bitmaps.</p> | 689 | memory·bitmaps.</p> |
Offset 722, 16 lines modified | Offset 720, 15 lines modified | ||
722 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> | 720 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_lockbitmap.c#L21">ex_lockbitmap.c</a></li> |
723 | <li><a | 721 | <li><a |
724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> | 722 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_premulalpha.c#L16">ex_premulalpha.c</a></li> |
725 | <li><a | 723 | <li><a |
726 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> | 724 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_multisample.c#L52">ex_multisample.c</a></li> |
727 | </ul> | 725 | </ul> |
728 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> | 726 | <h2·id="allegro_pixel_format">ALLEGRO_PIXEL_FORMAT</h2> |
729 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span> | 727 | <div·class="sourceCode"·id="cb17"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb17-1"><a·href="#cb17-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> |
730 | <span·id="cb17-2"><a·href="#cb17-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_PIXEL_FORMAT</span></code></pre></div> | ||
731 | <p><a | 728 | <p><a |
732 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source | 729 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/color.h#L23">Source |
733 | Code</a></p> | 730 | Code</a></p> |
734 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit | 731 | <p>Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit |
735 | layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to | 732 | layout·of·a·pixel·in·memory.·Components·are·specified·from·high·bits·to |
736 | low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is | 733 | low·bits,·so·for·example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is |
737 | 0xFFFF0000.</p> | 734 | 0xFFFF0000.</p> |
Offset 1084, 16 lines modified | Offset 1081, 15 lines modified | ||
1084 | <p>Examples:</p> | 1081 | <p>Examples:</p> |
1085 | <ul> | 1082 | <ul> |
1086 | <li><a | 1083 | <li><a |
1087 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_compressed.c#L114">ex_compressed.c</a></li> | 1084 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_compressed.c#L114">ex_compressed.c</a></li> |
1088 | </ul> | 1085 | </ul> |
1089 | <h1·id="bitmap-creation">Bitmap·creation</h1> | 1086 | <h1·id="bitmap-creation">Bitmap·creation</h1> |
1090 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> | 1087 | <h2·id="allegro_bitmap">ALLEGRO_BITMAP</h2> |
1091 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span> | 1088 | <div·class="sourceCode"·id="cb30"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb30-1"><a·href="#cb30-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span></code></pre></div> |
1092 | <span·id="cb30-2"><a·href="#cb30-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_BITMAP·ALLEGRO_BITMAP<span·class="op">;</span></span></code></pre></div> | ||
1093 | <p><a | 1089 | <p><a |
1094 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source | 1090 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L12">Source |
1095 | Code</a></p> | 1091 | Code</a></p> |
1096 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> | 1092 | <p>Abstract·type·representing·a·bitmap·(2D·image).</p> |
1097 | <p>Examples:</p> | 1093 | <p>Examples:</p> |
1098 | <ul> | 1094 | <ul> |
1099 | <li><a | 1095 | <li><a |
Offset 1607, 16 lines modified | Offset 1603, 15 lines modified | ||
1607 | <blockquote> | 1603 | <blockquote> |
1608 | <p><em><a·href="getting_started.html#unstable-api">Unstable | 1604 | <p><em><a·href="getting_started.html#unstable-api">Unstable |
1609 | API</a>:</em>·This·is·an·experimental·feature.</p> | 1605 | API</a>:</em>·This·is·an·experimental·feature.</p> |
1610 | </blockquote> | 1606 | </blockquote> |
1611 | <p>See·also:·<a | 1607 | <p>See·also:·<a |
1612 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> | 1608 | href="graphics.html#allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</a></p> |
1613 | <h2·id="allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</h2> | 1609 | <h2·id="allegro_bitmap_wrap">ALLEGRO_BITMAP_WRAP</h2> |
1614 | <div·class="sourceCode"·id="cb49"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb49-1"><a·href="#cb49-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span> | 1610 | <div·class="sourceCode"·id="cb49"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb49-1"><a·href="#cb49-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span></code></pre></div> |
1615 | <span·id="cb49-2"><a·href="#cb49-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_BITMAP_WRAP·<span·class="op">{</span></span></code></pre></div> | ||
1616 | <p><a | 1611 | <p><a |
1617 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L17">Source | 1612 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/bitmap.h#L17">Source |
1618 | Code</a></p> | 1613 | Code</a></p> |
1619 | <p>Controls·the·how·the·pixel·color·is·determined·from·a·texture | 1614 | <p>Controls·the·how·the·pixel·color·is·determined·from·a·texture |
1620 | querying·the·texture·coordinates·are·outside·the·usual·bounds.</p> | 1615 | querying·the·texture·coordinates·are·outside·the·usual·bounds.</p> |
1621 | <ul> | 1616 | <ul> |
1622 | <li><p>ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This | 1617 | <li><p>ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This |
Offset 3300, 16 lines modified | Offset 3295, 15 lines modified | ||
3300 | <p>See·also:·<a | 3295 | <p>See·also:·<a |
3301 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a | 3296 | href="image.html#al_init_image_addon">al_init_image_addon</a>,·<a |
3302 | href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a | 3297 | href="graphics.html#al_identify_bitmap">al_identify_bitmap</a>,·<a |
3303 | href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> | 3298 | href="graphics.html#al_register_bitmap_identifier">al_register_bitmap_identifier</a></p> |
3304 | <h1·id="render-state">Render·State</h1> | 3299 | <h1·id="render-state">Render·State</h1> |
3305 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> | 3300 | <h2·id="allegro_render_state">ALLEGRO_RENDER_STATE</h2> |
3306 | <div·class="sourceCode"·id="cb150"><pre | 3301 | <div·class="sourceCode"·id="cb150"><pre |
3307 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span> | 3302 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb150-1"><a·href="#cb150-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span></code></pre></div> |
3308 | <span·id="cb150-2"><a·href="#cb150-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_STATE·<span·class="op">{</span></span></code></pre></div> | ||
3309 | <p><a | 3303 | <p><a |
3310 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source | 3304 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L12">Source |
3311 | Code</a></p> | 3305 | Code</a></p> |
3312 | <p>Possible·render·states·which·can·be·set·with·<a | 3306 | <p>Possible·render·states·which·can·be·set·with·<a |
3313 | href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> | 3307 | href="graphics.html#al_set_render_state">al_set_render_state</a>:</p> |
3314 | <dl> | 3308 | <dl> |
3315 | <dt>ALLEGRO_ALPHA_TEST</dt> | 3309 | <dt>ALLEGRO_ALPHA_TEST</dt> |
Offset 3357, 16 lines modified | Offset 3351, 15 lines modified | ||
3357 | <p>See·also:·<a | 3351 | <p>See·also:·<a |
3358 | href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a | 3352 | href="graphics.html#al_set_render_state">al_set_render_state</a>,·<a |
3359 | href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>, | 3353 | href="graphics.html#allegro_render_function">ALLEGRO_RENDER_FUNCTION</a>, |
3360 | <a | 3354 | <a |
3361 | href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> | 3355 | href="graphics.html#allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</a></p> |
3362 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> | 3356 | <h2·id="allegro_render_function">ALLEGRO_RENDER_FUNCTION</h2> |
3363 | <div·class="sourceCode"·id="cb151"><pre | 3357 | <div·class="sourceCode"·id="cb151"><pre |
3364 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb151-1"><a·href="#cb151-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span> | 3358 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb151-1"><a·href="#cb151-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span></code></pre></div> |
3365 | <span·id="cb151-2"><a·href="#cb151-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_RENDER_FUNCTION·<span·class="op">{</span></span></code></pre></div> | ||
3366 | <p><a | 3359 | <p><a |
3367 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source | 3360 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/render_state.h#L26">Source |
3368 | Code</a></p> | 3361 | Code</a></p> |
3369 | <p>Possible·functions·are:</p> | 3362 | <p>Possible·functions·are:</p> |
3370 | <ul> | 3363 | <ul> |
3371 | <li>ALLEGRO_RENDER_NEVER</li> | 3364 | <li>ALLEGRO_RENDER_NEVER</li> |
3372 | <li>ALLEGRO_RENDER_ALWAYS</li> | 3365 | <li>ALLEGRO_RENDER_ALWAYS</li> |
Offset 3380, 16 lines modified | Offset 3373, 15 lines modified | ||
3380 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> | 3373 | <li>ALLEGRO_RENDER_GREATER_EQUAL</li> |
3381 | </ul> | 3374 | </ul> |
3382 | <p>Since:·5.1.2</p> | 3375 | <p>Since:·5.1.2</p> |
3383 | <p>See·also:·<a | 3376 | <p>See·also:·<a |
3384 | href="graphics.html#al_set_render_state">al_set_render_state</a></p> | 3377 | href="graphics.html#al_set_render_state">al_set_render_state</a></p> |
3385 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> | 3378 | <h2·id="allegro_write_mask_flags">ALLEGRO_WRITE_MASK_FLAGS</h2> |
3386 | <div·class="sourceCode"·id="cb152"><pre | 3379 | <div·class="sourceCode"·id="cb152"><pre |
3387 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb152-1"><a·href="#cb152-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·<span·class="op">{</span></span> | 3380 | class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb152-1"><a·href="#cb152-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_WRITE_MASK_FLAGS·<span·class="op">{</span></span></code></pre></div> |
Max diff block lines reached; 247/11359 bytes (2.17%) of diff not shown. |
Offset 170, 15 lines modified | Offset 170, 14 lines modified | ||
170 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p | 170 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p |
171 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8s | 171 | ··········o·_\x8a_\x8l_\x8__\x8b_\x8a_\x8c_\x8k_\x8u_\x8p_\x8__\x8d_\x8i_\x8r_\x8t_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8s |
172 | These·functions·are·declared·in·the·main·Allegro·header·file: | 172 | These·functions·are·declared·in·the·main·Allegro·header·file: |
173 | ·#include·<allegro5/allegro.h> | 173 | ·#include·<allegro5/allegro.h> |
174 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8ol\x8lo\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 174 | *\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*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_C\x8CO\x8OL\x8LO\x8OR\x8R·*\x8**\x8**\x8**\x8**\x8* | 175 | *\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 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | 176 | 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 | 177 | _\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 | 178 | 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 | 179 | _\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. | 180 | color·representations. |
182 | Examples: | 181 | Examples: |
183 | ····*·_\x8e_\x8x_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8f_\x8o_\x8c_\x8u_\x8s_\x8._\x8c | 182 | ····*·_\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 | 183 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
Offset 307, 15 lines modified | Offset 306, 14 lines modified | ||
307 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f | 306 | See·also:·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8a,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b,·_\x8a_\x8l_\x8__\x8u_\x8n_\x8m_\x8a_\x8p_\x8__\x8r_\x8g_\x8b_\x8__\x8f |
308 | Examples: | 307 | Examples: |
309 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c | 308 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8t_\x8e_\x8s_\x8t_\x8._\x8c |
310 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c | 309 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8g_\x8o_\x8._\x8c |
311 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 310 | *\x8**\x8**\x8**\x8**\x8**\x8*·L\x8Lo\x8oc\x8ck\x8ki\x8in\x8ng\x8g·a\x8an\x8nd\x8d·p\x8pi\x8ix\x8xe\x8el\x8l·f\x8fo\x8or\x8rm\x8ma\x8at\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
312 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* | 311 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_L\x8LO\x8OC\x8CK\x8KE\x8ED\x8D_\x8_R\x8RE\x8EG\x8GI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* |
313 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | 312 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
314 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
315 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 313 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
316 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it | 314 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to·lock·it |
317 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 315 | first.·The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
318 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 316 | bitmap.·This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
319 | typedef·struct·ALLEGRO_LOCKED_REGION·{ | 317 | typedef·struct·ALLEGRO_LOCKED_REGION·{ |
320 | ···void·*data; | 318 | ···void·*data; |
321 | ···int·format; | 319 | ···int·format; |
Offset 340, 15 lines modified | Offset 338, 14 lines modified | ||
340 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T | 338 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I_\x8X_\x8E_\x8L_\x8__\x8F_\x8O_\x8R_\x8M_\x8A_\x8T |
341 | Examples: | 339 | Examples: |
342 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 340 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8c_\x8k_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c |
343 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8a_\x8l_\x8p_\x8h_\x8a_\x8._\x8c | 341 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8e_\x8m_\x8u_\x8l_\x8a_\x8l_\x8p_\x8h_\x8a_\x8._\x8c |
344 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c | 342 | ····*·_\x8e_\x8x_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8._\x8c |
345 | *\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* | 343 | *\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* |
346 | typedef·enum·ALLEGRO_PIXEL_FORMAT | 344 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
347 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
348 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 345 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
349 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a | 346 | Pixel·formats.·Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a |
350 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for | 347 | pixel·in·memory.·Components·are·specified·from·high·bits·to·low·bits,·so·for |
351 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 348 | example·a·fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
352 | ·····N\x8No\x8ot\x8te\x8e:\x8: | 349 | ·····N\x8No\x8ot\x8te\x8e:\x8: |
353 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above | 350 | ·····The·pixel·format·is·independent·of·endianness.·That·is,·in·the·above |
354 | ·····example·you·can·always·get·the·red·component·with | 351 | ·····example·you·can·always·get·the·red·component·with |
Offset 583, 15 lines modified | Offset 580, 14 lines modified | ||
583 | Since:·5.1.9 | 580 | Since:·5.1.9 |
584 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d | 581 | See·also:·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8r_\x8e_\x8g_\x8i_\x8o_\x8n,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8c_\x8k_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8e_\x8d |
585 | Examples: | 582 | Examples: |
586 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c | 583 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8m_\x8p_\x8r_\x8e_\x8s_\x8s_\x8e_\x8d_\x8._\x8c |
587 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 584 | *\x8**\x8**\x8**\x8**\x8**\x8*·B\x8Bi\x8it\x8tm\x8ma\x8ap\x8p·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
588 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* | 585 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* |
589 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | 586 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
590 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
591 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 587 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
592 | Abstract·type·representing·a·bitmap·(2D·image). | 588 | Abstract·type·representing·a·bitmap·(2D·image). |
593 | Examples: | 589 | Examples: |
594 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 590 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
595 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | 591 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
596 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 592 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c |
597 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* | 593 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_b\x8bi\x8it\x8tm\x8ma\x8ap\x8p·*\x8**\x8**\x8**\x8**\x8* |
Offset 909, 15 lines modified | Offset 905, 14 lines modified | ||
909 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current | 905 | Returns·the·value·currently·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8n_\x8e_\x8w_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8a_\x8p·on·the·current |
910 | thread. | 906 | thread. |
911 | Since:·5.2.8 | 907 | Since:·5.2.8 |
912 | ·····_\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. | 908 | ·····_\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. |
913 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P | 909 | See·also:·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8B_\x8I_\x8T_\x8M_\x8A_\x8P_\x8__\x8W_\x8R_\x8A_\x8P |
914 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P_\x8_W\x8WR\x8RA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* | 910 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_B\x8BI\x8IT\x8TM\x8MA\x8AP\x8P_\x8_W\x8WR\x8RA\x8AP\x8P·*\x8**\x8**\x8**\x8**\x8* |
915 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | 911 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ |
916 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | ||
917 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 912 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
918 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying·the | 913 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying·the |
919 | texture·coordinates·are·outside·the·usual·bounds. | 914 | texture·coordinates·are·outside·the·usual·bounds. |
920 | ····*·ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This·corresponds·to | 915 | ····*·ALLEGRO_BITMAP_WRAP_DEFAULT·-·The·default·behavior.·This·corresponds·to |
921 | ······ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives·addon·and | 916 | ······ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives·addon·and |
922 | ······ALLEGRO_BITMAP_WRAP_CLAMP·otherwise. | 917 | ······ALLEGRO_BITMAP_WRAP_CLAMP·otherwise. |
923 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the | 918 | ····*·ALLEGRO_BITMAP_WRAP_REPEAT·-·The·texture·coordinates·get·shifted·to·the |
Offset 1940, 15 lines modified | Offset 1935, 14 lines modified | ||
1940 | bitmap·type·cannot·be·determined. | 1935 | bitmap·type·cannot·be·determined. |
1941 | Since:·5.1.12 | 1936 | Since:·5.1.12 |
1942 | 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_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, | 1937 | 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_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8y_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p, |
1943 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r | 1938 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8g_\x8i_\x8s_\x8t_\x8e_\x8r_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8i_\x8d_\x8e_\x8n_\x8t_\x8i_\x8f_\x8i_\x8e_\x8r |
1944 | *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8nd\x8de\x8er\x8r·S\x8St\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 1939 | *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8en\x8nd\x8de\x8er\x8r·S\x8St\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
1945 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8* | 1940 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8* |
1946 | typedef·enum·ALLEGRO_RENDER_STATE·{ | 1941 | typedef·enum·ALLEGRO_RENDER_STATE·{ |
1947 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
1948 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1942 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1949 | Possible·render·states·which·can·be·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e: | 1943 | Possible·render·states·which·can·be·set·with·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e: |
1950 | ··ALLEGRO_ALPHA_TEST | 1944 | ··ALLEGRO_ALPHA_TEST |
1951 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 1945 | ······If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
1952 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed | 1946 | ······ALLEGRO_ALPHA_TEST_VALUE·define·a·comparison·function·which·is·performed |
1953 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the | 1947 | ······on·the·alpha·component·of·each·pixel.·Only·if·it·evaluates·to·true·the |
1954 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or | 1948 | ······pixel·is·written.·Otherwise·no·subsequent·processing·(like·depth·test·or |
Offset 1971, 30 lines modified | Offset 1965, 28 lines modified | ||
1971 | ··ALLEGRO_DEPTH_FUNCTION | 1965 | ··ALLEGRO_DEPTH_FUNCTION |
1972 | ······One·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. | 1966 | ······One·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N,·only·used·when·ALLEGRO_DEPTH_TEST·is·1. |
1973 | Since:·5.1.2 | 1967 | Since:·5.1.2 |
1974 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N, | 1968 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8R_\x8E_\x8N_\x8D_\x8E_\x8R_\x8__\x8F_\x8U_\x8N_\x8C_\x8T_\x8I_\x8O_\x8N, |
1975 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8W_\x8R_\x8I_\x8T_\x8E_\x8__\x8M_\x8A_\x8S_\x8K_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 1969 | _\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8W_\x8R_\x8I_\x8T_\x8E_\x8__\x8M_\x8A_\x8S_\x8K_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
1976 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_F\x8FU\x8UN\x8NC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* | 1970 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_R\x8RE\x8EN\x8ND\x8DE\x8ER\x8R_\x8_F\x8FU\x8UN\x8NC\x8CT\x8TI\x8IO\x8ON\x8N·*\x8**\x8**\x8**\x8**\x8* |
1977 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | 1971 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ |
1978 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
1979 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1972 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1980 | Possible·functions·are: | 1973 | Possible·functions·are: |
1981 | ····*·ALLEGRO_RENDER_NEVER | 1974 | ····*·ALLEGRO_RENDER_NEVER |
1982 | ····*·ALLEGRO_RENDER_ALWAYS | 1975 | ····*·ALLEGRO_RENDER_ALWAYS |
1983 | ····*·ALLEGRO_RENDER_LESS | 1976 | ····*·ALLEGRO_RENDER_LESS |
1984 | ····*·ALLEGRO_RENDER_EQUAL | 1977 | ····*·ALLEGRO_RENDER_EQUAL |
1985 | ····*·ALLEGRO_RENDER_LESS_EQUAL | 1978 | ····*·ALLEGRO_RENDER_LESS_EQUAL |
1986 | ····*·ALLEGRO_RENDER_GREATER | 1979 | ····*·ALLEGRO_RENDER_GREATER |
1987 | ····*·ALLEGRO_RENDER_NOT_EQUAL | 1980 | ····*·ALLEGRO_RENDER_NOT_EQUAL |
1988 | ····*·ALLEGRO_RENDER_GREATER_EQUAL | 1981 | ····*·ALLEGRO_RENDER_GREATER_EQUAL |
1989 | Since:·5.1.2 | 1982 | Since:·5.1.2 |
1990 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 1983 | See·also:·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8r_\x8e_\x8n_\x8d_\x8e_\x8r_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
1991 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_W\x8WR\x8RI\x8IT\x8TE\x8E_\x8_M\x8MA\x8AS\x8SK\x8K_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8* | 1984 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_W\x8WR\x8RI\x8IT\x8TE\x8E_\x8_M\x8MA\x8AS\x8SK\x8K_\x8_F\x8FL\x8LA\x8AG\x8GS\x8S·*\x8**\x8**\x8**\x8**\x8* |
1992 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | 1985 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ |
1993 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
1994 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 1986 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
1995 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means | 1987 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled·bit·means |
1996 | it·is·not. | 1988 | it·is·not. |
1997 | ····*·ALLEGRO_MASK_RED | 1989 | ····*·ALLEGRO_MASK_RED |
1998 | ····*·ALLEGRO_MASK_GREEN | 1990 | ····*·ALLEGRO_MASK_GREEN |
1999 | ····*·ALLEGRO_MASK_BLUE | 1991 | ····*·ALLEGRO_MASK_BLUE |
2000 | ····*·ALLEGRO_MASK_ALPHA | 1992 | ····*·ALLEGRO_MASK_ALPHA |
Offset 250, 16 lines modified | Offset 250, 15 lines modified | ||
250 | file:</p> | 250 | file:</p> |
251 | <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> | 251 | <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> |
252 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows | 252 | <p>Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows |
253 | for·DirectInput·compatible·devices.·There·is·also·minimal·support·for | 253 | for·DirectInput·compatible·devices.·There·is·also·minimal·support·for |
254 | Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput | 254 | Android.·It·is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput |
255 | compatible·devices.</p> | 255 | compatible·devices.</p> |
256 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> | 256 | <h1·id="allegro_haptic">ALLEGRO_HAPTIC</h1> |
257 | <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_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span> | 257 | <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_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span></code></pre></div> |
258 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC<span·class="op">;</span></span></code></pre></div> | ||
259 | <p><a | 258 | <p><a |
260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source | 259 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L64">Source |
261 | Code</a></p> | 260 | Code</a></p> |
262 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that | 261 | <p>This·is·an·abstract·data·type·representing·a·haptic·device·that |
263 | supports·force·feedback·or·vibration.</p> | 262 | supports·force·feedback·or·vibration.</p> |
264 | <p>Since:·5.1.8</p> | 263 | <p>Since:·5.1.8</p> |
265 | <blockquote> | 264 | <blockquote> |
Offset 274, 16 lines modified | Offset 273, 15 lines modified | ||
274 | <ul> | 273 | <ul> |
275 | <li><a | 274 | <li><a |
276 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | 275 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> |
277 | <li><a | 276 | <li><a |
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> | 277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L21">ex_haptic2.cpp</a></li> |
279 | </ul> | 278 | </ul> |
280 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> | 279 | <h1·id="allegro_haptic_constants">ALLEGRO_HAPTIC_CONSTANTS</h1> |
281 | <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> | 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> |
282 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_HAPTIC_CONSTANTS</span></code></pre></div> | ||
283 | <p><a | 281 | <p><a |
284 | 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 |
285 | Code</a></p> | 283 | Code</a></p> |
286 | <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 |
287 | 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 |
288 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, | 286 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, |
289 | it·means·the·device·supports·the·given·effect.·The·value·of·these·flags | 287 | it·means·the·device·supports·the·given·effect.·The·value·of·these·flags |
Offset 322, 16 lines modified | Offset 320, 15 lines modified | ||
322 | users.</p> | 320 | users.</p> |
323 | </blockquote> | 321 | </blockquote> |
324 | <p>See·also:·<a | 322 | <p>See·also:·<a |
325 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, | 323 | href="haptic.html#al_get_haptic_capabilities">al_get_haptic_capabilities</a>, |
326 | <a | 324 | <a |
327 | href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> | 325 | href="haptic.html#allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</a></p> |
328 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> | 326 | <h1·id="allegro_haptic_effect">ALLEGRO_HAPTIC_EFFECT</h1> |
329 | <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>·ALLEGRO_HAPTIC_EFFECT</span> | 327 | <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>·ALLEGRO_HAPTIC_EFFECT</span></code></pre></div> |
330 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">struct</span>·ALLEGRO_HAPTIC_EFFECT</span></code></pre></div> | ||
331 | <p><a | 328 | <p><a |
332 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source | 329 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/haptic.h#L169">Source |
333 | Code</a></p> | 330 | Code</a></p> |
334 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs | 331 | <p>This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs |
335 | to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the | 332 | to·be·filled·in·correctly·and·uploaded·to·a·haptic·device·before·the |
336 | device·can·play·it·back.</p> | 333 | device·can·play·it·back.</p> |
337 | <p><em>Fields:</em></p> | 334 | <p><em>Fields:</em></p> |
Offset 534, 16 lines modified | Offset 531, 15 lines modified | ||
534 | <ul> | 531 | <ul> |
535 | <li><a | 532 | <li><a |
536 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> | 533 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L16">ex_haptic.c</a></li> |
537 | <li><a | 534 | <li><a |
538 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> | 535 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic2.cpp#L22">ex_haptic2.cpp</a></li> |
539 | </ul> | 536 | </ul> |
540 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> | 537 | <h1·id="allegro_haptic_effect_id">ALLEGRO_HAPTIC_EFFECT_ID</h1> |
541 | <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> | 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> |
542 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
543 | <p><a | 539 | <p><a |
544 | 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 |
545 | Code</a></p> | 541 | Code</a></p> |
546 | <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 |
547 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible | 543 | effect·and·should·be·considered·opaque.·Its·implementation·is·visible |
548 | merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> | 544 | merely·to·allow·allocation·by·the·users·of·the·Allegro·library.</p> |
549 | <p>Since:·5.1.8</p> | 545 | <p>Since:·5.1.8</p> |
Offset 82, 29 lines modified | Offset 82, 27 lines modified | ||
82 | functions·are·declared·in·the·main·Allegro·header·file: | 82 | functions·are·declared·in·the·main·Allegro·header·file: |
83 | ·#include·<allegro5/allegro.h> | 83 | ·#include·<allegro5/allegro.h> |
84 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for | 84 | Currently·force·feedback·is·fully·supported·on·Linux·and·on·Windows·for |
85 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It | 85 | DirectInput·compatible·devices.·There·is·also·minimal·support·for·Android.·It |
86 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. | 86 | is·not·yet·supported·on·OSX,·iOS,·or·on·Windows·for·XInput·compatible·devices. |
87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_H\x8HA\x8AP\x8PT\x8TI\x8IC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* |
88 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | 88 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; |
89 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
90 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
91 | 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 |
92 | feedback·or·vibration. | 91 | feedback·or·vibration. |
93 | Since:·5.1.8 | 92 | Since:·5.1.8 |
94 | ·····_\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 |
95 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 94 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
96 | ·····feedback·from·users. | 95 | ·····feedback·from·users. |
97 | 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 |
98 | Examples: | 97 | Examples: |
99 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 98 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c |
100 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | 99 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p |
101 | *\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* |
102 | enum·ALLEGRO_HAPTIC_CONSTANTS | 101 | enum·ALLEGRO_HAPTIC_CONSTANTS |
103 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 102 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
105 | 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 |
106 | capabilities.·If·the·flag·is·set·in·the·return·value·of | 104 | capabilities.·If·the·flag·is·set·in·the·return·value·of |
107 | _\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 |
108 | 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 |
109 | determine·what·kind·of·haptic·effect·should·be·played. | 107 | determine·what·kind·of·haptic·effect·should·be·played. |
110 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects | 108 | ····*·ALLEGRO_HAPTIC_RUMBLE·-·simple·vibration·effects |
Offset 129, 15 lines modified | Offset 127, 14 lines modified | ||
129 | Since:·5.1.8 | 127 | Since:·5.1.8 |
130 | ·····_\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 | 128 | ·····_\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 |
131 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 129 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
132 | ·····feedback·from·users. | 130 | ·····feedback·from·users. |
133 | See·also:·_\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,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T | 131 | See·also:·_\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,·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8H_\x8A_\x8P_\x8T_\x8I_\x8C_\x8__\x8E_\x8F_\x8F_\x8E_\x8C_\x8T |
134 | *\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**\x8**\x8**\x8**\x8**\x8* | 132 | *\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**\x8**\x8**\x8**\x8**\x8* |
135 | struct·ALLEGRO_HAPTIC_EFFECT | 133 | struct·ALLEGRO_HAPTIC_EFFECT |
136 | struct·ALLEGRO_HAPTIC_EFFECT | ||
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 134 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be | 135 | This·struct·models·a·particular·haptic·or·vibration·effect.·It·needs·to·be |
139 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play | 136 | filled·in·correctly·and·uploaded·to·a·haptic·device·before·the·device·can·play |
140 | it·back. | 137 | it·back. |
141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 138 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
142 | ··type | 139 | ··type |
143 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS | 140 | ······The·type·of·the·haptic·effect.·May·be·one·of·the·ALLEGRO_HAPTIC_CONSTANTS |
Offset 294, 15 lines modified | Offset 291, 14 lines modified | ||
294 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 291 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
295 | ·····feedback·from·users. | 292 | ·····feedback·from·users. |
296 | Examples: | 293 | Examples: |
297 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 294 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c |
298 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p | 295 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x82_\x8._\x8c_\x8p_\x8p |
299 | *\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* |
300 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | 297 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
301 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
302 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 298 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
303 | 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 |
304 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow | 300 | should·be·considered·opaque.·Its·implementation·is·visible·merely·to·allow |
305 | allocation·by·the·users·of·the·Allegro·library. | 301 | allocation·by·the·users·of·the·Allegro·library. |
306 | Since:·5.1.8 | 302 | Since:·5.1.8 |
307 | ·····_\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 |
308 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting | 304 | ·····all·the·exposed·features·across·all·of·the·platforms.·Awaiting |
Offset 187, 16 lines modified | Offset 187, 15 lines modified | ||
187 | allegro_image.</p> | 187 | allegro_image.</p> |
188 | <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_image.h></span></span></code></pre></div> | 188 | <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_image.h></span></span></code></pre></div> |
189 | <p>Some·of·the·format·handlers·define·configuration·options·for | 189 | <p>Some·of·the·format·handlers·define·configuration·options·for |
190 | specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a | 190 | specifying·things·like·compression·level·or·gamma·handling.·Refer·to·<a |
191 | href="system.html#al_get_system_config">al_get_system_config</a>·for | 191 | href="system.html#al_get_system_config">al_get_system_config</a>·for |
192 | their·documentation.</p> | 192 | their·documentation.</p> |
193 | <h1·id="al_init_image_addon">al_init_image_addon</h1> | 193 | <h1·id="al_init_image_addon">al_init_image_addon</h1> |
194 | <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="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 194 | <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="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
195 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
196 | <p><a | 195 | <p><a |
197 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source | 196 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L14">Source |
198 | Code</a></p> | 197 | Code</a></p> |
199 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers | 198 | <p>Initializes·the·image·addon.·This·registers·bitmap·format·handlers |
200 | for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a | 199 | for·<a·href="graphics.html#al_load_bitmap">al_load_bitmap</a>,·<a |
201 | href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a | 200 | href="graphics.html#al_load_bitmap_f">al_load_bitmap_f</a>,·<a |
202 | href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a | 201 | href="graphics.html#al_save_bitmap">al_save_bitmap</a>,·<a |
Offset 219, 33 lines modified | Offset 218, 30 lines modified | ||
219 | <li><a | 218 | <li><a |
220 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> | 219 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_nodisplay.c#L22">ex_nodisplay.c</a></li> |
221 | <li><a | 220 | <li><a |
222 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> | 221 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_opengl_pixel_shader.c#L53">ex_opengl_pixel_shader.c</a></li> |
223 | </ul> | 222 | </ul> |
224 | <h1 | 223 | <h1 |
225 | 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> |
226 | <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> | 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> |
227 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
228 | <p><a | 226 | <p><a |
229 | 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 |
230 | Code</a></p> | 228 | Code</a></p> |
231 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns | 229 | <p>Returns·true·if·the·image·addon·is·initialized,·otherwise·returns |
232 | false.</p> | 230 | false.</p> |
233 | <p>Since:·5.2.6</p> | 231 | <p>Since:·5.2.6</p> |
234 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> | 232 | <h1·id="al_shutdown_image_addon">al_shutdown_image_addon</h1> |
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="dt">void</span>·al_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 233 | <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_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
236 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_image_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
237 | <p><a | 234 | <p><a |
238 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source | 235 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L177">Source |
239 | Code</a></p> | 236 | Code</a></p> |
240 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program | 237 | <p>Shut·down·the·image·addon.·This·is·done·automatically·at·program |
241 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 238 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
242 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> | 239 | <h1·id="al_get_allegro_image_version">al_get_allegro_image_version</h1> |
243 | <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">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 240 | <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">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
244 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_image_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
245 | <p><a | 241 | <p><a |
246 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source | 242 | href="https://github.com/liballeg/allegro5/blob/master/addons/image/iio.c#L185">Source |
247 | Code</a></p> | 243 | Code</a></p> |
248 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 244 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
249 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 245 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
250 | <p·class="timestamp"> | 246 | <p·class="timestamp"> |
251 | Allegro·version·5.2.9 | 247 | Allegro·version·5.2.9 |
Offset 51, 15 lines modified | Offset 51, 14 lines modified | ||
51 | allegro_image. | 51 | allegro_image. |
52 | ·#include·<allegro5/allegro_image.h> | 52 | ·#include·<allegro5/allegro_image.h> |
53 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things | 53 | Some·of·the·format·handlers·define·configuration·options·for·specifying·things |
54 | like·compression·level·or·gamma·handling.·Refer·to·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g·for | 54 | like·compression·level·or·gamma·handling.·Refer·to·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m_\x8__\x8c_\x8o_\x8n_\x8f_\x8i_\x8g·for |
55 | their·documentation. | 55 | their·documentation. |
56 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 56 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_a\x8ad\x8dd\x8do\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
57 | bool·al_init_image_addon(void) | 57 | bool·al_init_image_addon(void) |
58 | bool·al_init_image_addon(void) | ||
59 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 58 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
60 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for | 59 | Initializes·the·image·addon.·This·registers·bitmap·format·handlers·for |
61 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f. | 60 | _\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8l_\x8o_\x8a_\x8d_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p,·_\x8a_\x8l_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8__\x8f. |
62 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be | 61 | The·following·types·are·built·into·the·Allegro·image·addon·and·guaranteed·to·be |
63 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via | 62 | available:·BMP,·DDS,·PCX,·TGA.·Every·platform·also·supports·JPEG·and·PNG·via |
64 | external·dependencies. | 63 | external·dependencies. |
65 | 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 |
Offset 71, 24 lines modified | Offset 70, 21 lines modified | ||
71 | have·the·pixel·format·matching·the·format·in·the·file. | 70 | have·the·pixel·format·matching·the·format·in·the·file. |
72 | Examples: | 71 | Examples: |
73 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 72 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
74 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c | 73 | ····*·_\x8e_\x8x_\x8__\x8n_\x8o_\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8._\x8c |
75 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8__\x8p_\x8i_\x8x_\x8e_\x8l_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\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 |
76 | *\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* |
77 | bool·al_is_image_addon_initialized(void) | 76 | bool·al_is_image_addon_initialized(void) |
78 | bool·al_is_image_addon_initialized(void) | ||
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 78 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
81 | Since:·5.2.6 | 79 | Since:·5.2.6 |
82 | *\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* |
83 | void·al_shutdown_image_addon(void) | 81 | void·al_shutdown_image_addon(void) |
84 | void·al_shutdown_image_addon(void) | ||
85 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
86 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can | 83 | Shut·down·the·image·addon.·This·is·done·automatically·at·program·exit,·but·can |
87 | be·called·any·time·the·user·wishes·as·well. | 84 | be·called·any·time·the·user·wishes·as·well. |
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
89 | uint32_t·al_get_allegro_image_version(void) | 86 | uint32_t·al_get_allegro_image_version(void) |
90 | uint32_t·al_get_allegro_image_version(void) | ||
91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
92 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 88 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
93 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 89 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
94 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC | 90 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC |
Offset 223, 16 lines modified | Offset 223, 15 lines modified | ||
223 | Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be | 223 | Xinput·one.·If·support·for·XInput·was·compiled·in,·then·it·can·be |
224 | enabled·by·calling·al_set_config_value(al_get_system_config(), | 224 | enabled·by·calling·al_set_config_value(al_get_system_config(), |
225 | “joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or | 225 | “joystick”,·“driver”,·“xinput”)·before·calling·al_install_joystick,·or |
226 | by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The | 226 | by·setting·the·same·option·in·the·allegro5.cfg·configuration·file.·The |
227 | Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics | 227 | Xinput·and·DirectInput·drivers·are·mutually·exclusive.·The·haptics |
228 | subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> | 228 | subsystem·will·use·the·same·driver·as·the·joystick·system·does.</p> |
229 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</h1> | 229 | <h1·id="allegro_joystick">ALLEGRO_JOYSTICK</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_JOYSTICK·ALLEGRO_JOYSTICK<span·class="op">;</span></span> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
232 | <p><a | 231 | <p><a |
233 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source | 232 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L35">Source |
234 | Code</a></p> | 233 | Code</a></p> |
235 | <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> |
236 | <p>See·also:·<a | 235 | <p>See·also:·<a |
237 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> | 236 | href="joystick.html#al_get_joystick">al_get_joystick</a></p> |
238 | <p>Examples:</p> | 237 | <p>Examples:</p> |
Offset 241, 16 lines modified | Offset 240, 15 lines modified | ||
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> | 240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_haptic.c#L14">ex_haptic.c</a></li> |
242 | <li><a | 241 | <li><a |
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> | 242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L7">ex_joystick_hotplugging.c</a></li> |
244 | <li><a | 243 | <li><a |
245 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> | 244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L32">ex_joystick_events.c</a></li> |
246 | </ul> | 245 | </ul> |
247 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> | 246 | <h1·id="allegro_joystick_state">ALLEGRO_JOYSTICK_STATE</h1> |
248 | <div·class="sourceCode"·id="cb3"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb3-1"><a·href="#cb3-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE<span·class="op">;</span></span> | 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> |
249 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
250 | <p><a | 248 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source | 249 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L41">Source |
252 | Code</a></p> | 250 | Code</a></p> |
253 | <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 |
254 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and | 252 | axes·and·buttons·at·a·particular·instant.·All·fields·public·and |
255 | read-only.</p> | 253 | read-only.</p> |
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="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> |
Offset 263, 16 lines modified | Offset 261, 15 lines modified | ||
263 | <ul> | 261 | <ul> |
264 | <li><a | 262 | <li><a |
265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> | 263 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_hotplugging.c#L38">ex_joystick_hotplugging.c</a></li> |
266 | <li><a | 264 | <li><a |
267 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> | 265 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_joystick_events.c#L34">ex_joystick_events.c</a></li> |
268 | </ul> | 266 | </ul> |
269 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> | 267 | <h1·id="allegro_joyflags">ALLEGRO_JOYFLAGS</h1> |
270 | <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> | 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> |
271 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_JOYFLAGS</span></code></pre></div> | ||
272 | <p><a | 269 | <p><a |
273 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source | 270 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/joystick.h#L54">Source |
274 | Code</a></p> | 271 | Code</a></p> |
275 | <ul> | 272 | <ul> |
276 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> | 273 | <li>ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input</li> |
277 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> | 274 | <li>ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input</li> |
278 | </ul> | 275 | </ul> |
Offset 71, 39 lines modified | Offset 71, 36 lines modified | ||
71 | al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”) | 71 | al_set_config_value(al_get_system_config(),·“joystick”,·“driver”,·“xinput”) |
72 | before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the | 72 | before·calling·al_install_joystick,·or·by·setting·the·same·option·in·the |
73 | allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are | 73 | allegro5.cfg·configuration·file.·The·Xinput·and·DirectInput·drivers·are |
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 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
80 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 79 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
81 | 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 |
82 | Examples: | 81 | Examples: |
83 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c | 82 | ····*·_\x8e_\x8x_\x8__\x8h_\x8a_\x8p_\x8t_\x8i_\x8c_\x8._\x8c |
84 | ····*·_\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 | 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 |
85 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 84 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
86 | *\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* |
87 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | 86 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
88 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | 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 |
91 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. | 89 | buttons·at·a·particular·instant.·All·fields·public·and·read-only. |
92 | struct·{ | 90 | struct·{ |
93 | ···float·axis[num_axes];·············//·-1.0·to·1.0 | 91 | ···float·axis[num_axes];·············//·-1.0·to·1.0 |
94 | }·stick[num_sticks]; | 92 | }·stick[num_sticks]; |
95 | int·button[num_buttons];·············//·0·to·32767 | 93 | int·button[num_buttons];·············//·0·to·32767 |
96 | 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 |
97 | Examples: | 95 | Examples: |
98 | ····*·_\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 | 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 |
99 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 97 | ····*·_\x8e_\x8x_\x8__\x8j_\x8o_\x8y_\x8s_\x8t_\x8i_\x8c_\x8k_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
100 | *\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* |
101 | enum·ALLEGRO_JOYFLAGS | 99 | enum·ALLEGRO_JOYFLAGS |
102 | enum·ALLEGRO_JOYFLAGS | ||
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input | 101 | ····*·ALLEGRO_JOYFLAG_DIGITAL·-·the·stick·provides·digital·input |
105 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input | 102 | ····*·ALLEGRO_JOYFLAG_ANALOGUE·-·the·stick·provides·analogue·input |
106 | (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) |
107 | 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 |
108 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | 105 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ns\x8st\x8ta\x8al\x8ll\x8l_\x8_j\x8jo\x8oy\x8ys\x8st\x8ti\x8ic\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* |
109 | bool·al_install_joystick(void) | 106 | bool·al_install_joystick(void) |
Offset 198, 16 lines modified | Offset 198, 15 lines modified | ||
198 | <li><a·href="#al_get_keyboard_event_source" | 198 | <li><a·href="#al_get_keyboard_event_source" |
199 | id="toc-al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> | 199 | id="toc-al_get_keyboard_event_source">al_get_keyboard_event_source</a></li> |
200 | </ul> | 200 | </ul> |
201 | </nav> | 201 | </nav> |
202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 202 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
203 | <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> | 203 | <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> |
204 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> | 204 | <h1·id="allegro_keyboard_state">ALLEGRO_KEYBOARD_STATE</h1> |
205 | <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_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span> | 205 | <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_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span></code></pre></div> |
206 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE<span·class="op">;</span></span></code></pre></div> | ||
207 | <p><a | 206 | <p><a |
208 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source | 207 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/keyboard.h#L33">Source |
209 | Code</a></p> | 208 | Code</a></p> |
210 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s | 209 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·keyboard’s |
211 | state·at·a·particular·instant.·It·contains·the·following·publically | 210 | state·at·a·particular·instant.·It·contains·the·following·publically |
212 | readable·fields:</p> | 211 | readable·fields:</p> |
213 | <ul> | 212 | <ul> |
Offset 56, 15 lines modified | Offset 56, 14 lines modified | ||
56 | ····*·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 56 | ····*·_\x8a_\x8l_\x8__\x8c_\x8a_\x8n_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
57 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s | 57 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8l_\x8e_\x8d_\x8s |
58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8b_\x8o_\x8a_\x8r_\x8d_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
59 | These·functions·are·declared·in·the·main·Allegro·header·file: | 59 | These·functions·are·declared·in·the·main·Allegro·header·file: |
60 | ·#include·<allegro5/allegro.h> | 60 | ·#include·<allegro5/allegro.h> |
61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_K\x8KE\x8EY\x8YB\x8BO\x8OA\x8AR\x8RD\x8D_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_K\x8KE\x8EY\x8YB\x8BO\x8OA\x8AR\x8RD\x8D_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | 62 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
63 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
64 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
65 | 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 |
66 | a·particular·instant.·It·contains·the·following·publically·readable·fields: | 65 | a·particular·instant.·It·contains·the·following·publically·readable·fields: |
67 | ····*·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 |
68 | ······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. |
69 | 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. |
70 | Examples: | 69 | Examples: |
Offset 181, 16 lines modified | Offset 181, 15 lines modified | ||
181 | </nav> | 181 | </nav> |
182 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous | 182 | <p>The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous |
183 | memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> | 183 | memory·as·a·file·that·can·be·used·with·Allegro’s·I/O·functions.</p> |
184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 184 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
185 | allegro_memfile.</p> | 185 | allegro_memfile.</p> |
186 | <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_memfile.h></span></span></code></pre></div> | 186 | <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_memfile.h></span></span></code></pre></div> |
187 | <h1·id="al_open_memfile">al_open_memfile</h1> | 187 | <h1·id="al_open_memfile">al_open_memfile</h1> |
188 | <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>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<span·class="op">,</span>·<span·class="dt">const</span>·<span·class="dt">char</span>·<span·class="op">*</span>mode<span·class="op">)</span></span> | 188 | <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>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<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> |
189 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILE·<span·class="op">*</span>al_open_memfile<span·class="op">(</span><span·class="dt">void</span>·<span·class="op">*</span>mem<span·class="op">,</span>·<span·class="dt">int64_t</span>·size<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> | ||
190 | <p><a | 189 | <p><a |
191 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source | 190 | href="https://github.com/liballeg/allegro5/blob/master/addons/memfile/memfile.c#L169">Source |
192 | Code</a></p> | 191 | Code</a></p> |
193 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write | 192 | <p>Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write |
194 | operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while | 193 | operations·act·upon·the·memory·directly,·so·it·must·not·be·freed·while |
195 | the·file·remains·open.</p> | 194 | the·file·remains·open.</p> |
196 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). | 195 | <p>The·mode·can·be·any·combination·of·“r”·(readable)·and·“w”·(writable). |
Offset 204, 16 lines modified | Offset 203, 15 lines modified | ||
204 | <p>Examples:</p> | 203 | <p>Examples:</p> |
205 | <ul> | 204 | <ul> |
206 | <li><a | 205 | <li><a |
207 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> | 206 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_memfile.c#L36">ex_memfile.c</a></li> |
208 | </ul> | 207 | </ul> |
209 | <h1 | 208 | <h1 |
210 | 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> |
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="dt">uint32_t</span>·al_get_allegro_memfile_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 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> |
212 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
213 | <p><a | 211 | <p><a |
214 | 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 |
215 | Code</a></p> | 213 | Code</a></p> |
216 | <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 |
217 | 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> |
218 | <p·class="timestamp"> | 216 | <p·class="timestamp"> |
219 | Allegro·version·5.2.9 | 217 | Allegro·version·5.2.9 |
Offset 48, 26 lines modified | Offset 48, 24 lines modified | ||
48 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as | 48 | The·memfile·interface·allows·you·to·treat·a·fixed·block·of·contiguous·memory·as |
49 | a·file·that·can·be·used·with·Allegro’s·I/O·functions. | 49 | a·file·that·can·be·used·with·Allegro’s·I/O·functions. |
50 | These·functions·are·declared·in·the·following·header·file.·Link·with | 50 | These·functions·are·declared·in·the·following·header·file.·Link·with |
51 | allegro_memfile. | 51 | allegro_memfile. |
52 | ·#include·<allegro5/allegro_memfile.h> | 52 | ·#include·<allegro5/allegro_memfile.h> |
53 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 53 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_o\x8op\x8pe\x8en\x8n_\x8_m\x8me\x8em\x8mf\x8fi\x8il\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
54 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | 54 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) |
55 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
56 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
57 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act | 56 | Returns·a·file·handle·to·the·block·of·memory.·All·read·and·write·operations·act |
58 | 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. |
59 | 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). |
60 | 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 |
61 | 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 |
62 | mode,·which·means·that·no·newline·translation·is·performed. | 61 | mode,·which·means·that·no·newline·translation·is·performed. |
63 | 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 |
64 | responsible·for·freeing·the·memory·(if·needed). | 63 | responsible·for·freeing·the·memory·(if·needed). |
65 | Examples: | 64 | Examples: |
66 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c | 65 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8m_\x8f_\x8i_\x8l_\x8e_\x8._\x8c |
67 | *\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* |
68 | uint32_t·al_get_allegro_memfile_version(void) | 67 | uint32_t·al_get_allegro_memfile_version(void) |
69 | uint32_t·al_get_allegro_memfile_version(void) | ||
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | 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 |
72 | _\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. |
73 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC | 71 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC |
Offset 191, 17 lines modified | Offset 191, 15 lines modified | ||
191 | id="toc-al_set_memory_interface">al_set_memory_interface</a></li> | 191 | id="toc-al_set_memory_interface">al_set_memory_interface</a></li> |
192 | </ul> | 192 | </ul> |
193 | </nav> | 193 | </nav> |
194 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 194 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
195 | <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> | 195 | <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> |
196 | <h1·id="al_malloc">al_malloc</h1> | 196 | <h1·id="al_malloc">al_malloc</h1> |
197 | <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·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 197 | <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·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
198 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_malloc_with_context</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> | ||
199 | <span·id="cb2-3"><a·href="#cb2-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_malloc</span><span·class="op">(</span><span·class="pp">n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
200 | <span·id="cb2- | 198 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_malloc_with_context</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> |
201 | <p><a | 199 | <p><a |
202 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source | 200 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L42">Source |
203 | Code</a></p> | 201 | Code</a></p> |
204 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may | 202 | <p>Like·malloc()·in·the·C·standard·library,·but·the·implementation·may |
205 | be·overridden.</p> | 203 | be·overridden.</p> |
206 | <p>This·is·a·macro.</p> | 204 | <p>This·is·a·macro.</p> |
207 | <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 |
Offset 214, 17 lines modified | Offset 212, 15 lines modified | ||
214 | <li><a | 212 | <li><a |
215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> | 213 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_timer.c#L27">ex_audio_timer.c</a></li> |
216 | <li><a | 214 | <li><a |
217 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> | 215 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_vertex_buffer.c#L134">ex_vertex_buffer.c</a></li> |
218 | </ul> | 216 | </ul> |
219 | <h1·id="al_free">al_free</h1> | 217 | <h1·id="al_free">al_free</h1> |
220 | <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> |
221 | <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> | ||
222 | <span·id="cb3-3"><a·href="#cb3-3"·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> | ||
223 | <span·id="cb3- | 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> |
224 | <p><a | 220 | <p><a |
225 | 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 |
226 | Code</a></p> | 222 | Code</a></p> |
227 | <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 |
228 | overridden.</p> | 224 | overridden.</p> |
229 | <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 |
230 | 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 |
Offset 240, 30 lines modified | Offset 236, 26 lines modified | ||
240 | <li><a | 236 | <li><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L165">ex_drag_and_drop.c</a></li> | 237 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_drag_and_drop.c#L165">ex_drag_and_drop.c</a></li> |
242 | <li><a | 238 | <li><a |
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> | 239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L254">ex_record_name.c</a></li> |
244 | </ul> | 240 | </ul> |
245 | <h1·id="al_realloc">al_realloc</h1> | 241 | <h1·id="al_realloc">al_realloc</h1> |
246 | <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> |
247 | <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> | ||
248 | <span·id="cb4-3"><a·href="#cb4-3"·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> | ||
249 | <span·id="cb4- | 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> |
250 | <p><a | 244 | <p><a |
251 | 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 |
252 | Code</a></p> | 246 | Code</a></p> |
253 | <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 |
254 | be·overridden.</p> | 248 | be·overridden.</p> |
255 | <p>This·is·a·macro.</p> | 249 | <p>This·is·a·macro.</p> |
256 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a | 250 | <p>See·also:·<a·href="memory.html#al_malloc">al_malloc</a>,·<a |
257 | href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> | 251 | href="memory.html#al_realloc_with_context">al_realloc_with_context</a></p> |
258 | <h1·id="al_calloc">al_calloc</h1> | 252 | <h1·id="al_calloc">al_calloc</h1> |
259 | <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·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | 253 | <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·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> |
260 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_calloc_with_context</span><span·class="op">((</span><span·class="pp">c</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> | ||
261 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_calloc</span><span·class="op">(</span><span·class="pp">c</span><span·class="op">,</span><span·class="pp">·n</span><span·class="op">)</span><span·class="pp">·</span><span·class="op">\</span></span> | ||
262 | <span·id="cb5- | 254 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">···</span><span·class="op">(</span><span·class="pp">al_calloc_with_context</span><span·class="op">((</span><span·class="pp">c</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> |
263 | <p><a | 255 | <p><a |
264 | 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 |
265 | Code</a></p> | 257 | Code</a></p> |
266 | <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 |
267 | be·overridden.</p> | 259 | be·overridden.</p> |
268 | <p>This·is·a·macro.</p> | 260 | <p>This·is·a·macro.</p> |
269 | <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 |
Offset 314, 16 lines modified | Offset 306, 15 lines modified | ||
314 | Code</a></p> | 306 | Code</a></p> |
315 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on | 307 | <p>This·calls·calloc()·from·the·Allegro·library·(this·matters·on |
316 | Windows),·unless·overridden·with·<a | 308 | Windows),·unless·overridden·with·<a |
317 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> | 309 | href="memory.html#al_set_memory_interface">al_set_memory_interface</a>,</p> |
318 | <p>Generally·you·should·use·the·<a | 310 | <p>Generally·you·should·use·the·<a |
319 | href="memory.html#al_calloc">al_calloc</a>·macro.</p> | 311 | href="memory.html#al_calloc">al_calloc</a>·macro.</p> |
320 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> | 312 | <h1·id="allegro_memory_interface">ALLEGRO_MEMORY_INTERFACE</h1> |
321 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span> | 313 | <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="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span></code></pre></div> |
322 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE<span·class="op">;</span></span></code></pre></div> | ||
323 | <p><a | 314 | <p><a |
324 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source | 315 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/memory.h#L28">Source |
325 | Code</a></p> | 316 | Code</a></p> |
326 | <p>This·structure·has·the·following·fields.</p> | 317 | <p>This·structure·has·the·following·fields.</p> |
327 | <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>·<span·class="op">*(*</span>mi_malloc<span·class="op">)(</span><span·class="dt">size_t</span>·n<span·class="op">,</span>·<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> | 318 | <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>·<span·class="op">*(*</span>mi_malloc<span·class="op">)(</span><span·class="dt">size_t</span>·n<span·class="op">,</span>·<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> |
328 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">(*</span>mi_free<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<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> | 319 | <span·id="cb11-2"><a·href="#cb11-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">(*</span>mi_free<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<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> |
329 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_realloc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·n<span·class="op">,</span>·<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> | 320 | <span·id="cb11-3"><a·href="#cb11-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·<span·class="op">*(*</span>mi_realloc<span·class="op">)(</span><span·class="dt">void</span>·<span·class="op">*</span>ptr<span·class="op">,</span>·<span·class="dt">size_t</span>·n<span·class="op">,</span>·<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> |
Offset 54, 30 lines modified | Offset 54, 26 lines modified | ||
54 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E | 54 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8M_\x8E_\x8M_\x8O_\x8R_\x8Y_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E |
55 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 55 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
56 | These·functions·are·declared·in·the·main·Allegro·header·file: | 56 | These·functions·are·declared·in·the·main·Allegro·header·file: |
57 | ·#include·<allegro5/allegro.h> | 57 | ·#include·<allegro5/allegro.h> |
58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 58 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_m\x8ma\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
59 | #define·al_malloc(n)·\ | 59 | #define·al_malloc(n)·\ |
60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 60 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
61 | #define·al_malloc(n)·\ | ||
62 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
64 | 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 |
65 | overridden. | 63 | overridden. |
66 | This·is·a·macro. | 64 | This·is·a·macro. |
67 | 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, |
68 | _\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 |
69 | Examples: | 67 | Examples: |
70 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | 68 | ····*·_\x8e_\x8x_\x8__\x8a_\x8u_\x8d_\x8i_\x8o_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c |
71 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c | 69 | ····*·_\x8e_\x8x_\x8__\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8._\x8c |
72 | *\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* |
73 | #define·al_free(p)·\ | 71 | #define·al_free(p)·\ |
74 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 72 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
75 | #define·al_free(p)·\ | ||
76 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | 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 |
79 | overridden. | 75 | overridden. |
80 | 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 |
81 | 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 |
82 | 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. |
83 | This·is·a·macro. | 79 | This·is·a·macro. |
Offset 85, 26 lines modified | Offset 81, 22 lines modified | ||
85 | Examples: | 81 | Examples: |
86 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c | 82 | ····*·_\x8e_\x8x_\x8__\x8c_\x8l_\x8i_\x8p_\x8b_\x8o_\x8a_\x8r_\x8d_\x8._\x8c |
87 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c | 83 | ····*·_\x8e_\x8x_\x8__\x8d_\x8r_\x8a_\x8g_\x8__\x8a_\x8n_\x8d_\x8__\x8d_\x8r_\x8o_\x8p_\x8._\x8c |
88 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | 84 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c |
89 | *\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* |
90 | #define·al_realloc(p,·n)·\ | 86 | #define·al_realloc(p,·n)·\ |
91 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 87 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
92 | #define·al_realloc(p,·n)·\ | ||
93 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
95 | 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 |
96 | overridden. | 90 | overridden. |
97 | This·is·a·macro. | 91 | This·is·a·macro. |
98 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t | 92 | See·also:·_\x8a_\x8l_\x8__\x8m_\x8a_\x8l_\x8l_\x8o_\x8c,·_\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8l_\x8l_\x8o_\x8c_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8c_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t |
99 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8ca\x8al\x8ll\x8lo\x8oc\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
100 | #define·al_calloc(c,·n)·\ | 94 | #define·al_calloc(c,·n)·\ |
101 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 95 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
102 | #define·al_calloc(c,·n)·\ | ||
103 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
104 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
105 | 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 |
106 | overridden. | 98 | overridden. |
107 | This·is·a·macro. | 99 | This·is·a·macro. |
108 | 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 |
109 | Examples: | 101 | Examples: |
110 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c | 102 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8c_\x8o_\x8r_\x8d_\x8__\x8n_\x8a_\x8m_\x8e_\x8._\x8c |
Offset 134, 15 lines modified | Offset 126, 14 lines modified | ||
134 | ···int·line,·const·char·*file,·const·char·*func) | 126 | ···int·line,·const·char·*file,·const·char·*func) |
135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 127 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
136 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless | 128 | This·calls·calloc()·from·the·Allegro·library·(this·matters·on·Windows),·unless |
137 | 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, | 129 | 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, |
138 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c·macro. | 130 | Generally·you·should·use·the·_\x8a_\x8l_\x8__\x8c_\x8a_\x8l_\x8l_\x8o_\x8c·macro. |
139 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8ME\x8EM\x8MO\x8OR\x8RY\x8Y_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 131 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8ME\x8EM\x8MO\x8OR\x8RY\x8Y_\x8_I\x8IN\x8NT\x8TE\x8ER\x8RF\x8FA\x8AC\x8CE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
140 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | 132 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; |
141 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 133 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
143 | This·structure·has·the·following·fields. | 134 | This·structure·has·the·following·fields. |
144 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 135 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
145 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 136 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
146 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, | 137 | void·*(*mi_realloc)(void·*ptr,·size_t·n,·int·line,·const·char·*file, |
147 | ····················const·char·*func); | 138 | ····················const·char·*func); |
148 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, | 139 | void·*(*mi_calloc)(size_t·count,·size_t·n,·int·line,·const·char·*file, |
Offset 176, 16 lines modified | Offset 176, 15 lines modified | ||
176 | <li><a·href="#allegro_pi"·id="toc-allegro_pi">ALLEGRO_PI</a></li> | 176 | <li><a·href="#allegro_pi"·id="toc-allegro_pi">ALLEGRO_PI</a></li> |
177 | <li><a·href="#al_run_main"·id="toc-al_run_main">al_run_main</a></li> | 177 | <li><a·href="#al_run_main"·id="toc-al_run_main">al_run_main</a></li> |
178 | </ul> | 178 | </ul> |
179 | </nav> | 179 | </nav> |
180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 180 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
181 | <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> | 181 | <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> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_PI········</span><span·class="fl">3.14159265358979323846</span></span></code></pre></div> | ||
185 | <p><a | 184 | <p><a |
186 | 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 |
187 | Code</a></p> | 186 | Code</a></p> |
188 | <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·π, |
189 | but·you·can·use·this·one·instead.</p> | 188 | but·you·can·use·this·one·instead.</p> |
190 | <p>Examples:</p> | 189 | <p>Examples:</p> |
191 | <ul> | 190 | <ul> |
Offset 45, 15 lines modified | Offset 45, 14 lines modified | ||
45 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mi\x8is\x8sc\x8ce\x8el\x8ll\x8la\x8an\x8ne\x8eo\x8ou\x8us\x8s·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 45 | *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mi\x8is\x8sc\x8ce\x8el\x8ll\x8la\x8an\x8ne\x8eo\x8ou\x8us\x8s·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I | 46 | ····*·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8I |
47 | ····*·_\x8a_\x8l_\x8__\x8r_\x8u_\x8n_\x8__\x8m_\x8a_\x8i_\x8n | 47 | ····*·_\x8a_\x8l_\x8__\x8r_\x8u_\x8n_\x8__\x8m_\x8a_\x8i_\x8n |
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 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
53 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 52 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
54 | 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 |
55 | can·use·this·one·instead. | 54 | can·use·this·one·instead. |
56 | Examples: | 55 | Examples: |
57 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c | 56 | ····*·_\x8e_\x8x_\x8__\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t_\x8._\x8c |
58 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c | 57 | ····*·_\x8e_\x8x_\x8__\x8o_\x8p_\x8e_\x8n_\x8g_\x8l_\x8._\x8c |
59 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | 58 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c |
Offset 188, 16 lines modified | Offset 188, 15 lines modified | ||
188 | <li><a·href="#al_get_monitor_refresh_rate" | 188 | <li><a·href="#al_get_monitor_refresh_rate" |
189 | id="toc-al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</a></li> | 189 | id="toc-al_get_monitor_refresh_rate">al_get_monitor_refresh_rate</a></li> |
190 | </ul> | 190 | </ul> |
191 | </nav> | 191 | </nav> |
192 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 192 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
193 | <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> | 193 | <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> |
194 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> | 194 | <h1·id="allegro_monitor_info">ALLEGRO_MONITOR_INFO</h1> |
195 | <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_MONITOR_INFO</span> | 195 | <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_MONITOR_INFO</span></code></pre></div> |
196 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MONITOR_INFO</span></code></pre></div> | ||
197 | <p><a | 196 | <p><a |
198 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source | 197 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/monitor.h#L13">Source |
199 | Code</a></p> | 198 | Code</a></p> |
200 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors. | 199 | <p>Describes·a·monitor’s·size·and·position·relative·to·other·monitors. |
201 | x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have | 200 | x1,·y1·will·be·0,·0·on·the·primary·display.·Other·monitors·can·have |
202 | negative·values·if·they·are·to·the·left·or·above·the·primary·display. | 201 | negative·values·if·they·are·to·the·left·or·above·the·primary·display. |
203 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that | 202 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that |
Offset 50, 15 lines modified | Offset 50, 14 lines modified | ||
50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8d_\x8p_\x8i | 50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8d_\x8p_\x8i |
51 | ····*·_\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 | 51 | ····*·_\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 |
52 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e | 52 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8m_\x8o_\x8n_\x8i_\x8t_\x8o_\x8r_\x8__\x8r_\x8e_\x8f_\x8r_\x8e_\x8s_\x8h_\x8__\x8r_\x8a_\x8t_\x8e |
53 | These·functions·are·declared·in·the·main·Allegro·header·file: | 53 | These·functions·are·declared·in·the·main·Allegro·header·file: |
54 | ·#include·<allegro5/allegro.h> | 54 | ·#include·<allegro5/allegro.h> |
55 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8ON\x8NI\x8IT\x8TO\x8OR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8**\x8* | 55 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8ON\x8NI\x8IT\x8TO\x8OR\x8R_\x8_I\x8IN\x8NF\x8FO\x8O·*\x8**\x8**\x8**\x8**\x8**\x8* |
56 | typedef·struct·ALLEGRO_MONITOR_INFO | 56 | typedef·struct·ALLEGRO_MONITOR_INFO |
57 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
58 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 57 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
59 | Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will | 58 | Describes·a·monitor’s·size·and·position·relative·to·other·monitors.·x1,·y1·will |
60 | be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they | 59 | be·0,·0·on·the·primary·display.·Other·monitors·can·have·negative·values·if·they |
61 | are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one | 60 | are·to·the·left·or·above·the·primary·display.·x2,·y2·are·the·coordinates·one |
62 | beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives | 61 | beyond·the·bottom·right·pixel,·so·that·x2-x1·gives·the·width·and·y2-y1·gives |
63 | the·height·of·the·display. | 62 | the·height·of·the·display. |
64 | typedef·struct·ALLEGRO_MONITOR_INFO | 63 | typedef·struct·ALLEGRO_MONITOR_INFO |
Offset 229, 16 lines modified | Offset 229, 15 lines modified | ||
229 | id="toc-al_ungrab_mouse">al_ungrab_mouse</a></li> | 229 | id="toc-al_ungrab_mouse">al_ungrab_mouse</a></li> |
230 | </ul></li> | 230 | </ul></li> |
231 | </ul> | 231 | </ul> |
232 | </nav> | 232 | </nav> |
233 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 233 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
234 | <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> | 234 | <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> |
235 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> | 235 | <h1·id="allegro_mouse_state">ALLEGRO_MOUSE_STATE</h1> |
236 | <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_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span> | 236 | <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_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span></code></pre></div> |
237 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE<span·class="op">;</span></span></code></pre></div> | ||
238 | <p><a | 237 | <p><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/mouse.h#L35">Source |
240 | Code</a></p> | 239 | Code</a></p> |
241 | <p>Public·fields·(read·only):</p> | 240 | <p>Public·fields·(read·only):</p> |
242 | <ul> | 241 | <ul> |
243 | <li><p>x·-·mouse·x·position</p></li> | 242 | <li><p>x·-·mouse·x·position</p></li> |
244 | <li><p>y·-·mouse·y·position</p></li> | 243 | <li><p>y·-·mouse·y·position</p></li> |
Offset 70, 15 lines modified | Offset 70, 14 lines modified | ||
70 | ··········o·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r | 70 | ··········o·_\x8a_\x8l_\x8__\x8s_\x8h_\x8o_\x8w_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8c_\x8u_\x8r_\x8s_\x8o_\x8r |
71 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 71 | ··········o·_\x8a_\x8l_\x8__\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
72 | ··········o·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e | 72 | ··········o·_\x8a_\x8l_\x8__\x8u_\x8n_\x8g_\x8r_\x8a_\x8b_\x8__\x8m_\x8o_\x8u_\x8s_\x8e |
73 | These·functions·are·declared·in·the·main·Allegro·header·file: | 73 | These·functions·are·declared·in·the·main·Allegro·header·file: |
74 | ·#include·<allegro5/allegro.h> | 74 | ·#include·<allegro5/allegro.h> |
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_M\x8MO\x8OU\x8US\x8SE\x8E_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | 76 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; |
77 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | Public·fields·(read·only): | 78 | Public·fields·(read·only): |
80 | ····*·x·-·mouse·x·position | 79 | ····*·x·-·mouse·x·position |
81 | ····*·y·-·mouse·y·position | 80 | ····*·y·-·mouse·y·position |
82 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) | 81 | ····*·w,·z·-·mouse·wheel·position·(2D·‘ball’) |
83 | ····*·buttons·-·mouse·buttons·bitfield | 82 | ····*·buttons·-·mouse·buttons·bitfield |
84 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first | 83 | ······The·zeroth·bit·is·set·if·the·primary·mouse·button·is·held·down,·the·first |
Offset 262, 42 lines modified | Offset 262, 39 lines modified | ||
262 | </ul></li> | 262 | </ul></li> |
263 | </ul> | 263 | </ul> |
264 | </nav> | 264 | </nav> |
265 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 265 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
266 | allegro_dialog.</p> | 266 | allegro_dialog.</p> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
271 | <p><a | 270 | <p><a |
272 | 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 |
273 | Code</a></p> | 272 | Code</a></p> |
274 | <p>Opaque·handle·to·a·native·file·dialog.</p> | 273 | <p>Opaque·handle·to·a·native·file·dialog.</p> |
275 | <p>Examples:</p> | 274 | <p>Examples:</p> |
276 | <ul> | 275 | <ul> |
277 | <li><a | 276 | <li><a |
278 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L27">ex_native_filechooser.c</a></li> | 277 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L27">ex_native_filechooser.c</a></li> |
279 | </ul> | 278 | </ul> |
280 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> | 279 | <h1·id="allegro_textlog">ALLEGRO_TEXTLOG</h1> |
281 | <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> | 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> |
282 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
283 | <p><a | 281 | <p><a |
284 | 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 |
285 | Code</a></p> | 283 | Code</a></p> |
286 | <p>Opaque·handle·to·a·text·log·window.</p> | 284 | <p>Opaque·handle·to·a·text·log·window.</p> |
287 | <p>Examples:</p> | 285 | <p>Examples:</p> |
288 | <ul> | 286 | <ul> |
289 | <li><a | 287 | <li><a |
290 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> | 288 | href="https://github.com/liballeg/allegro5/blob/master/examples/common.c#L27">common.c</a></li> |
291 | <li><a | 289 | <li><a |
292 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L32">ex_native_filechooser.c</a></li> | 290 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L32">ex_native_filechooser.c</a></li> |
293 | </ul> | 291 | </ul> |
294 | <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> |
295 | <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> | 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> |
296 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
297 | <p><a | 294 | <p><a |
298 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source | 295 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L15">Source |
299 | Code</a></p> | 296 | Code</a></p> |
300 | <p>Initialise·the·native·dialog·addon.</p> | 297 | <p>Initialise·the·native·dialog·addon.</p> |
301 | <p>Returns·true·on·success,·false·on·error.</p> | 298 | <p>Returns·true·on·success,·false·on·error.</p> |
302 | <p>Since:·5.0.9,·5.1.0</p> | 299 | <p>Since:·5.0.9,·5.1.0</p> |
303 | <blockquote> | 300 | <blockquote> |
Offset 318, 44 lines modified | Offset 315, 37 lines modified | ||
318 | <li><a | 315 | <li><a |
319 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> | 316 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_window_maximized.c#L58">ex_window_maximized.c</a></li> |
320 | <li><a | 317 | <li><a |
321 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> | 318 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_menu.c#L83">ex_menu.c</a></li> |
322 | </ul> | 319 | </ul> |
323 | <h1 | 320 | <h1 |
324 | 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> |
325 | <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> | 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> |
326 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
327 | <p><a | 323 | <p><a |
328 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source | 324 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L32">Source |
329 | Code</a></p> | 325 | Code</a></p> |
330 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 326 | <p>Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
331 | returns·false.</p> | 327 | returns·false.</p> |
332 | <p>Since:·5.2.6</p> | 328 | <p>Since:·5.2.6</p> |
333 | <h1 | 329 | <h1 |
334 | id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> | 330 | id="al_shutdown_native_dialog_addon">al_shutdown_native_dialog_addon</h1> |
335 | <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_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 331 | <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_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
336 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_native_dialog_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
337 | <p><a | 332 | <p><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L39">Source | 333 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L39">Source |
339 | Code</a></p> | 334 | Code</a></p> |
340 | <p>Shut·down·the·native·dialog·addon.</p> | 335 | <p>Shut·down·the·native·dialog·addon.</p> |
341 | <p>Since:·5.0.9,·5.1.5</p> | 336 | <p>Since:·5.0.9,·5.1.5</p> |
342 | <p>See·also:·<a | 337 | <p>See·also:·<a |
343 | href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> | 338 | href="native_dialog.html#al_init_native_dialog_addon">al_init_native_dialog_addon</a></p> |
344 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> | 339 | <h1·id="al_create_native_file_dialog">al_create_native_file_dialog</h1> |
345 | <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_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> | 340 | <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_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> |
346 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> | 341 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> |
347 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> | 342 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> |
348 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> | 343 | <span·id="cb7-4"><a·href="#cb7-4"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> |
349 | <span·id="cb7-5"><a·href="#cb7-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·mode<span·class="op">)</span></span> | ||
350 | <span·id="cb7-6"><a·href="#cb7-6"·aria-hidden="true"·tabindex="-1"></a>ALLEGRO_FILECHOOSER·<span·class="op">*</span>al_create_native_file_dialog<span·class="op">(</span></span> | ||
351 | <span·id="cb7-7"><a·href="#cb7-7"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>initial_path<span·class="op">,</span></span> | ||
352 | <span·id="cb7-8"><a·href="#cb7-8"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>title<span·class="op">,</span></span> | ||
353 | <span·id="cb7-9"><a·href="#cb7-9"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>patterns<span·class="op">,</span></span> | ||
354 | <span·id="cb7- | 344 | <span·id="cb7-5"><a·href="#cb7-5"·aria-hidden="true"·tabindex="-1"></a>···<span·class="dt">int</span>·mode<span·class="op">)</span></span></code></pre></div> |
355 | <p><a | 345 | <p><a |
356 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L50">Source | 346 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L50">Source |
357 | Code</a></p> | 347 | Code</a></p> |
358 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such | 348 | <p>Creates·a·new·native·file·dialog.·You·should·only·have·one·such |
359 | dialog·opened·at·a·time.</p> | 349 | dialog·opened·at·a·time.</p> |
360 | <p>Parameters:</p> | 350 | <p>Parameters:</p> |
361 | <ul> | 351 | <ul> |
Offset 417, 17 lines modified | Offset 407, 15 lines modified | ||
417 | <p>Examples:</p> | 407 | <p>Examples:</p> |
418 | <ul> | 408 | <ul> |
419 | <li><a | 409 | <li><a |
420 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L101">ex_native_filechooser.c</a></li> | 410 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L101">ex_native_filechooser.c</a></li> |
421 | </ul> | 411 | </ul> |
422 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> | 412 | <h1·id="al_show_native_file_dialog">al_show_native_file_dialog</h1> |
423 | <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> | 413 | <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> |
424 | <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> | ||
425 | <span·id="cb8-3"><a·href="#cb8-3"·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> | ||
426 | <span·id="cb8- | 414 | <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> |
427 | <p><a | 415 | <p><a |
428 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source | 416 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L74">Source |
429 | Code</a></p> | 417 | Code</a></p> |
430 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given | 418 | <p>Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given |
431 | display·is·treated·as·the·parent·if·possible.</p> | 419 | display·is·treated·as·the·parent·if·possible.</p> |
432 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 420 | <p>This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
433 | want·to·spawn·a·thread·with·<a | 421 | want·to·spawn·a·thread·with·<a |
Offset 437, 64 lines modified | Offset 425, 57 lines modified | ||
437 | <p>Examples:</p> | 425 | <p>Examples:</p> |
438 | <ul> | 426 | <ul> |
439 | <li><a | 427 | <li><a |
440 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L55">ex_native_filechooser.c</a></li> | 428 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L55">ex_native_filechooser.c</a></li> |
441 | </ul> | 429 | </ul> |
442 | <h1 | 430 | <h1 |
443 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> | 431 | id="al_get_native_file_dialog_count">al_get_native_file_dialog_count</h1> |
444 | <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> | 432 | <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> |
445 | <span·id="cb9-2"><a·href="#cb9-2"·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> | ||
446 | <p><a | 433 | <p><a |
447 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source | 434 | href="https://github.com/liballeg/allegro5/blob/master/addons/native_dialog/dialog.c#L83">Source |
448 | Code</a></p> | 435 | Code</a></p> |
449 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was | 436 | <p>Returns·the·number·of·files·selected,·or·0·if·the·dialog·was |
450 | cancelled.</p> | 437 | cancelled.</p> |
451 | <p>Examples:</p> | 438 | <p>Examples:</p> |
452 | <ul> | 439 | <ul> |
453 | <li><a | 440 | <li><a |
454 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L144">ex_native_filechooser.c</a></li> | 441 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_native_filechooser.c#L144">ex_native_filechooser.c</a></li> |
455 | </ul> | 442 | </ul> |
456 | <h1 | 443 | <h1 |
457 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> | 444 | id="al_get_native_file_dialog_path">al_get_native_file_dialog_path</h1> |
Max diff block lines reached; 60241/73245 bytes (82.25%) of diff not shown. |
Offset 88, 30 lines modified | Offset 88, 27 lines modified | ||
88 | ··········o·_\x8a_\x8l_\x8__\x8p_\x8o_\x8p_\x8u_\x8p_\x8__\x8m_\x8e_\x8n_\x8u | 88 | ··········o·_\x8a_\x8l_\x8__\x8p_\x8o_\x8p_\x8u_\x8p_\x8__\x8m_\x8e_\x8n_\x8u |
89 | ··········o·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8e_\x8n_\x8u | 89 | ··········o·_\x8a_\x8l_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8d_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8__\x8m_\x8e_\x8n_\x8u |
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 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
97 | Opaque·handle·to·a·native·file·dialog. | 96 | Opaque·handle·to·a·native·file·dialog. |
98 | Examples: | 97 | Examples: |
99 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 98 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
100 | *\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* |
101 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | 100 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
102 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
103 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 101 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
104 | Opaque·handle·to·a·text·log·window. | 102 | Opaque·handle·to·a·text·log·window. |
105 | Examples: | 103 | Examples: |
106 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 104 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c |
107 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\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 |
108 | *\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* |
109 | bool·al_init_native_dialog_addon(void) | 107 | bool·al_init_native_dialog_addon(void) |
110 | bool·al_init_native_dialog_addon(void) | ||
111 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 108 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
112 | Initialise·the·native·dialog·addon. | 109 | Initialise·the·native·dialog·addon. |
113 | Returns·true·on·success,·false·on·error. | 110 | Returns·true·on·success,·false·on·error. |
114 | Since:·5.0.9,·5.1.0 | 111 | Since:·5.0.9,·5.1.0 |
115 | ·····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 |
116 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future | 113 | ·····without·explicit·initialisation,·but·that·is·now·deprecated.·Future |
117 | ·····functionality·may·require·explicit·initialisation.·An·exception·is | 114 | ·····functionality·may·require·explicit·initialisation.·An·exception·is |
Offset 120, 37 lines modified | Offset 117, 30 lines modified | ||
120 | 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 |
121 | Examples: | 118 | Examples: |
122 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c | 119 | ····*·_\x8c_\x8o_\x8m_\x8m_\x8o_\x8n_\x8._\x8c |
123 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | 120 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c |
124 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c | 121 | ····*·_\x8e_\x8x_\x8__\x8m_\x8e_\x8n_\x8u_\x8._\x8c |
125 | *\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* |
126 | bool·al_is_native_dialog_addon_initialized(void) | 123 | bool·al_is_native_dialog_addon_initialized(void) |
127 | bool·al_is_native_dialog_addon_initialized(void) | ||
128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
129 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns | 125 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise·returns |
130 | false. | 126 | false. |
131 | Since:·5.2.6 | 127 | Since:·5.2.6 |
132 | *\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* |
133 | void·al_shutdown_native_dialog_addon(void) | 129 | void·al_shutdown_native_dialog_addon(void) |
134 | void·al_shutdown_native_dialog_addon(void) | ||
135 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
136 | Shut·down·the·native·dialog·addon. | 131 | Shut·down·the·native·dialog·addon. |
137 | Since:·5.0.9,·5.1.5 | 132 | Since:·5.0.9,·5.1.5 |
138 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n | 133 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8d_\x8i_\x8a_\x8l_\x8o_\x8g_\x8__\x8a_\x8d_\x8d_\x8o_\x8n |
139 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\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* | 134 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_c\x8cr\x8re\x8ea\x8at\x8te\x8e_\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* |
140 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | 135 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( |
141 | ···char·const·*initial_path, | 136 | ···char·const·*initial_path, |
142 | ···char·const·*title, | 137 | ···char·const·*title, |
143 | ···char·const·*patterns, | 138 | ···char·const·*patterns, |
144 | ···int·mode) | 139 | ···int·mode) |
145 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
146 | ···char·const·*initial_path, | ||
147 | ···char·const·*title, | ||
148 | ···char·const·*patterns, | ||
149 | ···int·mode) | ||
150 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 140 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
151 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened | 141 | Creates·a·new·native·file·dialog.·You·should·only·have·one·such·dialog·opened |
152 | at·a·time. | 142 | at·a·time. |
153 | Parameters: | 143 | Parameters: |
154 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start | 144 | ····*·initial_path:·The·initial·search·path·and·filename.·Can·be·NULL.·To·start |
155 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator | 145 | ······with·a·blank·file·name·the·string·should·end·with·a·directory·separator |
156 | ······(this·should·be·the·common·case). | 146 | ······(this·should·be·the·common·case). |
Offset 185, 55 lines modified | Offset 175, 46 lines modified | ||
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. | 175 | 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. | 176 | If·a·dialog·window·could·not·be·created·then·this·function·returns·NULL. |
187 | Examples: | 177 | Examples: |
188 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 178 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
189 | *\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* | 179 | *\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* |
190 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | 180 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
191 | ···ALLEGRO_FILECHOOSER·*dialog) | 181 | ···ALLEGRO_FILECHOOSER·*dialog) |
192 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
193 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
194 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 182 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
195 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is | 183 | Show·the·dialog·window.·The·display·may·be·NULL,·otherwise·the·given·display·is |
196 | treated·as·the·parent·if·possible. | 184 | treated·as·the·parent·if·possible. |
197 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to | 185 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may·want·to |
198 | 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. | 186 | 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. |
199 | Returns·true·on·success,·false·on·failure. | 187 | Returns·true·on·success,·false·on·failure. |
200 | Examples: | 188 | Examples: |
201 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 189 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
202 | *\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* | 190 | *\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* |
203 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | 191 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
204 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
205 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 192 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
206 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 193 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
207 | Examples: | 194 | Examples: |
208 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 195 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
209 | *\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* | 196 | *\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* |
210 | const·char·*al_get_native_file_dialog_path( | 197 | const·char·*al_get_native_file_dialog_path( |
211 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 198 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
212 | const·char·*al_get_native_file_dialog_path( | ||
213 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
214 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 199 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
215 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 | 200 | Returns·one·of·the·selected·paths·with·index·i.·The·index·should·range·from·0 |
216 | 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. | 201 | 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. |
217 | Examples: | 202 | 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 | 203 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
219 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_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* | 204 | *\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* |
220 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | 205 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
221 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
222 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 206 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
223 | Frees·up·all·resources·used·by·the·file·dialog. | 207 | Frees·up·all·resources·used·by·the·file·dialog. |
224 | Examples: | 208 | Examples: |
225 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c | 209 | ····*·_\x8e_\x8x_\x8__\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8c_\x8h_\x8o_\x8o_\x8s_\x8e_\x8r_\x8._\x8c |
226 | *\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* | 210 | *\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* |
227 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | 211 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
228 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 212 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
229 | ···char·const·*buttons,·int·flags) | 213 | ···char·const·*buttons,·int·flags) |
230 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
231 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
232 | ···char·const·*buttons,·int·flags) | ||
233 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 214 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
234 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error | 215 | Show·a·native·GUI·message·box.·This·can·be·used·for·example·to·display·an·error |
235 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, | 216 | message·if·creation·of·an·initial·display·fails.·The·display·may·be·NULL, |
236 | otherwise·the·given·display·is·treated·as·the·parent·if·possible. | 217 | otherwise·the·given·display·is·treated·as·the·parent·if·possible. |
237 | The·message·box·will·have·a·single·“OK”·button·and·use·the·style·informative | 218 | The·message·box·will·have·a·single·“OK”·button·and·use·the·style·informative |
238 | dialog·boxes·usually·have·on·the·native·system.·If·the·buttons·parameter·is·not | 219 | dialog·boxes·usually·have·on·the·native·system.·If·the·buttons·parameter·is·not |
239 | NULL,·you·can·instead·specify·the·button·text·in·a·string,·with·buttons | 220 | NULL,·you·can·instead·specify·the·button·text·in·a·string,·with·buttons |
Offset 278, 15 lines modified | Offset 259, 14 lines modified | ||
278 | ); | 259 | ); |
279 | Examples: | 260 | Examples: |
Max diff block lines reached; 22466/29505 bytes (76.14%) of diff not shown. |
Offset 191, 16 lines modified | Offset 191, 15 lines modified | ||
191 | href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>, | 191 | href="physfs.html#al_set_physfs_file_interface">al_set_physfs_file_interface</a>, |
192 | then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that | 192 | then·<a·href="file.html#al_fopen">al_fopen</a>·or·another·function·that |
193 | calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> | 193 | calls·<a·href="file.html#al_fopen">al_fopen</a>.</p> |
194 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 194 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
195 | allegro_physfs.</p> | 195 | allegro_physfs.</p> |
196 | <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_physfs.h></span></span></code></pre></div> | 196 | <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_physfs.h></span></span></code></pre></div> |
197 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> | 197 | <h1·id="al_set_physfs_file_interface">al_set_physfs_file_interface</h1> |
198 | <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="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 198 | <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="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
199 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_set_physfs_file_interface<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
200 | <p><a | 199 | <p><a |
201 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L301">Source | 200 | href="https://github.com/liballeg/allegro5/blob/master/addons/physfs/a5_physfs.c#L301">Source |
202 | Code</a></p> | 201 | Code</a></p> |
203 | <p>This·function·sets·<em>both</em>·the·<a | 202 | <p>This·function·sets·<em>both</em>·the·<a |
204 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and | 203 | href="file.html#allegro_file_interface">ALLEGRO_FILE_INTERFACE</a>·and |
205 | <a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for | 204 | <a·href="fshook.html#allegro_fs_interface">ALLEGRO_FS_INTERFACE</a>·for |
206 | the·calling·thread.</p> | 205 | the·calling·thread.</p> |
Offset 232, 16 lines modified | Offset 231, 15 lines modified | ||
232 | <p>Examples:</p> | 231 | <p>Examples:</p> |
233 | <ul> | 232 | <ul> |
234 | <li><a | 233 | <li><a |
235 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> | 234 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_physfs.c#L149">ex_physfs.c</a></li> |
236 | </ul> | 235 | </ul> |
237 | <h1 | 236 | <h1 |
238 | 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> |
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">uint32_t</span>·al_get_allegro_physfs_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 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> |
240 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
241 | <p><a | 239 | <p><a |
242 | 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 |
243 | Code</a></p> | 241 | Code</a></p> |
244 | <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 |
245 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 243 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
246 | <p·class="timestamp"> | 244 | <p·class="timestamp"> |
247 | Allegro·version·5.2.9 | 245 | Allegro·version·5.2.9 |
Offset 54, 15 lines modified | Offset 54, 14 lines modified | ||
54 | ALLEGRO_FILE·using·PhysicsFS,·first·call·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·then | 54 | ALLEGRO_FILE·using·PhysicsFS,·first·call·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e,·then |
55 | _\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·or·another·function·that·calls·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. | 55 | _\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·or·another·function·that·calls·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n. |
56 | These·functions·are·declared·in·the·following·header·file.·Link·with | 56 | These·functions·are·declared·in·the·following·header·file.·Link·with |
57 | allegro_physfs. | 57 | allegro_physfs. |
58 | ·#include·<allegro5/allegro_physfs.h> | 58 | ·#include·<allegro5/allegro_physfs.h> |
59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 59 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_s\x8se\x8et\x8t_\x8_p\x8ph\x8hy\x8ys\x8sf\x8fs\x8s_\x8_f\x8fi\x8il\x8le\x8e_\x8_i\x8in\x8nt\x8te\x8er\x8rf\x8fa\x8ac\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
60 | void·al_set_physfs_file_interface(void) | 60 | void·al_set_physfs_file_interface(void) |
61 | void·al_set_physfs_file_interface(void) | ||
62 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 61 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
63 | This·function·sets·b\x8bo\x8ot\x8th\x8h·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·for | 62 | This·function·sets·b\x8bo\x8ot\x8th\x8h·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8I_\x8L_\x8E_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·and·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8F_\x8S_\x8__\x8I_\x8N_\x8T_\x8E_\x8R_\x8F_\x8A_\x8C_\x8E·for |
64 | the·calling·thread. | 63 | the·calling·thread. |
65 | Subsequent·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·on·the·calling·thread·will·be·handled·by | 64 | Subsequent·calls·to·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·on·the·calling·thread·will·be·handled·by |
66 | PHYSFS_open().·Operations·on·the·files·returned·by·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·will·then·be | 65 | PHYSFS_open().·Operations·on·the·files·returned·by·_\x8a_\x8l_\x8__\x8f_\x8o_\x8p_\x8e_\x8n·will·then·be |
67 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as | 66 | performed·through·PhysicsFS.·Calls·to·the·Allegro·filesystem·functions,·such·as |
68 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·or·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·on·the·calling·thread·will·be·diverted | 67 | _\x8a_\x8l_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y·or·_\x8a_\x8l_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8f_\x8s_\x8__\x8e_\x8n_\x8t_\x8r_\x8y,·on·the·calling·thread·will·be·diverted |
Offset 75, 12 lines modified | Offset 74, 11 lines modified | ||
75 | ·····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, |
76 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. | 75 | ·····which·means·that·Windows-style·newlines·will·not·be·preserved. |
77 | 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. |
78 | Examples: | 77 | Examples: |
79 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c | 78 | ····*·_\x8e_\x8x_\x8__\x8p_\x8h_\x8y_\x8s_\x8f_\x8s_\x8._\x8c |
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_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* |
81 | uint32_t·al_get_allegro_physfs_version(void) | 80 | uint32_t·al_get_allegro_physfs_version(void) |
82 | uint32_t·al_get_allegro_physfs_version(void) | ||
83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 81 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
84 | 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 |
85 | _\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. |
86 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC | 84 | Allegro·version·5.2.9·-·Last·updated:·2024-05-03·10:28:35·UTC |
Offset 328, 24 lines modified | Offset 328, 22 lines modified | ||
328 | </nav> | 328 | </nav> |
329 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with | 329 | <p>These·functions·are·declared·in·the·following·header·file.·Link·with |
330 | allegro_primitives.</p> | 330 | allegro_primitives.</p> |
331 | <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_primitives.h></span></span></code></pre></div> | 331 | <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_primitives.h></span></span></code></pre></div> |
332 | <h1·id="general">General</h1> | 332 | <h1·id="general">General</h1> |
333 | <h2 | 333 | <h2 |
334 | id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> | 334 | id="al_get_allegro_primitives_version">al_get_allegro_primitives_version</h2> |
335 | <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="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 335 | <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="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
336 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_primitives_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
337 | <p><a | 336 | <p><a |
338 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L160">Source | 337 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L160">Source |
339 | Code</a></p> | 338 | Code</a></p> |
340 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 339 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
341 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 340 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
342 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> | 341 | <h2·id="al_init_primitives_addon">al_init_primitives_addon</h2> |
343 | <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_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 342 | <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_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
344 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
345 | <p><a | 343 | <p><a |
346 | 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 |
347 | Code</a></p> | 345 | Code</a></p> |
348 | <p>Initializes·the·primitives·addon.</p> | 346 | <p>Initializes·the·primitives·addon.</p> |
349 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> | 347 | <p><em>Returns:</em>·True·on·success,·false·on·failure.</p> |
350 | <p>See·also:·<a | 348 | <p>See·also:·<a |
351 | 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> |
Offset 356, 29 lines modified | Offset 354, 27 lines modified | ||
356 | <li><a | 354 | <li><a |
357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> | 355 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L154">ex_blend_bench.c</a></li> |
358 | <li><a | 356 | <li><a |
359 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> | 357 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_client.c#L157">ex_enet_client.c</a></li> |
360 | </ul> | 358 | </ul> |
361 | <h2 | 359 | <h2 |
362 | 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> |
363 | <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> | 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> |
364 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
365 | <p><a | 362 | <p><a |
366 | 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 |
367 | Code</a></p> | 364 | Code</a></p> |
368 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise | 365 | <p>Returns·true·if·the·primitives·addon·is·initialized,·otherwise |
369 | returns·false.</p> | 366 | returns·false.</p> |
370 | <p>Since:·5.2.6</p> | 367 | <p>Since:·5.2.6</p> |
371 | <p>See·also:·<a | 368 | <p>See·also:·<a |
372 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>, | 369 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a>, |
373 | <a | 370 | <a |
374 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> | 371 | href="primitives.html#al_shutdown_primitives_addon">al_shutdown_primitives_addon</a></p> |
375 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> | 372 | <h2·id="al_shutdown_primitives_addon">al_shutdown_primitives_addon</h2> |
376 | <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_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 373 | <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_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
377 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_primitives_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
378 | <p><a | 374 | <p><a |
379 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L69">Source | 375 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/primitives.c#L69">Source |
380 | Code</a></p> | 376 | Code</a></p> |
381 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program | 377 | <p>Shut·down·the·primitives·addon.·This·is·done·automatically·at·program |
382 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 378 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
383 | <p>See·also:·<a | 379 | <p>See·also:·<a |
384 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> | 380 | href="primitives.html#al_init_primitives_addon">al_init_primitives_addon</a></p> |
Offset 473, 17 lines modified | Offset 469, 15 lines modified | ||
473 | completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape | 469 | completely·covered·by·a·shape·or·completely·not·covered,·then·the·shape |
474 | edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen | 470 | edges·will·be·sharp.·The·offsets·used·in·the·second·diagram·were·chosen |
475 | so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they | 471 | so·that·this·is·the·case:·if·you·use·those·offsets,·your·shapes·(if·they |
476 | are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the | 472 | are·oriented·the·same·way·as·they·are·on·the·diagram)·should·look·the |
477 | same·whether·multisampling·is·turned·on·or·off.</p> | 473 | same·whether·multisampling·is·turned·on·or·off.</p> |
478 | <h2·id="al_draw_line">al_draw_line</h2> | 474 | <h2·id="al_draw_line">al_draw_line</h2> |
479 | <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_draw_line<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> | 475 | <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_draw_line<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> |
480 | <span·id="cb7-2"><a·href="#cb7-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> | ||
481 | <span·id="cb7-3"><a·href="#cb7-3"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_draw_line<span·class="op">(</span><span·class="dt">float</span>·x1<span·class="op">,</span>·<span·class="dt">float</span>·y1<span·class="op">,</span>·<span·class="dt">float</span>·x2<span·class="op">,</span>·<span·class="dt">float</span>·y2<span·class="op">,</span></span> | ||
482 | <span·id="cb7- | 476 | <span·id="cb7-2"><a·href="#cb7-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> |
483 | <p><a | 477 | <p><a |
484 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L81">Source | 478 | href="https://github.com/liballeg/allegro5/blob/master/addons/primitives/high_primitives.c#L81">Source |
485 | Code</a></p> | 479 | Code</a></p> |
486 | <p>Draws·a·line·segment·between·two·points.</p> | 480 | <p>Draws·a·line·segment·between·two·points.</p> |
487 | <p><em>Parameters:</em></p> | 481 | <p><em>Parameters:</em></p> |
488 | <ul> | 482 | <ul> |
489 | <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> |
Offset 500, 17 lines modified | Offset 494, 15 lines modified | ||
500 | <li><a | 494 | <li><a |
501 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> | 495 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_resize.c#L17">ex_resize.c</a></li> |
502 | <li><a | 496 | <li><a |
503 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> | 497 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c#L59">ex_mouse_warp.c</a></li> |
504 | </ul> | 498 | </ul> |
505 | <h2·id="al_draw_triangle">al_draw_triangle</h2> | 499 | <h2·id="al_draw_triangle">al_draw_triangle</h2> |
506 | <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> |
507 | <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> | ||
508 | <span·id="cb8-3"><a·href="#cb8-3"·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> | ||
509 | <span·id="cb8- | 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> |
510 | <p><a | 502 | <p><a |
511 | 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 |
512 | Code</a></p> | 504 | Code</a></p> |
513 | <p>Draws·an·outlined·triangle.</p> | 505 | <p>Draws·an·outlined·triangle.</p> |
514 | <p><em>Parameters:</em></p> | 506 | <p><em>Parameters:</em></p> |
515 | <ul> | 507 | <ul> |
516 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> | 508 | <li>x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle</li> |
Offset 525, 17 lines modified | Offset 517, 15 lines modified | ||
525 | <p>Examples:</p> | 517 | <p>Examples:</p> |
526 | <ul> | 518 | <ul> |
527 | <li><a | 519 | <li><a |
528 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> | 520 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L321">ex_prim.c</a></li> |
529 | </ul> | 521 | </ul> |
530 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> | 522 | <h2·id="al_draw_filled_triangle">al_draw_filled_triangle</h2> |
531 | <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> |
532 | <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> | ||
533 | <span·id="cb9-3"><a·href="#cb9-3"·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> | ||
534 | <span·id="cb9- | 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> |
535 | <p><a | 525 | <p><a |
536 | 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 |
537 | Code</a></p> | 527 | Code</a></p> |
538 | <p>Draws·a·filled·triangle.</p> | 528 | <p>Draws·a·filled·triangle.</p> |
539 | <p><em>Parameters:</em></p> | 529 | <p><em>Parameters:</em></p> |
540 | <ul> | 530 | <ul> |
541 | <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> |
Offset 546, 17 lines modified | Offset 536, 15 lines modified | ||
546 | <p>Examples:</p> | 536 | <p>Examples:</p> |
547 | <ul> | 537 | <ul> |
548 | <li><a | 538 | <li><a |
549 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> | 539 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L350">ex_prim.c</a></li> |
550 | </ul> | 540 | </ul> |
551 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> | 541 | <h2·id="al_draw_rectangle">al_draw_rectangle</h2> |
552 | <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> |
553 | <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> | ||
554 | <span·id="cb10-3"><a·href="#cb10-3"·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> | ||
555 | <span·id="cb10- | 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> |
556 | <p><a | 544 | <p><a |
557 | 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 |
558 | Code</a></p> | 546 | Code</a></p> |
559 | <p>Draws·an·outlined·rectangle.</p> | 547 | <p>Draws·an·outlined·rectangle.</p> |
560 | <p><em>Parameters:</em></p> | 548 | <p><em>Parameters:</em></p> |
561 | <ul> | 549 | <ul> |
562 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the | 550 | <li>x1,·y1,·x2,·y2·-·Upper·left·and·lower·right·points·of·the |
Offset 576, 17 lines modified | Offset 564, 15 lines modified | ||
Max diff block lines reached; 103761/118198 bytes (87.79%) of diff not shown. |
Offset 114, 39 lines modified | Offset 114, 35 lines modified | ||
114 | ··········o·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8B_\x8U_\x8F_\x8F_\x8E_\x8R_\x8__\x8F_\x8L_\x8A_\x8G_\x8S | 114 | ··········o·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8P_\x8R_\x8I_\x8M_\x8__\x8B_\x8U_\x8F_\x8F_\x8E_\x8R_\x8__\x8F_\x8L_\x8A_\x8G_\x8S |
115 | These·functions·are·declared·in·the·following·header·file.·Link·with | 115 | These·functions·are·declared·in·the·following·header·file.·Link·with |
116 | allegro_primitives. | 116 | allegro_primitives. |
117 | ·#include·<allegro5/allegro_primitives.h> | 117 | ·#include·<allegro5/allegro_primitives.h> |
118 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* | 118 | *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Ge\x8en\x8ne\x8er\x8ra\x8al\x8l·*\x8**\x8**\x8**\x8**\x8**\x8* |
119 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_g\x8ge\x8et\x8t_\x8_a\x8al\x8ll\x8le\x8eg\x8gr\x8ro\x8o_\x8_p\x8pr\x8ri\x8im\x8mi\x8it\x8ti\x8iv\x8ve\x8es\x8s_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8* |
120 | uint32_t·al_get_allegro_primitives_version(void) | 120 | uint32_t·al_get_allegro_primitives_version(void) |
121 | uint32_t·al_get_allegro_primitives_version(void) | ||
122 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 121 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
123 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 122 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
124 | _\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. |
125 | *\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* |
126 | bool·al_init_primitives_addon(void) | 125 | bool·al_init_primitives_addon(void) |
127 | bool·al_init_primitives_addon(void) | ||
128 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 126 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
129 | Initializes·the·primitives·addon. | 127 | Initializes·the·primitives·addon. |
130 | 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. |
131 | 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 |
132 | Examples: | 130 | Examples: |
133 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c | 131 | ····*·_\x8e_\x8x_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8._\x8c |
134 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | 132 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c |
135 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c | 133 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8._\x8c |
136 | *\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* |
137 | bool·al_is_primitives_addon_initialized(void) | 135 | bool·al_is_primitives_addon_initialized(void) |
138 | bool·al_is_primitives_addon_initialized(void) | ||
139 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 136 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
140 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. | 137 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns·false. |
141 | Since:·5.2.6 | 138 | Since:·5.2.6 |
142 | 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 |
143 | *\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* |
144 | void·al_shutdown_primitives_addon(void) | 141 | void·al_shutdown_primitives_addon(void) |
145 | void·al_shutdown_primitives_addon(void) | ||
146 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 142 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
147 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but | 143 | Shut·down·the·primitives·addon.·This·is·done·automatically·at·program·exit,·but |
148 | can·be·called·any·time·the·user·wishes·as·well. | 144 | can·be·called·any·time·the·user·wishes·as·well. |
149 | 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 | 145 | 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 |
150 | *\x8**\x8**\x8**\x8**\x8**\x8*·H\x8Hi\x8ig\x8gh\x8h·l\x8le\x8ev\x8ve\x8el\x8l·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 146 | *\x8**\x8**\x8**\x8**\x8**\x8*·H\x8Hi\x8ig\x8gh\x8h·l\x8le\x8ev\x8ve\x8el\x8l·d\x8dr\x8ra\x8aw\x8wi\x8in\x8ng\x8g·r\x8ro\x8ou\x8ut\x8ti\x8in\x8ne\x8es\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
151 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to | 147 | High·level·drawing·routines·encompass·the·most·common·usage·of·this·addon:·to |
152 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and | 148 | draw·geometric·primitives,·both·smooth·(variations·on·the·circle·theme)·and |
Offset 226, 90 lines modified | Offset 222, 78 lines modified | ||
226 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the | 222 | sharp.·The·offsets·used·in·the·second·diagram·were·chosen·so·that·this·is·the |
227 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way | 223 | case:·if·you·use·those·offsets,·your·shapes·(if·they·are·oriented·the·same·way |
228 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is | 224 | as·they·are·on·the·diagram)·should·look·the·same·whether·multisampling·is |
229 | turned·on·or·off. | 225 | turned·on·or·off. |
230 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_l\x8li\x8in\x8ne\x8e·*\x8**\x8**\x8**\x8**\x8* | 226 | *\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_d\x8dr\x8ra\x8aw\x8w_\x8_l\x8li\x8in\x8ne\x8e·*\x8**\x8**\x8**\x8**\x8* |
231 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | 227 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, |
232 | ···ALLEGRO_COLOR·color,·float·thickness) | 228 | ···ALLEGRO_COLOR·color,·float·thickness) |
233 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
234 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
235 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 229 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
236 | Draws·a·line·segment·between·two·points. | 230 | Draws·a·line·segment·between·two·points. |
237 | 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: |
238 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line | 232 | ····*·x1,·y1,·x2,·y2·-·Start·and·end·points·of·the·line |
239 | ····*·color·-·Color·of·the·line | 233 | ····*·color·-·Color·of·the·line |
240 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines | 234 | ····*·thickness·-·Thickness·of·the·line,·pass·<=·0·to·draw·hairline·lines |
241 | 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 |
242 | Examples: | 236 | Examples: |
243 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 237 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
244 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c | 238 | ····*·_\x8e_\x8x_\x8__\x8r_\x8e_\x8s_\x8i_\x8z_\x8e_\x8._\x8c |
245 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c | 239 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8w_\x8a_\x8r_\x8p_\x8._\x8c |
246 | *\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* |
247 | 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, |
248 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 242 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
249 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
250 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
251 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 243 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
252 | Draws·an·outlined·triangle. | 244 | Draws·an·outlined·triangle. |
253 | 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: |
254 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 246 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
255 | ····*·color·-·Color·of·the·triangle | 247 | ····*·color·-·Color·of·the·triangle |
256 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 248 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
257 | 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 |
258 | Examples: | 250 | Examples: |
259 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 251 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
260 | *\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* |
261 | 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, |
262 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 254 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
263 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
264 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
265 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 255 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
266 | Draws·a·filled·triangle. | 256 | Draws·a·filled·triangle. |
267 | 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: |
268 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle | 258 | ····*·x1,·y1,·x2,·y2,·x3,·y3·-·Three·points·of·the·triangle |
269 | ····*·color·-·Color·of·the·triangle | 259 | ····*·color·-·Color·of·the·triangle |
270 | 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 |
271 | Examples: | 261 | Examples: |
272 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 262 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
273 | *\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* |
274 | 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, |
275 | ···ALLEGRO_COLOR·color,·float·thickness) | 265 | ···ALLEGRO_COLOR·color,·float·thickness) |
276 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
277 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
278 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 266 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
279 | Draws·an·outlined·rectangle. | 267 | Draws·an·outlined·rectangle. |
280 | 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: |
281 | ····*·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 |
282 | ····*·color·-·Color·of·the·rectangle | 270 | ····*·color·-·Color·of·the·rectangle |
283 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines | 271 | ····*·thickness·-·Thickness·of·the·lines,·pass·<=·0·to·draw·hairline·lines |
284 | 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 |
285 | Examples: | 273 | Examples: |
286 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | 274 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c |
287 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p | 275 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8j_\x8u_\x8s_\x8t_\x8i_\x8f_\x8y_\x8._\x8c_\x8p_\x8p |
288 | ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c | 276 | ····*·_\x8e_\x8x_\x8__\x8s_\x8u_\x8b_\x8b_\x8i_\x8t_\x8m_\x8a_\x8p_\x8._\x8c |
289 | *\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* |
290 | 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, |
291 | ···ALLEGRO_COLOR·color) | 279 | ···ALLEGRO_COLOR·color) |
292 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
293 | ···ALLEGRO_COLOR·color) | ||
294 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 280 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
295 | Draws·a·filled·rectangle. | 281 | Draws·a·filled·rectangle. |
296 | 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: |
297 | ····*·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 |
298 | ····*·color·-·Color·of·the·rectangle | 284 | ····*·color·-·Color·of·the·rectangle |
299 | 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 |
300 | Examples: | 286 | Examples: |
301 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c | 287 | ····*·_\x8e_\x8x_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8._\x8c |
302 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c | 288 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8._\x8c |
303 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c | 289 | ····*·_\x8e_\x8x_\x8__\x8w_\x8i_\x8n_\x8d_\x8o_\x8w_\x8__\x8m_\x8a_\x8x_\x8i_\x8m_\x8i_\x8z_\x8e_\x8d_\x8._\x8c |
304 | *\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* |
305 | 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, |
306 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 292 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
307 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
308 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
309 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 293 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
310 | Draws·an·outlined·rounded·rectangle. | 294 | Draws·an·outlined·rounded·rectangle. |
311 | 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: |
312 | ····*·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 |
Max diff block lines reached; 42774/50142 bytes (85.31%) of diff not shown. |
Offset 214, 16 lines modified | Offset 214, 15 lines modified | ||
214 | <li><a·href="#al_get_default_shader_source" | 214 | <li><a·href="#al_get_default_shader_source" |
215 | id="toc-al_get_default_shader_source">al_get_default_shader_source</a></li> | 215 | id="toc-al_get_default_shader_source">al_get_default_shader_source</a></li> |
216 | </ul> | 216 | </ul> |
217 | </nav> | 217 | </nav> |
218 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 218 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
219 | <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> | 219 | <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> |
220 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> | 220 | <h1·id="allegro_shader">ALLEGRO_SHADER</h1> |
221 | <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_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span> | 221 | <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_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span></code></pre></div> |
222 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_SHADER·ALLEGRO_SHADER<span·class="op">;</span></span></code></pre></div> | ||
223 | <p><a | 222 | <p><a |
224 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source | 223 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L14">Source |
225 | Code</a></p> | 224 | Code</a></p> |
226 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a | 225 | <p>An·<a·href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·a |
227 | program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel | 226 | program·that·runs·on·the·GPU.·It·combines·both·a·vertex·and·a·pixel |
228 | shader.·(In·OpenGL·terms,·an·<a | 227 | shader.·(In·OpenGL·terms,·an·<a |
229 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a | 228 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·actually·a |
Offset 240, 16 lines modified | Offset 239, 15 lines modified | ||
240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> | 239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader.cpp#L39">ex_shader.cpp</a></li> |
241 | <li><a | 240 | <li><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> | 241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_shader_target.c#L22">ex_shader_target.c</a></li> |
243 | <li><a | 242 | <li><a |
244 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> | 243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim_shader.c#L60">ex_prim_shader.c</a></li> |
245 | </ul> | 244 | </ul> |
246 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> | 245 | <h1·id="allegro_shader_type">ALLEGRO_SHADER_TYPE</h1> |
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">enum</span>·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE<span·class="op">;</span></span> | 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> |
248 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
249 | <p><a | 247 | <p><a |
250 | 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 |
251 | Code</a></p> | 249 | Code</a></p> |
252 | <p>Used·with·<a | 250 | <p>Used·with·<a |
253 | 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> |
254 | and·<a | 252 | and·<a |
255 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a> | 253 | href="shader.html#al_attach_shader_source_file">al_attach_shader_source_file</a> |
Offset 275, 16 lines modified | Offset 273, 15 lines modified | ||
275 | one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only | 273 | one·final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only |
276 | a·single·output·but·of·multiple·fragments·(for·example·when | 274 | a·single·output·but·of·multiple·fragments·(for·example·when |
277 | multi-sampling·is·being·used).</p> | 275 | multi-sampling·is·being·used).</p> |
278 | </dd> | 276 | </dd> |
279 | </dl> | 277 | </dl> |
280 | <p>Since:·5.1.0</p> | 278 | <p>Since:·5.1.0</p> |
281 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> | 279 | <h1·id="allegro_shader_platform">ALLEGRO_SHADER_PLATFORM</h1> |
282 | <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_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span> | 280 | <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_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span></code></pre></div> |
283 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM<span·class="op">;</span></span></code></pre></div> | ||
284 | <p><a | 281 | <p><a |
285 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L37">Source | 282 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/shader.h#L37">Source |
286 | Code</a></p> | 283 | Code</a></p> |
287 | <p>The·underlying·platform·which·the·<a | 284 | <p>The·underlying·platform·which·the·<a |
288 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of, | 285 | href="shader.html#allegro_shader">ALLEGRO_SHADER</a>·is·built·on·top·of, |
289 | which·dictates·the·language·used·to·program·the·shader.</p> | 286 | which·dictates·the·language·used·to·program·the·shader.</p> |
290 | <ul> | 287 | <ul> |
Offset 63, 30 lines modified | Offset 63, 28 lines modified | ||
63 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r | 63 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r |
64 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r | 64 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8f_\x8l_\x8o_\x8a_\x8t_\x8__\x8v_\x8e_\x8c_\x8t_\x8o_\x8r |
65 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 65 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
66 | These·functions·are·declared·in·the·main·Allegro·header·file: | 66 | These·functions·are·declared·in·the·main·Allegro·header·file: |
67 | ·#include·<allegro5/allegro.h> | 67 | ·#include·<allegro5/allegro.h> |
68 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* | 68 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R·*\x8**\x8**\x8**\x8**\x8**\x8* |
69 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | 69 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; |
70 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | ||
71 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
72 | 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 |
73 | 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 |
74 | 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.) |
75 | 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 |
76 | 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 |
77 | when·creating·it. | 76 | when·creating·it. |
78 | Since:·5.1.0 | 77 | Since:·5.1.0 |
79 | Examples: | 78 | Examples: |
80 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p | 79 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c_\x8p_\x8p |
81 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c | 80 | ····*·_\x8e_\x8x_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8__\x8t_\x8a_\x8r_\x8g_\x8e_\x8t_\x8._\x8c |
82 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c | 81 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8__\x8s_\x8h_\x8a_\x8d_\x8e_\x8r_\x8._\x8c |
83 | *\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* |
84 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 83 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
85 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | ||
86 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 84 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
87 | 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 |
88 | how·to·interpret·the·attached·source. | 86 | how·to·interpret·the·attached·source. |
89 | ··ALLEGRO_VERTEX_SHADER | 87 | ··ALLEGRO_VERTEX_SHADER |
90 | ······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 |
91 | ······will·output·exactly·one·vertex·at·a·time. | 89 | ······will·output·exactly·one·vertex·at·a·time. |
92 | ······When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices | 90 | ······When·Allegro’s·graphics·are·being·used·then·in·addition·to·all·vertices |
Offset 102, 15 lines modified | Offset 100, 14 lines modified | ||
102 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one | 100 | ······A·more·accurate·term·for·pixel·shader·would·be·fragment·shader·since·one |
103 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a | 101 | ······final·pixel·in·the·target·bitmap·is·not·necessarily·composed·of·only·a |
104 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling | 102 | ······single·output·but·of·multiple·fragments·(for·example·when·multi-sampling |
105 | ······is·being·used). | 103 | ······is·being·used). |
106 | Since:·5.1.0 | 104 | Since:·5.1.0 |
107 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_P\x8PL\x8LA\x8AT\x8TF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* | 105 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SH\x8HA\x8AD\x8DE\x8ER\x8R_\x8_P\x8PL\x8LA\x8AT\x8TF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* |
108 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | 106 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; |
109 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | ||
110 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 107 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
111 | The·underlying·platform·which·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·built·on·top·of,·which | 108 | The·underlying·platform·which·the·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8S_\x8H_\x8A_\x8D_\x8E_\x8R·is·built·on·top·of,·which |
112 | dictates·the·language·used·to·program·the·shader. | 109 | dictates·the·language·used·to·program·the·shader. |
113 | ····*·ALLEGRO_SHADER_AUTO·-·Pick·a·platform·automatically·given·the·current | 110 | ····*·ALLEGRO_SHADER_AUTO·-·Pick·a·platform·automatically·given·the·current |
114 | ······display·flags. | 111 | ······display·flags. |
115 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language | 112 | ····*·ALLEGRO_SHADER_GLSL·-·OpenGL·Shading·Language |
116 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) | 113 | ····*·ALLEGRO_SHADER_HLSL·-·High·Level·Shader·Language·(for·Direct3D) |
Offset 184, 16 lines modified | Offset 184, 15 lines modified | ||
184 | <li><a·href="#al_get_errno"·id="toc-al_get_errno">al_get_errno</a></li> | 184 | <li><a·href="#al_get_errno"·id="toc-al_get_errno">al_get_errno</a></li> |
185 | <li><a·href="#al_set_errno"·id="toc-al_set_errno">al_set_errno</a></li> | 185 | <li><a·href="#al_set_errno"·id="toc-al_set_errno">al_set_errno</a></li> |
186 | </ul> | 186 | </ul> |
187 | </nav> | 187 | </nav> |
188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 188 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
189 | <pre><code>·#include·<allegro5/allegro.h></code></pre> | 189 | <pre><code>·#include·<allegro5/allegro.h></code></pre> |
190 | <h1·id="allegro_state">ALLEGRO_STATE</h1> | 190 | <h1·id="allegro_state">ALLEGRO_STATE</h1> |
191 | <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_STATE·ALLEGRO_STATE<span·class="op">;</span></span> | 191 | <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_STATE·ALLEGRO_STATE<span·class="op">;</span></span></code></pre></div> |
192 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_STATE·ALLEGRO_STATE<span·class="op">;</span></span></code></pre></div> | ||
193 | <p><a | 192 | <p><a |
194 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source | 193 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/tls.h#L49">Source |
195 | Code</a></p> | 194 | Code</a></p> |
196 | <p>Opaque·type·which·is·passed·to·<a | 195 | <p>Opaque·type·which·is·passed·to·<a |
197 | href="state.html#al_store_state">al_store_state</a>/<a | 196 | href="state.html#al_store_state">al_store_state</a>/<a |
198 | href="state.html#al_restore_state">al_restore_state</a>.</p> | 197 | href="state.html#al_restore_state">al_restore_state</a>.</p> |
199 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like | 198 | <p>The·various·state·kept·internally·by·Allegro·can·be·displayed·like |
Offset 229, 16 lines modified | Offset 228, 15 lines modified | ||
229 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> | 228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend_bench.c#L65">ex_blend_bench.c</a></li> |
230 | <li><a | 229 | <li><a |
231 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> | 230 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend2.cpp#L298">ex_blend2.cpp</a></li> |
232 | <li><a | 231 | <li><a |
233 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> | 232 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L24">nihgui.cpp</a></li> |
234 | </ul> | 233 | </ul> |
235 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> | 234 | <h1·id="allegro_state_flags">ALLEGRO_STATE_FLAGS</h1> |
236 | <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> | 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> |
237 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_STATE_FLAGS</span></code></pre></div> | ||
238 | <p><a | 236 | <p><a |
239 | 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 |
240 | Code</a></p> | 238 | Code</a></p> |
241 | <p>Flags·which·can·be·passed·to·<a | 239 | <p>Flags·which·can·be·passed·to·<a |
242 | href="state.html#al_store_state">al_store_state</a>/<a | 240 | href="state.html#al_store_state">al_store_state</a>/<a |
243 | href="state.html#al_restore_state">al_restore_state</a>·as·bit | 241 | href="state.html#al_restore_state">al_restore_state</a>·as·bit |
244 | combinations.·See·<a·href="state.html#al_store_state">al_store_state</a> | 242 | combinations.·See·<a·href="state.html#al_store_state">al_store_state</a> |
Offset 49, 15 lines modified | Offset 49, 14 lines modified | ||
49 | ····*·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 49 | ····*·_\x8a_\x8l_\x8__\x8s_\x8t_\x8o_\x8r_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o | 50 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o |
51 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o | 51 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8e_\x8r_\x8r_\x8n_\x8o |
52 | These·functions·are·declared·in·the·main·Allegro·header·file: | 52 | These·functions·are·declared·in·the·main·Allegro·header·file: |
53 | ·#include·<allegro5/allegro.h> | 53 | ·#include·<allegro5/allegro.h> |
54 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 54 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
55 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | 55 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; |
56 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
57 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 56 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
58 | Opaque·type·which·is·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. | 57 | Opaque·type·which·is·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. |
59 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 58 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
60 | ··global | 59 | ··global |
61 | ······active·system·driver | 60 | ······active·system·driver |
62 | ··········current·config | 61 | ··········current·config |
63 | ··per·thread | 62 | ··per·thread |
Offset 83, 15 lines modified | Offset 82, 14 lines modified | ||
83 | thread·communication.) | 82 | thread·communication.) |
84 | Examples: | 83 | Examples: |
85 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c | 84 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8__\x8b_\x8e_\x8n_\x8c_\x8h_\x8._\x8c |
86 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p | 85 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x82_\x8._\x8c_\x8p_\x8p |
87 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p | 86 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
88 | *\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* |
89 | typedef·enum·ALLEGRO_STATE_FLAGS | 88 | typedef·enum·ALLEGRO_STATE_FLAGS |
90 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
92 | 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 |
93 | 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. |
94 | *\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* |
95 | void·al_restore_state(ALLEGRO_STATE·const·*state) | 93 | void·al_restore_state(ALLEGRO_STATE·const·*state) |
96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
97 | 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 |
Offset 232, 16 lines modified | Offset 232, 15 lines modified | ||
232 | be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the | 232 | be·the·version·of·Allegro·you·compiled·with,·and·B·=·xb.yb.zb.*·be·the |
233 | version·of·Allegro·found·in·the·system·shared·library.</p> | 233 | version·of·Allegro·found·in·the·system·shared·library.</p> |
234 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro | 234 | <p>If·you·defined·<code>ALLEGRO_UNSTABLE</code>·before·including·Allegro |
235 | headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·= | 235 | headers,·then·version·A·is·compatible·with·B·only·if·xa.ya.za·= |
236 | xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> | 236 | xb.yb.zb.·Otherwise,·A·is·compatible·with·B·only·if·xa.ya·=·xb.yb.</p> |
237 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> | 237 | <p>See·also:·<a·href="system.html#al_init">al_init</a></p> |
238 | <h1·id="al_init">al_init</h1> | 238 | <h1·id="al_init">al_init</h1> |
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="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><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="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><span·class="op">))</span></span></code></pre></div> |
240 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·al_init</span><span·class="op">()</span><span·class="pp">····</span><span·class="op">(</span><span·class="pp">al_install_system</span><span·class="op">(</span><span·class="pp">ALLEGRO_VERSION_INT</span><span·class="op">,</span><span·class="pp">·atexit</span><span·class="op">))</span></span></code></pre></div> | ||
241 | <p><a | 240 | <p><a |
242 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source | 241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L30">Source |
243 | Code</a></p> | 242 | Code</a></p> |
244 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>, | 243 | <p>Like·<a·href="system.html#al_install_system">al_install_system</a>, |
245 | but·automatically·passes·in·the·version·and·uses·the·atexit·function | 244 | but·automatically·passes·in·the·version·and·uses·the·atexit·function |
246 | visible·in·the·current·binary.</p> | 245 | visible·in·the·current·binary.</p> |
247 | <blockquote> | 246 | <blockquote> |
Offset 840, 16 lines modified | Offset 839, 15 lines modified | ||
840 | <p>Since:·5.1.12</p> | 839 | <p>Since:·5.1.12</p> |
841 | <p>Examples:</p> | 840 | <p>Examples:</p> |
842 | <ul> | 841 | <ul> |
843 | <li><a | 842 | <li><a |
844 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L1">ex_cpu.c</a></li> | 843 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_cpu.c#L1">ex_cpu.c</a></li> |
845 | </ul> | 844 | </ul> |
846 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> | 845 | <h1·id="allegro_system_id">ALLEGRO_SYSTEM_ID</h1> |
847 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span> | 846 | <div·class="sourceCode"·id="cb21"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb21-1"><a·href="#cb21-1"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span></code></pre></div> |
848 | <span·id="cb21-2"><a·href="#cb21-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_SYSTEM_ID·<span·class="op">{</span></span></code></pre></div> | ||
849 | <p><a | 847 | <p><a |
850 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source | 848 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/system.h#L15">Source |
851 | Code</a></p> | 849 | Code</a></p> |
852 | <p>The·system·Allegro·is·running·on.</p> | 850 | <p>The·system·Allegro·is·running·on.</p> |
853 | <ul> | 851 | <ul> |
854 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> | 852 | <li>ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system.</li> |
855 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> | 853 | <li>ALLEGRO_SYSTEM_ID_XGLX·-·Xglx</li> |
Offset 81, 15 lines modified | Offset 81, 14 lines modified | ||
81 | Allegro·found·in·the·system·shared·library. | 81 | Allegro·found·in·the·system·shared·library. |
82 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version | 82 | If·you·defined·ALLEGRO_UNSTABLE·before·including·Allegro·headers,·then·version |
83 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible | 83 | A·is·compatible·with·B·only·if·xa.ya.za·=·xb.yb.zb.·Otherwise,·A·is·compatible |
84 | with·B·only·if·xa.ya·=·xb.yb. | 84 | with·B·only·if·xa.ya·=·xb.yb. |
85 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t | 85 | See·also:·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t |
86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 86 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8al\x8l_\x8_i\x8in\x8ni\x8it\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
87 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | 87 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) |
88 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 88 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | Like·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m,·but·automatically·passes·in·the·version·and·uses·the | 89 | Like·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m,·but·automatically·passes·in·the·version·and·uses·the |
91 | atexit·function·visible·in·the·current·binary. | 90 | atexit·function·visible·in·the·current·binary. |
92 | ·····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 |
93 | ·····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 |
94 | ·····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 |
95 | ·····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 |
Offset 573, 15 lines modified | Offset 572, 14 lines modified | ||
573 | returns·a·certain·“desirable”·number. | 572 | returns·a·certain·“desirable”·number. |
574 | This·function·may·be·called·prior·to·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t. | 573 | This·function·may·be·called·prior·to·_\x8a_\x8l_\x8__\x8i_\x8n_\x8s_\x8t_\x8a_\x8l_\x8l_\x8__\x8s_\x8y_\x8s_\x8t_\x8e_\x8m·or·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t. |
575 | Since:·5.1.12 | 574 | Since:·5.1.12 |
576 | Examples: | 575 | Examples: |
577 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c | 576 | ····*·_\x8e_\x8x_\x8__\x8c_\x8p_\x8u_\x8._\x8c |
578 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SY\x8YS\x8ST\x8TE\x8EM\x8M_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* | 577 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_S\x8SY\x8YS\x8ST\x8TE\x8EM\x8M_\x8_I\x8ID\x8D·*\x8**\x8**\x8**\x8**\x8**\x8* |
579 | enum·ALLEGRO_SYSTEM_ID·{ | 578 | enum·ALLEGRO_SYSTEM_ID·{ |
580 | enum·ALLEGRO_SYSTEM_ID·{ | ||
581 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 579 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
582 | The·system·Allegro·is·running·on. | 580 | The·system·Allegro·is·running·on. |
583 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. | 581 | ····*·ALLEGRO_SYSTEM_ID_UNKNOWN·-·Unknown·system. |
584 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx | 582 | ····*·ALLEGRO_SYSTEM_ID_XGLX·-·Xglx |
585 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows | 583 | ····*·ALLEGRO_SYSTEM_ID_WINDOWS·-·Windows |
586 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS | 584 | ····*·ALLEGRO_SYSTEM_ID_MACOSX·-·macOS |
587 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android | 585 | ····*·ALLEGRO_SYSTEM_ID_ANDROID·-·Android |
Offset 223, 46 lines modified | Offset 223, 43 lines modified | ||
223 | would·be·difficult·at·best,·hence·the·behaviour·of·the·following | 223 | would·be·difficult·at·best,·hence·the·behaviour·of·the·following |
224 | functions·will·differ·subtly·on·different·platforms·(more·so·than | 224 | functions·will·differ·subtly·on·different·platforms·(more·so·than |
225 | usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the | 225 | usual).·Your·best·bet·is·to·be·aware·of·this·and·code·to·the |
226 | intersection·of·the·semantics·and·avoid·edge·cases.</p> | 226 | intersection·of·the·semantics·and·avoid·edge·cases.</p> |
227 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 227 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
232 | <p><a | 231 | <p><a |
233 | 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 |
234 | Code</a></p> | 233 | Code</a></p> |
235 | <p>An·opaque·structure·representing·a·thread.</p> | 234 | <p>An·opaque·structure·representing·a·thread.</p> |
236 | <p>Examples:</p> | 235 | <p>Examples:</p> |
237 | <ul> | 236 | <ul> |
238 | <li><a | 237 | <li><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> | 238 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads.c#L97">ex_threads.c</a></li> |
240 | <li><a | 239 | <li><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> | 240 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L150">ex_threads2.c</a></li> |
242 | <li><a | 241 | <li><a |
243 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> | 242 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L16">ex_loading_thread.c</a></li> |
244 | </ul> | 243 | </ul> |
245 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> | 244 | <h1·id="allegro_mutex">ALLEGRO_MUTEX</h1> |
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">struct</span>·ALLEGRO_MUTEX·ALLEGRO_MUTEX<span·class="op">;</span></span> | 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> |
247 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
248 | <p><a | 246 | <p><a |
249 | 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 |
250 | Code</a></p> | 248 | Code</a></p> |
251 | <p>An·opaque·structure·representing·a·mutex.</p> | 249 | <p>An·opaque·structure·representing·a·mutex.</p> |
252 | <p>Examples:</p> | 250 | <p>Examples:</p> |
253 | <ul> | 251 | <ul> |
254 | <li><a | 252 | <li><a |
255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> | 253 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_threads2.c#L27">ex_threads2.c</a></li> |
256 | <li><a | 254 | <li><a |
257 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> | 255 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_loading_thread.c#L14">ex_loading_thread.c</a></li> |
258 | </ul> | 256 | </ul> |
259 | <h1·id="allegro_cond">ALLEGRO_COND</h1> | 257 | <h1·id="allegro_cond">ALLEGRO_COND</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_COND·ALLEGRO_COND<span·class="op">;</span></span> | 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> |
261 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
262 | <p><a | 259 | <p><a |
263 | 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 |
264 | Code</a></p> | 261 | Code</a></p> |
265 | <p>An·opaque·structure·representing·a·condition·variable.</p> | 262 | <p>An·opaque·structure·representing·a·condition·variable.</p> |
266 | <p>Examples:</p> | 263 | <p>Examples:</p> |
267 | <ul> | 264 | <ul> |
268 | <li><a | 265 | <li><a |
Offset 72, 32 lines modified | Offset 72, 29 lines modified | ||
72 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be | 72 | subtly·on·different·platforms·(more·so·than·usual).·Your·best·bet·is·to·be |
73 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge | 73 | aware·of·this·and·code·to·the·intersection·of·the·semantics·and·avoid·edge |
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 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
80 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
81 | An·opaque·structure·representing·a·thread. | 80 | An·opaque·structure·representing·a·thread. |
82 | Examples: | 81 | Examples: |
83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c | 82 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x8._\x8c |
84 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 83 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
85 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | 84 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c |
86 | *\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* |
87 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | 86 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
88 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
90 | An·opaque·structure·representing·a·mutex. | 88 | An·opaque·structure·representing·a·mutex. |
91 | Examples: | 89 | Examples: |
92 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 90 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
93 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c | 91 | ····*·_\x8e_\x8x_\x8__\x8l_\x8o_\x8a_\x8d_\x8i_\x8n_\x8g_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8._\x8c |
94 | *\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* |
95 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | 93 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
96 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
97 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
98 | An·opaque·structure·representing·a·condition·variable. | 95 | An·opaque·structure·representing·a·condition·variable. |
99 | Examples: | 96 | Examples: |
100 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c | 97 | ····*·_\x8e_\x8x_\x8__\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8s_\x82_\x8._\x8c |
101 | *\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* |
102 | ALLEGRO_THREAD·*al_create_thread( | 99 | ALLEGRO_THREAD·*al_create_thread( |
103 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) | 100 | ···void·*(*proc)(ALLEGRO_THREAD·*thread,·void·*arg),·void·*arg) |
Offset 180, 16 lines modified | Offset 180, 15 lines modified | ||
180 | id="toc-al_init_timeout">al_init_timeout</a></li> | 180 | id="toc-al_init_timeout">al_init_timeout</a></li> |
181 | <li><a·href="#al_rest"·id="toc-al_rest">al_rest</a></li> | 181 | <li><a·href="#al_rest"·id="toc-al_rest">al_rest</a></li> |
182 | </ul> | 182 | </ul> |
183 | </nav> | 183 | </nav> |
184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 184 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
185 | <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> | 185 | <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> |
186 | <h1·id="allegro_timeout">ALLEGRO_TIMEOUT</h1> | 186 | <h1·id="allegro_timeout">ALLEGRO_TIMEOUT</h1> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
189 | <p><a | 188 | <p><a |
190 | 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 |
191 | Code</a></p> | 190 | Code</a></p> |
192 | <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 |
193 | can·be·statically·allocated.·The·contents·are·private.</p> | 192 | can·be·statically·allocated.·The·contents·are·private.</p> |
194 | <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> |
195 | <p>Examples:</p> | 194 | <p>Examples:</p> |
Offset 47, 15 lines modified | Offset 47, 14 lines modified | ||
47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e | 47 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e |
48 | ····*·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t | 48 | ····*·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8o_\x8u_\x8t |
49 | ····*·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t | 49 | ····*·_\x8a_\x8l_\x8__\x8r_\x8e_\x8s_\x8t |
50 | These·functions·are·declared·in·the·main·Allegro·header·file: | 50 | These·functions·are·declared·in·the·main·Allegro·header·file: |
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 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; | ||
55 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 54 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
56 | 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 |
57 | statically·allocated.·The·contents·are·private. | 56 | statically·allocated.·The·contents·are·private. |
58 | 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 |
59 | Examples: | 58 | Examples: |
60 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c | 59 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8d_\x8w_\x8a_\x8i_\x8t_\x8._\x8c |
61 | *\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* |
Offset 208, 58 lines modified | Offset 208, 53 lines modified | ||
208 | <li><a·href="#al_get_timer_event_source" | 208 | <li><a·href="#al_get_timer_event_source" |
209 | id="toc-al_get_timer_event_source">al_get_timer_event_source</a></li> | 209 | id="toc-al_get_timer_event_source">al_get_timer_event_source</a></li> |
210 | </ul> | 210 | </ul> |
211 | </nav> | 211 | </nav> |
212 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 212 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
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> | 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 | <span·id="cb2-2"><a·href="#cb2-2"·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> | ||
217 | <p><a | 216 | <p><a |
218 | 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 |
219 | Code</a></p> | 218 | Code</a></p> |
220 | <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> |
221 | <p>Examples:</p> | 220 | <p>Examples:</p> |
222 | <ul> | 221 | <ul> |
223 | <li><a | 222 | <li><a |
224 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> | 223 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_enet_server.c#L188">ex_enet_server.c</a></li> |
225 | <li><a | 224 | <li><a |
226 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> | 225 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_timer_pause.c#L22">ex_timer_pause.c</a></li> |
227 | <li><a | 226 | <li><a |
228 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> | 227 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_user_events.c#L46">ex_user_events.c</a></li> |
229 | </ul> | 228 | </ul> |
230 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> | 229 | <h1·id="allegro_usecs_to_secs">ALLEGRO_USECS_TO_SECS</h1> |
231 | <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> | 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> |
232 | <span·id="cb3-2"><a·href="#cb3-2"·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> | ||
233 | <p><a | 231 | <p><a |
234 | 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 |
235 | Code</a></p> | 233 | Code</a></p> |
236 | <p>Convert·microseconds·to·seconds.</p> | 234 | <p>Convert·microseconds·to·seconds.</p> |
237 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> | 235 | <h1·id="allegro_msecs_to_secs">ALLEGRO_MSECS_TO_SECS</h1> |
238 | <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·ALLEGRO_MSECS_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">1000.0</span><span·class="op">)</span></span> | 236 | <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·ALLEGRO_MSECS_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">1000.0</span><span·class="op">)</span></span></code></pre></div> |
239 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_MSECS_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">1000.0</span><span·class="op">)</span></span></code></pre></div> | ||
240 | <p><a | 237 | <p><a |
241 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/timer.h#L33">Source |
242 | Code</a></p> | 239 | Code</a></p> |
243 | <p>Convert·milliseconds·to·seconds.</p> | 240 | <p>Convert·milliseconds·to·seconds.</p> |
244 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> | 241 | <h1·id="allegro_bps_to_secs">ALLEGRO_BPS_TO_SECS</h1> |
245 | <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> | 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> |
246 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
247 | <p><a | 243 | <p><a |
248 | 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 |
249 | Code</a></p> | 245 | Code</a></p> |
250 | <p>Convert·beats·per·second·to·seconds.</p> | 246 | <p>Convert·beats·per·second·to·seconds.</p> |
251 | <p>Examples:</p> | 247 | <p>Examples:</p> |
252 | <ul> | 248 | <ul> |
253 | <li><a | 249 | <li><a |
254 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> | 250 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_prim.c#L719">ex_prim.c</a></li> |
255 | </ul> | 251 | </ul> |
256 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> | 252 | <h1·id="allegro_bpm_to_secs">ALLEGRO_BPM_TO_SECS</h1> |
257 | <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> | 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> |
258 | <span·id="cb6-2"><a·href="#cb6-2"·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> | ||
259 | <p><a | 254 | <p><a |
260 | 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 |
261 | Code</a></p> | 256 | Code</a></p> |
262 | <p>Convert·beats·per·minute·to·seconds.</p> | 257 | <p>Convert·beats·per·minute·to·seconds.</p> |
263 | <h1·id="al_create_timer">al_create_timer</h1> | 258 | <h1·id="al_create_timer">al_create_timer</h1> |
264 | <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_TIMER·<span·class="op">*</span>al_create_timer<span·class="op">(</span><span·class="dt">double</span>·speed_secs<span·class="op">)</span></span></code></pre></div> | 259 | <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_TIMER·<span·class="op">*</span>al_create_timer<span·class="op">(</span><span·class="dt">double</span>·speed_secs<span·class="op">)</span></span></code></pre></div> |
265 | <p><a | 260 | <p><a |
Offset 60, 41 lines modified | Offset 60, 36 lines modified | ||
60 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 60 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
61 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d | 61 | ····*·_\x8a_\x8l_\x8__\x8s_\x8e_\x8t_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8s_\x8p_\x8e_\x8e_\x8d |
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 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 67 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
69 | This·is·an·abstract·data·type·representing·a·timer·object. | 68 | This·is·an·abstract·data·type·representing·a·timer·object. |
70 | Examples: | 69 | Examples: |
71 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c | 70 | ····*·_\x8e_\x8x_\x8__\x8e_\x8n_\x8e_\x8t_\x8__\x8s_\x8e_\x8r_\x8v_\x8e_\x8r_\x8._\x8c |
72 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c | 71 | ····*·_\x8e_\x8x_\x8__\x8t_\x8i_\x8m_\x8e_\x8r_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8._\x8c |
73 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c | 72 | ····*·_\x8e_\x8x_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8s_\x8._\x8c |
74 | *\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* |
75 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | 74 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
76 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 75 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
78 | Convert·microseconds·to·seconds. | 76 | Convert·microseconds·to·seconds. |
79 | *\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* |
80 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | 78 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
81 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
82 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 79 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
83 | Convert·milliseconds·to·seconds. | 80 | Convert·milliseconds·to·seconds. |
84 | *\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* |
85 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | 82 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
86 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 83 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
88 | Convert·beats·per·second·to·seconds. | 84 | Convert·beats·per·second·to·seconds. |
89 | Examples: | 85 | Examples: |
90 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c | 86 | ····*·_\x8e_\x8x_\x8__\x8p_\x8r_\x8i_\x8m_\x8._\x8c |
91 | *\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* |
92 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | 88 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
93 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
94 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 89 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
95 | Convert·beats·per·minute·to·seconds. | 90 | Convert·beats·per·minute·to·seconds. |
96 | *\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* |
97 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) | 92 | ALLEGRO_TIMER·*al_create_timer(double·speed_secs) |
98 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 93 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
99 | 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 |
100 | 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 |
Offset 200, 34 lines modified | Offset 200, 31 lines modified | ||
200 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source" | 200 | <li><a·href="#al_get_touch_input_mouse_emulation_event_source" |
201 | id="toc-al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> | 201 | id="toc-al_get_touch_input_mouse_emulation_event_source">al_get_touch_input_mouse_emulation_event_source</a></li> |
202 | </ul> | 202 | </ul> |
203 | </nav> | 203 | </nav> |
204 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> | 204 | <p>These·functions·are·declared·in·the·main·Allegro·header·file:</p> |
205 | <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> | 205 | <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> |
206 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> | 206 | <h1·id="allegro_touch_input">ALLEGRO_TOUCH_INPUT</h1> |
207 | <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_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span> | 207 | <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_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span></code></pre></div> |
208 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT<span·class="op">;</span></span></code></pre></div> | ||
209 | <p><a | 208 | <p><a |
210 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source | 209 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L34">Source |
211 | Code</a></p> | 210 | Code</a></p> |
212 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch | 211 | <p>An·abstract·data·type·representing·a·physical·touch·screen·or·touch |
213 | pad.</p> | 212 | pad.</p> |
214 | <p>Since:·5.1.0</p> | 213 | <p>Since:·5.1.0</p> |
215 | <h1 | 214 | <h1 |
216 | id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> | 215 | id="allegro_touch_input_max_touch_count">ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT</h1> |
217 | <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_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span> | 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="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span></code></pre></div> |
218 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="pp">#define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········</span><span·class="dv">16</span></span></code></pre></div> | ||
219 | <p><a | 217 | <p><a |
220 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source | 218 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L29">Source |
221 | Code</a></p> | 219 | Code</a></p> |
222 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> | 220 | <p>The·maximum·amount·of·simultaneous·touches·that·can·be·detected.</p> |
223 | <p>Since:·5.1.0</p> | 221 | <p>Since:·5.1.0</p> |
224 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> | 222 | <h1·id="allegro_touch_state">ALLEGRO_TOUCH_STATE</h1> |
225 | <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_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span> | 223 | <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_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span></code></pre></div> |
226 | <span·id="cb4-2"><a·href="#cb4-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE<span·class="op">;</span></span></code></pre></div> | ||
227 | <p><a | 224 | <p><a |
228 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source | 225 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L44">Source |
229 | Code</a></p> | 226 | Code</a></p> |
230 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a | 227 | <p>This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a |
231 | particular·instant.</p> | 228 | particular·instant.</p> |
232 | <p>Public·fields·(read·only):</p> | 229 | <p>Public·fields·(read·only):</p> |
233 | <ul> | 230 | <ul> |
Offset 241, 30 lines modified | Offset 238, 28 lines modified | ||
241 | one).</li> | 238 | one).</li> |
242 | <li>display·-·The·<a | 239 | <li>display·-·The·<a |
243 | href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was | 240 | href="display.html#allegro_display">ALLEGRO_DISPLAY</a>·that·was |
244 | touched.</li> | 241 | touched.</li> |
245 | </ul> | 242 | </ul> |
246 | <p>Since:·5.1.0</p> | 243 | <p>Since:·5.1.0</p> |
247 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</h1> | 244 | <h1·id="allegro_touch_input_state">ALLEGRO_TOUCH_INPUT_STATE</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><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<span·class="op">;</span></span> | 245 | <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_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<span·class="op">;</span></span></code></pre></div> |
249 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE<span·class="op">;</span></span></code></pre></div> | ||
250 | <p><a | 246 | <p><a |
251 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source | 247 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L39">Source |
252 | Code</a></p> | 248 | Code</a></p> |
253 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches | 249 | <p>This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches |
254 | at·a·particular·instant.</p> | 250 | at·a·particular·instant.</p> |
255 | <p>Public·fields·(read·only):</p> | 251 | <p>Public·fields·(read·only):</p> |
256 | <ul> | 252 | <ul> |
257 | <li>touches·-·an·array·of·<a | 253 | <li>touches·-·an·array·of·<a |
258 | href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> | 254 | href="touch.html#allegro_touch_state">ALLEGRO_TOUCH_STATE</a></li> |
259 | </ul> | 255 | </ul> |
260 | <p>Since:·5.1.0</p> | 256 | <p>Since:·5.1.0</p> |
261 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</h1> | 257 | <h1·id="allegro_mouse_emulation_mode">ALLEGRO_MOUSE_EMULATION_MODE</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><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span> | 258 | <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">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span></code></pre></div> |
263 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_MOUSE_EMULATION_MODE</span></code></pre></div> | ||
264 | <p><a | 259 | <p><a |
265 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source | 260 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/touch_input.h#L71">Source |
266 | Code</a></p> | 261 | Code</a></p> |
267 | <p>Type·of·mouse·emulation·to·apply.</p> | 262 | <p>Type·of·mouse·emulation·to·apply.</p> |
268 | <dl> | 263 | <dl> |
269 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> | 264 | <dt>ALLEGRO_MOUSE_EMULATION_NONE</dt> |
270 | <dd> | 265 | <dd> |
Offset 56, 51 lines modified | Offset 56, 46 lines modified | ||
56 | ····*·_\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 | 56 | ····*·_\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 |
57 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 57 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 58 | ····*·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8u_\x8c_\x8h_\x8__\x8i_\x8n_\x8p_\x8u_\x8t_\x8__\x8m_\x8o_\x8u_\x8s_\x8e_\x8__\x8e_\x8m_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
59 | These·functions·are·declared·in·the·main·Allegro·header·file: | 59 | These·functions·are·declared·in·the·main·Allegro·header·file: |
60 | ·#include·<allegro5/allegro.h> | 60 | ·#include·<allegro5/allegro.h> |
61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
62 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | 62 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; |
63 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
64 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 63 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
65 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 64 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
66 | Since:·5.1.0 | 65 | Since:·5.1.0 |
67 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_M\x8MA\x8AX\x8X_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_C\x8CO\x8OU\x8UN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 66 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_I\x8IN\x8NP\x8PU\x8UT\x8T_\x8_M\x8MA\x8AX\x8X_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_C\x8CO\x8OU\x8UN\x8NT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
68 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | 67 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 |
69 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
70 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 68 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
71 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 69 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
72 | Since:·5.1.0 | 70 | Since:·5.1.0 |
73 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 71 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TO\x8OU\x8UC\x8CH\x8H_\x8_S\x8ST\x8TA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
74 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | 72 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; |
75 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
76 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 73 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
77 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a | 74 | This·is·a·structure·that·is·used·to·hold·a·“snapshot”·of·a·touch·at·a |
78 | particular·instant. | 75 | particular·instant. |
79 | Public·fields·(read·only): | 76 | Public·fields·(read·only): |
80 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. | 77 | ····*·id·-·identifier·of·the·touch.·If·the·touch·is·valid,·this·is·positive. |
81 | ····*·x·-·touch·x·position | 78 | ····*·x·-·touch·x·position |
82 | ····*·y·-·touch·y·position | 79 | ····*·y·-·touch·y·position |
83 | ····*·dx·-·touch·relative·x·position | 80 | ····*·dx·-·touch·relative·x·position |
84 | ····*·dy·-·touch·relative·y·position | 81 | ····*·dy·-·touch·relative·y·position |
85 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). | 82 | ····*·primary·-·TRUE·if·this·touch·is·the·primary·one·(usually·the·first·one). |
86 | ····*·display·-·The·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y·that·was·touched. | 83 | ····*·display·-·The·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8D_\x8I_\x8S_\x8P_\x8L_\x8A_\x8Y·that·was·touched. |
87 | Since:·5.1.0 | 84 | Since:·5.1.0 |
88 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\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* | 85 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\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* |
89 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | 86 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; |
90 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
91 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 87 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
92 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a | 88 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at·a |
93 | particular·instant. | 89 | particular·instant. |
94 | Public·fields·(read·only): | 90 | Public·fields·(read·only): |
95 | ····*·touches·-·an·array·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8S_\x8T_\x8A_\x8T_\x8E | 91 | ····*·touches·-·an·array·of·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8T_\x8O_\x8U_\x8C_\x8H_\x8__\x8S_\x8T_\x8A_\x8T_\x8E |
96 | Since:·5.1.0 | 92 | Since:·5.1.0 |
97 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\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* | 93 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\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* |
98 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | 94 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE |
99 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
100 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 95 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
101 | Type·of·mouse·emulation·to·apply. | 96 | Type·of·mouse·emulation·to·apply. |
102 | ··ALLEGRO_MOUSE_EMULATION_NONE | 97 | ··ALLEGRO_MOUSE_EMULATION_NONE |
103 | ······Disables·mouse·emulation. | 98 | ······Disables·mouse·emulation. |
104 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT | 99 | ··ALLEGRO_MOUSE_EMULATION_TRANSPARENT |
105 | ······Enables·transparent·mouse·emulation. | 100 | ······Enables·transparent·mouse·emulation. |
106 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE | 101 | ··ALLEGRO_MOUSE_EMULATION_INCLUSIVE |
Offset 301, 16 lines modified | Offset 301, 15 lines modified | ||
301 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> | 301 | <span·id="cb4-11"><a·href="#cb4-11"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> |
302 | <p>it·does·exactly·the·same·as:</p> | 302 | <p>it·does·exactly·the·same·as:</p> |
303 | <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>al_identity_transform<span·class="op">(&</span>T<span·class="op">);</span></span> | 303 | <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>al_identity_transform<span·class="op">(&</span>T<span·class="op">);</span></span> |
304 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>al_scale_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">2</span><span·class="op">,</span>·<span·class="dv">2</span><span·class="op">);</span></span> | 304 | <span·id="cb5-2"><a·href="#cb5-2"·aria-hidden="true"·tabindex="-1"></a>al_scale_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">2</span><span·class="op">,</span>·<span·class="dv">2</span><span·class="op">);</span></span> |
305 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a>al_translate_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">100</span><span·class="op">,</span>·<span·class="dv">0</span><span·class="op">);</span></span> | 305 | <span·id="cb5-3"><a·href="#cb5-3"·aria-hidden="true"·tabindex="-1"></a>al_translate_transform<span·class="op">(&</span>T<span·class="op">,</span>·<span·class="dv">100</span><span·class="op">,</span>·<span·class="dv">0</span><span·class="op">);</span></span> |
306 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> | 306 | <span·id="cb5-4"><a·href="#cb5-4"·aria-hidden="true"·tabindex="-1"></a>al_use_transform<span·class="op">(&</span>T<span·class="op">);</span></span></code></pre></div> |
307 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> | 307 | <h1·id="allegro_transform">ALLEGRO_TRANSFORM</h1> |
308 | <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_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span> | 308 | <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_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span></code></pre></div> |
309 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">struct</span>·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM<span·class="op">;</span></span></code></pre></div> | ||
310 | <p><a | 309 | <p><a |
311 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source | 310 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/transformations.h#L12">Source |
312 | Code</a></p> | 311 | Code</a></p> |
313 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms | 312 | <p>Defines·the·generic·transformation·type,·a·4x4·matrix.·2D·transforms |
314 | 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 |
315 | 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> |
316 | <p><em>Fields:</em></p> | 315 | <p><em>Fields:</em></p> |
Offset 130, 15 lines modified | Offset 130, 14 lines modified | ||
130 | it·does·exactly·the·same·as: | 130 | it·does·exactly·the·same·as: |
131 | al_identity_transform(&T); | 131 | al_identity_transform(&T); |
132 | al_scale_transform(&T,·2,·2); | 132 | al_scale_transform(&T,·2,·2); |
133 | al_translate_transform(&T,·100,·0); | 133 | al_translate_transform(&T,·100,·0); |
134 | al_use_transform(&T); | 134 | al_use_transform(&T); |
135 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TR\x8RA\x8AN\x8NS\x8SF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* | 135 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_T\x8TR\x8RA\x8AN\x8NS\x8SF\x8FO\x8OR\x8RM\x8M·*\x8**\x8**\x8**\x8**\x8**\x8* |
136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | 136 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
137 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
138 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
139 | 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 |
140 | 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 |
141 | most·2x1·matrix,·for·a·total·of·6·values. | 140 | most·2x1·matrix,·for·a·total·of·6·values. |
142 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: | 141 | F\x8Fi\x8ie\x8el\x8ld\x8ds\x8s:\x8: |
143 | ····*·m·-·A·4x4·float·matrix | 142 | ····*·m·-·A·4x4·float·matrix |
144 | Examples: | 143 | Examples: |
Offset 436, 16 lines modified | Offset 436, 15 lines modified | ||
436 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with | 436 | <p>For·actual·text·processing,·where·you·want·to·specify·positions·with |
437 | code·point·indices,·you·should·use·<a | 437 | code·point·indices,·you·should·use·<a |
438 | href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit | 438 | href="utf8.html#al_ustr_offset">al_ustr_offset</a>·to·find·the·code·unit |
439 | offset·position.·However,·most·of·the·time·you·would·probably·just·work | 439 | offset·position.·However,·most·of·the·time·you·would·probably·just·work |
440 | with·byte·offsets.</p> | 440 | with·byte·offsets.</p> |
441 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> | 441 | <h1·id="utf-8-string-types">UTF-8·string·types</h1> |
442 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> | 442 | <h2·id="allegro_ustr">ALLEGRO_USTR</h2> |
443 | <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> | 443 | <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 | <span·id="cb3-2"><a·href="#cb3-2"·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 | 444 | <p><a |
446 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source | 445 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L12">Source |
447 | Code</a></p> | 446 | Code</a></p> |
448 | <p>An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain | 447 | <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, | 448 | UTF-8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences, |
450 | including·NULs.</p> | 449 | including·NULs.</p> |
451 | <p>Examples:</p> | 450 | <p>Examples:</p> |
Offset 454, 16 lines modified | Offset 453, 15 lines modified | ||
454 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> | 453 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_font_multiline.cpp#L248">ex_font_multiline.cpp</a></li> |
455 | <li><a | 454 | <li><a |
456 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> | 455 | href="https://github.com/liballeg/allegro5/blob/master/examples/nihgui.cpp#L39">nihgui.cpp</a></li> |
457 | <li><a | 456 | <li><a |
458 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> | 457 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_blend.c#L57">ex_blend.c</a></li> |
459 | </ul> | 458 | </ul> |
460 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> | 459 | <h2·id="allegro_ustr_info">ALLEGRO_USTR_INFO</h2> |
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> | 460 | <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> |
462 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
463 | <p><a | 461 | <p><a |
464 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source | 462 | href="https://github.com/liballeg/allegro5/blob/master/include/allegro5/utf8.h#L16">Source |
465 | Code</a></p> | 463 | Code</a></p> |
466 | <p>A·type·that·holds·additional·information·for·an·<a | 464 | <p>A·type·that·holds·additional·information·for·an·<a |
467 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an | 465 | href="utf8.html#allegro_ustr">ALLEGRO_USTR</a>·that·references·an |
468 | external·memory·buffer.</p> | 466 | external·memory·buffer.</p> |
469 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a | 467 | <p>See·also:·<a·href="utf8.html#al_ref_cstr">al_ref_cstr</a>,·<a |
Offset 190, 26 lines modified | Offset 190, 24 lines modified | ||
190 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) | 190 | actually·store·arbitrary·data·in·the·ALLEGRO_USTRs.) |
191 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point | 191 | For·actual·text·processing,·where·you·want·to·specify·positions·with·code·point |
192 | indices,·you·should·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·code·unit·offset·position. | 192 | indices,·you·should·use·_\x8a_\x8l_\x8__\x8u_\x8s_\x8t_\x8r_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t·to·find·the·code·unit·offset·position. |
193 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. | 193 | However,·most·of·the·time·you·would·probably·just·work·with·byte·offsets. |
194 | *\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* | 194 | *\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*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_U\x8US\x8ST\x8TR\x8R·*\x8**\x8**\x8**\x8**\x8* | 195 | *\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 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | 196 | 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 | 197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
199 | An·opaque·type·representing·a·string.·ALLEGRO_USTRs·normally·contain·UTF- | 198 | 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 | 199 | 8·encoded·strings,·but·they·may·be·used·to·hold·any·byte·sequences,·including |
201 | NULs. | 200 | NULs. |
202 | Examples: | 201 | Examples: |
203 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 202 | ····*·_\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 | 203 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
205 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c | 204 | ····*·_\x8e_\x8x_\x8__\x8b_\x8l_\x8e_\x8n_\x8d_\x8._\x8c |
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* | 205 | *\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* |
207 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | 206 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
208 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
209 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 207 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
210 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an | 208 | A·type·that·holds·additional·information·for·an·_\x8A_\x8L_\x8L_\x8E_\x8G_\x8R_\x8O_\x8__\x8U_\x8S_\x8T_\x8R·that·references·an |
211 | external·memory·buffer. | 209 | external·memory·buffer. |
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·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. | 210 | 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·and·_\x8a_\x8l_\x8__\x8r_\x8e_\x8f_\x8__\x8u_\x8s_\x8t_\x8r. |
213 | Examples: | 211 | Examples: |
214 | ····*·_\x8e_\x8x_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8m_\x8u_\x8l_\x8t_\x8i_\x8l_\x8i_\x8n_\x8e_\x8._\x8c_\x8p_\x8p | 212 | ····*·_\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 | 213 | ····*·_\x8n_\x8i_\x8h_\x8g_\x8u_\x8i_\x8._\x8c_\x8p_\x8p |
Offset 229, 16 lines modified | Offset 229, 15 lines modified | ||
229 | allegro_video.</p> | 229 | allegro_video.</p> |
230 | <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_video.h></span></span></code></pre></div> | 230 | <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_video.h></span></span></code></pre></div> |
231 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a | 231 | <p>Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·<a |
232 | href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for | 232 | href="http://xiph.org/"·class="uri">http://xiph.org/</a>·for |
233 | installation·instructions,·licensing·information·and·supported·video | 233 | installation·instructions,·licensing·information·and·supported·video |
234 | formats.</p> | 234 | formats.</p> |
235 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> | 235 | <h1·id="allegro_video_event_type">ALLEGRO_VIDEO_EVENT_TYPE</h1> |
236 | <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">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span> | 236 | <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">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span></code></pre></div> |
237 | <span·id="cb2-2"><a·href="#cb2-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">enum</span>·ALLEGRO_VIDEO_EVENT_TYPE</span></code></pre></div> | ||
238 | <p><a | 237 | <p><a |
239 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source | 238 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L35">Source |
240 | Code</a></p> | 239 | Code</a></p> |
241 | <p>Events·sent·by·<a | 240 | <p>Events·sent·by·<a |
242 | href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> | 241 | href="video.html#al_get_video_event_source">al_get_video_event_source</a>.</p> |
243 | <h2 | 242 | <h2 |
244 | id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> | 243 | id="allegro_event_video_frame_show">ALLEGRO_EVENT_VIDEO_FRAME_SHOW</h2> |
Offset 263, 16 lines modified | Offset 262, 15 lines modified | ||
263 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> | 262 | <dt>user.data1·(ALLEGRO_VIDEO·*)</dt> |
264 | <dd> | 263 | <dd> |
265 | The·video·which·generated·the·event. | 264 | The·video·which·generated·the·event. |
266 | </dd> | 265 | </dd> |
267 | </dl> | 266 | </dl> |
268 | <p>Since:·5.1.0</p> | 267 | <p>Since:·5.1.0</p> |
269 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> | 268 | <h1·id="allegro_video_position_type">ALLEGRO_VIDEO_POSITION_TYPE</h1> |
270 | <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_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span> | 269 | <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_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span></code></pre></div> |
271 | <span·id="cb3-2"><a·href="#cb3-2"·aria-hidden="true"·tabindex="-1"></a><span·class="kw">typedef</span>·<span·class="kw">enum</span>·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE<span·class="op">;</span></span></code></pre></div> | ||
272 | <p><a | 270 | <p><a |
273 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source | 271 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/allegro5/allegro_video.h#L51">Source |
274 | Code</a></p> | 272 | Code</a></p> |
275 | <p>Used·with·<a | 273 | <p>Used·with·<a |
276 | href="video.html#al_get_video_position">al_get_video_position</a>·to | 274 | href="video.html#al_get_video_position">al_get_video_position</a>·to |
277 | specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and | 275 | specify·which·position·to·retrieve.·If·these·get·out·of·sync,·audio·and |
278 | video·may·be·out·of·sync·in·the·display·of·the·video.</p> | 276 | video·may·be·out·of·sync·in·the·display·of·the·video.</p> |
Offset 286, 86 lines modified | Offset 284, 79 lines modified | ||
286 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that | 284 | <li><p>ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that |
287 | has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL | 285 | has·been·decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL |
288 | if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio | 286 | if·audio·decode·is·driving·the·position,·which·is·common·to·keep·audio |
289 | and·video·in·sync.</p></li> | 287 | and·video·in·sync.</p></li> |
290 | </ul> | 288 | </ul> |
291 | <p>Since:·5.1.11</p> | 289 | <p>Since:·5.1.11</p> |
292 | <h1·id="al_init_video_addon">al_init_video_addon</h1> | 290 | <h1·id="al_init_video_addon">al_init_video_addon</h1> |
293 | <div·class="sourceCode"·id="cb4"><pre·class="sourceCode·c"><code·class="sourceCode·c"><span·id="cb4-1"><a·href="#cb4-1"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">bool</span>·al_init_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 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> |
294 | <span·id="cb4-2"><a·href="#cb4-2"·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> | ||
295 | <p><a | 292 | <p><a |
296 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source | 293 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L268">Source |
297 | Code</a></p> | 294 | Code</a></p> |
298 | <p>Initializes·the·video·addon.</p> | 295 | <p>Initializes·the·video·addon.</p> |
299 | <p>Since:·5.1.12</p> | 296 | <p>Since:·5.1.12</p> |
300 | <p>Examples:</p> | 297 | <p>Examples:</p> |
301 | <ul> | 298 | <ul> |
302 | <li><a | 299 | <li><a |
303 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> | 300 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L114">ex_video.c</a></li> |
304 | </ul> | 301 | </ul> |
305 | <h1 | 302 | <h1 |
306 | 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> |
307 | <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> | 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> |
308 | <span·id="cb5-2"><a·href="#cb5-2"·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> | ||
309 | <p><a | 305 | <p><a |
310 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source | 306 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L290">Source |
311 | Code</a></p> | 307 | Code</a></p> |
312 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns | 308 | <p>Returns·true·if·the·video·addon·is·initialized,·otherwise·returns |
313 | false.</p> | 309 | false.</p> |
314 | <p>Since:·5.2.6</p> | 310 | <p>Since:·5.2.6</p> |
315 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> | 311 | <h1·id="al_shutdown_video_addon">al_shutdown_video_addon</h1> |
316 | <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_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 312 | <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_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
317 | <span·id="cb6-2"><a·href="#cb6-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">void</span>·al_shutdown_video_addon<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
318 | <p><a | 313 | <p><a |
319 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L298">Source | 314 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L298">Source |
320 | Code</a></p> | 315 | Code</a></p> |
321 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program | 316 | <p>Shut·down·the·video·addon.·This·is·done·automatically·at·program |
322 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> | 317 | exit,·but·can·be·called·any·time·the·user·wishes·as·well.</p> |
323 | <p>Since:·5.1.12</p> | 318 | <p>Since:·5.1.12</p> |
324 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> | 319 | <h1·id="al_get_allegro_video_version">al_get_allegro_video_version</h1> |
325 | <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">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span> | 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">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> |
326 | <span·id="cb7-2"><a·href="#cb7-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">uint32_t</span>·al_get_allegro_video_version<span·class="op">(</span><span·class="dt">void</span><span·class="op">)</span></span></code></pre></div> | ||
327 | <p><a | 321 | <p><a |
328 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L311">Source | 322 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L311">Source |
329 | Code</a></p> | 323 | Code</a></p> |
330 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a | 324 | <p>Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as·<a |
331 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> | 325 | href="system.html#al_get_allegro_version">al_get_allegro_version</a>.</p> |
332 | <p>Since:·5.1.12</p> | 326 | <p>Since:·5.1.12</p> |
333 | <h1·id="al_open_video">al_open_video</h1> | 327 | <h1·id="al_open_video">al_open_video</h1> |
334 | <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> | 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> |
335 | <span·id="cb8-2"><a·href="#cb8-2"·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> | ||
336 | <p><a | 329 | <p><a |
337 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L98">Source | 330 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L98">Source |
338 | Code</a></p> | 331 | Code</a></p> |
339 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the | 332 | <p>Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the |
340 | 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> |
341 | <p>Since:·5.1.0</p> | 334 | <p>Since:·5.1.0</p> |
342 | <p>Examples:</p> | 335 | <p>Examples:</p> |
343 | <ul> | 336 | <ul> |
344 | <li><a | 337 | <li><a |
345 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> | 338 | href="https://github.com/liballeg/allegro5/blob/master/examples/ex_video.c#L141">ex_video.c</a></li> |
346 | </ul> | 339 | </ul> |
347 | <h1·id="al_identify_video">al_identify_video</h1> | 340 | <h1·id="al_identify_video">al_identify_video</h1> |
348 | <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> | 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> |
349 | <span·id="cb9-2"><a·href="#cb9-2"·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> | ||
350 | <p><a | 342 | <p><a |
351 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L327">Source | 343 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L327">Source |
352 | Code</a></p> | 344 | Code</a></p> |
353 | <p>This·works·exactly·as·<a | 345 | <p>This·works·exactly·as·<a |
354 | 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 |
355 | specify·the·filename·of·the·file·for·which·to·detect·the·type·and·not·a | 347 | specify·the·filename·of·the·file·for·which·to·detect·the·type·and·not·a |
356 | file·handle.·The·extension,·if·any,·of·the·passed·filename·is·not·taken | 348 | file·handle.·The·extension,·if·any,·of·the·passed·filename·is·not·taken |
357 | into·account·-·only·the·file·contents.</p> | 349 | into·account·-·only·the·file·contents.</p> |
358 | <p>Since:·5.2.8</p> | 350 | <p>Since:·5.2.8</p> |
359 | <p>See·also:·<a | 351 | <p>See·also:·<a |
360 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a | 352 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a |
361 | href="video.html#al_identify_video_f">al_identify_video_f</a></p> | 353 | href="video.html#al_identify_video_f">al_identify_video_f</a></p> |
362 | <h1·id="al_identify_video_f">al_identify_video_f</h1> | 354 | <h1·id="al_identify_video_f">al_identify_video_f</h1> |
363 | <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">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span> | 355 | <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">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span></code></pre></div> |
364 | <span·id="cb10-2"><a·href="#cb10-2"·aria-hidden="true"·tabindex="-1"></a><span·class="dt">char</span>·<span·class="dt">const</span>·<span·class="op">*</span>al_identify_video_f<span·class="op">(</span>ALLEGRO_FILE·<span·class="op">*</span>fp<span·class="op">)</span></span></code></pre></div> | ||
365 | <p><a | 356 | <p><a |
366 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L319">Source | 357 | href="https://github.com/liballeg/allegro5/blob/master/addons/video/video.c#L319">Source |
367 | Code</a></p> | 358 | Code</a></p> |
368 | <p>Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by | 359 | <p>Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by |
369 | reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any | 360 | reading·the·first·few·bytes.·By·default·Allegro·cannot·recognize·any |
370 | file·types,·but·calling·<a | 361 | file·types,·but·calling·<a |
371 | href="video.html#al_init_video_addon">al_init_video_addon</a>·will·add | 362 | href="video.html#al_init_video_addon">al_init_video_addon</a>·will·add |
Offset 374, 120 lines modified | Offset 365, 111 lines modified | ||
374 | type,·including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the | 365 | type,·including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the |
375 | video·type·cannot·be·determined.</p> | 366 | video·type·cannot·be·determined.</p> |
376 | <p>Since:·5.2.8</p> | 367 | <p>Since:·5.2.8</p> |
377 | <p>See·also:·<a | 368 | <p>See·also:·<a |
378 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a | 369 | href="video.html#al_init_video_addon">al_init_video_addon</a>,·<a |
379 | href="video.html#al_identify_video">al_identify_video</a></p> | 370 | href="video.html#al_identify_video">al_identify_video</a></p> |
Max diff block lines reached; 18454/31491 bytes (58.60%) of diff not shown. |
Offset 70, 15 lines modified | Offset 70, 14 lines modified | ||
70 | These·functions·are·declared·in·the·following·header·file.·Link·with | 70 | These·functions·are·declared·in·the·following·header·file.·Link·with |
71 | allegro_video. | 71 | allegro_video. |
72 | ·#include·<allegro5/allegro_video.h> | 72 | ·#include·<allegro5/allegro_video.h> |
73 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·_\x8h_\x8t_\x8t_\x8p_\x8:_\x8/_\x8/_\x8x_\x8i_\x8p_\x8h_\x8._\x8o_\x8r_\x8g_\x8/·for | 73 | Currently·we·have·an·Ogg·backend·(Theora·+·Vorbis).·See·_\x8h_\x8t_\x8t_\x8p_\x8:_\x8/_\x8/_\x8x_\x8i_\x8p_\x8h_\x8._\x8o_\x8r_\x8g_\x8/·for |
74 | installation·instructions,·licensing·information·and·supported·video·formats. | 74 | installation·instructions,·licensing·information·and·supported·video·formats. |
75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 75 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
76 | enum·ALLEGRO_VIDEO_EVENT_TYPE | 76 | enum·ALLEGRO_VIDEO_EVENT_TYPE |
77 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
78 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 77 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
79 | Events·sent·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. | 78 | Events·sent·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e. |
80 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_F\x8FR\x8RA\x8AM\x8ME\x8E_\x8_S\x8SH\x8HO\x8OW\x8W·*\x8**\x8**\x8**\x8**\x8* | 79 | *\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_E\x8EV\x8VE\x8EN\x8NT\x8T_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_F\x8FR\x8RA\x8AM\x8ME\x8E_\x8_S\x8SH\x8HO\x8OW\x8W·*\x8**\x8**\x8**\x8**\x8* |
81 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this | 80 | This·event·is·sent·when·it·is·time·to·show·a·new·frame.·Once·you·receive·this |
82 | event,·you·can·draw·the·current·frame·(as·returned·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e). | 81 | event,·you·can·draw·the·current·frame·(as·returned·by·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e). |
83 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e·will·continue·returning·the·same·frame·until·the·next | 82 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8f_\x8r_\x8a_\x8m_\x8e·will·continue·returning·the·same·frame·until·the·next |
84 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. | 83 | ALLEGRO_EVENT_VIDEO_FRAME_SHOW·is·sent. |
Offset 90, 15 lines modified | Offset 89, 14 lines modified | ||
90 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play | 89 | be·possible·to·seek·to·an·earlier·part·of·the·video·and·set·the·video·to·play |
91 | to·resume·playback. | 90 | to·resume·playback. |
92 | ··user.data1·(ALLEGRO_VIDEO·*) | 91 | ··user.data1·(ALLEGRO_VIDEO·*) |
93 | ······The·video·which·generated·the·event. | 92 | ······The·video·which·generated·the·event. |
94 | Since:·5.1.0 | 93 | Since:·5.1.0 |
95 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_P\x8PO\x8OS\x8SI\x8IT\x8TI\x8IO\x8ON\x8N_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 94 | *\x8**\x8**\x8**\x8**\x8**\x8*·A\x8AL\x8LL\x8LE\x8EG\x8GR\x8RO\x8O_\x8_V\x8VI\x8ID\x8DE\x8EO\x8O_\x8_P\x8PO\x8OS\x8SI\x8IT\x8TI\x8IO\x8ON\x8N_\x8_T\x8TY\x8YP\x8PE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
96 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | 95 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; |
97 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
98 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 96 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
99 | Used·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n·to·specify·which·position·to·retrieve.·If·these | 97 | Used·with·_\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n·to·specify·which·position·to·retrieve.·If·these |
100 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the | 98 | get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the·display·of·the |
101 | video. | 99 | video. |
102 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been | 100 | ····*·ALLEGRO_VIDEO_POSITION_ACTUAL·-·The·amount·of·time·the·video·has·been |
103 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of | 101 | ······playing.·If·the·video·has·audio·then·this·value·can·be·ahead·of |
104 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. | 102 | ······ALLEGRO_VIDEO_POSITION_VIDEO_DECODE·when·video·decoding·lags. |
Offset 108, 160 lines modified | Offset 106, 142 lines modified | ||
108 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been | 106 | ····*·ALLEGRO_VIDEO_POSITION_AUDIO_DECODE·-·The·amount·of·audio·that·has·been |
109 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio | 107 | ······decoded.·This·may·be·the·same·as·ALLEGRO_VIDEO_POSITION_ACTUAL·if·audio |
110 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video | 108 | ······decode·is·driving·the·position,·which·is·common·to·keep·audio·and·video |
111 | ······in·sync. | 109 | ······in·sync. |
112 | Since:·5.1.11 | 110 | Since:·5.1.11 |
113 | *\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* |
114 | bool·al_init_video_addon(void) | 112 | bool·al_init_video_addon(void) |
115 | bool·al_init_video_addon(void) | ||
116 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 113 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
117 | Initializes·the·video·addon. | 114 | Initializes·the·video·addon. |
118 | Since:·5.1.12 | 115 | Since:·5.1.12 |
119 | Examples: | 116 | Examples: |
120 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 117 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
121 | *\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* |
122 | bool·al_is_video_addon_initialized(void) | 119 | bool·al_is_video_addon_initialized(void) |
123 | bool·al_is_video_addon_initialized(void) | ||
124 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 120 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
125 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 121 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
126 | Since:·5.2.6 | 122 | Since:·5.2.6 |
127 | *\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* |
128 | void·al_shutdown_video_addon(void) | 124 | void·al_shutdown_video_addon(void) |
129 | void·al_shutdown_video_addon(void) | ||
130 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 125 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
131 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can | 126 | Shut·down·the·video·addon.·This·is·done·automatically·at·program·exit,·but·can |
132 | be·called·any·time·the·user·wishes·as·well. | 127 | be·called·any·time·the·user·wishes·as·well. |
133 | Since:·5.1.12 | 128 | Since:·5.1.12 |
134 | *\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\x8vi\x8id\x8de\x8eo\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 129 | *\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\x8vi\x8id\x8de\x8eo\x8o_\x8_v\x8ve\x8er\x8rs\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
135 | uint32_t·al_get_allegro_video_version(void) | 130 | uint32_t·al_get_allegro_video_version(void) |
136 | uint32_t·al_get_allegro_video_version(void) | ||
137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 131 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
138 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 132 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
139 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. | 133 | _\x8a_\x8l_\x8__\x8g_\x8e_\x8t_\x8__\x8a_\x8l_\x8l_\x8e_\x8g_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n. |
140 | Since:·5.1.12 | 134 | Since:·5.1.12 |
141 | *\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* |
142 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | 136 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
143 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
144 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 137 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
145 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info | 138 | Reads·a·video·file.·This·does·not·start·streaming·yet·but·reads·the·meta·info |
146 | so·you·can·query·e.g. the·size·or·audio·rate. | 139 | so·you·can·query·e.g. the·size·or·audio·rate. |
147 | Since:·5.1.0 | 140 | Since:·5.1.0 |
148 | Examples: | 141 | Examples: |
149 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 142 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
150 | *\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* |
151 | char·const·*al_identify_video(char·const·*filename) | 144 | char·const·*al_identify_video(char·const·*filename) |
152 | char·const·*al_identify_video(char·const·*filename) | ||
153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 145 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
154 | 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 |
155 | 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, |
156 | 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. |
157 | Since:·5.2.8 | 149 | Since:·5.2.8 |
158 | 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_\x8__\x8f | 150 | 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_\x8__\x8f |
159 | *\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_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* | 151 | *\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_f\x8f·*\x8**\x8**\x8**\x8**\x8**\x8* |
160 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | 152 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) |
161 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | ||
162 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 153 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
163 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading·the | 154 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading·the |
164 | first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but | 155 | first·few·bytes.·By·default·Allegro·cannot·recognize·any·file·types,·but |
165 | calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·will·add·detection·of·the·types·it·can·read. | 156 | calling·_\x8a_\x8l_\x8__\x8i_\x8n_\x8i_\x8t_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8__\x8a_\x8d_\x8d_\x8o_\x8n·will·add·detection·of·the·types·it·can·read. |
166 | Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type, | 157 | Returns·a·pointer·to·a·static·string·with·a·file·extension·for·the·type, |
167 | including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the·video·type | 158 | including·the·leading·dot.·For·example·“.ogv”.·Returns·NULL·if·the·video·type |
168 | cannot·be·determined. | 159 | cannot·be·determined. |
169 | Since:·5.2.8 | 160 | Since:·5.2.8 |
170 | 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 |
171 | *\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* |
172 | void·al_close_video(ALLEGRO_VIDEO·*video) | 163 | void·al_close_video(ALLEGRO_VIDEO·*video) |
173 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
174 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 164 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
175 | 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 |
176 | invalid·after·the·function·returns. | 166 | invalid·after·the·function·returns. |
177 | Since:·5.1.0 | 167 | Since:·5.1.0 |
178 | Examples: | 168 | Examples: |
179 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 169 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
180 | *\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* |
181 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | 171 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
182 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
183 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 172 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
184 | Starts·streaming·the·video·from·the·beginning. | 173 | Starts·streaming·the·video·from·the·beginning. |
185 | Since:·5.1.0 | 174 | Since:·5.1.0 |
186 | Examples: | 175 | Examples: |
187 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 176 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
188 | *\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* |
189 | 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) |
190 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
191 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 179 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
192 | 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. |
193 | Since:·5.1.0 | 181 | Since:·5.1.0 |
194 | *\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* |
195 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | 183 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
196 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
197 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e | 184 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8C_\x8o_\x8d_\x8e |
198 | 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 |
199 | _\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. |
200 | Since:·5.1.0 | 187 | Since:·5.1.0 |
201 | Examples: | 188 | Examples: |
202 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c | 189 | ····*·_\x8e_\x8x_\x8__\x8v_\x8i_\x8d_\x8e_\x8o_\x8._\x8c |
Max diff block lines reached; 4391/11708 bytes (37.50%) of diff not shown. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_AUDIO_DEPTH |
11 | enum·ALLEGRO_AUDIO_DEPTH | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Sample·depth·and·type·as·well·as·signedness. | 13 | Sample·depth·and·type·as·well·as·signedness. |
15 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed | 14 | Mixers·only·use·32\-bit·signed·float·(\-1..+1),·or·16\-bit·signed |
16 | integers. | 15 | integers. |
17 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to | 16 | Signedness·is·determined·by·an·\[lq]unsigned\[rq]·bit\-flag·applied·to |
18 | the·depth·value. | 17 | the·depth·value. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; |
11 | typedef·struct·ALLEGRO_AUDIO_DEVICE·ALLEGRO_AUDIO_DEVICE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·datatype·that·represents·an·audio·device. | 13 | An·opaque·datatype·that·represents·an·audio·device. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_AUDIO_EVENT_TYPE |
11 | enum·ALLEGRO_AUDIO_EVENT_TYPE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or | 13 | Events·sent·by·al_get_audio_stream_event_source(3alleg5)·or |
15 | al_get_audio_recorder_event_source(3alleg5). | 14 | al_get_audio_recorder_event_source(3alleg5). |
16 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT | 15 | .SS·ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT |
17 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. | 16 | Sent·when·a·stream·fragment·is·ready·to·be·filled·in. |
18 | See·al_get_audio_stream_fragment(3alleg5). | 17 | See·al_get_audio_stream_fragment(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) |
11 | #define·ALLEGRO_AUDIO_PAN_NONE······(\-1000.0f) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·special·value·for·the·pan·property·of·sample·instances·and·audio | 13 | A·special·value·for·the·pan·property·of·sample·instances·and·audio |
15 | streams. | 14 | streams. |
16 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, | 15 | Use·this·value·to·disable·panning·on·sample·instances·and·audio·streams, |
17 | and·play·them·without·attentuation·implied·by·panning·support. | 16 | and·play·them·without·attentuation·implied·by·panning·support. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; |
11 | typedef·struct·ALLEGRO_AUDIO_RECORDER·ALLEGRO_AUDIO_RECORDER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·datatype·that·represents·a·recording·device. | 13 | An·opaque·datatype·that·represents·a·recording·device. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.1 | 15 | 5.1.1 |
17 | .RS | 16 | .RS |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; |
11 | typedef·struct·ALLEGRO_AUDIO_RECORDER_EVENT·ALLEGRO_AUDIO_RECORDER_EVENT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Structure·that·holds·the·audio·recorder·event·data. | 13 | Structure·that·holds·the·audio·recorder·event·data. |
15 | Every·event·type·will·contain: | 14 | Every·event·type·will·contain: |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | \&.source:·pointer·to·the·audio·recorder | 16 | \&.source:·pointer·to·the·audio·recorder |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; |
11 | typedef·struct·ALLEGRO_AUDIO_STREAM·ALLEGRO_AUDIO_STREAM; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the | 13 | An·ALLEGRO_AUDIO_STREAM·object·is·used·to·stream·generated·audio·to·the |
15 | sound·device,·in·real\-time. | 14 | sound·device,·in·real\-time. |
16 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of | 15 | This·is·done·by·reading·from·a·buffer,·which·is·split·into·a·number·of |
17 | fragments. | 16 | fragments. |
18 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with | 17 | Whenever·a·fragment·has·finished·playing,·the·user·can·refill·it·with |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; |
11 | typedef·struct·ALLEGRO_BITMAP·ALLEGRO_BITMAP; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Abstract·type·representing·a·bitmap·(2D·image). | 13 | Abstract·type·representing·a·bitmap·(2D·image). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ |
11 | typedef·enum·ALLEGRO_BITMAP_WRAP·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying | 13 | Controls·the·how·the·pixel·color·is·determined·from·a·texture·querying |
15 | the·texture·coordinates·are·outside·the·usual·bounds. | 14 | the·texture·coordinates·are·outside·the·usual·bounds. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. | 16 | ALLEGRO_BITMAP_WRAP_DEFAULT·\-·The·default·behavior. |
18 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives | 17 | This·corresponds·to·ALLEGRO_BITMAP_WRAP_REPEAT·when·using·the·primitives |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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)) | 10 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) |
11 | #define·ALLEGRO_BPM_TO_SECS(x)········(60.0·/·(x)) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Convert·beats·per·minute·to·seconds. | 13 | Convert·beats·per·minute·to·seconds. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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)) | 10 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) |
11 | #define·ALLEGRO_BPS_TO_SECS(x)········(1.0·/·(x)) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Convert·beats·per·second·to·seconds. | 13 | Convert·beats·per·second·to·seconds. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_CHANNEL_CONF |
11 | enum·ALLEGRO_CHANNEL_CONF | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Speaker·configuration·(mono,·stereo,·2.1,·etc). | 13 | Speaker·configuration·(mono,·stereo,·2.1,·etc). |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_CHANNEL_CONF_1 | 15 | ALLEGRO_CHANNEL_CONF_1 |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | ALLEGRO_CHANNEL_CONF_2 | 17 | ALLEGRO_CHANNEL_CONF_2 |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; |
11 | typedef·struct·ALLEGRO_COLOR·ALLEGRO_COLOR; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent | 13 | An·ALLEGRO_COLOR·structure·describes·a·color·in·a·device·independent |
15 | way. | 14 | way. |
16 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to | 15 | Use·al_map_rgb(3alleg5)·et·al.\·and·al_unmap_rgb(3alleg5)·et·al.\·to |
17 | translate·from·and·to·various·color·representations. | 16 | translate·from·and·to·various·color·representations. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; |
11 | typedef·struct·ALLEGRO_COND·ALLEGRO_COND; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·structure·representing·a·condition·variable. | 13 | An·opaque·structure·representing·a·condition·variable. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; |
11 | typedef·struct·ALLEGRO_CONFIG·ALLEGRO_CONFIG; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·abstract·configuration·structure. | 13 | An·abstract·configuration·structure. |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; |
11 | typedef·struct·ALLEGRO_CONFIG_ENTRY·ALLEGRO_CONFIG_ENTRY; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration | 13 | An·opaque·structure·used·for·iterating·across·entries·in·a·configuration |
15 | section. | 14 | section. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) | 16 | al_get_first_config_entry(3alleg5),·al_get_next_config_entry(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; |
11 | typedef·struct·ALLEGRO_CONFIG_SECTION·ALLEGRO_CONFIG_SECTION; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·structure·used·for·iterating·across·sections·in·a | 13 | An·opaque·structure·used·for·iterating·across·sections·in·a |
15 | configuration·structure. | 14 | configuration·structure. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_first_config_section(3alleg5), | 16 | al_get_first_config_section(3alleg5), |
18 | al_get_next_config_section(3alleg5) | 17 | al_get_next_config_section(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; |
11 | typedef·struct·ALLEGRO_DISPLAY·ALLEGRO_DISPLAY; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·type·representing·an·open·display·or·window. | 13 | An·opaque·type·representing·an·open·display·or·window. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·struct·ALLEGRO_DISPLAY_MODE |
11 | typedef·struct·ALLEGRO_DISPLAY_MODE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Used·for·fullscreen·mode·queries. | 13 | Used·for·fullscreen·mode·queries. |
15 | Contains·information·about·a·supported·fullscreen·modes. | 14 | Contains·information·about·a·supported·fullscreen·modes. |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
18 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ | 17 | typedef·struct·ALLEGRO_DISPLAY_MODE·{ |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; |
11 | typedef·union·ALLEGRO_EVENT·ALLEGRO_EVENT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is | 13 | An·ALLEGRO_EVENT·is·a·union·of·all·builtin·event·structures,·i.e.\·it·is |
15 | an·object·large·enough·to·hold·the·data·of·any·event·type. | 14 | an·object·large·enough·to·hold·the·data·of·any·event·type. |
16 | All·events·have·the·following·fields·in·common: | 15 | All·events·have·the·following·fields·in·common: |
17 | .TP | 16 | .TP |
18 | type·(ALLEGRO_EVENT_TYPE) | 17 | type·(ALLEGRO_EVENT_TYPE) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; |
11 | typedef·struct·ALLEGRO_EVENT_QUEUE·ALLEGRO_EVENT_QUEUE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·event·queue·holds·events·that·have·been·generated·by·event·sources | 13 | An·event·queue·holds·events·that·have·been·generated·by·event·sources |
15 | that·are·registered·with·the·queue. | 14 | that·are·registered·with·the·queue. |
16 | Events·are·stored·in·the·order·they·are·generated. | 15 | Events·are·stored·in·the·order·they·are·generated. |
17 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. | 16 | Access·is·in·a·strictly·FIFO·(first\-in\-first\-out)·order. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; |
11 | typedef·struct·ALLEGRO_EVENT_SOURCE·ALLEGRO_EVENT_SOURCE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·event·source·is·any·object·which·can·generate·events. | 13 | An·event·source·is·any·object·which·can·generate·events. |
15 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the | 14 | For·example,·an·ALLEGRO_DISPLAY·can·generate·events,·and·you·can·get·the |
16 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with | 15 | ALLEGRO_EVENT_SOURCE·pointer·from·an·ALLEGRO_DISPLAY·with |
17 | al_get_display_event_source(3alleg5). | 16 | al_get_display_event_source(3alleg5). |
18 | .PP | 17 | .PP |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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; | 10 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; |
11 | typedef·unsigned·int·ALLEGRO_EVENT_TYPE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·integer·used·to·distinguish·between·different·types·of·events. | 13 | An·integer·used·to·distinguish·between·different·types·of·events. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), | 15 | ALLEGRO_EVENT(3alleg5),·ALLEGRO_GET_EVENT_TYPE(3alleg5), |
17 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) | 16 | ALLEGRO_EVENT_TYPE_IS_USER(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) |
11 | #define·ALLEGRO_EVENT_TYPE_IS_USER(t)········((t)·>=·512) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event | 13 | A·macro·which·evaluates·to·true·if·the·event·type·is·not·a·builtin·event |
15 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). | 14 | type,·i.e.\·one·of·those·described·in·ALLEGRO_EVENT_TYPE(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; |
11 | typedef·struct·ALLEGRO_FILE·ALLEGRO_FILE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·object·representing·an·open·file. | 13 | An·opaque·object·representing·an·open·file. |
15 | This·could·be·a·real·file·on·disk·or·a·virtual·file. | 14 | This·could·be·a·real·file·on·disk·or·a·virtual·file. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; |
11 | typedef·struct·ALLEGRO_FILECHOOSER·ALLEGRO_FILECHOOSER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Opaque·handle·to·a·native·file·dialog. | 13 | Opaque·handle·to·a·native·file·dialog. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·struct·ALLEGRO_FILE_INTERFACE |
11 | typedef·struct·ALLEGRO_FILE_INTERFACE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·structure·containing·function·pointers·to·handle·a·type·of | 13 | A·structure·containing·function·pointers·to·handle·a·type·of |
15 | \[lq]file\[rq],·real·or·virtual. | 14 | \[lq]file\[rq],·real·or·virtual. |
16 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). | 15 | See·the·full·discussion·in·al_set_new_file_interface(3alleg5). |
17 | .PP | 16 | .PP |
18 | The·fields·are: | 17 | The·fields·are: |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_FILE_MODE |
11 | typedef·enum·ALLEGRO_FILE_MODE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Filesystem·modes/types | 13 | Filesystem·modes/types |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_FILEMODE_READ·\-·Readable | 15 | ALLEGRO_FILEMODE_READ·\-·Readable |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | ALLEGRO_FILEMODE_WRITE·\-·Writable | 17 | ALLEGRO_FILEMODE_WRITE·\-·Writable |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; |
11 | typedef·struct·ALLEGRO_FONT·ALLEGRO_FONT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·handle·identifying·any·kind·of·font. | 13 | A·handle·identifying·any·kind·of·font. |
15 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports | 14 | Usually·you·will·create·it·with·al_load_font(3alleg5)·which·supports |
16 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. | 15 | loading·all·kinds·of·TrueType·fonts·supported·by·the·FreeType·library. |
17 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded | 16 | If·you·instead·pass·the·filename·of·a·bitmap·file,·it·will·be·loaded |
18 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font | 17 | with·al_load_bitmap(3alleg5)·and·a·font·in·Allegro\[cq]s·bitmap·font |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ |
11 | typedef·enum·ALLEGRO_FOR_EACH_FS_ENTRY_RESULT·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for | 13 | Return·values·for·the·callbacks·of·al_for_each_fs_entry(3alleg5)·and·for |
15 | that·function·itself. | 14 | that·function·itself. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. | 16 | ALLEGRO_FOR_EACH_FS_ENTRY_ERROR·\-·An·error·ocurred. |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; |
11 | typedef·struct·ALLEGRO_FS_ENTRY·ALLEGRO_FS_ENTRY; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Opaque·filesystem·entry·object. | 13 | Opaque·filesystem·entry·object. |
15 | Represents·a·file·or·a·directory·(check·with | 14 | Represents·a·file·or·a·directory·(check·with |
16 | al_get_fs_entry_mode(3alleg5)). | 15 | al_get_fs_entry_mode(3alleg5)). |
17 | There·are·no·user·accessible·member·variables. | 16 | There·are·no·user·accessible·member·variables. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; |
11 | typedef·struct·ALLEGRO_FS_INTERFACE·ALLEGRO_FS_INTERFACE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | The·available·functions·you·can·provide·for·a·filesystem. | 13 | The·available·functions·you·can·provide·for·a·filesystem. |
15 | They·are: | 14 | They·are: |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
18 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); | 17 | ···ALLEGRO_FS_ENTRY·*··fs_create_entry···(const·char·*path); |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) |
11 | #define·ALLEGRO_GET_EVENT_TYPE(a,·b,·c,·d)···AL_ID(a,·b,·c,·d) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. | 13 | Make·an·event·type·identifier,·which·is·a·32\-bit·integer. |
15 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit | 14 | Usually,·but·not·necessarily,·this·will·be·made·from·four·8\-bit |
16 | character·codes,·for·example: | 15 | character·codes,·for·example: |
17 | .IP | 16 | .IP |
18 | .EX | 17 | .EX |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; |
11 | typedef·struct·ALLEGRO_GLYPH·ALLEGRO_GLYPH; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·structure·containing·the·properties·of·a·character·in·a·font. | 13 | A·structure·containing·the·properties·of·a·character·in·a·font. |
15 | .IP | 14 | .IP |
16 | .EX | 15 | .EX |
17 | typedef·struct·ALLEGRO_GLYPH·{ | 16 | typedef·struct·ALLEGRO_GLYPH·{ |
18 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on | 17 | ···ALLEGRO_BITMAP·*bitmap;···//·the·bitmap·the·character·is·on |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; |
11 | typedef·struct·ALLEGRO_HAPTIC·ALLEGRO_HAPTIC; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports | 13 | This·is·an·abstract·data·type·representing·a·haptic·device·that·supports |
15 | force·feedback·or·vibration. | 14 | force·feedback·or·vibration. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.8 | 16 | 5.1.8 |
18 | .RS | 17 | .RS |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_HAPTIC_CONSTANTS |
11 | enum·ALLEGRO_HAPTIC_CONSTANTS | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and | 13 | This·enum·contains·flags·that·are·used·to·define·haptic·effects·and |
15 | capabilities. | 14 | capabilities. |
16 | If·the·flag·is·set·in·the·return·value·of | 15 | If·the·flag·is·set·in·the·return·value·of |
17 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the | 16 | al_get_haptic_capabilities(3alleg5),·it·means·the·device·supports·the |
18 | given·effect. | 17 | given·effect. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | struct·ALLEGRO_HAPTIC_EFFECT |
11 | struct·ALLEGRO_HAPTIC_EFFECT | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·struct·models·a·particular·haptic·or·vibration·effect. | 13 | This·struct·models·a·particular·haptic·or·vibration·effect. |
15 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device | 14 | It·needs·to·be·filled·in·correctly·and·uploaded·to·a·haptic·device |
16 | before·the·device·can·play·it·back. | 15 | before·the·device·can·play·it·back. |
17 | .PP | 16 | .PP |
18 | \f[I]Fields:\f[R] | 17 | \f[I]Fields:\f[R] |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; |
11 | typedef·struct·ALLEGRO_HAPTIC_EFFECT_ID·ALLEGRO_HAPTIC_EFFECT_ID; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect | 13 | This·struct·is·used·as·a·handle·to·control·playback·of·a·haptic·effect |
15 | and·should·be·considered·opaque. | 14 | and·should·be·considered·opaque. |
16 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of | 15 | Its·implementation·is·visible·merely·to·allow·allocation·by·the·users·of |
17 | the·Allegro·library. | 16 | the·Allegro·library. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; |
11 | typedef·struct·ALLEGRO_INDEX_BUFFER·ALLEGRO_INDEX_BUFFER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a | 13 | A·GPU·index·buffer·that·you·can·use·to·store·indices·of·vertices·in·a |
15 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every | 14 | vertex·buffer·on·the·GPU·instead·of·uploading·them·afresh·during·every |
16 | drawing·operation. | 15 | drawing·operation. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.8 | 17 | 5.1.8 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_JOYFLAGS |
11 | enum·ALLEGRO_JOYFLAGS | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input | 14 | ALLEGRO_JOYFLAG_DIGITAL·\-·the·stick·provides·digital·input |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input | 16 | ALLEGRO_JOYFLAG_ANALOGUE·\-·the·stick·provides·analogue·input |
18 | .PP | 17 | .PP |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; |
11 | typedef·struct·ALLEGRO_JOYSTICK·ALLEGRO_JOYSTICK; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·an·abstract·data·type·representing·a·physical·joystick. | 13 | This·is·an·abstract·data·type·representing·a·physical·joystick. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_joystick(3alleg5) | 15 | al_get_joystick(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; |
11 | typedef·struct·ALLEGRO_JOYSTICK_STATE·ALLEGRO_JOYSTICK_STATE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
15 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. | 14 | joystick\[cq]s·axes·and·buttons·at·a·particular·instant. |
16 | All·fields·public·and·read\-only. | 15 | All·fields·public·and·read\-only. |
17 | .IP | 16 | .IP |
18 | .EX | 17 | .EX |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; |
11 | typedef·struct·ALLEGRO_KEYBOARD_STATE·ALLEGRO_KEYBOARD_STATE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a | 13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a |
15 | keyboard\[cq]s·state·at·a·particular·instant. | 14 | keyboard\[cq]s·state·at·a·particular·instant. |
16 | It·contains·the·following·publically·readable·fields: | 15 | It·contains·the·following·publically·readable·fields: |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the | 17 | display·\-·points·to·the·display·that·had·keyboard·focus·at·the·time·the |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_LINE_CAP |
11 | typedef·enum·ALLEGRO_LINE_CAP | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_LINE_CAP_NONE | 14 | ALLEGRO_LINE_CAP_NONE |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_LINE_CAP_SQUARE | 16 | ALLEGRO_LINE_CAP_SQUARE |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_LINE_JOIN |
11 | typedef·enum·ALLEGRO_LINE_JOIN | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_LINE_JOIN_NONE | 14 | ALLEGRO_LINE_JOIN_NONE |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_LINE_JOIN_BEVEL | 16 | ALLEGRO_LINE_JOIN_BEVEL |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; |
11 | typedef·struct·ALLEGRO_LOCKED_REGION·ALLEGRO_LOCKED_REGION; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to | 13 | Users·who·wish·to·manually·edit·or·read·from·a·bitmap·are·required·to |
15 | lock·it·first. | 14 | lock·it·first. |
16 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the | 15 | The·ALLEGRO_LOCKED_REGION·structure·represents·the·locked·region·of·the |
17 | bitmap. | 16 | bitmap. |
18 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. | 17 | This·call·will·work·with·any·bitmap,·including·memory·bitmaps. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; |
11 | typedef·struct·ALLEGRO_MEMORY_INTERFACE·ALLEGRO_MEMORY_INTERFACE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·structure·has·the·following·fields. | 13 | This·structure·has·the·following·fields. |
15 | .IP | 14 | .IP |
16 | .EX | 15 | .EX |
17 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); | 16 | void·*(*mi_malloc)(size_t·n,·int·line,·const·char·*file,·const·char·*func); |
18 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); | 17 | void·(*mi_free)(void·*ptr,·int·line,·const·char·*file,·const·char·*func); |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; |
11 | typedef·struct·ALLEGRO_MENU·ALLEGRO_MENU; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. | 13 | An·opaque·data·type·that·represents·a·menu·that·contains·menu·items. |
15 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. | 14 | Each·of·the·menu·items·may·optionally·include·a·sub\-menu. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·struct·ALLEGRO_MENU_INFO·{ |
11 | typedef·struct·ALLEGRO_MENU_INFO·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·structure·that·defines·how·to·create·a·complete·menu·system. | 13 | A·structure·that·defines·how·to·create·a·complete·menu·system. |
15 | For·standard·menu·items,·the·following·format·is·used: | 14 | For·standard·menu·items,·the·following·format·is·used: |
16 | .IP | 15 | .IP |
17 | .EX | 16 | .EX |
18 | ···{·caption,·id,·flags,·icon·} | 17 | ···{·caption,·id,·flags,·icon·} |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; |
11 | typedef·struct·ALLEGRO_MIXER·ALLEGRO_MIXER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. | 13 | A·mixer·mixes·together·attached·streams·into·a·single·buffer. |
15 | In·the·process,·it·converts·channel·configurations,·sample·frequencies | 14 | In·the·process,·it·converts·channel·configurations,·sample·frequencies |
16 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams | 15 | and·audio·depths·of·the·attached·sample·instances·and·audio·streams |
17 | accordingly. | 16 | accordingly. |
18 | You·can·control·the·quality·of·this·conversion·using | 17 | You·can·control·the·quality·of·this·conversion·using |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_MIXER_QUALITY |
11 | enum·ALLEGRO_MIXER_QUALITY | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling | 14 | ALLEGRO_MIXER_QUALITY_POINT·\-·point·sampling |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation | 16 | ALLEGRO_MIXER_QUALITY_LINEAR·\-·linear·interpolation |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·struct·ALLEGRO_MONITOR_INFO |
11 | typedef·struct·ALLEGRO_MONITOR_INFO | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. | 13 | Describes·a·monitor\[cq]s·size·and·position·relative·to·other·monitors. |
15 | x1,·y1·will·be·0,·0·on·the·primary·display. | 14 | x1,·y1·will·be·0,·0·on·the·primary·display. |
16 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above | 15 | Other·monitors·can·have·negative·values·if·they·are·to·the·left·or·above |
17 | the·primary·display. | 16 | the·primary·display. |
18 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that | 17 | x2,·y2·are·the·coordinates·one·beyond·the·bottom·right·pixel,·so·that |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE |
11 | typedef·enum·ALLEGRO_MOUSE_EMULATION_MODE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Type·of·mouse·emulation·to·apply. | 13 | Type·of·mouse·emulation·to·apply. |
15 | .TP | 14 | .TP |
16 | ALLEGRO_MOUSE_EMULATION_NONE | 15 | ALLEGRO_MOUSE_EMULATION_NONE |
17 | Disables·mouse·emulation. | 16 | Disables·mouse·emulation. |
18 | .TP | 17 | .TP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; |
11 | typedef·struct·ALLEGRO_MOUSE_STATE·ALLEGRO_MOUSE_STATE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Public·fields·(read·only): | 13 | Public·fields·(read·only): |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | x·\-·mouse·x·position | 15 | x·\-·mouse·x·position |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | y·\-·mouse·y·position | 17 | y·\-·mouse·y·position |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) |
11 | #define·ALLEGRO_MSECS_TO_SECS(x)······((x)·/·1000.0) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Convert·milliseconds·to·seconds. | 13 | Convert·milliseconds·to·seconds. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; |
11 | typedef·struct·ALLEGRO_MUTEX·ALLEGRO_MUTEX; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·structure·representing·a·mutex. | 13 | An·opaque·structure·representing·a·mutex. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 |
11 | #define·ALLEGRO_NEW_WINDOW_TITLE_MAX_SIZE·255 | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·the·maximum·size·of·the·title·that·can·be·set·with | 13 | This·is·the·maximum·size·of·the·title·that·can·be·set·with |
15 | al_set_new_window_title(3alleg5). | 14 | al_set_new_window_title(3alleg5). |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_new_window_title(3alleg5) | 16 | al_set_new_window_title(3alleg5) |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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 | 10 | #define·ALLEGRO_PI········3.14159265358979323846 |
11 | #define·ALLEGRO_PI········3.14159265358979323846 | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but | 13 | C99·compilers·have·no·predefined·value·like·M_PI·for·the·constant·π,·but |
15 | you·can·use·this·one·instead. | 14 | you·can·use·this·one·instead. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_PIXEL_FORMAT |
11 | typedef·enum·ALLEGRO_PIXEL_FORMAT | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Pixel·formats. | 13 | Pixel·formats. |
15 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in | 14 | Each·pixel·format·specifies·the·exact·size·and·bit·layout·of·a·pixel·in |
16 | memory. | 15 | memory. |
17 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a | 16 | Components·are·specified·from·high·bits·to·low·bits,·so·for·example·a |
18 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. | 17 | fully·opaque·red·pixel·in·ARGB_8888·format·is·0xFFFF0000. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_PLAYMODE |
11 | enum·ALLEGRO_PLAYMODE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Sample·and·stream·playback·mode. | 13 | Sample·and·stream·playback·mode. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to | 15 | ALLEGRO_PLAYMODE_ONCE·\-·the·sample/stream·is·played·from·start·to |
17 | finish·an·then·it·stops. | 16 | finish·an·then·it·stops. |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_PRIM_ATTR |
11 | typedef·enum·ALLEGRO_PRIM_ATTR | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. | 13 | Enumerates·the·types·of·vertex·attributes·that·a·custom·vertex·may·have. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in | 15 | ALLEGRO_PRIM_POSITION·\-·Position·information,·can·be·stored·only·in |
17 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. | 16 | ALLEGRO_PRIM_SHORT_2,·ALLEGRO_PRIM_FLOAT_2·and·ALLEGRO_PRIM_FLOAT_3. |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS |
11 | typedef·enum·ALLEGRO_PRIM_BUFFER_FLAGS | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. | 13 | Flags·to·specify·how·to·create·a·vertex·or·an·index·buffer. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is | 15 | ALLEGRO_PRIM_BUFFER_STREAM·\-·Hints·to·the·driver·that·the·buffer·is |
17 | written·to·often,·but·used·only·a·few·times·per·frame | 16 | written·to·often,·but·used·only·a·few·times·per·frame |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | #define·ALLEGRO_PRIM_QUALITY·10 |
11 | #define·ALLEGRO_PRIM_QUALITY·10 | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Controls·the·quality·of·the·approximation·of·curved·primitives | 13 | Controls·the·quality·of·the·approximation·of·curved·primitives |
15 | (e.g.\·circles). | 14 | (e.g.\·circles). |
16 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of | 15 | Curved·primitives·are·drawn·by·approximating·them·with·a·sequence·of |
17 | line·segments. | 16 | line·segments. |
18 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a | 17 | By·default,·this·roughly·corresponds·to·error·of·less·than·half·of·a |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_PRIM_STORAGE |
11 | typedef·enum·ALLEGRO_PRIM_STORAGE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be | 13 | Enumerates·the·types·of·storage·an·attribute·of·a·custom·vertex·may·be |
15 | stored·in. | 14 | stored·in. |
16 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and | 15 | Many·of·these·can·only·be·used·for·ALLEGRO_PRIM_USER_ATTR·attributes·and |
17 | can·only·be·accessed·via·shaders. | 16 | can·only·be·accessed·via·shaders. |
18 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets | 17 | Usually·no·matter·what·the·storage·is·specified·the·attribute·gets |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_PRIM_TYPE |
11 | typedef·enum·ALLEGRO_PRIM_TYPE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Enumerates·the·types·of·primitives·this·addon·can·draw. | 13 | Enumerates·the·types·of·primitives·this·addon·can·draw. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point | 15 | ALLEGRO_PRIM_POINT_LIST·\-·A·list·of·points,·each·vertex·defines·a·point |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices | 17 | ALLEGRO_PRIM_LINE_LIST·\-·A·list·of·lines,·sequential·pairs·of·vertices |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ |
11 | typedef·enum·ALLEGRO_RENDER_FUNCTION·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Possible·functions·are: | 13 | Possible·functions·are: |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_RENDER_NEVER | 15 | ALLEGRO_RENDER_NEVER |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | ALLEGRO_RENDER_ALWAYS | 17 | ALLEGRO_RENDER_ALWAYS |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·enum·ALLEGRO_RENDER_STATE·{ |
11 | typedef·enum·ALLEGRO_RENDER_STATE·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Possible·render·states·which·can·be·set·with | 13 | Possible·render·states·which·can·be·set·with |
15 | al_set_render_state(3alleg5): | 14 | al_set_render_state(3alleg5): |
16 | .TP | 15 | .TP |
17 | ALLEGRO_ALPHA_TEST | 16 | ALLEGRO_ALPHA_TEST |
18 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and | 17 | If·this·is·set·to·1,·the·values·of·ALLEGRO_ALPHA_FUNCTION·and |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; |
11 | typedef·struct·ALLEGRO_SAMPLE·ALLEGRO_SAMPLE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing | 13 | An·ALLEGRO_SAMPLE·object·stores·the·data·necessary·for·playing |
15 | pre\-defined·digital·audio. | 14 | pre\-defined·digital·audio. |
16 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its | 15 | It·holds·a·user\-specified·PCM·data·buffer·and·information·about·its |
17 | format·(data·length,·depth,·frequency,·channel·configuration). | 16 | format·(data·length,·depth,·frequency,·channel·configuration). |
18 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times | 17 | You·can·have·the·same·ALLEGRO_SAMPLE·playing·multiple·times |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; |
11 | typedef·struct·ALLEGRO_SAMPLE_ID·ALLEGRO_SAMPLE_ID; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via | 13 | An·ALLEGRO_SAMPLE_ID·represents·a·sample·being·played·via |
15 | al_play_sample(3alleg5). | 14 | al_play_sample(3alleg5). |
16 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). | 15 | It·can·be·used·to·later·stop·the·sample·with·al_stop_sample(3alleg5). |
17 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using | 16 | The·underlying·ALLEGRO_SAMPLE_INSTANCE·can·be·extracted·using |
18 | al_lock_sample_id(3alleg5). | 17 | al_lock_sample_id(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; |
11 | typedef·struct·ALLEGRO_SAMPLE_INSTANCE·ALLEGRO_SAMPLE_INSTANCE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a | 13 | An·ALLEGRO_SAMPLE_INSTANCE·object·represents·a·playable·instance·of·a |
15 | predefined·sound·effect. | 14 | predefined·sound·effect. |
16 | It·holds·information·about·how·the·effect·should·be·played:·These | 15 | It·holds·information·about·how·the·effect·should·be·played:·These |
17 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, | 16 | playback·parameters·consist·of·the·looping·mode,·loop·start/end·points, |
18 | playing·position,·speed,·gain,·pan·and·the·playmode. | 17 | playing·position,·speed,·gain,·pan·and·the·playmode. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | typedef·enum·ALLEGRO_SEEK |
11 | typedef·enum·ALLEGRO_SEEK | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | .IP·\[bu]·2 | 13 | .IP·\[bu]·2 |
15 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file | 14 | ALLEGRO_SEEK_SET·\-·seek·relative·to·beginning·of·file |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position | 16 | ALLEGRO_SEEK_CUR·\-·seek·relative·to·current·file·position |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_SHADER·\-·Allegro·5·API | 5 | ALLEGRO_SHADER·\-·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_SHADER·ALLEGRO_SHADER; | 10 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; |
11 | typedef·struct·ALLEGRO_SHADER·ALLEGRO_SHADER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. | 13 | An·ALLEGRO_SHADER(3alleg5)·is·a·program·that·runs·on·the·GPU. |
15 | It·combines·both·a·vertex·and·a·pixel·shader. | 14 | It·combines·both·a·vertex·and·a·pixel·shader. |
16 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a | 15 | (In·OpenGL·terms,·an·ALLEGRO_SHADER(3alleg5)·is·actually·a |
17 | \f[I]program\f[R]·which·has·one·or·more·\f[I]shaders\f[R]·attached. | 16 | \f[I]program\f[R]·which·has·one·or·more·\f[I]shaders\f[R]·attached. |
18 | This·can·be·confusing.) | 17 | This·can·be·confusing.) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_SHADER_PLATFORM·\-·Allegro·5·API | 5 | ALLEGRO_SHADER_PLATFORM·\-·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_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | 10 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; |
11 | typedef·enum·ALLEGRO_SHADER_PLATFORM·ALLEGRO_SHADER_PLATFORM; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on | 13 | The·underlying·platform·which·the·ALLEGRO_SHADER(3alleg5)·is·built·on |
15 | top·of,·which·dictates·the·language·used·to·program·the·shader. | 14 | top·of,·which·dictates·the·language·used·to·program·the·shader. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_SHADER_AUTO·\-·Pick·a·platform·automatically·given·the·current | 16 | ALLEGRO_SHADER_AUTO·\-·Pick·a·platform·automatically·given·the·current |
18 | display·flags. | 17 | display·flags. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
5 | ALLEGRO_SHADER_TYPE·\-·Allegro·5·API | 5 | ALLEGRO_SHADER_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·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | 10 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; |
11 | typedef·enum·ALLEGRO_SHADER_TYPE·ALLEGRO_SHADER_TYPE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Used·with·al_attach_shader_source(3alleg5)·and | 13 | Used·with·al_attach_shader_source(3alleg5)·and |
15 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the | 14 | al_attach_shader_source_file(3alleg5)·to·specify·how·to·interpret·the |
16 | attached·source. | 15 | attached·source. |
17 | .TP | 16 | .TP |
18 | ALLEGRO_VERTEX_SHADER | 17 | ALLEGRO_VERTEX_SHADER |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 9 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; |
10 | typedef·struct·ALLEGRO_STATE·ALLEGRO_STATE; | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Opaque·type·which·is·passed·to | 12 | Opaque·type·which·is·passed·to |
14 | al_store_state(3alleg5)/al_restore_state(3alleg5). | 13 | al_store_state(3alleg5)/al_restore_state(3alleg5). |
15 | .PP | 14 | .PP |
16 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: | 15 | The·various·state·kept·internally·by·Allegro·can·be·displayed·like·this: |
17 | .IP | 16 | .IP |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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 | 9 | typedef·enum·ALLEGRO_STATE_FLAGS |
10 | typedef·enum·ALLEGRO_STATE_FLAGS | ||
11 | .EE | 10 | .EE |
12 | .SH·DESCRIPTION | 11 | .SH·DESCRIPTION |
13 | Flags·which·can·be·passed·to | 12 | Flags·which·can·be·passed·to |
14 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. | 13 | al_store_state(3alleg5)/al_restore_state(3alleg5)·as·bit·combinations. |
15 | See·al_store_state(3alleg5)·for·the·list·of·flags. | 14 | See·al_store_state(3alleg5)·for·the·list·of·flags. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | enum·ALLEGRO_SYSTEM_ID·{ |
11 | enum·ALLEGRO_SYSTEM_ID·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | The·system·Allegro·is·running·on. | 13 | The·system·Allegro·is·running·on. |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. | 15 | ALLEGRO_SYSTEM_ID_UNKNOWN·\-·Unknown·system. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx | 17 | ALLEGRO_SYSTEM_ID_XGLX·\-·Xglx |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; |
11 | typedef·struct·ALLEGRO_TEXTLOG·ALLEGRO_TEXTLOG; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Opaque·handle·to·a·text·log·window. | 13 | Opaque·handle·to·a·text·log·window. |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; |
11 | typedef·struct·ALLEGRO_THREAD·ALLEGRO_THREAD; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·structure·representing·a·thread. | 13 | An·opaque·structure·representing·a·thread. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; |
11 | typedef·struct·ALLEGRO_TIMEOUT·ALLEGRO_TIMEOUT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Represent·a·timeout·value. | 13 | Represent·a·timeout·value. |
15 | The·size·of·the·structure·is·known·so·it·can·be·statically·allocated. | 14 | The·size·of·the·structure·is·known·so·it·can·be·statically·allocated. |
16 | The·contents·are·private. | 15 | The·contents·are·private. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_timeout(3alleg5) | 17 | al_init_timeout(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; |
11 | typedef·struct·ALLEGRO_TIMER·ALLEGRO_TIMER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·an·abstract·data·type·representing·a·timer·object. | 13 | This·is·an·abstract·data·type·representing·a·timer·object. |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; |
11 | typedef·struct·ALLEGRO_TOUCH_INPUT·ALLEGRO_TOUCH_INPUT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. | 13 | An·abstract·data·type·representing·a·physical·touch·screen·or·touch·pad. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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 | 10 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 |
11 | #define·ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT········16 | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. | 13 | The·maximum·amount·of·simultaneous·touches·that·can·be·detected. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; |
11 | typedef·struct·ALLEGRO_TOUCH_INPUT_STATE·ALLEGRO_TOUCH_INPUT_STATE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at | 13 | This·is·a·structure·that·holds·a·snapshot·of·all·simultaneous·touches·at |
15 | a·particular·instant. | 14 | a·particular·instant. |
16 | .PP | 15 | .PP |
17 | Public·fields·(read·only): | 16 | Public·fields·(read·only): |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; |
11 | typedef·struct·ALLEGRO_TOUCH_STATE·ALLEGRO_TOUCH_STATE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch | 13 | This·is·a·structure·that·is·used·to·hold·a·\[lq]snapshot\[rq]·of·a·touch |
15 | at·a·particular·instant. | 14 | at·a·particular·instant. |
16 | .PP | 15 | .PP |
17 | Public·fields·(read·only): | 16 | Public·fields·(read·only): |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; |
11 | typedef·struct·ALLEGRO_TRANSFORM·ALLEGRO_TRANSFORM; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Defines·the·generic·transformation·type,·a·4x4·matrix. | 13 | Defines·the·generic·transformation·type,·a·4x4·matrix. |
15 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top | 14 | 2D·transforms·use·only·a·small·subsection·of·this·matrix,·namely·the·top |
16 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. | 15 | left·2x2·matrix,·and·the·right·most·2x1·matrix,·for·a·total·of·6·values. |
17 | .PP | 16 | .PP |
18 | \f[I]Fields:\f[R] | 17 | \f[I]Fields:\f[R] |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) |
11 | #define·ALLEGRO_USECS_TO_SECS(x)······((x)·/·1000000.0) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Convert·microseconds·to·seconds. | 13 | Convert·microseconds·to·seconds. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; |
11 | typedef·struct·ALLEGRO_USER_EVENT·ALLEGRO_USER_EVENT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·event·structure·that·can·be·emitted·by·user·event·sources. | 13 | An·event·structure·that·can·be·emitted·by·user·event·sources. |
15 | These·are·the·public·fields: | 14 | These·are·the·public·fields: |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_EVENT_SOURCE·*source; | 16 | ALLEGRO_EVENT_SOURCE·*source; |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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; | 10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; |
11 | typedef·struct·_al_tagbstring·ALLEGRO_USTR; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | An·opaque·type·representing·a·string. | 13 | An·opaque·type·representing·a·string. |
15 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be | 14 | ALLEGRO_USTRs·normally·contain·UTF\-8·encoded·strings,·but·they·may·be |
16 | used·to·hold·any·byte·sequences,·including·NULs. | 15 | used·to·hold·any·byte·sequences,·including·NULs. |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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; | 10 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; |
11 | typedef·struct·_al_tagbstring·ALLEGRO_USTR_INFO; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) | 13 | A·type·that·holds·additional·information·for·an·ALLEGRO_USTR(3alleg5) |
15 | that·references·an·external·memory·buffer. | 14 | that·references·an·external·memory·buffer. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_ref_cstr(3alleg5),·al_ref_buffer(3alleg5)·and·al_ref_ustr(3alleg5). | 16 | al_ref_cstr(3alleg5),·al_ref_buffer(3alleg5)·and·al_ref_ustr(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; |
11 | typedef·struct·ALLEGRO_VERTEX·ALLEGRO_VERTEX; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture | 13 | Defines·the·generic·vertex·type,·with·a·3D·position,·color·and·texture |
15 | coordinates·for·a·single·texture. | 14 | coordinates·for·a·single·texture. |
16 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render | 15 | Note·that·at·this·time,·the·software·driver·for·this·addon·cannot·render |
17 | 3D·primitives. | 16 | 3D·primitives. |
18 | If·you·want·a·2D·only·primitive,·set·z·to·0. | 17 | If·you·want·a·2D·only·primitive,·set·z·to·0. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; |
11 | typedef·struct·ALLEGRO_VERTEX_BUFFER·ALLEGRO_VERTEX_BUFFER; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU | 13 | A·GPU·vertex·buffer·that·you·can·use·to·store·vertices·on·the·GPU |
15 | instead·of·uploading·them·afresh·during·every·drawing·operation. | 14 | instead·of·uploading·them·afresh·during·every·drawing·operation. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.3 | 16 | 5.1.3 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 |
11 | #define·ALLEGRO_VERTEX_CACHE_SIZE·256 | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software | 13 | Defines·the·size·of·the·transformation·vertex·cache·for·the·software |
15 | renderer. | 14 | renderer. |
16 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering | 15 | If·you·pass·less·than·this·many·vertices·to·the·primitive·rendering |
17 | functions·you·will·get·a·speed·boost. | 16 | functions·you·will·get·a·speed·boost. |
18 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the | 17 | This·also·defines·the·size·of·the·cache·vertex·buffer,·used·for·the |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; |
11 | typedef·struct·ALLEGRO_VERTEX_DECL·ALLEGRO_VERTEX_DECL; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·vertex·declaration. | 13 | A·vertex·declaration. |
15 | This·opaque·structure·is·responsible·for·describing·the·format·and | 14 | This·opaque·structure·is·responsible·for·describing·the·format·and |
16 | layout·of·a·user·defined·custom·vertex. | 15 | layout·of·a·user·defined·custom·vertex. |
17 | It·is·created·and·destroyed·by·specialized·functions. | 16 | It·is·created·and·destroyed·by·specialized·functions. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; |
11 | typedef·struct·ALLEGRO_VERTEX_ELEMENT·ALLEGRO_VERTEX_ELEMENT; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·small·structure·describing·a·certain·element·of·a·vertex. | 13 | A·small·structure·describing·a·certain·element·of·a·vertex. |
15 | E.g. | 14 | E.g. |
16 | the·position·of·the·vertex,·or·its·color. | 15 | the·position·of·the·vertex,·or·its·color. |
17 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function | 16 | These·structures·are·used·by·the·al_create_vertex_decl(3alleg5)·function |
18 | to·create·the·vertex·declaration. | 17 | to·create·the·vertex·declaration. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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 | 10 | enum·ALLEGRO_VIDEO_EVENT_TYPE |
11 | enum·ALLEGRO_VIDEO_EVENT_TYPE | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Events·sent·by·al_get_video_event_source(3alleg5). | 13 | Events·sent·by·al_get_video_event_source(3alleg5). |
15 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW | 14 | .SS·ALLEGRO_EVENT_VIDEO_FRAME_SHOW |
16 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. | 15 | This·event·is·sent·when·it·is·time·to·show·a·new·frame. |
17 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned | 16 | Once·you·receive·this·event,·you·can·draw·the·current·frame·(as·returned |
18 | by·al_get_video_frame(3alleg5)). | 17 | by·al_get_video_frame(3alleg5)). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; |
11 | typedef·enum·ALLEGRO_VIDEO_POSITION_TYPE·ALLEGRO_VIDEO_POSITION_TYPE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to | 13 | Used·with·al_get_video_position(3alleg5)·to·specify·which·position·to |
15 | retrieve. | 14 | retrieve. |
16 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the | 15 | If·these·get·out·of·sync,·audio·and·video·may·be·out·of·sync·in·the |
17 | display·of·the·video. | 16 | display·of·the·video. |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; |
11 | typedef·struct·ALLEGRO_VOICE·ALLEGRO_VOICE; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real | 13 | A·voice·represents·an·audio·device·on·the·system,·which·may·be·a·real |
15 | device,·or·an·abstract·device·provided·by·the·operating·system. | 14 | device,·or·an·abstract·device·provided·by·the·operating·system. |
16 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio | 15 | To·play·back·audio,·you·would·attach·a·mixer,·sample·instance·or·audio |
17 | stream·to·a·voice. | 16 | stream·to·a·voice. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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·{ | 10 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ |
11 | typedef·enum·ALLEGRO_WRITE_MASK_FLAGS·{ | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled | 13 | Each·enabled·bit·means·the·corresponding·value·is·written,·a·disabled |
15 | bit·means·it·is·not. | 14 | bit·means·it·is·not. |
16 | .IP·\[bu]·2 | 15 | .IP·\[bu]·2 |
17 | ALLEGRO_MASK_RED | 16 | ALLEGRO_MASK_RED |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, |
11 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | 11 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) |
12 | int·al_append_menu_item(ALLEGRO_MENU·*parent,·char·const·*title,·uint16_t·id, | ||
13 | ···int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Appends·a·menu·item·to·the·end·of·the·menu. | 14 | Appends·a·menu·item·to·the·end·of·the·menu. |
17 | See·al_insert_menu_item(3alleg5)·for·more·information. | 15 | See·al_insert_menu_item(3alleg5)·for·more·information. |
18 | .SH·SINCE | 16 | .SH·SINCE |
19 | 5.1.0 | 17 | 5.1.0 |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, |
11 | ···char·const·*format,·...) | 11 | ···char·const·*format,·...) |
12 | void·al_append_native_text_log(ALLEGRO_TEXTLOG·*textlog, | ||
13 | ···char·const·*format,·...) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the | 14 | Appends·a·line·of·text·to·the·message·log·window·and·scrolls·to·the |
17 | bottom·(if·the·line·would·not·be·visible·otherwise). | 15 | bottom·(if·the·line·would·not·be·visible·otherwise). |
18 | This·works·like·printf. | 16 | This·works·like·printf. |
19 | A·line·is·continued·until·you·add·a·newline·character. | 17 | A·line·is·continued·until·you·add·a·newline·character. |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) |
11 | bool·al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM·*stream,·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Attach·an·audio·stream·to·a·mixer. | 13 | Attach·an·audio·stream·to·a·mixer. |
15 | The·stream·must·not·already·be·attached·to·anything. | 14 | The·stream·must·not·already·be·attached·to·anything. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···ALLEGRO_VOICE·*voice) | 11 | ···ALLEGRO_VOICE·*voice) |
12 | bool·al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···ALLEGRO_VOICE·*voice) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Attaches·an·audio·stream·to·a·voice. | 14 | Attaches·an·audio·stream·to·a·voice. |
17 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. | 15 | The·same·rules·as·al_attach_sample_instance_to_voice(3alleg5)·apply. |
18 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer | 16 | This·may·fail·if·the·driver·can\[cq]t·create·a·voice·with·the·buffer |
19 | count·and·buffer·size·the·stream·uses. | 17 | count·and·buffer·size·the·stream·uses. |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) |
11 | bool·al_attach_mixer_to_mixer(ALLEGRO_MIXER·*stream,·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as | 13 | Attaches·the·mixer·passed·as·the·first·argument·onto·the·mixer·passed·as |
15 | the·second·argument. | 14 | the·second·argument. |
16 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be | 15 | The·first·mixer·(that·is·going·to·be·attached)·must·not·already·be |
17 | attached·to·anything. | 16 | attached·to·anything. |
18 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel | 17 | Both·mixers·must·use·the·same·frequency,·audio·depth·and·channel |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) |
11 | bool·al_attach_mixer_to_voice(ALLEGRO_MIXER·*mixer,·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Attaches·a·mixer·to·a·voice. | 13 | Attaches·a·mixer·to·a·voice. |
15 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth | 14 | It·must·have·the·same·frequency·and·channel·configuration,·but·the·depth |
16 | may·be·different. | 15 | may·be·different. |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_MIXER·*mixer) | 11 | ···ALLEGRO_MIXER·*mixer) |
12 | bool·al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_MIXER·*mixer) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Attach·a·sample·instance·to·a·mixer. | 14 | Attach·a·sample·instance·to·a·mixer. |
17 | The·instance·must·not·already·be·attached·to·anything. | 15 | The·instance·must·not·already·be·attached·to·anything. |
18 | .PP | 16 | .PP |
19 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_VOICE·*voice) | 11 | ···ALLEGRO_VOICE·*voice) |
12 | bool·al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_VOICE·*voice) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. | 14 | Attaches·a·sample·instance·to·a·voice,·and·allows·it·to·play. |
17 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have | 15 | The·instance\[cq]s·gain·and·loop·mode·will·be·ignored,·and·it·must·have |
18 | the·same·frequency,·channel·configuration·and·depth·(including | 16 | the·same·frequency,·channel·configuration·and·depth·(including |
19 | signed\-ness)·as·the·voice. | 17 | signed\-ness)·as·the·voice. |
20 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support | 18 | This·function·may·fail·if·the·selected·driver·doesn\[cq]t·support |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) |
11 | ALLEGRO_MENU·*al_build_menu(ALLEGRO_MENU_INFO·*info) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of | 13 | Builds·a·menu·based·on·the·specifications·of·a·sequence·of |
15 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. | 14 | \f[CR]ALLEGRO_MENU_INFO\f[R]·elements. |
16 | .PP | 15 | .PP |
17 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or | 16 | Returns·a·pointer·to·the·root·\f[CR]ALLEGRO_MENU\f[R],·or |
18 | \f[CR]NULL\f[R]·on·failure. | 17 | \f[CR]NULL\f[R]·on·failure. |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 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, | 11 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, |
12 | ···int·num_points) | 12 | ···int·num_points) |
13 | void·al_calculate_arc(float*·dest,·int·stride,·float·cx,·float·cy, | ||
14 | ···float·rx,·float·ry,·float·start_theta,·float·delta_theta,·float·thickness, | ||
15 | ···int·num_points) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of | 15 | When·\f[CR]thickness·<=·0\f[R]·this·function·computes·positions·of |
19 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. | 16 | \f[CR]num_points\f[R]·regularly·spaced·points·on·an·elliptical·arc. |
20 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, | 17 | When·\f[CR]thickness·>·0\f[R]·this·function·computes·two·sets·of·points, |
21 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points | 18 | obtained·as·follows:·the·first·set·is·obtained·by·taking·the·points |
22 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by | 19 | computed·in·the·\f[CR]thickness·<=·0\f[R]·case·and·shifting·them·by |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, |
11 | ···int·points_stride,·float·thickness,·int·num_segments) | 11 | ···int·points_stride,·float·thickness,·int·num_segments) |
12 | void·al_calculate_ribbon(float*·dest,·int·dest_stride,·const·float·*points, | ||
13 | ···int·points_stride,·float·thickness,·int·num_segments) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Calculates·a·ribbon·given·an·array·of·points. | 14 | Calculates·a·ribbon·given·an·array·of·points. |
17 | The·ribbon·will·go·through·all·of·the·passed·points. | 15 | The·ribbon·will·go·through·all·of·the·passed·points. |
18 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 16 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
19 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. | 17 | required·in·the·destination·buffer,·otherwise·twice·as·many·are·needed. |
20 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced | 18 | The·destination·and·the·points·buffer·should·consist·of·regularly·spaced |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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], | 10 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], |
11 | ···float·thickness,·int·num_segments) | 11 | ···float·thickness,·int·num_segments) |
12 | void·al_calculate_spline(float*·dest,·int·stride,·const·float·points[8], | ||
13 | ···float·thickness,·int·num_segments) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Calculates·a·Bézier·spline·given·4·control·points. | 14 | Calculates·a·Bézier·spline·given·4·control·points. |
17 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are | 15 | If·\f[CR]thickness·<=·0\f[R],·then·\f[CR]num_segments\f[R]·of·points·are |
18 | required·in·the·destination,·otherwise·twice·as·many·are·needed. | 16 | required·in·the·destination,·otherwise·twice·as·many·are·needed. |
19 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance | 17 | The·destination·buffer·should·consist·of·regularly·spaced·(by·distance |
20 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y | 18 | of·stride·bytes)·doublets·of·floats,·corresponding·to·x·and·y |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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] | 10 | #define·al_calloc(c,·n)·\[rs] |
11 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_calloc(c,·n)·\[rs] | ||
13 | ···(al_calloc_with_context((c),·(n),·__LINE__,·__FILE__,·__func__)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be | 14 | Like·calloc()·in·the·C·standard·library,·but·the·implementation·may·be |
17 | overridden. | 15 | overridden. |
18 | .PP | 16 | .PP |
19 | This·is·a·macro. | 17 | This·is·a·macro. |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_MENU·*al_clone_menu(ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. | 13 | Makes·a·copy·of·a·menu·so·that·it·can·be·reused·on·another·display. |
15 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or | 14 | The·menu·being·cloned·can·be·anything:·a·regular·menu,·a·popup·menu,·or |
16 | a·sub\-menu. | 15 | a·sub\-menu. |
17 | .PP | 16 | .PP |
18 | Returns·the·cloned·menu. | 17 | Returns·the·cloned·menu. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_MENU·*al_clone_menu_for_popup(ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup | 13 | Exactly·like·al_clone_menu(3alleg5),·except·that·the·copy·is·for·a·popup |
15 | menu. | 14 | menu. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) |
11 | void·al_close_native_text_log(ALLEGRO_TEXTLOG·*textlog) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) | 13 | Closes·a·message·log·window·opened·with·al_open_native_text_log(3alleg5) |
15 | earlier. | 14 | earlier. |
16 | .PP | 15 | .PP |
17 | Does·nothing·if·passed·NULL. | 16 | Does·nothing·if·passed·NULL. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | void·al_close_video(ALLEGRO_VIDEO·*video) |
11 | void·al_close_video(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Closes·the·video·and·frees·all·allocated·resources. | 13 | Closes·the·video·and·frees·all·allocated·resources. |
15 | The·video·pointer·is·invalid·after·the·function·returns. | 14 | The·video·pointer·is·invalid·after·the·function·returns. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) |
11 | ALLEGRO_COLOR·al_color_cmyk(float·c,·float·m,·float·y,·float·k) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CMYK·values·(cyan, |
15 | magenta,·yellow,·black). | 14 | magenta,·yellow,·black). |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 16 | al_color_cmyk_to_rgb(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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, | 10 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, |
11 | ····float·key,·float·*red,·float·*green,·float·*blue) | 11 | ····float·key,·float·*red,·float·*green,·float·*blue) |
12 | void·al_color_cmyk_to_rgb(float·cyan,·float·magenta,·float·yellow, | ||
13 | ····float·key,·float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·CMYK·values·to·RGB·values. | 14 | Convert·CMYK·values·to·RGB·values. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) | 16 | al_color_cmyk(3alleg5),·al_color_rgb_to_cmyk(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, |
11 | ······ALLEGRO_COLOR·color2)·{ | 11 | ······ALLEGRO_COLOR·color2)·{ |
12 | double·al_color_distance_ciede2000(ALLEGRO_COLOR·color1, | ||
13 | ······ALLEGRO_COLOR·color2)·{ | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB | 14 | This·function·computes·the·CIEDE2000·color·difference·between·two·RGB |
17 | colors. | 15 | colors. |
18 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB | 16 | This·is·a·visually·uniform·color·difference,·unlike·for·example·the·RGB |
19 | distance. | 17 | distance. |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) |
11 | ALLEGRO_COLOR·al_color_hsl(float·h,·float·s,·float·l) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSL·(hue,·saturation, |
15 | lightness)·values. | 14 | lightness)·values. |
16 | .PP | 15 | .PP |
17 | Parameters: | 16 | Parameters: |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | void·al_color_hsl_to_rgb(float·hue,·float·saturation,·float·lightness, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·values·in·HSL·color·model·to·RGB·color·model. | 14 | Convert·values·in·HSL·color·model·to·RGB·color·model. |
17 | .PP | 15 | .PP |
18 | Parameters: | 16 | Parameters: |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | hue·\-·Color·hue·angle·in·the·range·0..360 | 18 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) |
11 | ALLEGRO_COLOR·al_color_hsv(float·h,·float·s,·float·v) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·HSV·(hue,·saturation, |
15 | value)·values. | 14 | value)·values. |
16 | .PP | 15 | .PP |
17 | Parameters: | 16 | Parameters: |
18 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | void·al_color_hsv_to_rgb(float·hue,·float·saturation,·float·value, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·values·in·HSV·color·model·to·RGB·color·model. | 14 | Convert·values·in·HSV·color·model·to·RGB·color·model. |
17 | .PP | 15 | .PP |
18 | Parameters: | 16 | Parameters: |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | hue·\-·Color·hue·angle·in·the·range·0..360 | 18 | hue·\-·Color·hue·angle·in·the·range·0..360 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_html(char·const·*string) |
11 | ALLEGRO_COLOR·al_color_html(char·const·*string) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 13 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
15 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). | 14 | The·accepted·format·is·the·same·as·al_color_html_to_rgb(3alleg5). |
16 | .PP | 15 | .PP |
17 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if | 16 | Returns·the·interpreted·color,·or·\f[CR]al_map_rgba(0,·0,·0,·0)\f[R]·if |
18 | the·string·could·not·be·parsed. | 17 | the·string·could·not·be·parsed. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_color_html_to_rgb(char·const·*string, |
11 | ···float·*red,·float·*green,·float·*blue) | 11 | ···float·*red,·float·*green,·float·*blue) |
12 | bool·al_color_html_to_rgb(char·const·*string, | ||
13 | ···float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. | 14 | Interprets·an·HTML\-style·hex·number·(e.g.\·#00faff)·as·a·color. |
17 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] | 15 | The·only·accepted·formats·are·\[lq]#RRGGBB\[rq]·and·\[lq]RRGGBB\[rq] |
18 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. | 16 | where·R,·G,·B·are·hexadecimal·digits·[0\-9A\-Fa\-f]. |
19 | .PP | 17 | .PP |
20 | Returns·true·on·success,·false·on·failure. | 18 | Returns·true·on·success,·false·on·failure. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) |
11 | ALLEGRO_COLOR·al_color_lab(float·l,·float·a,·float·b) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·L*a*b*·values. |
15 | The·L*·component·corresponds·to·luminance·from·0..1. | 14 | The·L*·component·corresponds·to·luminance·from·0..1. |
16 | The·a*·and·b*·components·are·in·the·range·\-1..+1. | 15 | The·a*·and·b*·components·are·in·the·range·\-1..+1. |
17 | .RS | 16 | .RS |
18 | .PP | 17 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_lab_to_rgb(float·l,·float·a,·float·b, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. | 14 | Convert·CIE·L*a*b*·color·values·to·RGB·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) | 18 | al_color_lab(3alleg5),·al_color_rgb_to_lab(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) |
11 | ALLEGRO_COLOR·al_color_lch(float·l,·float·c,·float·h) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·CIE·LCH·values. |
15 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and | 14 | LCH·colors·are·very·similar·to·HSL,·with·the·same·meaning·of·L·and·H·and |
16 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. | 15 | C·corresponding·to·S.·However·LCH·is·more·visually·uniform. |
17 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in | 16 | Furthermore,·this·function·expects·the·angle·for·H·in·radians·and·not·in |
18 | degree. | 17 | degree. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_lch_to_rgb(float·l,·float·c,·float·h, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·CIE·LCH·color·values·to·RGB·color·space. | 14 | Convert·CIE·LCH·color·values·to·RGB·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) | 18 | al_color_lch(3alleg5),·al_color_rgb_to_lch(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) |
11 | ALLEGRO_COLOR·al_color_linear(float·r,·float·g,·float·b) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·linear·sRGB·values. |
15 | Allegro·RGB·values·are·assumed·to·be·sRGB. | 14 | Allegro·RGB·values·are·assumed·to·be·sRGB. |
16 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. | 15 | The·sRGB·standard·is·in·wide·use·by·various·display·devices. |
17 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before | 16 | It·accounts·for·a·standard·gamma·correction·applied·to·RGB·colors·before |
18 | they·get·displayed. | 17 | they·get·displayed. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_linear_to_rgb(float·r,·float·g,·float·b, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB | 14 | Convert·linear·sRGB·color·values·to·gamma·corrected·(i.e.\·normal)·RGB |
17 | values. | 15 | values. |
18 | .SH·SINCE | 16 | .SH·SINCE |
19 | 5.2.8 | 17 | 5.2.8 |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_name(char·const·*name) |
11 | ALLEGRO_COLOR·al_color_name(char·const·*name) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·with·the·given·name. |
15 | If·the·color·is·not·found·then·black·is·returned. | 14 | If·the·color·is·not·found·then·black·is·returned. |
16 | .PP | 15 | .PP |
17 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. | 16 | See·al_color_name_to_rgb(3alleg5)·for·the·list·of·names. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) |
11 | bool·al_color_name_to_rgb(char·const·*name,·float·*r,·float·*g,·float·*b) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Parameters: | 13 | Parameters: |
15 | .IP·\[bu]·2 | 14 | .IP·\[bu]·2 |
16 | name·\-·The·(lowercase)·name·of·the·color. | 15 | name·\-·The·(lowercase)·name·of·the·color. |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the | 17 | r,·g,·b·\-·If·one·of·the·recognized·color·names·below·is·passed,·the |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) |
11 | ALLEGRO_COLOR·al_color_oklab(float·l,·float·a,·float·b) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·Oklab·values. |
15 | The·L·component·corresponds·to·luminance·from·0..1. | 14 | The·L·component·corresponds·to·luminance·from·0..1. |
16 | The·a·and·b·components·are·in·the·range·\-1..+1. | 15 | The·a·and·b·components·are·in·the·range·\-1..+1. |
17 | .RS | 16 | .RS |
18 | .PP | 17 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_oklab_to_rgb(float·ol,·float·oa,·float·ob, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·Oklab·color·values·to·RGB. | 14 | Convert·Oklab·color·values·to·RGB. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.8 | 16 | 5.2.8 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) | 18 | al_color_oklab(3alleg5),·al_color_rgb_to_oklab(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, |
11 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) | 11 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) |
12 | void·al_color_rgb_to_cmyk(float·red,·float·green,·float·blue, | ||
13 | ···float·*cyan,·float·*magenta,·float·*yellow,·float·*key) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with | 14 | Each·RGB·color·can·be·represented·in·CMYK·with·a·K·component·of·0·with |
17 | the·following·formula: | 15 | the·following·formula: |
18 | .IP | 16 | .IP |
19 | .EX | 17 | .EX |
20 | C·=·1·\-·R | 18 | C·=·1·\-·R |
Offset 6, 15 lines modified | Offset 6, 13 lines modified | ||
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, | 10 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, |
11 | ···float·*hue,·float·*saturation,·float·*lightness) | 11 | ···float·*hue,·float·*saturation,·float·*lightness) |
12 | void·al_color_rgb_to_hsl(float·red,·float·green,·float·blue, | ||
13 | ···float·*hue,·float·*saturation,·float·*lightness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
17 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. | 15 | in·degrees·from·0..360·and·saturation·and·lightness·in·the·range·0..1. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
19 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) | 17 | al_color_hsl_to_rgb(3alleg5),·al_color_hsl(3alleg5) |
Offset 6, 15 lines modified | Offset 6, 13 lines modified | ||
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, | 10 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, |
11 | ···float·*hue,·float·*saturation,·float·*value) | 11 | ···float·*hue,·float·*saturation,·float·*value) |
12 | void·al_color_rgb_to_hsv(float·red,·float·green,·float·blue, | ||
13 | ···float·*hue,·float·*saturation,·float·*value) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue | 14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·return·the·hue |
17 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. | 15 | in·degrees·from·0..360·and·saturation·and·value·in·the·range·0..1. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
19 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) | 17 | al_color_hsv_to_rgb(3alleg5),·al_color_hsv(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, |
11 | ····char·*string) | 11 | ····char·*string) |
12 | void·al_color_rgb_to_html(float·red,·float·green,·float·blue, | ||
13 | ····char·*string) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Create·an·HTML\-style·string·representation·of·an | 14 | Create·an·HTML\-style·string·representation·of·an |
17 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. | 15 | ALLEGRO_COLOR(3alleg5),·e.g.\·#00faff. |
18 | .PP | 16 | .PP |
19 | Parameters: | 17 | Parameters: |
20 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, |
11 | ···float·*l,·float·*a,·float·*b) | 11 | ···float·*l,·float·*a,·float·*b) |
12 | void·al_color_rgb_to_lab(float·red,·float·green,·float·blue, | ||
13 | ···float·*l,·float·*a,·float·*b) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·L*a*b*·color·space. | 14 | Convert·RGB·values·to·L*a*b*·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) | 18 | al_color_lab(3alleg5),·al_color_lab_to_rgb(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, |
11 | ···float·*l,·float·*c,·float·*h) | 11 | ···float·*l,·float·*c,·float·*h) |
12 | void·al_color_rgb_to_lch(float·red,·float·green,·float·blue, | ||
13 | ···float·*l,·float·*c,·float·*h) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·CIE·LCH·color·space. | 14 | Convert·RGB·values·to·CIE·LCH·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) | 18 | al_color_lch(3alleg5),·al_color_lch_to_rgb(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, |
11 | ···float·*r,·float·*g,·float·*b) | 11 | ···float·*r,·float·*g,·float·*b) |
12 | void·al_color_rgb_to_linear(float·red,·float·green,·float·blue, | ||
13 | ···float·*r,·float·*g,·float·*b) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB | 14 | Convert·gamma·corrected·sRGB·values·(i.e.\·normal·RGB)·to·linear·sRGB |
17 | space. | 15 | space. |
18 | .SH·SINCE | 16 | .SH·SINCE |
19 | 5.2.8 | 17 | 5.2.8 |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) |
11 | char·const·*al_color_rgb_to_name(float·r,·float·g,·float·b) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color | 13 | Given·an·RGB·triplet·with·components·in·the·range·0..1,·find·a·color |
15 | name·describing·it·approximately. | 14 | name·describing·it·approximately. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) | 16 | al_color_name_to_rgb(3alleg5),·al_color_name(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, |
11 | ···float·*ol,·float·*oa,·float·*ob) | 11 | ···float·*ol,·float·*oa,·float·*ob) |
12 | void·al_color_rgb_to_oklab(float·red,·float·green,·float·blue, | ||
13 | ···float·*ol,·float·*oa,·float·*ob) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·the·Oklab·color·space. | 14 | Convert·RGB·values·to·the·Oklab·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.8 | 16 | 5.2.8 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) | 18 | al_color_oklab(3alleg5),·al_color_oklab_to_rgb(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, |
11 | ···float·*x,·float·*y,·float·*y2) | 11 | ···float·*x,·float·*y,·float·*y2) |
12 | void·al_color_rgb_to_xyy(float·red,·float·green,·float·blue, | ||
13 | ···float·*x,·float·*y,·float·*y2) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·xyY·color·space. | 14 | Convert·RGB·values·to·xyY·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) | 18 | al_color_xyy(3alleg5),·al_color_xyy_to_rgb(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, |
11 | ···float·*x,·float·*y,·float·*z) | 11 | ···float·*x,·float·*y,·float·*z) |
12 | void·al_color_rgb_to_xyz(float·red,·float·green,·float·blue, | ||
13 | ···float·*x,·float·*y,·float·*z) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·XYZ·color·space. | 14 | Convert·RGB·values·to·XYZ·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) | 18 | al_color_xyz(3alleg5),·al_color_xyz_to_rgb(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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, | 10 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, |
11 | ···float·*y,·float·*u,·float·*v) | 11 | ···float·*y,·float·*u,·float·*v) |
12 | void·al_color_rgb_to_yuv(float·red,·float·green,·float·blue, | ||
13 | ···float·*y,·float·*u,·float·*v) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·RGB·values·to·YUV·color·space. | 14 | Convert·RGB·values·to·YUV·color·space. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) | 16 | al_color_yuv(3alleg5),·al_color_yuv_to_rgb(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) |
11 | ALLEGRO_COLOR·al_color_xyy(float·x,·float·y,·float·y2) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·xyY·values. |
15 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. | 14 | The·Y·component·in·the·xyY·color·space·is·the·same·as·the·Y·in·XYZ. |
16 | .PP | 15 | .PP |
17 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: | 16 | However·the·x·and·y·values·are·computed·from·XYZ·like·this: |
18 | .IP | 17 | .IP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_xyy_to_rgb(float·x,·float·y,·float·y2, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·xyY·color·values·to·RGB·color·space. | 14 | Convert·xyY·color·values·to·RGB·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) | 18 | al_color_xyy(3alleg5),·al_color_rgb_to_xyy(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) |
11 | ALLEGRO_COLOR·al_color_xyz(float·x,·float·y,·float·z) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·XYZ·values. |
15 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range | 14 | The·CIE·1931·XYZ·color·space·consists·of·three·components·in·the·range |
16 | 0..1. | 15 | 0..1. |
17 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components | 16 | The·Y·component·corresponds·to·luminance·and·the·X·and·Z·components |
18 | define·the·color. | 17 | define·the·color. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_xyz_to_rgb(float·x,·float·y,·float·z, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·XYZ·color·values·to·RGB·color·space. | 14 | Convert·XYZ·color·values·to·RGB·color·space. |
17 | .SH·SINCE | 15 | .SH·SINCE |
18 | 5.2.3 | 16 | 5.2.3 |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) | 18 | al_color_xyz(3alleg5),·al_color_rgb_to_xyz(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) |
11 | ALLEGRO_COLOR·al_color_yuv(float·y,·float·u,·float·v) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. | 13 | Return·an·ALLEGRO_COLOR(3alleg5)·structure·from·YUV·values. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 15 | al_color_yuv_to_rgb(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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, | 10 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, |
11 | ····float·*red,·float·*green,·float·*blue) | 11 | ····float·*red,·float·*green,·float·*blue) |
12 | void·al_color_yuv_to_rgb(float·y,·float·u,·float·v, | ||
13 | ····float·*red,·float·*green,·float·*blue) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Convert·YUV·color·values·to·RGB·color·space. | 14 | Convert·YUV·color·values·to·RGB·color·space. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) | 16 | al_color_yuv(3alleg5),·al_color_rgb_to_yuv(3alleg5) |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, |
11 | ···unsigned·int·samples,·unsigned·int·frequency, | 11 | ···unsigned·int·samples,·unsigned·int·frequency, |
12 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 12 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
13 | ALLEGRO_AUDIO_RECORDER·*al_create_audio_recorder(size_t·fragment_count, | ||
14 | ···unsigned·int·samples,·unsigned·int·frequency, | ||
15 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording | 15 | Creates·an·audio·recorder·using·the·system\[cq]s·default·recording |
19 | device. | 16 | device. |
20 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s | 17 | (So·if·the·returned·device·does·not·work,·try·updating·the·system\[cq]s |
21 | default·recording·device.) | 18 | default·recording·device.) |
22 | .PP | 19 | .PP |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, |
11 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | 11 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, |
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | 12 | ···ALLEGRO_CHANNEL_CONF·chan_conf) |
13 | ALLEGRO_AUDIO_STREAM·*al_create_audio_stream(size_t·fragment_count, | ||
14 | ···unsigned·int·frag_samples,·unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
15 | ···ALLEGRO_CHANNEL_CONF·chan_conf) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). | 15 | Creates·an·ALLEGRO_AUDIO_STREAM(3alleg5). |
19 | The·stream·will·be·set·to·play·by·default. | 16 | The·stream·will·be·set·to·play·by·default. |
20 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of | 17 | It·will·feed·audio·data·from·a·buffer,·which·is·split·into·a·number·of |
21 | fragments. | 18 | fragments. |
22 | .PP | 19 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_create_builtin_font(void) |
11 | ALLEGRO_FONT·*al_create_builtin_font(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). | 13 | Creates·a·monochrome·bitmap·font·(8x8·pixels·per·character). |
15 | .PP | 14 | .PP |
16 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in | 15 | This·font·is·primarily·intended·to·be·used·for·displaying·information·in |
17 | environments·or·during·early·runtime·states·where·no·external·font·data | 16 | environments·or·during·early·runtime·states·where·no·external·font·data |
18 | is·available·or·loaded·(e.g.\·for·debugging). | 17 | is·available·or·loaded·(e.g.\·for·debugging). |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, |
11 | ····const·void*·initial_data,·int·num_indices,·int·flags) | 11 | ····const·void*·initial_data,·int·num_indices,·int·flags) |
12 | ALLEGRO_INDEX_BUFFER*·al_create_index_buffer(int·index_size, | ||
13 | ····const·void*·initial_data,·int·num_indices,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Creates·a·index·buffer. | 14 | Creates·a·index·buffer. |
17 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
18 | only·supports·write\-only·buffers). | 16 | only·supports·write\-only·buffers). |
19 | .RS | 17 | .RS |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_create_menu(void) |
11 | ALLEGRO_MENU·*al_create_menu(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Creates·a·menu·container·that·can·hold·menu·items. | 13 | Creates·a·menu·container·that·can·hold·menu·items. |
15 | .PP | 14 | .PP |
16 | Returns·\f[CR]NULL\f[R]·on·failure. | 15 | Returns·\f[CR]NULL\f[R]·on·failure. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | ALLEGRO_MIXER·*al_create_mixer(unsigned·int·freq, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other | 14 | Creates·a·mixer·to·attach·sample·instances,·audio·streams,·or·other |
17 | mixers·to. | 15 | mixers·to. |
18 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel | 16 | It·will·mix·into·a·buffer·at·the·requested·frequency·(in·Hz)·and·channel |
19 | count. | 17 | count. |
20 | .PP | 18 | .PP |
Offset 9, 19 lines modified | Offset 9, 14 lines modified | ||
9 | #include·<allegro5/allegro_native_dialog.h> | 9 | #include·<allegro5/allegro_native_dialog.h> |
10 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | 10 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( |
11 | ···char·const·*initial_path, | 11 | ···char·const·*initial_path, |
12 | ···char·const·*title, | 12 | ···char·const·*title, |
13 | ···char·const·*patterns, | 13 | ···char·const·*patterns, |
14 | ···int·mode) | 14 | ···int·mode) |
15 | ALLEGRO_FILECHOOSER·*al_create_native_file_dialog( | ||
16 | ···char·const·*initial_path, | ||
17 | ···char·const·*title, | ||
18 | ···char·const·*patterns, | ||
19 | ···int·mode) | ||
20 | .EE | 15 | .EE |
21 | .SH·DESCRIPTION | 16 | .SH·DESCRIPTION |
22 | Creates·a·new·native·file·dialog. | 17 | Creates·a·new·native·file·dialog. |
23 | You·should·only·have·one·such·dialog·opened·at·a·time. | 18 | You·should·only·have·one·such·dialog·opened·at·a·time. |
24 | .PP | 19 | .PP |
25 | Parameters: | 20 | Parameters: |
26 | .IP·\[bu]·2 | 21 | .IP·\[bu]·2 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_create_popup_menu(void) |
11 | ALLEGRO_MENU·*al_create_popup_menu(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Creates·a·menu·container·for·popup·menus. | 13 | Creates·a·menu·container·for·popup·menus. |
15 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. | 14 | Only·the·root·(outermost)·menu·should·be·created·with·this·function. |
16 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). | 15 | Sub·menus·of·popups·should·be·created·with·al_create_menu(3alleg5). |
17 | .PP | 16 | .PP |
18 | Returns·\f[CR]NULL\f[R]·on·failure. | 17 | Returns·\f[CR]NULL\f[R]·on·failure. |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, |
11 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | 11 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, |
12 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) | 12 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) |
13 | ALLEGRO_SAMPLE·*al_create_sample(void·*buf,·unsigned·int·samples, | ||
14 | ···unsigned·int·freq,·ALLEGRO_AUDIO_DEPTH·depth, | ||
15 | ···ALLEGRO_CHANNEL_CONF·chan_conf,·bool·free_buf) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Create·a·sample·data·structure·from·the·supplied·buffer. | 15 | Create·a·sample·data·structure·from·the·supplied·buffer. |
19 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with | 16 | If·\f[CR]free_buf\f[R]·is·true·then·the·buffer·will·be·freed·with |
20 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. | 17 | al_free(3alleg5)·when·the·sample·data·structure·is·destroyed. |
21 | For·portability·(especially·Windows),·the·buffer·should·have·been | 18 | For·portability·(especially·Windows),·the·buffer·should·have·been |
22 | allocated·with·al_malloc(3alleg5). | 19 | allocated·with·al_malloc(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) |
11 | ALLEGRO_SAMPLE_INSTANCE·*al_create_sample_instance(ALLEGRO_SAMPLE·*sample_data) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Creates·a·sample·instance,·using·the·supplied·sample·data. | 13 | Creates·a·sample·instance,·using·the·supplied·sample·data. |
15 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually | 14 | The·instance·must·be·attached·to·a·mixer·(or·voice)·in·order·to·actually |
16 | produce·output. | 15 | produce·output. |
17 | .PP | 16 | .PP |
18 | The·argument·may·be·NULL. | 17 | The·argument·may·be·NULL. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, |
11 | ···const·void*·initial_data,·int·num_vertices,·int·flags) | 11 | ···const·void*·initial_data,·int·num_vertices,·int·flags) |
12 | ALLEGRO_VERTEX_BUFFER*·al_create_vertex_buffer(ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···const·void*·initial_data,·int·num_vertices,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Creates·a·vertex·buffer. | 14 | Creates·a·vertex·buffer. |
17 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system | 15 | Can·return·NULL·if·the·buffer·could·not·be·created·(e.g.\·the·system |
18 | only·supports·write\-only·buffers). | 16 | only·supports·write\-only·buffers). |
19 | .RS | 17 | .RS |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) |
11 | ALLEGRO_VERTEX_DECL*·al_create_vertex_decl(const·ALLEGRO_VERTEX_ELEMENT*·elements,·int·stride) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. | 13 | Creates·a·vertex·declaration,·which·describes·a·custom·vertex·format. |
15 | .PP | 14 | .PP |
16 | \f[I]Parameters:\f[R] | 15 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. | 17 | elements·\-·An·array·of·ALLEGRO_VERTEX_ELEMENT(3alleg5)·structures. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | ALLEGRO_VOICE·*al_create_voice(unsigned·int·freq, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound | 14 | Creates·a·voice·structure·and·allocates·a·voice·from·the·digital·sound |
17 | driver. | 15 | driver. |
18 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration | 16 | The·passed·frequency·(in·Hz),·sample·format·and·channel·configuration |
19 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. | 17 | are·used·as·a·hint·to·what·kind·of·data·will·be·sent·to·the·voice. |
20 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching | 18 | However,·the·underlying·sound·driver·is·free·to·use·non\-matching |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | void·al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. | 13 | Destroys·the·audio·recorder·and·frees·all·resources·associated·with·it. |
15 | It·is·safe·to·destroy·a·recorder·that·is·recording. | 14 | It·is·safe·to·destroy·a·recorder·that·is·recording. |
16 | .PP | 15 | .PP |
17 | You·may·receive·events·after·the·recorder·has·been·destroyed. | 16 | You·may·receive·events·after·the·recorder·has·been·destroyed. |
18 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. | 17 | They·must·be·ignored,·as·the·fragment·buffer·will·no·longer·be·valid. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroy·an·audio·stream·which·was·created·with | 13 | Destroy·an·audio·stream·which·was·created·with |
15 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). | 14 | al_create_audio_stream(3alleg5)·or·al_load_audio_stream(3alleg5). |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
18 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, | 17 | \f[I]Note:\f[R]·If·the·stream·is·still·attached·to·a·mixer·or·voice, |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | void·al_destroy_font(ALLEGRO_FONT·*f) |
11 | void·al_destroy_font(ALLEGRO_FONT·*f) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Frees·the·memory·being·used·by·a·font·structure. | 13 | Frees·the·memory·being·used·by·a·font·structure. |
15 | Does·nothing·if·passed·NULL. | 14 | Does·nothing·if·passed·NULL. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_load_font(3alleg5) | 16 | al_load_font(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | void·al_destroy_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·a·index·buffer. | 13 | Destroys·a·index·buffer. |
15 | Does·nothing·if·passed·NULL. | 14 | Does·nothing·if·passed·NULL. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.8 | 16 | 5.1.8 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_menu(ALLEGRO_MENU·*menu) |
11 | void·al_destroy_menu(ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·an·entire·menu,·including·its·sub\-menus. | 13 | Destroys·an·entire·menu,·including·its·sub\-menus. |
15 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. | 14 | Any·references·to·it·or·a·sub\-menu·are·no·longer·valid. |
16 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. | 15 | It·is·safe·to·call·this·on·a·menu·that·is·currently·being·displayed. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) |
11 | void·al_destroy_mixer(ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·the·mixer. | 13 | Destroys·the·mixer. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_create_mixer(3alleg5) | 15 | al_create_mixer(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) |
11 | void·al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER·*dialog) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Frees·up·all·resources·used·by·the·file·dialog. | 13 | Frees·up·all·resources·used·by·the·file·dialog. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) |
11 | void·al_destroy_sample(ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Free·the·sample·data·structure. | 13 | Free·the·sample·data·structure. |
15 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, | 14 | If·it·was·created·with·the·\f[CR]free_buf\f[R]·parameter·set·to·true, |
16 | then·the·buffer·will·be·freed·with·al_free(3alleg5). | 15 | then·the·buffer·will·be·freed·with·al_free(3alleg5). |
17 | .PP | 16 | .PP |
18 | This·function·will·stop·any·sample·instances·which·may·be·playing·the | 17 | This·function·will·stop·any·sample·instances·which·may·be·playing·the |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | void·al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and | 13 | Detaches·the·sample·instance·from·anything·it·may·be·attached·to·and |
15 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] | 14 | frees·it·(the·sample·data,·i.e.\·its·ALLEGRO_SAMPLE,·is·\f[I]not\f[R] |
16 | freed!). | 15 | freed!). |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_create_sample_instance(3alleg5) | 17 | al_create_sample_instance(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | void·al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·a·vertex·buffer. | 13 | Destroys·a·vertex·buffer. |
15 | Does·nothing·if·passed·NULL. | 14 | Does·nothing·if·passed·NULL. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.3 | 16 | 5.1.3 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) |
11 | void·al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL*·decl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·a·vertex·declaration. | 13 | Destroys·a·vertex·declaration. |
15 | .PP | 14 | .PP |
16 | \f[I]Parameters:\f[R] | 15 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | decl·\-·Vertex·declaration·to·destroy | 17 | decl·\-·Vertex·declaration·to·destroy |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_destroy_voice(ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. | 13 | Destroys·the·voice·and·deallocates·it·from·the·digital·driver. |
15 | Does·nothing·if·the·voice·is·NULL. | 14 | Does·nothing·if·the·voice·is·NULL. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_create_voice(3alleg5) | 16 | al_create_voice(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_detach_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. | 13 | Detach·the·stream·from·whatever·it\[cq]s·attached·to,·if·anything. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_audio_stream_to_mixer(3alleg5), | 15 | al_attach_audio_stream_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5), | 16 | al_attach_audio_stream_to_voice(3alleg5), |
18 | al_get_audio_stream_attached(3alleg5). | 17 | al_get_audio_stream_attached(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) |
11 | bool·al_detach_mixer(ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. | 13 | Detach·the·mixer·from·whatever·it·is·attached·to,·if·anything. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_mixer_to_mixer(3alleg5). | 15 | al_attach_mixer_to_mixer(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if | 13 | Detach·the·sample·instance·from·whatever·it\[cq]s·attached·to,·if |
15 | anything. | 14 | anything. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success. | 16 | Returns·true·on·success. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_detach_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_detach_voice(ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. | 13 | Detaches·the·mixer,·sample·instance·or·audio·stream·from·the·voice. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_mixer_to_voice(3alleg5), | 15 | al_attach_mixer_to_voice(3alleg5), |
17 | al_attach_sample_instance_to_voice(3alleg5), | 16 | al_attach_sample_instance_to_voice(3alleg5), |
18 | al_attach_audio_stream_to_voice(3alleg5) | 17 | al_attach_audio_stream_to_voice(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) |
11 | void·al_disable_menu_event_source(ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the | 13 | Disables·a·unique·event·source·for·the·menu,·causing·it·to·use·the |
15 | default·event·source. | 14 | default·event·source. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 8, 18 lines modified | Offset 8, 14 lines modified | ||
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, | 10 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, |
11 | ···float·max_width,·const·char·*text, | 11 | ···float·max_width,·const·char·*text, |
12 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), | 12 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), |
13 | ···void·*extra) | 13 | ···void·*extra) |
14 | void·al_do_multiline_text(const·ALLEGRO_FONT·*font, | ||
15 | ···float·max_width,·const·char·*text, | ||
16 | ···bool·(*cb)(int·line_num,·const·char·*line,·int·size,·void·*extra), | ||
17 | ···void·*extra) | ||
18 | .EE | 14 | .EE |
19 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
20 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as | 16 | This·function·processes·the·\f[CR]text\f[R]·and·splits·it·into·lines·as |
21 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback | 17 | al_draw_multiline_text(3alleg5)·would,·and·then·calls·the·callback |
22 | \f[CR]cb\f[R]·once·for·every·line. | 18 | \f[CR]cb\f[R]·once·for·every·line. |
23 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating | 19 | This·is·useful·for·custom·drawing·of·multiline·text,·or·for·calculating |
24 | the·size·of·multiline·text·ahead·of·time. | 20 | the·size·of·multiline·text·ahead·of·time. |
Offset 8, 18 lines modified | Offset 8, 14 lines modified | ||
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, | 10 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, |
11 | ···const·ALLEGRO_USTR·*ustr, | 11 | ···const·ALLEGRO_USTR·*ustr, |
12 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), | 12 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), |
13 | ···void·*extra) | 13 | ···void·*extra) |
14 | void·al_do_multiline_ustr(const·ALLEGRO_FONT·*font,·float·max_width, | ||
15 | ···const·ALLEGRO_USTR·*ustr, | ||
16 | ···bool·(*cb)(int·line_num,·const·ALLEGRO_USTR·*·line,·void·*extra), | ||
17 | ···void·*extra) | ||
18 | .EE | 14 | .EE |
19 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
20 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a | 16 | Like·al_do_multiline_text(3alleg5),·but·using·ALLEGRO_USTR·instead·of·a |
21 | NUL\-terminated·char·array·for·text. | 17 | NUL\-terminated·char·array·for·text. |
22 | .SH·SINCE | 18 | .SH·SINCE |
23 | 5.1.9 | 19 | 5.1.9 |
24 | .SH·SEE·ALSO | 20 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·al_drain_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer | 13 | You·should·call·this·to·finalise·an·audio·stream·that·you·will·no·longer |
15 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. | 14 | be·feeding,·to·wait·for·all·pending·buffers·to·finish·playing. |
16 | The·stream\[cq]s·playing·state·will·change·to·false. | 15 | The·stream\[cq]s·playing·state·will·change·to·false. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_destroy_audio_stream(3alleg5) | 17 | al_destroy_audio_stream(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_arc(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·arc. | 14 | Draws·an·arc. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·arc | 18 | cx,·cy·\-·Center·of·the·arc |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, |
11 | ···float·thickness) | 11 | ···float·thickness) |
12 | void·al_draw_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color, | ||
13 | ···float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·outlined·circle. | 14 | Draws·an·outlined·circle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·circle | 18 | cx,·cy·\-·Center·of·the·circle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·outlined·ellipse. | 14 | Draws·an·outlined·ellipse. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·ellipse | 18 | cx,·cy·\-·Center·of·the·ellipse |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 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) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_elliptical_arc(float·cx,·float·cy,·float·rx,·float·ry,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·elliptical·arc. | 14 | Draws·an·elliptical·arc. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·arc | 18 | cx,·cy·\-·Center·of·the·arc |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) |
11 | void·al_draw_filled_circle(float·cx,·float·cy,·float·r,·ALLEGRO_COLOR·color) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Draws·a·filled·circle. | 13 | Draws·a·filled·circle. |
15 | .PP | 14 | .PP |
16 | \f[I]Parameters:\f[R] | 15 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | cx,·cy·\-·Center·of·the·circle | 17 | cx,·cy·\-·Center·of·the·circle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, |
11 | ···ALLEGRO_COLOR·color) | 11 | ···ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_ellipse(float·cx,·float·cy,·float·rx,·float·ry, | ||
13 | ···ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·filled·ellipse. | 14 | Draws·a·filled·ellipse. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·ellipse | 18 | cx,·cy·\-·Center·of·the·ellipse |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·filled·pieslice·(filled·circular·sector). | 14 | Draws·a·filled·pieslice·(filled·circular·sector). |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·pieslice | 18 | cx,·cy·\-·Center·of·the·pieslice |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_polygon(const·float·*vertices,·int·vertex_count, |
11 | ···ALLEGRO_COLOR·color) | 11 | ···ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_polygon(const·float·*vertices,·int·vertex_count, | ||
13 | ···ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draw·a·filled,·simple·polygon. | 14 | Draw·a·filled,·simple·polygon. |
17 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be | 15 | Simple·means·it·does·not·have·to·be·convex·but·must·not·be |
18 | self\-overlapping. | 16 | self\-overlapping. |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 18 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, |
11 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) | 11 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_polygon_with_holes(const·float·*vertices, | ||
13 | ···const·int·*vertex_counts,·ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons | 14 | Draws·a·filled·simple·polygon·with·zero·or·more·other·simple·polygons |
17 | subtracted·from·it·\-·the·holes. | 15 | subtracted·from·it·\-·the·holes. |
18 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled | 16 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·filled |
19 | polygon. | 17 | polygon. |
20 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color) | 11 | ···ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·filled·rectangle. | 14 | Draws·a·filled·rectangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | 11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·filled·rounded·rectangle. | 14 | Draws·an·filled·rounded·rectangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | 11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) |
12 | void·al_draw_filled_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·filled·triangle. | 14 | Draws·a·filled·triangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, |
11 | ···int·codepoint) | 11 | ···int·codepoint) |
12 | void·al_draw_glyph(const·ALLEGRO_FONT·*f,·ALLEGRO_COLOR·color,·float·x,·float·y, | ||
13 | ···int·codepoint) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given | 14 | Draws·the·glyph·that·corresponds·with·\f[CR]codepoint\f[R]·in·the·given |
17 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. | 15 | \f[CR]color\f[R]·using·the·given·\f[CR]font\f[R]. |
18 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. | 16 | If·\f[CR]font\f[R]·does·not·have·such·a·glyph,·nothing·will·be·drawn. |
19 | .PP | 17 | .PP |
20 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use | 18 | To·draw·a·string·as·left·to·right·horizontal·text·you·will·need·to·use |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, |
11 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, | 11 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, |
12 | ···int·start,·int·end,·int·type) | 12 | ···int·start,·int·end,·int·type) |
13 | int·al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
14 | ···ALLEGRO_BITMAP*·texture,·ALLEGRO_INDEX_BUFFER*·index_buffer, | ||
15 | ···int·start,·int·end,·int·type) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Draws·a·subset·of·the·passed·vertex·buffer. | 15 | Draws·a·subset·of·the·passed·vertex·buffer. |
19 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. | 16 | This·function·uses·an·index·buffer·to·specify·which·vertices·to·use. |
20 | Both·buffers·must·not·be·locked. | 17 | Both·buffers·must·not·be·locked. |
21 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 18 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
22 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the | 19 | both·buffers·must·support·reading·(i.e.\·they·must·be·created·with·the |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 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) | 11 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) |
12 | int·al_draw_indexed_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···ALLEGRO_BITMAP*·texture,·const·int*·indices,·int·num_vtx,·int·type) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·subset·of·the·passed·vertex·array. | 14 | Draws·a·subset·of·the·passed·vertex·array. |
17 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. | 15 | This·function·uses·an·index·array·to·specify·which·vertices·to·use. |
18 | .PP | 16 | .PP |
19 | \f[I]Parameters:\f[R] | 17 | \f[I]Parameters:\f[R] |
20 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, |
12 | ···float·y,·float·diff,·int·flags,·const·char·*text) | 12 | ···float·y,·float·diff,·int·flags,·const·char·*text) |
13 | void·al_draw_justified_text(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
15 | ···float·y,·float·diff,·int·flags,·const·char·*text) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region | 15 | Like·al_draw_text(3alleg5),·but·justifies·the·string·to·the·region |
19 | x1\-x2. | 16 | x1\-x2. |
20 | .PP | 17 | .PP |
21 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space | 18 | The·\f[CR]diff\f[R]·parameter·is·the·maximum·amount·of·horizontal·space |
22 | to·allow·between·words. | 19 | to·allow·between·words. |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, |
12 | ···float·diff,·int·flags,·const·char·*format,·...) | 12 | ···float·diff,·int·flags,·const·char·*format,·...) |
13 | void·al_draw_justified_textf(const·ALLEGRO_FONT·*f, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2,·float·y, | ||
15 | ···float·diff,·int·flags,·const·char·*format,·...) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Formatted·text·output,·using·a·printf()·style·format·string. | 15 | Formatted·text·output,·using·a·printf()·style·format·string. |
19 | All·parameters·have·the·same·meaning·as·with | 16 | All·parameters·have·the·same·meaning·as·with |
20 | al_draw_justified_text(3alleg5)·otherwise. | 17 | al_draw_justified_text(3alleg5)·otherwise. |
21 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
22 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). | 19 | al_draw_justified_text(3alleg5),·al_draw_justified_ustr(3alleg5). |
Offset 7, 16 lines modified | Offset 7, 13 lines modified | ||
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, | 10 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | 11 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, |
12 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) | 12 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) |
13 | void·al_draw_justified_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x1,·float·x2, | ||
15 | ···float·y,·float·diff,·int·flags,·const·ALLEGRO_USTR·*ustr) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an | 15 | Like·al_draw_justified_text(3alleg5),·except·the·text·is·passed·as·an |
19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
20 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
21 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). | 18 | al_draw_justified_text(3alleg5),·al_draw_justified_textf(3alleg5). |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_line(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·line·segment·between·two·points. | 14 | Draws·a·line·segment·between·two·points. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line | 18 | x1,·y1,·x2,·y2·\-·Start·and·end·points·of·the·line |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·char·*text) | 12 | ·····int·flags,·const·char·*text) |
13 | void·al_draw_multiline_text(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·char·*text) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple | 15 | Like·al_draw_text(3alleg5),·but·this·function·supports·drawing·multiple |
19 | lines·of·text. | 16 | lines·of·text. |
20 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the | 17 | It·will·break·\f[CR]text\f[R]·in·lines·based·on·its·contents·and·the |
21 | \f[CR]max_width\f[R]·parameter. | 18 | \f[CR]max_width\f[R]·parameter. |
22 | The·lines·are·then·layed·out·vertically·depending·on·the | 19 | The·lines·are·then·layed·out·vertically·depending·on·the |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·char·*format,·...) | 12 | ·····int·flags,·const·char·*format,·...) |
13 | void·al_draw_multiline_textf(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·char·*format,·...) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Formatted·text·output,·using·a·printf()·style·format·string. | 15 | Formatted·text·output,·using·a·printf()·style·format·string. |
19 | All·parameters·have·the·same·meaning·as·with | 16 | All·parameters·have·the·same·meaning·as·with |
20 | al_draw_multiline_text(3alleg5)·otherwise. | 17 | al_draw_multiline_text(3alleg5)·otherwise. |
21 | .SH·SINCE | 18 | .SH·SINCE |
22 | 5.1.9 | 19 | 5.1.9 |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, |
11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | 11 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, |
12 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) | 12 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) |
13 | void·al_draw_multiline_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ·····ALLEGRO_COLOR·color,·float·x,·float·y,·float·max_width,·float·line_height, | ||
15 | ·····int·flags,·const·ALLEGRO_USTR·*ustr) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an | 15 | Like·al_draw_multiline_text(3alleg5),·except·the·text·is·passed·as·an |
19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
20 | .SH·SINCE | 17 | .SH·SINCE |
21 | 5.1.9 | 18 | 5.1.9 |
22 | .SH·SEE·ALSO | 19 | .SH·SEE·ALSO |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, |
11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_pieslice(float·cx,·float·cy,·float·r,·float·start_theta, | ||
13 | ···float·delta_theta,·ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·pieslice·(outlined·circular·sector). | 14 | Draws·a·pieslice·(outlined·circular·sector). |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | cx,·cy·\-·Center·of·the·pieslice | 18 | cx,·cy·\-·Center·of·the·pieslice |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, |
11 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | 11 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) |
12 | void·al_draw_polygon(const·float·*vertices,·int·vertex_count, | ||
13 | ···int·join_style,·ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draw·an·unfilled·polygon. | 14 | Draw·an·unfilled·polygon. |
17 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to | 15 | This·is·the·same·as·passing·\f[CR]ALLEGRO_LINE_CAP_CLOSED\f[R]·to |
18 | al_draw_polyline(3alleg5). | 16 | al_draw_polyline(3alleg5). |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 18 | vertex·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, |
11 | ···int·vertex_count,·int·join_style,·int·cap_style, | 11 | ···int·vertex_count,·int·join_style,·int·cap_style, |
12 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | 12 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) |
13 | void·al_draw_polyline(const·float*·vertices,·int·vertex_stride, | ||
14 | ···int·vertex_count,·int·join_style,·int·cap_style, | ||
15 | ···ALLEGRO_COLOR·color,·float·thickness,·float·miter_limit) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Draw·a·series·of·line·segments. | 15 | Draw·a·series·of·line·segments. |
19 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
20 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates | 17 | vertices·\-·Interleaved·array·of·(x,·y)·vertex·coordinates |
21 | .IP·\[bu]·2 | 18 | .IP·\[bu]·2 |
22 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the | 19 | vertex_stride·\-·the·number·of·bytes·between·pairs·of·vertices·(the |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, |
11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | 11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) |
12 | int·al_draw_prim(const·void*·vtxs,·const·ALLEGRO_VERTEX_DECL*·decl, | ||
13 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·subset·of·the·passed·vertex·array. | 14 | Draws·a·subset·of·the·passed·vertex·array. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves | 18 | texture·\-·Texture·to·use,·pass·NULL·to·use·only·color·shaded·primitves |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···ALLEGRO_COLOR·color,·float·thickness) | 11 | ···ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·outlined·rectangle. | 14 | Draws·an·outlined·rectangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, |
11 | ···float·thickness,·int·num_segments) | 11 | ···float·thickness,·int·num_segments) |
12 | void·al_draw_ribbon(const·float·*points,·int·points_stride,·ALLEGRO_COLOR·color, | ||
13 | ···float·thickness,·int·num_segments) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·ribbon·given·an·array·of·points. | 14 | Draws·a·ribbon·given·an·array·of·points. |
17 | The·ribbon·will·go·through·all·of·the·passed·points. | 15 | The·ribbon·will·go·through·all·of·the·passed·points. |
18 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, | 16 | The·points·buffer·should·consist·of·regularly·spaced·doublets·of·floats, |
19 | corresponding·to·x·and·y·coordinates·of·the·vertices. | 17 | corresponding·to·x·and·y·coordinates·of·the·vertices. |
20 | .PP | 18 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_rounded_rectangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·rx,·float·ry,·ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·outlined·rounded·rectangle. | 14 | Draws·an·outlined·rounded·rectangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle | 18 | x1,·y1,·x2,·y2·\-·Upper·left·and·lower·right·points·of·the·rectangle |
Offset 8, 18 lines modified | Offset 8, 14 lines modified | ||
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, | 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*), | 11 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), |
12 | ···void·(*step)(uintptr_t,·int), | 12 | ···void·(*step)(uintptr_t,·int), |
13 | ···void·(*draw)(uintptr_t,·int,·int)) | 13 | ···void·(*draw)(uintptr_t,·int,·int)) |
14 | void·al_draw_soft_line(ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·uintptr_t·state, | ||
15 | ···void·(*first)(uintptr_t,·int,·int,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
16 | ···void·(*step)(uintptr_t,·int), | ||
17 | ···void·(*draw)(uintptr_t,·int,·int)) | ||
18 | .EE | 14 | .EE |
19 | .SH·DESCRIPTION | 15 | .SH·DESCRIPTION |
20 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel | 16 | Draws·a·line·using·the·software·rasterizer·and·user·supplied·pixel |
21 | functions. | 17 | functions. |
22 | For·help·in·understanding·what·these·functions·do,·see·the | 18 | For·help·in·understanding·what·these·functions·do,·see·the |
23 | implementation·of·the·various·shading·routines·in | 19 | implementation·of·the·various·shading·routines·in |
24 | addons/primitives/line_soft.c. | 20 | addons/primitives/line_soft.c. |
Offset 10, 20 lines modified | Offset 10, 14 lines modified | ||
10 | void·al_draw_soft_triangle( | 10 | void·al_draw_soft_triangle( |
11 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, | 11 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, |
12 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | 12 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), |
13 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), | 13 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), |
14 | ···void·(*step)(uintptr_t,·int), | 14 | ···void·(*step)(uintptr_t,·int), |
15 | ···void·(*draw)(uintptr_t,·int,·int,·int)) | 15 | ···void·(*draw)(uintptr_t,·int,·int,·int)) |
16 | void·al_draw_soft_triangle( | ||
17 | ···ALLEGRO_VERTEX*·v1,·ALLEGRO_VERTEX*·v2,·ALLEGRO_VERTEX*·v3,·uintptr_t·state, | ||
18 | ···void·(*init)(uintptr_t,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*,·ALLEGRO_VERTEX*), | ||
19 | ···void·(*first)(uintptr_t,·int,·int,·int,·int), | ||
20 | ···void·(*step)(uintptr_t,·int), | ||
21 | ···void·(*draw)(uintptr_t,·int,·int,·int)) | ||
22 | .EE | 16 | .EE |
23 | .SH·DESCRIPTION | 17 | .SH·DESCRIPTION |
24 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel | 18 | Draws·a·triangle·using·the·software·rasterizer·and·user·supplied·pixel |
25 | functions. | 19 | functions. |
26 | For·help·in·understanding·what·these·functions·do,·see·the | 20 | For·help·in·understanding·what·these·functions·do,·see·the |
27 | implementation·of·the·various·shading·routines·in | 21 | implementation·of·the·various·shading·routines·in |
28 | addons/primitives/tri_soft.c. | 22 | addons/primitives/tri_soft.c. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) |
11 | void·al_draw_spline(const·float·points[8],·ALLEGRO_COLOR·color,·float·thickness) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Draws·a·Bézier·spline·given·4·control·points. | 13 | Draws·a·Bézier·spline·given·4·control·points. |
15 | .PP | 14 | .PP |
16 | \f[I]Parameters:\f[R] | 15 | \f[I]Parameters:\f[R] |
17 | .IP·\[bu]·2 | 16 | .IP·\[bu]·2 |
18 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points | 17 | points·\-·An·array·of·4·pairs·of·coordinates·of·the·4·control·points |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_text(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | 11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, |
12 | ···char·const·*text)· | 12 | ···char·const·*text)· |
13 | void·al_draw_text(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
15 | ···char·const·*text)· | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap | 15 | Writes·the·NUL\-terminated·string·\f[CR]text\f[R]·onto·the·target·bitmap |
19 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified | 16 | at·position·\f[CR]x\f[R],·\f[CR]y\f[R],·using·the·specified |
20 | \f[CR]font\f[R]. | 17 | \f[CR]font\f[R]. |
21 | .PP | 18 | .PP |
22 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: | 19 | The·\f[CR]flags\f[R]·parameter·can·be·0·or·one·of·the·following·flags: |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, |
11 | ···float·x,·float·y,·int·flags, | 11 | ···float·x,·float·y,·int·flags, |
12 | ···const·char·*format,·...) | 12 | ···const·char·*format,·...) |
13 | void·al_draw_textf(const·ALLEGRO_FONT·*font,·ALLEGRO_COLOR·color, | ||
14 | ···float·x,·float·y,·int·flags, | ||
15 | ···const·char·*format,·...) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Formatted·text·output,·using·a·printf()·style·format·string. | 15 | Formatted·text·output,·using·a·printf()·style·format·string. |
19 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) | 16 | All·parameters·have·the·same·meaning·as·with·al_draw_text(3alleg5) |
20 | otherwise. | 17 | otherwise. |
21 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
22 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) | 19 | al_draw_text(3alleg5),·al_draw_ustr(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, |
11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | 11 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) |
12 | void·al_draw_triangle(float·x1,·float·y1,·float·x2,·float·y2, | ||
13 | ···float·x3,·float·y3,·ALLEGRO_COLOR·color,·float·thickness) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·an·outlined·triangle. | 14 | Draws·an·outlined·triangle. |
17 | .PP | 15 | .PP |
18 | \f[I]Parameters:\f[R] | 16 | \f[I]Parameters:\f[R] |
19 | .IP·\[bu]·2 | 17 | .IP·\[bu]·2 |
20 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle | 18 | x1,·y1,·x2,·y2,·x3,·y3·\-·Three·points·of·the·triangle |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, |
11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | 11 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, |
12 | ···const·ALLEGRO_USTR·*ustr)· | 12 | ···const·ALLEGRO_USTR·*ustr)· |
13 | void·al_draw_ustr(const·ALLEGRO_FONT·*font, | ||
14 | ···ALLEGRO_COLOR·color,·float·x,·float·y,·int·flags, | ||
15 | ···const·ALLEGRO_USTR·*ustr)· | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR | 15 | Like·al_draw_text(3alleg5),·except·the·text·is·passed·as·an·ALLEGRO_USTR |
19 | instead·of·a·NUL\-terminated·char·array. | 16 | instead·of·a·NUL\-terminated·char·array. |
20 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
21 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), | 18 | al_draw_text(3alleg5),·al_draw_justified_ustr(3alleg5), |
22 | al_draw_multiline_ustr(3alleg5) | 19 | al_draw_multiline_ustr(3alleg5) |
Offset 5, 16 lines modified | Offset 5, 14 lines modified | ||
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, | 10 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, |
11 | ···ALLEGRO_BITMAP*·texture,·int·staal_get_allegro_acodec_version | ||
12 | int·al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·vertex_buffer, | ||
13 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) | 11 | ···ALLEGRO_BITMAP*·texture,·int·start,·int·end,·int·type) |
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Draws·a·subset·of·the·passed·vertex·buffer. | 14 | Draws·a·subset·of·the·passed·vertex·buffer. |
17 | The·vertex·buffer·must·not·be·locked. | 15 | The·vertex·buffer·must·not·be·locked. |
18 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures | 16 | Additionally,·to·draw·onto·memory·bitmaps·or·with·memory·bitmap·textures |
19 | the·vertex·buffer·must·support·reading·(i.e.\··it·must·be·created·with | 17 | the·vertex·buffer·must·support·reading·(i.e.\··it·must·be·created·with |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) |
11 | ALLEGRO_EVENT_SOURCE·*al_enable_menu_event_source(ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Enables·a·unique·event·source·for·this·menu. | 13 | Enables·a·unique·event·source·for·this·menu. |
15 | It·and·all·of·its·sub\-menus·will·use·this·event·source. | 14 | It·and·all·of·its·sub\-menus·will·use·this·event·source. |
16 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) | 15 | (It·is·safe·to·call·this·multiple·times·on·the·same·menu.) |
17 | .PP | 16 | .PP |
18 | Returns·the·event·source. | 17 | Returns·the·event·source. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void·al_fill_silence(void·*buf,·unsigned·int·samples, |
11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | 11 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) |
12 | void·al_fill_silence(void·*buf,·unsigned·int·samples, | ||
13 | ···ALLEGRO_AUDIO_DEPTH·depth,·ALLEGRO_CHANNEL_CONF·chan_conf) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel | 14 | Fill·a·buffer·with·silence,·for·the·given·format·and·channel |
17 | configuration. | 15 | configuration. |
18 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and | 16 | The·buffer·must·have·enough·space·for·the·given·number·of·samples,·and |
19 | be·properly·aligned. | 17 | be·properly·aligned. |
20 | .SH·SINCE | 18 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) |
11 | ALLEGRO_MENU·*al_find_menu(ALLEGRO_MENU·*haystack,·uint16_t·id) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given | 13 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·any·submenu·with·the·given |
15 | \f[CR]id\f[R]. | 14 | \f[CR]id\f[R]. |
16 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 15 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
17 | index.) | 16 | index.) |
18 | .PP | 17 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, |
11 | ···int·*index) | 11 | ···int·*index) |
12 | bool·al_find_menu_item(ALLEGRO_MENU·*haystack,·uint16_t·id,·ALLEGRO_MENU·**menu, | ||
13 | ···int·*index) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given | 14 | Searches·in·the·\f[CR]haystack\f[R]·menu·for·an·item·with·the·given |
17 | \f[CR]id\f[R]. | 15 | \f[CR]id\f[R]. |
18 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an | 16 | (Note·that·this·only·represents·a·literal·ID,·and·cannot·be·used·as·an |
19 | index.) | 17 | index.) |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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; | 10 | typedef·int32_t·al_fixed; |
11 | typedef·int32_t·al_fixed; | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | A·fixed·point·number. | 13 | A·fixed·point·number. |
15 | .PP | 14 | .PP |
16 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and | 15 | Allegro·provides·some·routines·for·working·with·fixed·point·numbers,·and |
17 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. | 16 | defines·the·type·\f[CR]al_fixed\f[R]·to·be·a·signed·32\-bit·integer. |
18 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the | 17 | The·high·word·is·used·for·the·integer·part·and·the·low·word·for·the |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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] | 10 | #define·al_free(p)·\[rs] |
11 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_free(p)·\[rs] | ||
13 | ···(al_free_with_context((p),·__LINE__,·__FILE__,·__func__)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be | 14 | Like·free()·in·the·C·standard·library,·but·the·implementation·may·be |
17 | overridden. | 15 | overridden. |
18 | .PP | 16 | .PP |
19 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be | 17 | Additionally,·on·Windows,·a·memory·block·allocated·by·one·DLL·must·be |
20 | freed·from·the·same·DLL. | 18 | freed·from·the·same·DLL. |
Offset 3, 11 lines modified | Offset 3, 13 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) | ||
10 | .EE | 11 | .EE |
11 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
12 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
13 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_audio_version(void) |
11 | uint32_t·al_get_allegro_audio_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_color_version(void) |
11 | uint32_t·al_get_allegro_color_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_font_version(void) |
11 | uint32_t·al_get_allegro_font_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_image_version(void) |
11 | uint32_t·al_get_allegro_image_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_memfile_version(void) |
11 | uint32_t·al_get_allegro_memfile_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_native_dialog_version(void) |
11 | uint32_t·al_get_allegro_native_dialog_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_physfs_version(void) |
11 | uint32_t·al_get_allegro_physfs_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_primitives_version(void) |
11 | uint32_t·al_get_allegro_primitives_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_ttf_version(void) |
11 | uint32_t·al_get_allegro_ttf_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | uint32_t·al_get_allegro_video_version(void) |
11 | uint32_t·al_get_allegro_video_version(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as | 13 | Returns·the·(compiled)·version·of·the·addon,·in·the·same·format·as |
15 | al_get_allegro_version(3alleg5). | 14 | al_get_allegro_version(3alleg5). |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.12 | 16 | 5.1.12 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) |
11 | size_t·al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH·depth) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. | 13 | Return·the·size·of·a·sample,·in·bytes,·for·the·given·format. |
15 | The·format·is·one·of·the·values·listed·under | 14 | The·format·is·one·of·the·values·listed·under |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 15 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) |
11 | const·char*·al_get_audio_device_name(const·ALLEGRO_AUDIO_DEVICE·*·device) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·user·friendly·display·name·of·the·device. | 13 | Get·the·user·friendly·display·name·of·the·device. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.8 | 15 | 5.2.8 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) |
11 | const·ALLEGRO_AUDIO_DEVICE*·al_get_audio_output_device(int·index) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·output·audio·device·of·the·specified·index. | 13 | Get·the·output·audio·device·of·the·specified·index. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.8 | 15 | 5.2.8 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) |
11 | ALLEGRO_AUDIO_RECORDER_EVENT·*al_get_audio_recorder_event(ALLEGRO_EVENT·*event) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). | 13 | Returns·the·event·as·an·ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5). |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.1 | 15 | 5.1.1 |
17 | .RS | 16 | .RS |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER·*r) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·event·source·for·the·recorder·that·generates·the·various | 13 | Returns·the·event·source·for·the·recorder·that·generates·the·various |
15 | recording·events. | 14 | recording·events. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.1 | 16 | 5.1.1 |
18 | .RS | 17 | .RS |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_get_audio_stream_attached(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·whether·the·stream·is·attached·to·something. | 13 | Return·whether·the·stream·is·attached·to·something. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_audio_stream_to_mixer(3alleg5), | 15 | al_attach_audio_stream_to_mixer(3alleg5), |
17 | al_attach_audio_stream_to_voice(3alleg5), | 16 | al_attach_audio_stream_to_voice(3alleg5), |
18 | al_detach_audio_stream(3alleg5). | 17 | al_detach_audio_stream(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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( | 10 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_CHANNEL_CONF·al_get_audio_stream_channels( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Return·the·stream·channel·configuration. | 14 | Return·the·stream·channel·configuration. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | ALLEGRO_CHANNEL_CONF(3alleg5). | 16 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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( | 10 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_AUDIO_DEPTH·al_get_audio_stream_depth( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Return·the·stream·audio·depth. | 14 | Return·the·stream·audio·depth. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 16 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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( | 10 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( |
11 | ···ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_EVENT_SOURCE·*al_get_audio_stream_event_source( | ||
13 | ···ALLEGRO_AUDIO_STREAM·*stream) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Retrieve·the·associated·event·source. | 14 | Retrieve·the·associated·event·source. |
17 | .PP | 15 | .PP |
18 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the | 16 | See·al_get_audio_stream_fragment(3alleg5)·for·a·description·of·the |
19 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams | 17 | ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT(3alleg5)·event·that·audio·streams |
20 | emit. | 18 | emit. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | void·*al_get_audio_stream_fragment(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to | 13 | When·using·Allegro\[cq]s·audio·streaming,·you·will·use·this·function·to |
15 | continuously·provide·new·sample·data·to·a·stream. | 14 | continuously·provide·new·sample·data·to·a·stream. |
16 | .PP | 15 | .PP |
17 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the | 16 | If·the·stream·is·ready·for·new·data,·the·function·will·return·the |
18 | address·of·an·internal·buffer·to·be·filled·with·audio·data. | 17 | address·of·an·internal·buffer·to·be·filled·with·audio·data. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_fragments(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·number·of·fragments·this·stream·uses. | 13 | Returns·the·number·of·fragments·this·stream·uses. |
15 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when | 14 | This·is·the·same·value·as·passed·to·al_create_audio_stream(3alleg5)·when |
16 | a·new·stream·is·created. | 15 | a·new·stream·is·created. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_get_available_audio_stream_fragments(3alleg5) | 17 | al_get_available_audio_stream_fragments(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_frequency(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·stream·frequency·(in·Hz). | 13 | Return·the·stream·frequency·(in·Hz). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_gain(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·playback·gain·of·the·stream. | 13 | Return·the·playback·gain·of·the·stream. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_audio_stream_gain(3alleg5). | 15 | al_set_audio_stream_gain(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | unsigned·int·al_get_audio_stream_length(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·stream·length·in·samples. | 13 | Return·the·stream·length·in·samples. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) |
11 | double·al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·length·of·the·stream·in·seconds,·if·known. | 13 | Return·the·length·of·the·stream·in·seconds,·if·known. |
15 | Otherwise·returns·zero. | 14 | Otherwise·returns·zero. |
16 | .PP | 15 | .PP |
17 | Currently·this·can·only·be·called·on·streams·created·with | 16 | Currently·this·can·only·be·called·on·streams·created·with |
18 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 17 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_pan(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·pan·value·of·the·stream. | 13 | Get·the·pan·value·of·the·stream. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_audio_stream_pan(3alleg5). | 15 | al_set_audio_stream_pan(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | uint64_t·al_get_audio_stream_played_samples(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream | 13 | Get·the·number·of·samples·consumed·by·the·parent·since·the·audio·stream |
15 | was·started. | 14 | was·started. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.8 | 16 | 5.1.8 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_get_audio_stream_playing(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·true·if·the·stream·is·playing. | 13 | Return·true·if·the·stream·is·playing. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_audio_stream_playing(3alleg5). | 15 | al_set_audio_stream_playing(3alleg5). |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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( | 10 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | ALLEGRO_PLAYMODE·al_get_audio_stream_playmode( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Return·the·playback·mode·of·the·stream. | 14 | Return·the·playback·mode·of·the·stream. |
17 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
18 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). | 16 | ALLEGRO_PLAYMODE(3alleg5),·al_set_audio_stream_playmode(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) |
11 | double·al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·position·of·the·stream·in·seconds. | 13 | Return·the·position·of·the·stream·in·seconds. |
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). |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) |
11 | float·al_get_audio_stream_speed(const·ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·relative·playback·speed·of·the·stream. | 13 | Return·the·relative·playback·speed·of·the·stream. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_audio_stream_speed(3alleg5). | 15 | al_set_audio_stream_speed(3alleg5). |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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( | 10 | unsigned·int·al_get_available_audio_stream_fragments( |
11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | 11 | ···const·ALLEGRO_AUDIO_STREAM·*stream) |
12 | unsigned·int·al_get_available_audio_stream_fragments( | ||
13 | ···const·ALLEGRO_AUDIO_STREAM·*stream) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, | 14 | Returns·the·number·of·available·fragments·in·the·stream,·that·is, |
17 | fragments·which·are·not·currently·filled·with·data·for·playback. | 15 | fragments·which·are·not·currently·filled·with·data·for·playback. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
19 | al_get_audio_stream_fragment(3alleg5), | 17 | al_get_audio_stream_fragment(3alleg5), |
20 | al_get_audio_stream_fragments(3alleg5) | 18 | al_get_audio_stream_fragments(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) |
11 | size_t·al_get_channel_count(ALLEGRO_CHANNEL_CONF·conf) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·number·of·channels·for·the·given·channel·configuration,·which | 13 | Return·the·number·of·channels·for·the·given·channel·configuration,·which |
15 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). | 14 | is·one·of·the·values·listed·under·ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_default_menu_event_source(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·default·event·source·used·for·menu·clicks. | 13 | Returns·the·default·event·source·used·for·menu·clicks. |
15 | If·a·menu·was·not·given·its·own·event·source·via | 14 | If·a·menu·was·not·given·its·own·event·source·via |
16 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default | 15 | al_enable_menu_event_source(3alleg5),·then·it·will·use·this·default |
17 | source. | 16 | source. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MIXER·*al_get_default_mixer(void) |
11 | ALLEGRO_MIXER·*al_get_default_mixer(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. | 13 | Return·the·default·mixer,·or·NULL·if·one·has·not·been·set. |
15 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in | 14 | Although·different·configurations·of·mixers·and·voices·can·be·used,·in |
16 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. | 15 | most·cases·a·single·mixer·attached·to·a·voice·is·what·you·want. |
17 | The·default·mixer·is·used·by·al_play_sample(3alleg5). | 16 | The·default·mixer·is·used·by·al_play_sample(3alleg5). |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_VOICE·*al_get_default_voice(void) |
11 | ALLEGRO_VOICE·*al_get_default_voice(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·default·voice·or·NULL·if·there·is·none. | 13 | Returns·the·default·voice·or·NULL·if·there·is·none. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.13 | 15 | 5.1.13 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_get_default_mixer(3alleg5) | 17 | al_get_default_mixer(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*display) |
11 | ALLEGRO_MENU·*al_get_display_menu(ALLEGRO_DISPLAY·*display) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or | 13 | Returns·the·menu·associated·with·the·\f[CR]display\f[R],·or |
15 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. | 14 | \f[CR]NULL\f[R]·if·it·does·not·have·a·menu. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) |
11 | ALLEGRO_FONT·*al_get_fallback_font(ALLEGRO_FONT·*font) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Retrieves·the·fallback·font·for·this·font·or·NULL. | 13 | Retrieves·the·fallback·font·for·this·font·or·NULL. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.12 | 15 | 5.1.12 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_set_fallback_font(3alleg5) | 17 | al_set_fallback_font(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_ascent(const·ALLEGRO_FONT·*f) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·ascent·of·the·specified·font. | 13 | Returns·the·ascent·of·the·specified·font. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) | 15 | al_get_font_descent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_descent(const·ALLEGRO_FONT·*f) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·descent·of·the·specified·font. | 13 | Returns·the·descent·of·the·specified·font. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) | 15 | al_get_font_ascent(3alleg5),·al_get_font_line_height(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) |
11 | int·al_get_font_line_height(const·ALLEGRO_FONT·*f) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. | 13 | Returns·the·usual·height·of·a·line·of·text·in·the·specified·font. |
15 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. | 14 | For·bitmap·fonts·this·is·simply·the·height·of·all·glyph·bitmaps. |
16 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. | 15 | For·truetype·fonts·it·is·whatever·the·font·file·specifies. |
17 | In·particular,·some·special·glyphs·may·be·higher·than·the·height | 16 | In·particular,·some·special·glyphs·may·be·higher·than·the·height |
18 | returned·here. | 17 | returned·here. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) |
11 | int·al_get_font_ranges(ALLEGRO_FONT·*f,·int·ranges_count,·int·*ranges) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of | 13 | Gets·information·about·all·glyphs·contained·in·a·font,·as·a·list·of |
15 | ranges. | 14 | ranges. |
16 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). | 15 | Ranges·have·the·same·format·as·with·al_grab_font_from_bitmap(3alleg5). |
17 | .PP | 16 | .PP |
18 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be | 17 | \f[CR]ranges_count\f[R]·is·the·maximum·number·of·ranges·that·will·be |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) |
11 | bool·al_get_glyph(const·ALLEGRO_FONT·*f,·int·prev_codepoint,·int·codepoint,·ALLEGRO_GLYPH·*glyph) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to | 13 | Gets·all·the·information·about·a·glyph,·including·the·bitmap,·needed·to |
15 | draw·it·yourself. | 14 | draw·it·yourself. |
16 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to | 15 | prev_codepoint·is·the·codepoint·in·the·string·before·the·one·you·want·to |
17 | draw·and·is·used·for·kerning. | 16 | draw·and·is·used·for·kerning. |
18 | codepoint·is·the·character·you·want·to·get·info·about. | 17 | codepoint·is·the·character·you·want·to·get·info·about. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) |
11 | int·al_get_glyph_advance(const·ALLEGRO_FONT·*f,·int·codepoint1,·int·codepoint2) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for | 13 | This·function·returns·by·how·much·the·x·position·should·be·advanced·for |
15 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 | 14 | left·to·right·text·drawing·when·the·glyph·that·corresponds·to·codepoint1 |
16 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the | 15 | has·been·drawn,·and·the·glyph·that·corresponds·to·codepoint2·will·be·the |
17 | next·to·be·drawn. | 16 | next·to·be·drawn. |
18 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph | 17 | This·takes·into·consideration·the·horizontal·advance·width·of·the·glyph |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 11 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
12 | bool·al_get_glyph_dimensions(const·ALLEGRO_FONT·*f, | ||
13 | ···int·codepoint,·int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Sometimes,·the·al_get_glyph_width(3alleg5)·or | 14 | Sometimes,·the·al_get_glyph_width(3alleg5)·or |
17 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph | 15 | al_get_glyph_advance(3alleg5)·functions·are·not·enough·for·exact·glyph |
18 | placement,·so·this·function·returns·some·additional·information, | 16 | placement,·so·this·function·returns·some·additional·information, |
19 | particularly·if·you·want·to·draw·the·font·vertically. | 17 | particularly·if·you·want·to·draw·the·font·vertically. |
20 | .PP | 18 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) |
11 | int·al_get_glyph_width(const·ALLEGRO_FONT·*f,·int·codepoint) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds | 13 | This·function·returns·the·width·in·pixels·of·the·glyph·that·corresponds |
15 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. | 14 | with·\f[CR]codepoint\f[R]·in·the·font·\f[CR]font\f[R]. |
16 | Returns·zero·if·the·font·does·not·have·such·a·glyph. | 15 | Returns·zero·if·the·font·does·not·have·such·a·glyph. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.12 | 17 | 5.1.12 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | int·al_get_index_buffer_size(ALLEGRO_INDEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·size·of·the·index·buffer | 13 | Returns·the·size·of·the·index·buffer |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | ALLEGRO_INDEX_BUFFER(3alleg5) | 17 | ALLEGRO_INDEX_BUFFER(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) |
11 | const·char·*al_get_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·caption·associated·with·the·menu·item. | 13 | Returns·the·caption·associated·with·the·menu·item. |
15 | It·is·valid·as·long·as·the·caption·is·not·modified. | 14 | It·is·valid·as·long·as·the·caption·is·not·modified. |
16 | .PP | 15 | .PP |
17 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. | 16 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) |
11 | int·al_get_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·currently·set·flags. | 13 | Returns·the·currently·set·flags. |
15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
16 | flags. | 15 | flags. |
17 | .PP | 16 | .PP |
18 | Returns·\-1·if·the·item·was·not·found. | 17 | Returns·\-1·if·the·item·was·not·found. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) |
11 | ALLEGRO_BITMAP·*al_get_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·icon·associated·with·the·menu. | 13 | Returns·the·icon·associated·with·the·menu. |
15 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call | 14 | It·is·safe·to·draw·to·the·returned·bitmap,·but·you·must·call |
16 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. | 15 | al_set_menu_item_icon(3alleg5)·in·order·for·the·changes·to·be·applied. |
17 | .PP | 16 | .PP |
18 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. | 17 | Returns·\f[CR]NULL\f[R]·if·the·item·was·not·found·or·if·it·has·no·icon. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) |
11 | bool·al_get_mixer_attached(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·true·if·the·mixer·is·attached·to·something. | 13 | Return·true·if·the·mixer·is·attached·to·something. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_mixer_has_attachments(3alleg5), | 15 | al_mixer_has_attachments(3alleg5), |
17 | al_attach_sample_instance_to_mixer(3alleg5), | 16 | al_attach_sample_instance_to_mixer(3alleg5), |
18 | al_attach_audio_stream_to_mixer(3alleg5), | 17 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_CHANNEL_CONF·al_get_mixer_channels(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·mixer·channel·configuration. | 13 | Return·the·mixer·channel·configuration. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_CHANNEL_CONF(3alleg5). | 15 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_mixer_depth(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·mixer·audio·depth. | 13 | Return·the·mixer·audio·depth. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 15 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) |
11 | unsigned·int·al_get_mixer_frequency(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·mixer·frequency·(in·Hz). | 13 | Return·the·mixer·frequency·(in·Hz). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_mixer_frequency(3alleg5) | 15 | al_set_mixer_frequency(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) |
11 | float·al_get_mixer_gain(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·mixer·gain·(amplification·factor). | 13 | Return·the·mixer·gain·(amplification·factor). |
15 | The·default·is·1.0. | 14 | The·default·is·1.0. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.0.6,·5.1.0 | 16 | 5.0.6,·5.1.0 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) |
11 | bool·al_get_mixer_playing(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·true·if·the·mixer·is·playing. | 13 | Return·true·if·the·mixer·is·playing. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_mixer_playing(3alleg5). | 15 | al_set_mixer_playing(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) |
11 | ALLEGRO_MIXER_QUALITY·al_get_mixer_quality(const·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·mixer·quality. | 13 | Return·the·mixer·quality. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) | 15 | ALLEGRO_MIXER_QUALITY(3alleg5),·al_set_mixer_quality(3alleg5) |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) |
11 | int·al_get_native_file_dialog_count(const·ALLEGRO_FILECHOOSER·*dialog) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. | 13 | Returns·the·number·of·files·selected,·or·0·if·the·dialog·was·cancelled. |
Offset 6, 14 lines modified | Offset 6, 12 lines modified | ||
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( | 10 | const·char·*al_get_native_file_dialog_path( |
11 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | 11 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) |
12 | const·char·*al_get_native_file_dialog_path( | ||
13 | ···const·ALLEGRO_FILECHOOSER·*dialog,·size_t·i) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. | 14 | Returns·one·of·the·selected·paths·with·index·\f[CR]i\f[R]. |
17 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of | 15 | The·index·should·range·from·\f[CR]0\f[R]·to·the·return·value·of |
18 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. | 16 | al_get_native_file_dialog_count(3alleg5)·\f[CR]\-1\f[R]. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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( | 10 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( |
11 | ···ALLEGRO_TEXTLOG·*textlog) | 11 | ···ALLEGRO_TEXTLOG·*textlog) |
12 | ALLEGRO_EVENT_SOURCE·*al_get_native_text_log_event_source( | ||
13 | ···ALLEGRO_TEXTLOG·*textlog) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Get·an·event·source·for·a·text·log·window. | 14 | Get·an·event·source·for·a·text·log·window. |
17 | The·possible·events·are: | 15 | The·possible·events·are: |
18 | .TP | 16 | .TP |
19 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE | 17 | ALLEGRO_EVENT_NATIVE_DIALOG_CLOSE |
20 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close | 18 | The·window·was·requested·to·be·closed,·either·by·pressing·the·close |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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() | 10 | int·al_get_num_audio_output_devices() |
11 | int·al_get_num_audio_output_devices() | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·number·of·available·audio·output·devices·on·the·system. | 13 | Get·the·number·of·available·audio·output·devices·on·the·system. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.8 | 15 | 5.2.8 |
17 | .PP | 16 | .PP |
18 | return·\-1·for·unsupported·drivers. | 17 | return·\-1·for·unsupported·drivers. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_SAMPLE·*al_get_sample(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·sample·data·that·the·sample·instance·plays. | 13 | Return·the·sample·data·that·the·sample·instance·plays. |
15 | .PP | 14 | .PP |
16 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the | 15 | Note·this·returns·a·pointer·to·an·internal·structure,·\f[I]not\f[R]·the |
17 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to | 16 | ALLEGRO_SAMPLE(3alleg5)·that·you·may·have·passed·to |
18 | al_set_sample(3alleg5). | 17 | al_set_sample(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) |
11 | ALLEGRO_CHANNEL_CONF·al_get_sample_channels(const·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·channel·configuration·of·the·sample. | 13 | Return·the·channel·configuration·of·the·sample. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), | 15 | ALLEGRO_CHANNEL_CONF(3alleg5),·al_get_sample_depth(3alleg5), |
17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
18 | al_get_sample_data(3alleg5) | 17 | al_get_sample_data(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) |
11 | void·*al_get_sample_data(const·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·a·pointer·to·the·raw·sample·data. | 13 | Return·a·pointer·to·the·raw·sample·data. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) | 16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_sample_depth(const·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·audio·depth·of·the·sample. | 13 | Return·the·audio·depth·of·the·sample. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), | 15 | ALLEGRO_AUDIO_DEPTH(3alleg5),·al_get_sample_channels(3alleg5), |
17 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), | 16 | al_get_sample_frequency(3alleg5),·al_get_sample_length(3alleg5), |
18 | al_get_sample_data(3alleg5) | 17 | al_get_sample_data(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) |
11 | unsigned·int·al_get_sample_frequency(const·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·frequency·(in·Hz)·of·the·sample. | 13 | Return·the·frequency·(in·Hz)·of·the·sample. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
17 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) | 16 | al_get_sample_length(3alleg5),·al_get_sample_data(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_get_sample_instance_attached(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·whether·the·sample·instance·is·attached·to·something. | 13 | Return·whether·the·sample·instance·is·attached·to·something. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_sample_instance_to_mixer(3alleg5), | 15 | al_attach_sample_instance_to_mixer(3alleg5), |
17 | al_attach_sample_instance_to_voice(3alleg5), | 16 | al_attach_sample_instance_to_voice(3alleg5), |
18 | al_detach_sample_instance(3alleg5) | 17 | al_detach_sample_instance(3alleg5) |
Offset 6, 15 lines modified | Offset 6, 13 lines modified | ||
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( | 10 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( |
11 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) | 11 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
12 | ALLEGRO_CHANNEL_CONF·al_get_sample_instance_channels( | ||
13 | ···const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample | 14 | Return·the·channel·configuration·of·the·sample·instance\[cq]s·sample |
17 | data. | 15 | data. |
18 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
19 | ALLEGRO_CHANNEL_CONF(3alleg5). | 17 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_sample_instance_depth(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. | 13 | Return·the·audio·depth·of·the·sample·instance\[cq]s·sample·data. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 15 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_frequency(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. | 13 | Return·the·frequency·(in·Hz)·of·the·sample·instance\[cq]s·sample·data. |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_gain(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·playback·gain·of·the·sample·instance. | 13 | Return·the·playback·gain·of·the·sample·instance. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_sample_instance_gain(3alleg5) | 15 | al_set_sample_instance_gain(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_length(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·length·of·the·sample·instance·in·sample·values. | 13 | Return·the·length·of·the·sample·instance·in·sample·values. |
15 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample | 14 | This·property·may·differ·from·the·length·of·the·instance\[cq]s·sample |
16 | data. | 15 | data. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_set_sample_instance_length(3alleg5), | 17 | al_set_sample_instance_length(3alleg5), |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_pan(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·pan·value·of·the·sample·instance. | 13 | Get·the·pan·value·of·the·sample·instance. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_sample_instance_pan(3alleg5). | 15 | al_set_sample_instance_pan(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_get_sample_instance_playing(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·true·if·the·sample·instance·is·in·the·playing·state. | 13 | Return·true·if·the·sample·instance·is·in·the·playing·state. |
15 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. | 14 | This·may·be·true·even·if·the·instance·is·not·attached·to·anything. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_set_sample_instance_playing(3alleg5) | 16 | al_set_sample_instance_playing(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | ALLEGRO_PLAYMODE·al_get_sample_instance_playmode(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·playback·mode·of·the·sample·instance. | 13 | Return·the·playback·mode·of·the·sample·instance. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) | 15 | ALLEGRO_PLAYMODE(3alleg5),·al_set_sample_instance_playmode(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | unsigned·int·al_get_sample_instance_position(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·the·playback·position·of·a·sample·instance. | 13 | Get·the·playback·position·of·a·sample·instance. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_sample_instance_position(3alleg5) | 15 | al_set_sample_instance_position(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_speed(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·relative·playback·speed·of·the·sample·instance. | 13 | Return·the·relative·playback·speed·of·the·sample·instance. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_sample_instance_speed(3alleg5) | 15 | al_set_sample_instance_speed(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | float·al_get_sample_instance_time(const·ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback | 13 | Return·the·length·of·the·sample·instance·in·seconds,·assuming·a·playback |
15 | speed·of·1.0. | 14 | speed·of·1.0. |
16 | .SH·SEE·ALSO | 15 | .SH·SEE·ALSO |
17 | al_get_sample_instance_length(3alleg5) | 16 | al_get_sample_instance_length(3alleg5) |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) |
11 | unsigned·int·al_get_sample_length(const·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·length·of·the·sample·in·sample·values. | 13 | Return·the·length·of·the·sample·in·sample·values. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), | 15 | al_get_sample_channels(3alleg5),·al_get_sample_depth(3alleg5), |
17 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) | 16 | al_get_sample_frequency(3alleg5),·al_get_sample_data(3alleg5) |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···char·const·*text, | 11 | ···char·const·*text, |
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
13 | void·al_get_text_dimensions(const·ALLEGRO_FONT·*f, | ||
14 | ···char·const·*text, | ||
15 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Sometimes,·the·al_get_text_width(3alleg5)·and | 15 | Sometimes,·the·al_get_text_width(3alleg5)·and |
19 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text | 16 | al_get_font_line_height(3alleg5)·functions·are·not·enough·for·exact·text |
20 | placement,·so·this·function·returns·some·additional·information. | 17 | placement,·so·this·function·returns·some·additional·information. |
21 | .PP | 18 | .PP |
22 | Returned·variables·(all·in·pixels): | 19 | Returned·variables·(all·in·pixels): |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) |
11 | int·al_get_text_width(const·ALLEGRO_FONT·*f,·const·char·*str) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. | 13 | Calculates·the·length·of·a·string·in·a·particular·font,·in·pixels. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), | 15 | al_get_ustr_width(3alleg5),·al_get_font_line_height(3alleg5), |
17 | al_get_text_dimensions(3alleg5) | 16 | al_get_text_dimensions(3alleg5) |
Offset 7, 16 lines modified | Offset 7, 13 lines modified | ||
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, | 10 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, |
11 | ···ALLEGRO_USTR·const·*ustr, | 11 | ···ALLEGRO_USTR·const·*ustr, |
12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | 12 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) |
13 | void·al_get_ustr_dimensions(const·ALLEGRO_FONT·*f, | ||
14 | ···ALLEGRO_USTR·const·*ustr, | ||
15 | ···int·*bbx,·int·*bby,·int·*bbw,·int·*bbh) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an | 15 | Like·al_get_text_dimensions(3alleg5),·except·the·text·is·passed·as·an |
19 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. | 16 | ALLEGRO_USTR·instead·of·a·NUL\-terminated·char·array. |
20 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
21 | al_get_text_dimensions(3alleg5) | 18 | al_get_text_dimensions(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) |
11 | int·al_get_ustr_width(const·ALLEGRO_FONT·*f,·ALLEGRO_USTR·const·*ustr) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. | 13 | Like·al_get_text_width(3alleg5)·but·expects·an·ALLEGRO_USTR. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) | 15 | al_get_text_width(3alleg5),·al_get_ustr_dimensions(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | int·al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·size·of·the·vertex·buffer | 13 | Returns·the·size·of·the·vertex·buffer |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | ALLEGRO_VERTEX_BUFFER(3alleg5) | 17 | ALLEGRO_VERTEX_BUFFER(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) |
11 | double·al_get_video_audio_rate(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·audio·rate·of·the·video,·in·Hz. | 13 | Returns·the·audio·rate·of·the·video,·in·Hz. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) |
11 | ALLEGRO_EVENT_SOURCE·*al_get_video_event_source(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Get·an·event·source·for·the·video. | 13 | Get·an·event·source·for·the·video. |
15 | The·possible·events·are·described·under | 14 | The·possible·events·are·described·under |
16 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). | 15 | ALLEGRO_VIDEO_EVENT_TYPE(3alleg5). |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) |
11 | double·al_get_video_fps(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·speed·of·the·video·in·frames·per·second. | 13 | Returns·the·speed·of·the·video·in·frames·per·second. |
15 | Often·this·will·not·be·an·integer·value. | 14 | Often·this·will·not·be·an·integer·value. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) |
11 | ALLEGRO_BITMAP·*al_get_video_frame(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·current·video·frame. | 13 | Returns·the·current·video·frame. |
15 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. | 14 | The·bitmap·is·owned·by·the·video·so·do·not·attempt·to·free·it. |
16 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. | 15 | The·bitmap·will·stay·valid·until·the·next·call·to·al_get_video_frame. |
17 | .PP | 16 | .PP |
18 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a | 17 | Videos·often·do·not·use·square·pixels·so·the·recommended·way·to·draw·a |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) |
11 | double·al_get_video_position(ALLEGRO_VIDEO·*video,·ALLEGRO_VIDEO_POSITION_TYPE·which) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the | 13 | Returns·the·current·position·of·the·video·stream·in·seconds·since·the |
15 | beginning. | 14 | beginning. |
16 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) | 15 | The·parameter·is·one·of·the·ALLEGRO_VIDEO_POSITION_TYPE(3alleg5) |
17 | constants. | 16 | constants. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) |
11 | float·al_get_video_scaled_height(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·height·with·which·the·video·frame·should·be·drawn. | 13 | Returns·the·height·with·which·the·video·frame·should·be·drawn. |
15 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
16 | larger·than·the·height·of·the·frame·bitmap. | 15 | larger·than·the·height·of·the·frame·bitmap. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_get_video_frame(3alleg5) | 17 | al_get_video_frame(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) |
11 | float·al_get_video_scaled_width(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·the·width·with·which·the·video·frame·should·be·drawn. | 13 | Returns·the·width·with·which·the·video·frame·should·be·drawn. |
15 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value | 14 | Videos·often·do·not·use·square·pixels,·so·this·will·may·return·a·value |
16 | larger·than·the·width·of·the·frame·bitmap. | 15 | larger·than·the·width·of·the·frame·bitmap. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.12 | 17 | 5.1.12 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) |
11 | ALLEGRO_CHANNEL_CONF·al_get_voice_channels(const·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·channel·configuration·of·the·voice. | 13 | Return·the·channel·configuration·of·the·voice. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_CHANNEL_CONF(3alleg5). | 15 | ALLEGRO_CHANNEL_CONF(3alleg5). |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) |
11 | ALLEGRO_AUDIO_DEPTH·al_get_voice_depth(const·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·audio·depth·of·the·voice. | 13 | Return·the·audio·depth·of·the·voice. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | ALLEGRO_AUDIO_DEPTH(3alleg5). | 15 | ALLEGRO_AUDIO_DEPTH(3alleg5). |
Offset 5, 11 lines modified | Offset 5, 10 lines modified | ||
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) | 10 | unsigned·int·al_get_voice_frequency(const·ALLEGRO_VOICE·*voice) |
11 | unsigned·int·al_get_voice_frequency(const·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. | 13 | Return·the·frequency·of·the·voice·(in·Hz),·e.g.\·44100. |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) |
11 | bool·al_get_voice_playing(const·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Return·true·if·the·voice·is·currently·playing. | 13 | Return·true·if·the·voice·is·currently·playing. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_set_voice_playing(3alleg5) | 15 | al_set_voice_playing(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) |
11 | unsigned·int·al_get_voice_position(const·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a | 13 | When·the·voice·has·a·non\-streaming·object·attached·to·it,·e.g.\·a |
15 | sample,·returns·the·voice\[cq]s·current·sample·position. | 14 | sample,·returns·the·voice\[cq]s·current·sample·position. |
16 | Otherwise,·returns·zero. | 15 | Otherwise,·returns·zero. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_set_voice_position(3alleg5). | 17 | al_set_voice_position(3alleg5). |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, |
11 | ···int·ranges_n,·const·int·ranges[]) | 11 | ···int·ranges_n,·const·int·ranges[]) |
12 | ALLEGRO_FONT·*al_grab_font_from_bitmap(ALLEGRO_BITMAP·*bmp, | ||
13 | ···int·ranges_n,·const·int·ranges[]) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Creates·a·new·font·from·an·Allegro·bitmap. | 14 | Creates·a·new·font·from·an·Allegro·bitmap. |
17 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will | 15 | You·can·delete·the·bitmap·after·the·function·returns·as·the·font·will |
18 | contain·a·copy·for·itself. | 16 | contain·a·copy·for·itself. |
19 | .PP | 17 | .PP |
20 | Parameters: | 18 | Parameters: |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | char·const·*al_identify_sample(char·const·*filename) |
11 | char·const·*al_identify_sample(char·const·*filename) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the | 13 | This·works·exactly·as·al_identify_sample_f(3alleg5)·but·you·specify·the |
15 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
16 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
17 | \-·only·the·file·contents. | 16 | \-·only·the·file·contents. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) |
11 | char·const·*al_identify_sample_f(ALLEGRO_FILE·*fp) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading | 13 | Tries·to·guess·the·audio·file·type·of·the·open·ALLEGRO_FILE·by·reading |
15 | the·first·few·bytes. | 14 | the·first·few·bytes. |
16 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
17 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can | 16 | al_init_acodec_addon(3alleg5)·will·add·detection·of·the·types·it·can |
18 | read. | 17 | read. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | char·const·*al_identify_video(char·const·*filename) |
11 | char·const·*al_identify_video(char·const·*filename) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the | 13 | This·works·exactly·as·al_identify_video_f(3alleg5)·but·you·specify·the |
15 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. | 14 | filename·of·the·file·for·which·to·detect·the·type·and·not·a·file·handle. |
16 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account | 15 | The·extension,·if·any,·of·the·passed·filename·is·not·taken·into·account |
17 | \-·only·the·file·contents. | 16 | \-·only·the·file·contents. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) |
11 | char·const·*al_identify_video_f(ALLEGRO_FILE·*fp) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading | 13 | Tries·to·guess·the·video·file·type·of·the·open·ALLEGRO_FILE·by·reading |
15 | the·first·few·bytes. | 14 | the·first·few·bytes. |
16 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling | 15 | By·default·Allegro·cannot·recognize·any·file·types,·but·calling |
17 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can | 16 | al_init_video_addon(3alleg5)·will·add·detection·of·the·types·it·can |
18 | read. | 17 | read. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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)) | 10 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) |
11 | #define·al_init()····(al_install_system(ALLEGRO_VERSION_INT,·atexit)) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version | 13 | Like·al_install_system(3alleg5),·but·automatically·passes·in·the·version |
15 | and·uses·the·atexit·function·visible·in·the·current·binary. | 14 | and·uses·the·atexit·function·visible·in·the·current·binary. |
16 | .RS | 15 | .RS |
17 | .PP | 16 | .PP |
18 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final | 17 | Note:·It·is·typically·wrong·to·call·al_init·anywhere·except·the·final |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_acodec_addon(void) |
11 | bool·al_init_acodec_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·function·registers·all·the·known·audio·file·type·handlers·for | 13 | This·function·registers·all·the·known·audio·file·type·handlers·for |
15 | al_load_sample(3alleg5),·al_save_sample(3alleg5), | 14 | al_load_sample(3alleg5),·al_save_sample(3alleg5), |
16 | al_load_audio_stream(3alleg5),·etc. | 15 | al_load_audio_stream(3alleg5),·etc. |
17 | .PP | 16 | .PP |
18 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised | 17 | Depending·on·what·libraries·are·available,·the·full·set·of·recognised |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_font_addon(void) |
11 | bool·al_init_font_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Initialise·the·font·addon. | 13 | Initialise·the·font·addon. |
15 | .PP | 14 | .PP |
16 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to | 15 | Note·that·if·you·intend·to·load·bitmap·fonts,·you·will·need·to |
17 | initialise·allegro_image·separately·(unless·you·are·using·another | 16 | initialise·allegro_image·separately·(unless·you·are·using·another |
18 | library·to·load·images). | 17 | library·to·load·images). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_image_addon(void) |
11 | bool·al_init_image_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Initializes·the·image·addon. | 13 | Initializes·the·image·addon. |
15 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), | 14 | This·registers·bitmap·format·handlers·for·al_load_bitmap(3alleg5), |
16 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), | 15 | al_load_bitmap_f(3alleg5),·al_save_bitmap(3alleg5), |
17 | al_save_bitmap_f(3alleg5). | 16 | al_save_bitmap_f(3alleg5). |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_native_dialog_addon(void) |
11 | bool·al_init_native_dialog_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Initialise·the·native·dialog·addon. | 13 | Initialise·the·native·dialog·addon. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·error. | 15 | Returns·true·on·success,·false·on·error. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.0.9,·5.1.0 | 17 | 5.0.9,·5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_primitives_addon(void) |
11 | bool·al_init_primitives_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Initializes·the·primitives·addon. | 13 | Initializes·the·primitives·addon. |
15 | .PP | 14 | .PP |
16 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. | 15 | \f[I]Returns:\f[R]·True·on·success,·false·on·failure. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_shutdown_primitives_addon(3alleg5) | 17 | al_shutdown_primitives_addon(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_init_ttf_addon(void) |
11 | bool·al_init_ttf_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Call·this·after·al_init_font_addon(3alleg5)·to·make | 13 | Call·this·after·al_init_font_addon(3alleg5)·to·make |
15 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats | 14 | al_load_font(3alleg5)·recognize·\[lq].ttf\[rq]·and·other·formats |
16 | supported·by·al_load_ttf_font(3alleg5). | 15 | supported·by·al_load_ttf_font(3alleg5). |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_init_video_addon(void) |
11 | bool·al_init_video_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Initializes·the·video·addon. | 13 | Initializes·the·video·addon. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.12 | 15 | 5.1.12 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 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) | 11 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) |
12 | int·al_insert_menu_item(ALLEGRO_MENU·*parent,·int·pos,·char·const·*title, | ||
13 | ···uint16_t·id,·int·flags,·ALLEGRO_BITMAP·*icon,·ALLEGRO_MENU·*submenu) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Inserts·a·menu·item·at·the·spot·specified. | 14 | Inserts·a·menu·item·at·the·spot·specified. |
17 | See·the·introductory·text·for·a·detailed·explanation·of·how·the | 15 | See·the·introductory·text·for·a·detailed·explanation·of·how·the |
18 | \f[CR]pos\f[R]·parameter·is·interpreted. | 16 | \f[CR]pos\f[R]·parameter·is·interpreted. |
19 | .PP | 17 | .PP |
20 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. | 18 | The·\f[CR]parent\f[R]·menu·can·be·a·popup·menu·or·a·regular·menu. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_install_audio(void) |
11 | bool·al_install_audio(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Install·the·audio·subsystem. | 13 | Install·the·audio·subsystem. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
17 | .RS | 16 | .RS |
18 | .PP | 17 | .PP |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | bool·al_is_acodec_addon_initialized(void) |
11 | bool·al_is_acodec_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns | 13 | Returns·true·if·the·acodec·addon·is·initialized,·otherwise·returns |
15 | false. | 14 | false. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.2.6 | 16 | 5.2.6 |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | bool·al_is_audio_installed(void) |
11 | bool·al_is_audio_installed(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and | 13 | Returns·true·if·al_install_audio(3alleg5)·was·called·previously·and |
15 | returned·successfully. | 14 | returned·successfully. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) |
11 | bool·al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER·*r) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and | 13 | Returns·true·if·the·audio·recorder·is·currently·capturing·data·and |
15 | generating·events. | 14 | generating·events. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.1 | 16 | 5.1.1 |
18 | .RS | 17 | .RS |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_is_font_addon_initialized(void) |
11 | bool·al_is_font_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. | 13 | Returns·true·if·the·font·addon·is·initialized,·otherwise·returns·false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) | 17 | al_init_font_addon(3alleg5),·al_shutdown_font_addon(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_is_image_addon_initialized(void) |
11 | bool·al_is_image_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. | 13 | Returns·true·if·the·image·addon·is·initialized,·otherwise·returns·false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | bool·al_is_native_dialog_addon_initialized(void) |
11 | bool·al_is_native_dialog_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise | 13 | Returns·true·if·the·native·dialog·addon·is·initialized,·otherwise |
15 | returns·false. | 14 | returns·false. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.2.6 | 16 | 5.2.6 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_is_primitives_addon_initialized(void) |
11 | bool·al_is_primitives_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns | 13 | Returns·true·if·the·primitives·addon·is·initialized,·otherwise·returns |
15 | false. | 14 | false. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.2.6 | 16 | 5.2.6 |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_is_ttf_addon_initialized(void) |
11 | bool·al_is_ttf_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. | 13 | Returns·true·if·the·TTF·addon·is·initialized,·otherwise·returns·false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) | 17 | al_init_ttf_addon(3alleg5),·al_shutdown_ttf_addon(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_is_video_addon_initialized(void) |
11 | bool·al_is_video_addon_initialized(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. | 13 | Returns·true·if·the·video·addon·is·initialized,·otherwise·returns·false. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.2.6 | 15 | 5.2.6 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) |
11 | bool·al_is_video_playing(ALLEGRO_VIDEO·*video) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·video·is·currently·playing. | 13 | Returns·true·if·the·video·is·currently·playing. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.12 | 15 | 5.1.12 |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, |
11 | ···size_t·buffer_count,·unsigned·int·samples) | 11 | ···size_t·buffer_count,·unsigned·int·samples) |
12 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream(const·char·*filename, | ||
13 | ···size_t·buffer_count,·unsigned·int·samples) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Loads·an·audio·file·from·disk·as·it·is·needed. | 14 | Loads·an·audio·file·from·disk·as·it·is·needed. |
17 | .PP | 15 | .PP |
18 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
19 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
20 | it·is·needed. | 18 | it·is·needed. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, |
11 | ···size_t·buffer_count,·unsigned·int·samples) | 11 | ···size_t·buffer_count,·unsigned·int·samples) |
12 | ALLEGRO_AUDIO_STREAM·*al_load_audio_stream_f(ALLEGRO_FILE*·fp,·const·char·*ident, | ||
13 | ···size_t·buffer_count,·unsigned·int·samples) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. | 14 | Loads·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream·as·it·is·needed. |
17 | .PP | 15 | .PP |
18 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be | 16 | Unlike·regular·streams,·the·one·returned·by·this·function·need·not·be |
19 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as | 17 | fed·by·the·user;·the·library·will·automatically·read·more·of·the·file·as |
20 | it·is·needed. | 18 | it·is·needed. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) |
11 | ALLEGRO_FONT·*al_load_bitmap_font(const·char·*fname) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Load·a·bitmap·font·from·a·file. | 13 | Load·a·bitmap·font·from·a·file. |
15 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then | 14 | This·is·done·by·first·calling·al_load_bitmap_flags(3alleg5)·and·then |
16 | al_grab_font_from_bitmap(3alleg5). | 15 | al_grab_font_from_bitmap(3alleg5). |
17 | .PP | 16 | .PP |
18 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to | 17 | If·you·wanted·to·load·an·old·A4·font,·for·example,·it·would·be·better·to |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) |
11 | ALLEGRO_FONT·*al_load_bitmap_font_flags(const·char·*fname,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags | 13 | Like·al_load_bitmap_font(3alleg5)·but·additionally·takes·a·flags |
15 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: | 14 | parameter·which·is·a·bitfield·containing·a·combination·of·the·following: |
16 | .TP | 15 | .TP |
17 | ALLEGRO_NO_PREMULTIPLIED_ALPHA | 16 | ALLEGRO_NO_PREMULTIPLIED_ALPHA |
18 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). | 17 | The·same·meaning·as·for·al_load_bitmap_flags(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) |
11 | ALLEGRO_FONT·*al_load_font(char·const·*filename,·int·size,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·a·font·from·disk. | 13 | Loads·a·font·from·disk. |
15 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of | 14 | This·will·use·al_load_bitmap_font_flags(3alleg5)·if·you·pass·the·name·of |
16 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). | 15 | a·known·bitmap·format,·or·else·al_load_ttf_font(3alleg5). |
17 | .PP | 16 | .PP |
18 | The·flags·parameter·is·passed·through·to·either·of·those·functions. | 17 | The·flags·parameter·is·passed·through·to·either·of·those·functions. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) |
11 | ALLEGRO_SAMPLE·*al_load_sample(const·char·*filename) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·a·few·different·audio·file·formats·based·on·their·extension. | 13 | Loads·a·few·different·audio·file·formats·based·on·their·extension. |
15 | .PP | 14 | .PP |
16 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be | 15 | Note·that·this·stores·the·entire·file·in·memory·at·once,·which·may·be |
17 | time·consuming. | 16 | time·consuming. |
18 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or | 17 | To·read·the·file·as·it·is·needed,·use·al_load_audio_stream(3alleg5)·or |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) |
11 | ALLEGRO_SAMPLE·*al_load_sample_f(ALLEGRO_FILE*·fp,·const·char·*ident) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an | 13 | Loads·an·audio·file·from·an·ALLEGRO_FILE(3alleg5)·stream·into·an |
15 | ALLEGRO_SAMPLE(3alleg5). | 14 | ALLEGRO_SAMPLE(3alleg5). |
16 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a | 15 | The·file·type·is·determined·by·the·passed·`ident'·parameter,·which·is·a |
17 | file·name·extension·including·the·leading·dot. | 16 | file·name·extension·including·the·leading·dot. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) |
11 | ALLEGRO_FONT·*al_load_ttf_font(char·const·*filename,·int·size,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. | 13 | Loads·a·TrueType·font·from·a·file·using·the·FreeType·library. |
15 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font | 14 | Quoting·from·the·FreeType·FAQ·this·means·support·for·many·different·font |
16 | formats: | 15 | formats: |
17 | .PP | 16 | .PP |
18 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and | 17 | \f[I]TrueType,·OpenType,·Type1,·CID,·CFF,·Windows·FON/FNT,·X11·PCF,·and |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, |
11 | ····char·const·*filename,·int·size,·int·flags) | 11 | ····char·const·*filename,·int·size,·int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_f(ALLEGRO_FILE·*file, | ||
13 | ····char·const·*filename,·int·size,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file | 14 | Like·al_load_ttf_font(3alleg5),·but·the·font·is·read·from·the·file |
17 | handle. | 15 | handle. |
18 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
19 | font·file. | 17 | font·file. |
20 | .RS | 18 | .RS |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, |
11 | ···int·flags) | 11 | ···int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_stretch(char·const·*filename,·int·w,·int·h, | ||
13 | ···int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and | 14 | Like·al_load_ttf_font(3alleg5),·except·it·takes·separate·width·and |
17 | height·parameters·instead·of·a·single·size·parameter. | 15 | height·parameters·instead·of·a·single·size·parameter. |
18 | .PP | 16 | .PP |
19 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then | 17 | If·the·height·is·a·positive·value,·and·the·width·zero·or·positive,·then |
20 | font·will·be·stretched·according·to·those·parameters. | 18 | font·will·be·stretched·according·to·those·parameters. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, |
11 | ····char·const·*filename,·int·w,·int·h,·int·flags) | 11 | ····char·const·*filename,·int·w,·int·h,·int·flags) |
12 | ALLEGRO_FONT·*al_load_ttf_font_stretch_f(ALLEGRO_FILE·*file, | ||
13 | ····char·const·*filename,·int·w,·int·h,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the | 14 | Like·al_load_ttf_font_stretch(3alleg5),·but·the·font·is·read·from·the |
17 | file·handle. | 15 | file·handle. |
18 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a | 16 | The·filename·is·only·used·to·find·possible·additional·files·next·to·a |
19 | font·file. | 17 | font·file. |
20 | .RS | 18 | .RS |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, |
11 | ····int·length,·int·flags) | 11 | ····int·length,·int·flags) |
12 | void*·al_lock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer,·int·offset, | ||
13 | ····int·length,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Locks·a·index·buffer·so·you·can·access·its·data. | 14 | Locks·a·index·buffer·so·you·can·access·its·data. |
17 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
18 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. | 16 | from·a·write·only·buffer·and·if·the·buffer·is·already·locked. |
19 | .PP | 17 | .PP |
20 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | ALLEGRO_SAMPLE_INSTANCE*·al_lock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying | 13 | Locks·a·ALLEGRO_SAMPLE_ID(3alleg5),·returning·the·underlying |
15 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). | 14 | ALLEGRO_SAMPLE_INSTANCE(3alleg5). |
16 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such | 15 | This·allows·you·to·adjust·the·various·properties·of·the·instance·(such |
17 | as·volume,·pan,·etc)·while·the·sound·is·playing. | 16 | as·volume,·pan,·etc)·while·the·sound·is·playing. |
18 | .PP | 17 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, |
11 | ···int·length,·int·flags) | 11 | ···int·length,·int·flags) |
12 | void*·al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer,·int·offset, | ||
13 | ···int·length,·int·flags) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Locks·a·vertex·buffer·so·you·can·access·its·data. | 14 | Locks·a·vertex·buffer·so·you·can·access·its·data. |
17 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested | 15 | Will·return·NULL·if·the·parameters·are·invalid,·if·reading·is·requested |
18 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. | 16 | from·a·write·only·buffer,·or·if·the·buffer·is·already·locked. |
19 | .PP | 17 | .PP |
20 | \f[I]Parameters:\f[R] | 18 | \f[I]Parameters:\f[R] |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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] | 10 | #define·al_malloc(n)·\[rs] |
11 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_malloc(n)·\[rs] | ||
13 | ···(al_malloc_with_context((n),·__LINE__,·__FILE__,·__func__)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be | 14 | Like·malloc()·in·the·C·standard·library,·but·the·implementation·may·be |
17 | overridden. | 15 | overridden. |
18 | .PP | 16 | .PP |
19 | This·is·a·macro. | 17 | This·is·a·macro. |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) |
11 | bool·al_mixer_has_attachments(const·ALLEGRO_MIXER*·mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·mixer·has·something·attached·to·it. | 13 | Returns·true·if·the·mixer·has·something·attached·to·it. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_get_mixer_attached(3alleg5), | 15 | al_get_mixer_attached(3alleg5), |
17 | al_attach_sample_instance_to_mixer(3alleg5), | 16 | al_attach_sample_instance_to_mixer(3alleg5), |
18 | al_attach_audio_stream_to_mixer(3alleg5), | 17 | al_attach_audio_stream_to_mixer(3alleg5), |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) |
11 | ALLEGRO_FILE·*al_open_memfile(void·*mem,·int64_t·size,·const·char·*mode) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·a·file·handle·to·the·block·of·memory. | 13 | Returns·a·file·handle·to·the·block·of·memory. |
15 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must | 14 | All·read·and·write·operations·act·upon·the·memory·directly,·so·it·must |
16 | not·be·freed·while·the·file·remains·open. | 15 | not·be·freed·while·the·file·remains·open. |
17 | .PP | 16 | .PP |
18 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and | 17 | The·mode·can·be·any·combination·of·\[lq]r\[rq]·(readable)·and |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) |
11 | ALLEGRO_TEXTLOG·*al_open_native_text_log(char·const·*title,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Opens·a·window·to·which·you·can·append·log·messages·with | 13 | Opens·a·window·to·which·you·can·append·log·messages·with |
15 | al_append_native_text_log(3alleg5). | 14 | al_append_native_text_log(3alleg5). |
16 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a | 15 | This·can·be·useful·for·debugging·if·you·don\[cq]t·want·to·depend·on·a |
17 | console·being·available. | 16 | console·being·available. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) |
11 | ALLEGRO_VIDEO·*al_open_video(char·const·*filename) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Reads·a·video·file. | 13 | Reads·a·video·file. |
15 | This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can | 14 | This·does·not·start·streaming·yet·but·reads·the·meta·info·so·you·can |
16 | query·e.g.\·the·size·or·audio·rate. | 15 | query·e.g.\·the·size·or·audio·rate. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) |
11 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream(const·char·*filename) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·it·is·needed. | 13 | Loads·and·plays·an·audio·file,·streaming·from·disk·as·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 |
18 | al_set_default_mixer(3alleg5). | 17 | al_set_default_mixer(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) |
11 | ALLEGRO_AUDIO_STREAM·*al_play_audio_stream_f(ALLEGRO_FILE·*fp,·const·char·*ident) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, | 13 | Loads·and·plays·an·audio·file·from·ALLEGRO_FILE(3alleg5)·stream, |
15 | streaming·it·is·needed. | 14 | streaming·it·is·needed. |
16 | This·API·can·only·play·one·audio·stream·at·a·time. | 15 | This·API·can·only·play·one·audio·stream·at·a·time. |
17 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via | 16 | This·requires·a·default·mixer·to·be·set,·which·is·typically·done·via |
18 | al_reserve_samples(3alleg5),·but·can·also·be·done·via | 17 | al_reserve_samples(3alleg5),·but·can·also·be·done·via |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, |
11 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | 11 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) |
12 | bool·al_play_sample(ALLEGRO_SAMPLE·*spl,·float·gain,·float·pan,·float·speed, | ||
13 | ···ALLEGRO_PLAYMODE·loop,·ALLEGRO_SAMPLE_ID·*ret_id) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Plays·a·sample·on·one·of·the·sample·instances·created·by | 14 | Plays·a·sample·on·one·of·the·sample·instances·created·by |
17 | al_reserve_samples(3alleg5). | 15 | al_reserve_samples(3alleg5). |
18 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
19 | Playback·may·fail·because·all·the·reserved·sample·instances·are | 17 | Playback·may·fail·because·all·the·reserved·sample·instances·are |
20 | currently·used. | 18 | currently·used. |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Play·the·sample·instance. | 13 | Play·the·sample·instance. |
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_stop_sample_instance(3alleg5) | 16 | al_stop_sample_instance(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) |
11 | bool·al_popup_menu(ALLEGRO_MENU·*popup,·ALLEGRO_DISPLAY·*display) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Displays·a·context·menu·next·to·the·mouse·cursor. | 13 | Displays·a·context·menu·next·to·the·mouse·cursor. |
15 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). | 14 | The·menu·must·have·been·created·with·al_create_popup_menu(3alleg5). |
16 | It·generates·events·just·like·a·regular·display·menu·does. | 15 | It·generates·events·just·like·a·regular·display·menu·does. |
17 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection | 16 | It·is·possible·that·the·menu·will·be·canceled·without·any·selection |
18 | being·made. | 17 | being·made. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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] | 10 | #define·al_realloc(p,·n)·\[rs] |
11 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | 11 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) |
12 | #define·al_realloc(p,·n)·\[rs] | ||
13 | ···(al_realloc_with_context((p),·(n),·__LINE__,·__FILE__,·__func__)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be | 14 | Like·realloc()·in·the·C·standard·library,·but·the·implementation·may·be |
17 | overridden. | 15 | overridden. |
18 | .PP | 16 | .PP |
19 | This·is·a·macro. | 17 | This·is·a·macro. |
20 | .SH·SEE·ALSO | 18 | .SH·SEE·ALSO |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | bool·al_register_audio_stream_loader(const·char·*ext, |
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, | 11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, |
12 | ······size_t·buffer_count,·unsigned·int·samples)) | 12 | ······size_t·buffer_count,·unsigned·int·samples)) |
13 | bool·al_register_audio_stream_loader(const·char·*ext, | ||
14 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(const·char·*filename, | ||
15 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and | 15 | Register·a·handler·for·al_load_audio_stream(3alleg5)·and |
19 | al_play_audio_stream(3alleg5). | 16 | al_play_audio_stream(3alleg5). |
20 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 17 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
21 | given·extension. | 18 | given·extension. |
22 | .PP | 19 | .PP |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | bool·al_register_audio_stream_loader_f(const·char·*ext, |
11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, | 11 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, |
12 | ······size_t·buffer_count,·unsigned·int·samples)) | 12 | ······size_t·buffer_count,·unsigned·int·samples)) |
13 | bool·al_register_audio_stream_loader_f(const·char·*ext, | ||
14 | ···ALLEGRO_AUDIO_STREAM·*(*stream_loader)(ALLEGRO_FILE*·fp, | ||
15 | ······size_t·buffer_count,·unsigned·int·samples)) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and | 15 | Register·a·handler·for·al_load_audio_stream_f(3alleg5)·and |
19 | al_play_audio_stream_f(3alleg5). | 16 | al_play_audio_stream_f(3alleg5). |
20 | The·given·function·will·be·used·to·open·streams·from·files·with·the | 17 | The·given·function·will·be·used·to·open·streams·from·files·with·the |
21 | given·extension. | 18 | given·extension. |
22 | .PP | 19 | .PP |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_font_loader(char·const·*extension, |
11 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | 11 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) |
12 | bool·al_register_font_loader(char·const·*extension, | ||
13 | ···ALLEGRO_FONT·*(*load_font)(char·const·*filename,·int·size,·int·flags)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of | 14 | Informs·Allegro·of·a·new·font·file·type,·telling·it·how·to·load·files·of |
17 | this·format. | 15 | this·format. |
18 | .PP | 16 | .PP |
19 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. | 17 | The·\f[CR]extension\f[R]·should·include·the·leading·dot·(`.')·character. |
20 | It·will·be·matched·case\-insensitively. | 18 | It·will·be·matched·case\-insensitively. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_sample_identifier(const·char·*ext, |
11 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) | 11 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) |
12 | bool·al_register_sample_identifier(const·char·*ext, | ||
13 | ···bool·(*identifier)(ALLEGRO_FILE*·fp)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Register·an·identify·handler·for·al_identify_sample(3alleg5). | 14 | Register·an·identify·handler·for·al_identify_sample(3alleg5). |
17 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. | 15 | The·given·function·will·be·used·to·detect·files·for·the·given·extension. |
18 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) | 16 | It·will·be·called·with·a·single·argument·of·type·ALLEGRO_FILE(3alleg5) |
19 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte | 17 | which·is·a·file·handle·opened·for·reading·and·located·at·the·first·byte |
20 | of·the·file. | 18 | of·the·file. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_sample_loader(const·char·*ext, |
11 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) | 11 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) |
12 | bool·al_register_sample_loader(const·char·*ext, | ||
13 | ···ALLEGRO_SAMPLE·*(*loader)(const·char·*filename)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Register·a·handler·for·al_load_sample(3alleg5). | 14 | Register·a·handler·for·al_load_sample(3alleg5). |
17 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
18 | with·the·given·extension. | 16 | with·the·given·extension. |
19 | .PP | 17 | .PP |
20 | The·extension·should·include·the·leading·dot·(`.')·character. | 18 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_sample_loader_f(const·char·*ext, |
11 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) | 11 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) |
12 | bool·al_register_sample_loader_f(const·char·*ext, | ||
13 | ···ALLEGRO_SAMPLE·*(*loader)(ALLEGRO_FILE*·fp)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Register·a·handler·for·al_load_sample_f(3alleg5). | 14 | Register·a·handler·for·al_load_sample_f(3alleg5). |
17 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files | 15 | The·given·function·will·be·used·to·handle·the·loading·of·sample·files |
18 | with·the·given·extension. | 16 | with·the·given·extension. |
19 | .PP | 17 | .PP |
20 | The·extension·should·include·the·leading·dot·(`.')·character. | 18 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_sample_saver(const·char·*ext, |
11 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) | 11 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) |
12 | bool·al_register_sample_saver(const·char·*ext, | ||
13 | ···bool·(*saver)(const·char·*filename,·ALLEGRO_SAMPLE·*spl)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Register·a·handler·for·al_save_sample(3alleg5). | 14 | Register·a·handler·for·al_save_sample(3alleg5). |
17 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
18 | with·the·given·extension. | 16 | with·the·given·extension. |
19 | .PP | 17 | .PP |
20 | The·extension·should·include·the·leading·dot·(`.')·character. | 18 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_register_sample_saver_f(const·char·*ext, |
11 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) | 11 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) |
12 | bool·al_register_sample_saver_f(const·char·*ext, | ||
13 | ···bool·(*saver)(ALLEGRO_FILE*·fp,·ALLEGRO_SAMPLE·*spl)) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Register·a·handler·for·al_save_sample_f(3alleg5). | 14 | Register·a·handler·for·al_save_sample_f(3alleg5). |
17 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files | 15 | The·given·function·will·be·used·to·handle·the·saving·of·sample·files |
18 | with·the·given·extension. | 16 | with·the·given·extension. |
19 | .PP | 17 | .PP |
20 | The·extension·should·include·the·leading·dot·(`.')·character. | 18 | The·extension·should·include·the·leading·dot·(`.')·character. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) |
11 | ALLEGRO_MENU·*al_remove_display_menu(ALLEGRO_DISPLAY·*display) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Detaches·the·menu·associated·with·the·display·and·returns·it. | 13 | Detaches·the·menu·associated·with·the·display·and·returns·it. |
15 | The·menu·can·then·be·used·on·a·different·display. | 14 | The·menu·can·then·be·used·on·a·different·display. |
16 | .PP | 15 | .PP |
17 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call | 16 | If·you·simply·want·to·destroy·the·active·menu,·you·can·call |
18 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. | 17 | al_set_display_menu(3alleg5)·with·a·\f[CR]NULL\f[R]·menu. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) |
11 | bool·al_remove_menu_item(ALLEGRO_MENU·*menu,·int·pos) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Removes·the·specified·item·from·the·menu·and·destroys·it. | 13 | Removes·the·specified·item·from·the·menu·and·destroys·it. |
15 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. | 14 | If·the·item·contains·a·sub\-menu,·it·too·is·destroyed. |
16 | Any·references·to·it·are·invalidated. | 15 | Any·references·to·it·are·invalidated. |
17 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy | 16 | If·you·want·to·preserve·that·sub\-menu,·you·should·first·make·a·copy |
18 | with·al_clone_menu(3alleg5). | 17 | with·al_clone_menu(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_reserve_samples(int·reserve_samples) |
11 | bool·al_reserve_samples(int·reserve_samples) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default | 13 | Reserves·a·number·of·sample·instances,·attaching·them·to·the·default |
15 | mixer. | 14 | mixer. |
16 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will | 15 | If·no·default·mixer·is·set·when·this·function·is·called,·then·it·will |
17 | create·one·and·attach·it·to·the·default·voice. | 16 | create·one·and·attach·it·to·the·default·voice. |
18 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. | 17 | If·no·default·voice·has·been·set,·it,·too,·will·be·created. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_restore_default_mixer(void) |
11 | bool·al_restore_default_mixer(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default | 13 | Restores·Allegro\[cq]s·default·mixer·and·attaches·it·to·the·default |
15 | voice. | 14 | voice. |
16 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. | 15 | If·the·default·mixer·hasn\[cq]t·been·created·before,·it·will·be·created. |
17 | If·the·default·voice·hasn\[cq]t·been·set·via | 16 | If·the·default·voice·hasn\[cq]t·been·set·via |
18 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be | 17 | al_set_default_voice(3alleg5)·or·created·before,·it·will·also·be |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) |
11 | bool·al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM·*stream) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·streaming·file·playing·position·to·the·beginning. | 13 | Set·the·streaming·file·playing·position·to·the·beginning. |
15 | Returns·true·on·success. | 14 | Returns·true·on·success. |
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), |
18 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) |
11 | bool·al_save_sample(const·char·*filename,·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Writes·a·sample·into·a·file. | 13 | Writes·a·sample·into·a·file. |
15 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
16 | \[lq].wav\[rq]. | 15 | \[lq].wav\[rq]. |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·error. | 17 | Returns·true·on·success,·false·on·error. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) |
11 | bool·al_save_sample_f(ALLEGRO_FILE·*fp,·const·char·*ident,·ALLEGRO_SAMPLE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. | 13 | Writes·a·sample·into·a·ALLEGRO_FILE(3alleg5)·filestream. |
15 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be | 14 | Currently,·wav·is·the·only·supported·format,·and·the·extension·must·be |
16 | \[lq].wav\[rq]. | 15 | \[lq].wav\[rq]. |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·error. | 17 | Returns·true·on·success,·false·on·error. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) |
11 | bool·al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM·*stream,·double·time) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·streaming·file·playing·position·to·time. | 13 | Set·the·streaming·file·playing·position·to·time. |
15 | Returns·true·on·success. | 14 | Returns·true·on·success. |
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), |
18 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 14 lines modified | Offset 5, 13 lines modified | ||
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) | 10 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) |
11 | bool·al_seek_video(ALLEGRO_VIDEO·*video,·double·pos_in_seconds) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Seek·to·a·different·position·in·the·video. | 13 | Seek·to·a·different·position·in·the·video. |
15 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. | 14 | Currently·only·seeking·to·the·beginning·of·the·video·is·supported. |
16 | .SH·SINCE | 15 | .SH·SINCE |
17 | 5.1.0 | 16 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) |
11 | bool·al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM·*stream,·void·*val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·function·needs·to·be·called·for·every·successful·call·of | 13 | This·function·needs·to·be·called·for·every·successful·call·of |
15 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer | 14 | al_get_audio_stream_fragment(3alleg5)·to·indicate·that·the·buffer |
16 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. | 15 | (pointed·to·by·\f[CR]val\f[R])·is·filled·with·new·data. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_get_audio_stream_fragment(3alleg5) | 17 | al_get_audio_stream_fragment(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·playback·gain·of·the·stream. | 13 | Set·the·playback·gain·of·the·stream. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·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. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 6, 15 lines modified | Offset 6, 13 lines modified | ||
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, | 10 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···double·start,·double·end) | 11 | ···double·start,·double·end) |
12 | bool·al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···double·start,·double·end) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Sets·the·loop·points·for·the·stream·in·seconds. | 14 | Sets·the·loop·points·for·the·stream·in·seconds. |
17 | Currently·this·can·only·be·called·on·streams·created·with | 15 | Currently·this·can·only·be·called·on·streams·created·with |
18 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), | 16 | al_load_audio_stream(3alleg5),·al_play_audio_stream(3alleg5), |
19 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). | 17 | al_load_audio_stream_f(3alleg5)·or·al_play_audio_stream_f(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·pan·value·on·an·audio·stream. | 13 | Set·the·pan·value·on·an·audio·stream. |
15 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; | 14 | A·value·of·\-1.0·means·to·play·the·stream·only·through·the·left·speaker; |
16 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
17 | centre·balanced. | 16 | centre·balanced. |
18 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) |
11 | bool·al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM·*stream,·bool·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Change·whether·the·stream·is·playing. | 13 | Change·whether·the·stream·is·playing. |
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 |
18 | al_get_audio_stream_playing(3alleg5) | 17 | al_get_audio_stream_playing(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, |
11 | ···ALLEGRO_PLAYMODE·val) | 11 | ···ALLEGRO_PLAYMODE·val) |
12 | bool·al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM·*stream, | ||
13 | ···ALLEGRO_PLAYMODE·val) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Set·the·playback·mode·of·the·stream. | 14 | Set·the·playback·mode·of·the·stream. |
17 | .PP | 15 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). | 18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_audio_stream_playmode(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) |
11 | bool·al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM·*stream,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·relative·playback·speed·of·the·stream. | 13 | Set·the·relative·playback·speed·of·the·stream. |
15 | 1.0·means·normal·speed. | 14 | 1.0·means·normal·speed. |
16 | .PP | 15 | .PP |
17 | Return·true·on·success,·false·on·failure. | 16 | Return·true·on·success,·false·on·failure. |
18 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. | 17 | Will·fail·if·the·audio·stream·is·attached·directly·to·a·voice. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) |
11 | bool·al_set_default_mixer(ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Sets·the·default·mixer. | 13 | Sets·the·default·mixer. |
15 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all | 14 | All·samples·started·with·al_play_sample(3alleg5)·will·be·stopped·and·all |
16 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be | 15 | sample·instances·returned·by·al_lock_sample_id(3alleg5)·will·be |
17 | invalidated. | 16 | invalidated. |
18 | If·you·are·using·your·own·mixer,·this·should·be·called·before | 17 | If·you·are·using·your·own·mixer,·this·should·be·called·before |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) |
11 | void·al_set_default_voice(ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the | 13 | You·can·call·this·before·calling·al_restore_default_mixer·to·provide·the |
15 | voice·which·should·be·used. | 14 | voice·which·should·be·used. |
16 | Any·previous·voice·will·be·destroyed. | 15 | Any·previous·voice·will·be·destroyed. |
17 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. | 16 | You·can·also·pass·NULL·to·destroy·the·current·default·voice. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) |
11 | bool·al_set_display_menu(ALLEGRO_DISPLAY·*display,·ALLEGRO_MENU·*menu) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. | 13 | Associates·the·\f[CR]menu\f[R]·with·the·\f[CR]display\f[R]·and·shows·it. |
15 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be | 14 | If·there·was·a·previous·menu·associated·with·the·display,·it·will·be |
16 | destroyed. | 15 | destroyed. |
17 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu | 16 | If·you·don\[cq]t·want·that·to·happen,·you·should·first·remove·the·menu |
18 | with·al_remove_display_menu(3alleg5). | 17 | with·al_remove_display_menu(3alleg5). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) |
11 | void·al_set_fallback_font(ALLEGRO_FONT·*font,·ALLEGRO_FONT·*fallback) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. | 13 | Sets·a·font·which·is·used·instead·if·a·character·is·not·present. |
15 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the | 14 | Can·be·chained,·but·make·sure·there·is·no·loop·as·that·would·crash·the |
16 | application! | 15 | application! |
17 | Pass·NULL·to·remove·a·fallback·font·again. | 16 | Pass·NULL·to·remove·a·fallback·font·again. |
18 | .SH·SINCE | 17 | .SH·SINCE |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) |
11 | void·al_set_menu_item_caption(ALLEGRO_MENU·*menu,·int·pos,·const·char·*caption) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. | 13 | Updates·the·menu·item·caption·with·the·new·\f[CR]caption\f[R]. |
15 | This·will·invalidate·any·previous·calls·to | 14 | This·will·invalidate·any·previous·calls·to |
16 | al_get_menu_item_caption(3alleg5). | 15 | al_get_menu_item_caption(3alleg5). |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) |
11 | void·al_set_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Updates·the·menu·item\[cq]s·flags. | 13 | Updates·the·menu·item\[cq]s·flags. |
15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
16 | flags. | 15 | flags. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.0 | 17 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) |
11 | void·al_set_menu_item_icon(ALLEGRO_MENU·*menu,·int·pos,·ALLEGRO_BITMAP·*icon) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Sets·the·icon·for·the·specified·menu·item. | 13 | Sets·the·icon·for·the·specified·menu·item. |
15 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may | 14 | The·menu·assumes·ownership·of·the·\f[CR]ALLEGRO_BITMAP\f[R]·and·may |
16 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue | 15 | invalidate·the·pointer,·so·you·must·clone·it·if·you·wish·to·continue |
17 | using·it. | 16 | using·it. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) |
11 | bool·al_set_mixer_frequency(ALLEGRO_MIXER·*mixer,·unsigned·int·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·mixer·frequency·(in·Hz). | 13 | Set·the·mixer·frequency·(in·Hz). |
15 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. | 14 | This·will·only·work·if·the·mixer·is·not·attached·to·anything. |
16 | .PP | 15 | .PP |
17 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) |
11 | bool·al_set_mixer_gain(ALLEGRO_MIXER·*mixer,·float·new_gain) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·mixer·gain·(amplification·factor). | 13 | Set·the·mixer·gain·(amplification·factor). |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·true·on·success,·false·on·failure. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.0.6,·5.1.0 | 17 | 5.0.6,·5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) |
11 | bool·al_set_mixer_playing(ALLEGRO_MIXER·*mixer,·bool·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Change·whether·the·mixer·is·playing. | 13 | Change·whether·the·mixer·is·playing. |
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 |
18 | al_get_mixer_playing(3alleg5). | 17 | al_get_mixer_playing(3alleg5). |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, |
11 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), | 11 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), |
12 | ···void·*pp_callback_userdata) | 12 | ···void·*pp_callback_userdata) |
13 | bool·al_set_mixer_postprocess_callback(ALLEGRO_MIXER·*mixer, | ||
14 | ···void·(*pp_callback)(void·*buf,·unsigned·int·samples,·void·*data), | ||
15 | ···void·*pp_callback_userdata) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the | 15 | Sets·a·post\-processing·filter·function·that\[cq]s·called·after·the |
19 | attached·streams·have·been·mixed. | 16 | attached·streams·have·been·mixed. |
20 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. | 17 | The·buffer\[cq]s·format·will·be·whatever·the·mixer·was·created·with. |
21 | The·sample·count·and·user\-data·pointer·is·also·passed. | 18 | The·sample·count·and·user\-data·pointer·is·also·passed. |
22 | .RS | 19 | .RS |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) |
11 | bool·al_set_mixer_quality(ALLEGRO_MIXER·*mixer,·ALLEGRO_MIXER_QUALITY·new_quality) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·mixer·quality. | 13 | Set·the·mixer·quality. |
15 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to | 14 | This·can·only·succeed·if·the·mixer·does·not·have·anything·attached·to |
16 | it. | 15 | it. |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_set_physfs_file_interface(void) |
11 | void·al_set_physfs_file_interface(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) | 13 | This·function·sets·\f[I]both\f[R]·the·ALLEGRO_FILE_INTERFACE(3alleg5) |
15 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. | 14 | and·ALLEGRO_FS_INTERFACE(3alleg5)·for·the·calling·thread. |
16 | .PP | 15 | .PP |
17 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be | 16 | Subsequent·calls·to·al_fopen(3alleg5)·on·the·calling·thread·will·be |
18 | handled·by·PHYSFS_open(). | 17 | handled·by·PHYSFS_open(). |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) |
11 | bool·al_set_sample(ALLEGRO_SAMPLE_INSTANCE·*spl,·ALLEGRO_SAMPLE·*data) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Change·the·sample·data·that·a·sample·instance·plays. | 13 | Change·the·sample·data·that·a·sample·instance·plays. |
15 | This·can·be·quite·an·involved·process. | 14 | This·can·be·quite·an·involved·process. |
16 | .PP | 15 | .PP |
17 | First,·the·sample·is·stopped·if·it·is·not·already. | 16 | First,·the·sample·is·stopped·if·it·is·not·already. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) |
11 | bool·al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE·*spl,·const·float·*matrix) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into | 13 | Set·the·matrix·used·to·mix·the·channels·coming·from·this·instance·into |
15 | the·mixer·it·is·attached·to. | 14 | the·mixer·it·is·attached·to. |
16 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan | 15 | Normally·Allegro·derives·the·values·of·this·matrix·from·the·gain·and·pan |
17 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the | 16 | settings,·as·well·as·the·channel·configurations·of·this·instance·and·the |
18 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default | 17 | mixer·it·is·attached·to,·but·this·allows·you·override·that·default |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·playback·gain·of·the·sample·instance. | 13 | Set·the·playback·gain·of·the·sample·instance. |
15 | .PP | 14 | .PP |
16 | Returns·true·on·success,·false·on·failure. | 15 | Returns·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. |
18 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···unsigned·int·val) | 11 | ···unsigned·int·val) |
12 | bool·al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···unsigned·int·val) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Set·the·length·of·the·sample·instance·in·sample·values. | 14 | Set·the·length·of·the·sample·instance·in·sample·values. |
17 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. | 15 | This·can·be·used·to·play·only·parts·of·the·underlying·sample. |
18 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. | 16 | Be·careful·not·to·exceed·the·actual·length·of·the·sample·data,·though. |
19 | .PP | 17 | .PP |
20 | Return·true·on·success,·false·on·failure. | 18 | Return·true·on·success,·false·on·failure. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·pan·value·on·a·sample·instance. | 13 | Set·the·pan·value·on·a·sample·instance. |
15 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; | 14 | A·value·of·\-1.0·means·to·play·the·sample·only·through·the·left·speaker; |
16 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is | 15 | +1.0·means·only·through·the·right·speaker;·0.0·means·the·sample·is |
17 | centre·balanced. | 16 | centre·balanced. |
18 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and | 17 | A·special·value·ALLEGRO_AUDIO_PAN_NONE(3alleg5)·disables·panning·and |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) |
11 | bool·al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE·*spl,·bool·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Change·whether·the·sample·instance·is·playing. | 13 | Change·whether·the·sample·instance·is·playing. |
15 | .PP | 14 | .PP |
16 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). | 15 | The·instance·does·not·need·to·be·attached·to·anything·(since:·5.1.8). |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···ALLEGRO_PLAYMODE·val) | 11 | ···ALLEGRO_PLAYMODE·val) |
12 | bool·al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···ALLEGRO_PLAYMODE·val) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Set·the·playback·mode·of·the·sample·instance. | 14 | Set·the·playback·mode·of·the·sample·instance. |
17 | .PP | 15 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) | 18 | ALLEGRO_PLAYMODE(3alleg5),·al_get_sample_instance_playmode(3alleg5) |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, |
11 | ···unsigned·int·val) | 11 | ···unsigned·int·val) |
12 | bool·al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE·*spl, | ||
13 | ···unsigned·int·val) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Set·the·playback·position·of·a·sample·instance. | 14 | Set·the·playback·position·of·a·sample·instance. |
17 | .PP | 15 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 16 | Returns·true·on·success,·false·on·failure. |
19 | .SH·SEE·ALSO | 17 | .SH·SEE·ALSO |
20 | al_get_sample_instance_position(3alleg5) | 18 | al_get_sample_instance_position(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) |
11 | bool·al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE·*spl,·float·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·relative·playback·speed·of·the·sample·instance. | 13 | Set·the·relative·playback·speed·of·the·sample·instance. |
15 | 1.0·means·normal·speed. | 14 | 1.0·means·normal·speed. |
16 | .PP | 15 | .PP |
17 | Return·true·on·success,·false·on·failure. | 16 | Return·true·on·success,·false·on·failure. |
18 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. | 17 | Will·fail·if·the·sample·instance·is·attached·directly·to·a·voice. |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) |
11 | void·al_set_video_playing(ALLEGRO_VIDEO·*video,·bool·play) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Paused·or·resumes·playback. | 13 | Paused·or·resumes·playback. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.12 | 15 | 5.1.12 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) |
11 | bool·al_set_voice_playing(ALLEGRO_VOICE·*voice,·bool·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Change·whether·a·voice·is·playing·or·not. | 13 | Change·whether·a·voice·is·playing·or·not. |
15 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
16 | it,·e.g.\·a·sample·instance. | 15 | it,·e.g.\·a·sample·instance. |
17 | On·success·the·voice\[cq]s·current·sample·position·is·reset. | 16 | On·success·the·voice\[cq]s·current·sample·position·is·reset. |
18 | .PP | 17 | .PP |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) |
11 | bool·al_set_voice_position(ALLEGRO_VOICE·*voice,·unsigned·int·val) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Set·the·voice·position. | 13 | Set·the·voice·position. |
15 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to | 14 | This·can·only·work·if·the·voice·has·a·non\-streaming·object·attached·to |
16 | it,·e.g.\·a·sample·instance. | 15 | it,·e.g.\·a·sample·instance. |
17 | .PP | 16 | .PP |
18 | Returns·true·on·success,·false·on·failure. | 17 | Returns·true·on·success,·false·on·failure. |
Offset 6, 16 lines modified | Offset 6, 14 lines modified | ||
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, | 10 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, |
11 | ···ALLEGRO_FILECHOOSER·*dialog) | 11 | ···ALLEGRO_FILECHOOSER·*dialog) |
12 | bool·al_show_native_file_dialog(ALLEGRO_DISPLAY·*display, | ||
13 | ···ALLEGRO_FILECHOOSER·*dialog) | ||
14 | .EE | 12 | .EE |
15 | .SH·DESCRIPTION | 13 | .SH·DESCRIPTION |
16 | Show·the·dialog·window. | 14 | Show·the·dialog·window. |
17 | 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 |
18 | parent·if·possible. | 16 | parent·if·possible. |
19 | .PP | 17 | .PP |
20 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may | 18 | This·function·blocks·the·calling·thread·until·it·returns,·so·you·may |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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, | 10 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, |
11 | ···char·const·*title,·char·const·*heading,·char·const·*text, | 11 | ···char·const·*title,·char·const·*heading,·char·const·*text, |
12 | ···char·const·*buttons,·int·flags) | 12 | ···char·const·*buttons,·int·flags) |
13 | int·al_show_native_message_box(ALLEGRO_DISPLAY·*display, | ||
14 | ···char·const·*title,·char·const·*heading,·char·const·*text, | ||
15 | ···char·const·*buttons,·int·flags) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Show·a·native·GUI·message·box. | 15 | Show·a·native·GUI·message·box. |
19 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of | 16 | This·can·be·used·for·example·to·display·an·error·message·if·creation·of |
20 | an·initial·display·fails. | 17 | an·initial·display·fails. |
21 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the | 18 | The·display·may·be·NULL,·otherwise·the·given·display·is·treated·as·the |
22 | parent·if·possible. | 19 | parent·if·possible. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_shutdown_font_addon(void) |
11 | void·al_shutdown_font_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Shut·down·the·font·addon. | 13 | Shut·down·the·font·addon. |
15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
16 | the·user·wishes·as·well. | 15 | the·user·wishes·as·well. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_font_addon(3alleg5) | 17 | al_init_font_addon(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_shutdown_image_addon(void) |
11 | void·al_shutdown_image_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Shut·down·the·image·addon. | 13 | Shut·down·the·image·addon. |
15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
16 | the·user·wishes·as·well. | 15 | the·user·wishes·as·well. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_shutdown_native_dialog_addon(void) |
11 | void·al_shutdown_native_dialog_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Shut·down·the·native·dialog·addon. | 13 | Shut·down·the·native·dialog·addon. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.0.9,·5.1.5 | 15 | 5.0.9,·5.1.5 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_native_dialog_addon(3alleg5) | 17 | al_init_native_dialog_addon(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_shutdown_primitives_addon(void) |
11 | void·al_shutdown_primitives_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Shut·down·the·primitives·addon. | 13 | Shut·down·the·primitives·addon. |
15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
16 | the·user·wishes·as·well. | 15 | the·user·wishes·as·well. |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | al_init_primitives_addon(3alleg5) | 17 | al_init_primitives_addon(3alleg5) |
Offset 5, 12 lines modified | Offset 5, 11 lines modified | ||
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) | 10 | void·al_shutdown_ttf_addon(void) |
11 | void·al_shutdown_ttf_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Unloads·the·ttf·addon·again. | 13 | Unloads·the·ttf·addon·again. |
15 | You·normally·don\[cq]t·need·to·call·this. | 14 | You·normally·don\[cq]t·need·to·call·this. |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_shutdown_video_addon(void) |
11 | void·al_shutdown_video_addon(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Shut·down·the·video·addon. | 13 | Shut·down·the·video·addon. |
15 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time | 14 | This·is·done·automatically·at·program·exit,·but·can·be·called·any·time |
16 | the·user·wishes·as·well. | 15 | the·user·wishes·as·well. |
17 | .SH·SINCE | 16 | .SH·SINCE |
18 | 5.1.12 | 17 | 5.1.12 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | bool·al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Begin·recording·into·the·fragment·buffer. | 13 | Begin·recording·into·the·fragment·buffer. |
15 | Once·a·complete·fragment·has·been·captured·(as·specified·in | 14 | Once·a·complete·fragment·has·been·captured·(as·specified·in |
16 | al_create_audio_recorder(3alleg5)),·an | 15 | al_create_audio_recorder(3alleg5)),·an |
17 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. | 16 | ALLEGRO_EVENT_AUDIO_RECORDER_FRAGMENT(3alleg5)·event·will·be·triggered. |
18 | .PP | 17 | .PP |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) |
11 | void·al_start_video(ALLEGRO_VIDEO·*video,·ALLEGRO_MIXER·*mixer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Starts·streaming·the·video·from·the·beginning. | 13 | Starts·streaming·the·video·from·the·beginning. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) |
11 | void·al_start_video_with_voice(ALLEGRO_VIDEO·*video,·ALLEGRO_VOICE·*voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. | 13 | Like·al_start_video(3alleg5)·but·audio·is·routed·to·the·provided·voice. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.0 | 15 | 5.1.0 |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) |
11 | void·al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER·*r) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Stop·capturing·audio·data. | 13 | Stop·capturing·audio·data. |
15 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so | 14 | Note·that·the·audio·recorder·is·still·active·and·consuming·resources,·so |
16 | if·you·are·finished·recording·you·should·destroy·it·with | 15 | if·you·are·finished·recording·you·should·destroy·it·with |
17 | al_destroy_audio_recorder(3alleg5). | 16 | al_destroy_audio_recorder(3alleg5). |
18 | .PP | 17 | .PP |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | void·al_stop_sample(ALLEGRO_SAMPLE_ID·*spl_id) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Stop·the·sample·started·by·al_play_sample(3alleg5). | 13 | Stop·the·sample·started·by·al_play_sample(3alleg5). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_stop_samples(3alleg5) | 15 | al_stop_samples(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) |
11 | bool·al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE·*spl) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Stop·an·sample·instance·playing. | 13 | Stop·an·sample·instance·playing. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_play_sample_instance(3alleg5) | 15 | al_play_sample_instance(3alleg5) |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_stop_samples(void) |
11 | void·al_stop_samples(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Stop·all·samples·started·by·al_play_sample(3alleg5). | 13 | Stop·all·samples·started·by·al_play_sample(3alleg5). |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_stop_sample(3alleg5) | 15 | al_stop_sample(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) |
11 | int·al_toggle_menu_item_flags(ALLEGRO_MENU·*menu,·int·pos,·int·flags) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Toggles·the·specified·menu·item\[cq]s·flags. | 13 | Toggles·the·specified·menu·item\[cq]s·flags. |
15 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available | 14 | See·al_insert_menu_item(3alleg5)·for·a·description·of·the·available |
16 | flags. | 15 | flags. |
17 | .PP | 16 | .PP |
18 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the | 17 | Returns·a·bitfield·of·only·the·specified·flags·that·are·set·after·the |
Offset 7, 17 lines modified | Offset 7, 14 lines modified | ||
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( | 10 | bool·al_triangulate_polygon( |
11 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, | 11 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, |
12 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) | 12 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) |
13 | bool·al_triangulate_polygon( | ||
14 | ···const·float*·vertices,·size_t·vertex_stride,·const·int*·vertex_counts, | ||
15 | ···void·(*emit_triangle)(int,·int,·int,·void*),·void*·userdata) | ||
16 | .EE | 13 | .EE |
17 | .SH·DESCRIPTION | 14 | .SH·DESCRIPTION |
18 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple | 15 | Divides·a·simple·polygon·into·triangles,·with·zero·or·more·other·simple |
19 | polygons·subtracted·from·it·\-·the·holes. | 16 | polygons·subtracted·from·it·\-·the·holes. |
20 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main | 17 | The·holes·cannot·touch·or·intersect·with·the·outline·of·the·main |
21 | polygon. | 18 | polygon. |
22 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be | 19 | Simple·means·the·polygon·does·not·have·to·be·convex·but·must·not·be |
Offset 5, 13 lines modified | Offset 5, 12 lines modified | ||
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) | 10 | void·al_uninstall_audio(void) |
11 | void·al_uninstall_audio(void) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Uninstalls·the·audio·subsystem. | 13 | Uninstalls·the·audio·subsystem. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_install_audio(3alleg5) | 15 | al_install_audio(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) |
11 | void·al_unlock_index_buffer(ALLEGRO_INDEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Unlocks·a·previously·locked·index·buffer. | 13 | Unlocks·a·previously·locked·index·buffer. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.8 | 15 | 5.1.8 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) | 17 | ALLEGRO_INDEX_BUFFER(3alleg5),·al_lock_index_buffer(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) |
11 | void·al_unlock_sample_id(ALLEGRO_SAMPLE_ID·*spl_id) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to | 13 | Unlocks·a·ALLEGRO_SAMPLE_ID(3alleg5),·allowing·future·calls·to |
15 | al_play_sample(3alleg5)·to·reuse·it·if·possible. | 14 | al_play_sample(3alleg5)·to·reuse·it·if·possible. |
16 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) | 15 | Note·that·after·the·id·is·unlocked,·the·ALLEGRO_SAMPLE_INSTANCE(3alleg5) |
17 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly | 16 | that·was·previously·returned·by·al_lock_sample_id(3alleg5)·will·possibly |
18 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking | 17 | be·playing·a·different·sound,·so·you·should·only·use·it·after·locking |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) |
11 | void·al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER*·buffer) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Unlocks·a·previously·locked·vertex·buffer. | 13 | Unlocks·a·previously·locked·vertex·buffer. |
15 | .SH·SINCE | 14 | .SH·SINCE |
16 | 5.1.3 | 15 | 5.1.3 |
17 | .SH·SEE·ALSO | 16 | .SH·SEE·ALSO |
18 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) | 17 | ALLEGRO_VERTEX_BUFFER(3alleg5),·al_lock_vertex_buffer(3alleg5) |
Offset 5, 15 lines modified | Offset 5, 14 lines modified | ||
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) | 10 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) |
11 | bool·al_voice_has_attachments(const·ALLEGRO_VOICE*·voice) | ||
12 | .EE | 11 | .EE |
13 | .SH·DESCRIPTION | 12 | .SH·DESCRIPTION |
14 | Returns·true·if·the·voice·has·something·attached·to·it. | 13 | Returns·true·if·the·voice·has·something·attached·to·it. |
15 | .SH·SEE·ALSO | 14 | .SH·SEE·ALSO |
16 | al_attach_mixer_to_voice(3alleg5), | 15 | al_attach_mixer_to_voice(3alleg5), |
17 | al_attach_sample_instance_to_voice(3alleg5), | 16 | al_attach_sample_instance_to_voice(3alleg5), |
18 | al_attach_audio_stream_to_voice(3alleg5) | 17 | al_attach_audio_stream_to_voice(3alleg5) |